AsyncIO, await, and async - Concurrency in Python

𝙎𝙞𝙜𝙣 𝙪𝙥 𝙛𝙤𝙧 𝙎𝙤𝙘𝙧𝙖𝙩𝙞𝙘𝙖 𝘾𝙤𝙪𝙧𝙨𝙚𝙨: www.socratica.com/collections
𝙎𝙤𝙘𝙧𝙖𝙩𝙞𝙘𝙖 𝙋𝙮𝙩𝙝𝙤𝙣 𝙨𝙝𝙞𝙧𝙩: shop.socratica.com/products/p...
The asyncio module in Python helps you use concurrency in your code. In this lesson, you'll learn about subroutines & coroutines, concurrency vs. parallelism, and how to use the async/await keywords to create a coroutine, and to run a batch of coroutines using convenience functions in the asyncio module.
𝙋𝙧𝙤𝙜𝙧𝙖𝙢𝙢𝙞𝙣𝙜 𝙥𝙡𝙖𝙮𝙡𝙞𝙨𝙩𝙨:
Python: bit.ly/PythonSocratica
SQL: bit.ly/SQL_Socratica
Subscribe to Socratica + bell for notifications:
bit.ly/SocraticaSubscribe
⧓⧓⧓⧓⧓
We recommend:
How to Be a Great Student
ebook: amzn.to/2Lh3XSP
Paperback: amzn.to/3t5jeH3
Kindle Unlimited (read free): amzn.to/3atr8TJ
Python Cookbook, 3rd edition
amzn.to/3jprjX2
More Socratica Python goodies here:
shop.socratica.com/collection...
⧓⧓⧓⧓⧓
Join this channel to get access to perks:
/ @socratica
Support Socratica on Patreon:
/ socratica
Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison
Edited by Megi Shuke and Michael Harrison
#python #asyncio #concurrency

Пікірлер: 113

  • @MrMilesfinn
    @MrMilesfinn5 ай бұрын

    Wow -- the quality of the production, and the level of pedagogy, are both superb.

  • @mkamp

    @mkamp

    2 ай бұрын

    And the level of absurdly funny turns 😂❤

  • @mosk53

    @mosk53

    Ай бұрын

    insane

  • @MariosMartiopoulos
    @MariosMartiopoulos7 ай бұрын

    Almost 10 years later, and she hasn't aged a bit. I had realized from the beginning that she wasn't human. 😍 Kindly don't leave us without new episodes. This may not be a series we deserve, but it is a series we definitely need.

  • @abdessamadao1973

    @abdessamadao1973

    7 ай бұрын

    wait ... isn't she a human ?

  • @MariosMartiopoulos

    @MariosMartiopoulos

    7 ай бұрын

    @@abdessamadao1973 no, she is superhuman.

  • @robertmanigault625

    @robertmanigault625

    6 ай бұрын

    Actually, she is real. Her name is Ulka Simone Mohanty.

  • @MariosMartiopoulos

    @MariosMartiopoulos

    6 ай бұрын

    @@robertmanigault625 well, thank you Captain Obvious, now we have two superhumans in this channel. (No offense, just kidding. 🤭)

  • @abdessamadao1973

    @abdessamadao1973

    6 ай бұрын

    @@robertmanigault625 Wow , I didn't know she can program as well

  • @crimsomnia1415
    @crimsomnia14154 ай бұрын

    After maining Symmetra for years, I could listen to these videos all day long.

  • @mr.bulldops7692
    @mr.bulldops76927 ай бұрын

    Code examples were very clear, and the explanation of coroutines I think is sometimes glossed over in other tutorials. A similar explanation of multithreading, and the use of thread pools, may be an idea for a future video. Communication between threads and thread debugging can be very tricky.

  • @jackaubrey8614

    @jackaubrey8614

    7 ай бұрын

    "Communication between threads and thread debugging can be very tricky" - that, my friend, is the understatement of the century! :)

  • @feldinho
    @feldinho7 ай бұрын

    For those who enjoy etymology, "sub" and "co" are common latin prefixes that mean "under", "beneath" (subconscious, submarine etc) and "with" (colaborate, correlation etc). At least this is how I remember which one is which. I hope this is useful to someone else. :)

  • @Neamerjell

    @Neamerjell

    7 ай бұрын

    "Those who don't know the difference between 'entomology' and 'etymology' bug me in ways I can't put into words."

  • @Mohammad2525
    @Mohammad25255 ай бұрын

    This is the short and best video that explained concurrency very well made.

  • @ChadDoebelin
    @ChadDoebelin7 ай бұрын

    My favorite python series. It's been a while! Glad you're back.

  • @a.joshatt7518
    @a.joshatt75183 ай бұрын

    After watching several tutorials about async, This is the only one make me understand.

  • @kmqwewq
    @kmqwewq7 ай бұрын

    I love the way it's presented, it's so refreshingly different from the many boring courses. love you 🥰

  • @LawrenceMorrisson
    @LawrenceMorrisson6 ай бұрын

    landed here to learn about await and async and this was the video that held my interest. Loved the lighthearted vibe and silly dry humor throughout what was also an incredibly helpful video. Thank you and good job.

  • @dhrubajyotipaul8204
    @dhrubajyotipaul820424 күн бұрын

    Life saver! Love the simplicity! Thank you so much! ♥

  • @Chuukwudi
    @Chuukwudi2 ай бұрын

    Wow! This will help save some money with shorter aws lambda runtimes. Thank you!

  • @johnneiberger7311
    @johnneiberger7311Ай бұрын

    I'm certain this is the most interesting, helpful, and funny asyncio video I've seen, so far. Insta-subscribe.

  • @brianterry8512
    @brianterry85123 ай бұрын

    Even with all the puns and cutesy, this short video did more to help me get my head around how to actually implement async than all the others I have watched put together. So many of them spend most of their time explaining *why* to use it and end up glossing over *how*. This one gave enough why to make sense, and actually made the how understandable. Good job.

  • @prabakark6791
    @prabakark679121 күн бұрын

    I learned some serious stuff here and chuckled along the way. It was fun.

  • @padraic1983
    @padraic19837 ай бұрын

    Our team uses this module and other async libraries. Glad to see you post. The real power comes in using an async wrapper class for each io operation.

  • @seancharles1595
    @seancharles159515 күн бұрын

    Slickest and most entertaining tutorial I#ve had the pleasure to watch! Just subscribed!

  • @robboerman9378
    @robboerman93782 ай бұрын

    Absolutely LOVE the style here. Beside being super clear and concise it’s funny as well. Well done. Looking up the courses!

  • @steveq34
    @steveq347 ай бұрын

    Was just needing this and my fav python creators delivered!! Thank you! 💚

  • @devworks8787
    @devworks87877 ай бұрын

    Welcome back! good to see a video from you after a long time

  • @Rafi-nc3nw
    @Rafi-nc3nw2 ай бұрын

    Thank you very much. After spending a decade on this finally I am able to grasp the whole async await thing.

  • @tarannumx
    @tarannumxАй бұрын

    Best video for asynchronous programming

  • @Allen-by6ci
    @Allen-by6ci7 ай бұрын

    Big shout out to Ulka Simone Mohanty.. she's the actress and really fantastic at these videos.

  • @MariosMartiopoulos

    @MariosMartiopoulos

    7 ай бұрын

    She also has a degree in computer science.

  • @humanrightsadvocate
    @humanrightsadvocate7 ай бұрын

    OMG! That joke at the beginning was delicious. Ganymede, Callisto, Io and Europa.

  • @garyr1639
    @garyr16395 ай бұрын

    Excellent as ever, well done Socratica!

  • @awuyadaniel8982
    @awuyadaniel89825 ай бұрын

    I Love how you explained it... so understandable, you made it easy for me to understand Best AsyncIO, await, and async tutorial out there

  • @omara2248
    @omara22482 ай бұрын

    Outstanding quality.. both in the visual production as well as the narrative.

  • @ianmubangizi
    @ianmubangizi16 күн бұрын

    Who loved the Introduction to SQL? Really enjoyed it plus helped me pass my database exam once way back in college.

  • @carlosrivadulla8903
    @carlosrivadulla89037 ай бұрын

    Trying to understand this topic for some time now. Absolutely clear finally ty!

  • @MrPioneer7
    @MrPioneer77 ай бұрын

    Thanks for coming back my best teacher 🎉🎉🎉

  • @danieldesouzavicente7468
    @danieldesouzavicente746817 күн бұрын

    Fantastic video production and explanation 👌👏

  • @TevfikBagcivan
    @TevfikBagcivan7 ай бұрын

    The legend is back. The most impressive way to teach

  • @lenko_me
    @lenko_me2 ай бұрын

    Incredible video. Such comprehensive concept explained very cleanly

  • @sly2097
    @sly20977 ай бұрын

    Thanks for the excellent video, great examples and easy to follow

  • @BillAugersdca
    @BillAugersdca7 ай бұрын

    Awesome video as usual - fun and useful!

  • @hibryd7481
    @hibryd74814 ай бұрын

    The humor of this video is so corny, but I'll take it any day of the week over listening to another disembodied voice drone over top of a 2160p screen capture of an IDE where they don't even open a document for the first 3 minutes. Very clear and engaging explanation, subscribed.

  • @markw5521
    @markw552120 күн бұрын

    Ulka -- Love the wry humor!! Python was never so entertaining. Please keep doing what you're doing.

  • @moura3071
    @moura30713 ай бұрын

    Amazing approach and explanation.

  • @arkadipbasu
    @arkadipbasu6 ай бұрын

    thank you madam, Glad you're back.

  • @bhargavsangani2901
    @bhargavsangani29014 ай бұрын

    Wow!! Just Wow!! What an amazing explanation

  • @DavidBooth-mn3ji
    @DavidBooth-mn3ji3 ай бұрын

    This is actually so good

  • @jamesraphael8473
    @jamesraphael84736 ай бұрын

    She's back!!!!!🕺💃🕺💃🕺💃

  • @patriotir
    @patriotirАй бұрын

    This was amazing! Thank you!

  • @Reep21
    @Reep217 ай бұрын

    Learnt something new, thank you!

  • @isragaytanmistico
    @isragaytanmistico4 ай бұрын

    Thanks to you so much. You won a subscriber.

  • @ericstevens653
    @ericstevens6532 ай бұрын

    This was fantastic, thank you

  • @mlindatech
    @mlindatech3 ай бұрын

    I like this💚💚...you explained it all

  • @soyuzssr
    @soyuzssr7 ай бұрын

    Brilliant video ! Bravo !!

  • @Smarandii
    @Smarandii3 ай бұрын

    This is awesome and deserves a millions of likes

  • @sahil5124
    @sahil51246 ай бұрын

    this is gold, thank you so much

  • @friesmaker
    @friesmakerАй бұрын

    Amazing video!

  • @wouteranthierens
    @wouteranthierens7 ай бұрын

    Tnx ! amazing as always.

  • @ravi4522
    @ravi45225 ай бұрын

    Hii, I love your videos. Can you please add videos on multithreading and multprocessing? That would be really helpful.

  • @oldschoolsoldier1634
    @oldschoolsoldier16342 ай бұрын

    That async-IO joke.... hit hard

  • @voltexripper8367
    @voltexripper83677 ай бұрын

    Bravoo ! Nice explanation

  • @alinaderiparizi7193
    @alinaderiparizi7193Ай бұрын

    Awesome!♥

  • @rahulkmail
    @rahulkmail5 ай бұрын

    Nice tutorial...

  • @Tiago_R_Ribeiro
    @Tiago_R_Ribeiro4 ай бұрын

    Who writes the text of these videos? Genius.

  • @ryanprasad2090
    @ryanprasad20903 ай бұрын

    Awesome explanation!

  • @Socratica

    @Socratica

    3 ай бұрын

    Thank you so much for your kind support!! 💜🦉

  • @EschinTenebrous
    @EschinTenebrous7 ай бұрын

    Great video, as usual :)

  • @moibe182
    @moibe1827 ай бұрын

    I love this girl returned!!

  • @DataWiseDiscoveries
    @DataWiseDiscoveries3 күн бұрын

    What a superb video🤩🤩🤩🤩🤩

  • @MrCytrus
    @MrCytrus5 ай бұрын

    heavily underrated video

  • @user-lf5xu4tc1u
    @user-lf5xu4tc1u7 ай бұрын

    Nice, that she is back

  • @TheWyrdSmythe
    @TheWyrdSmythe2 ай бұрын

    Welcome back Funny Robot! 🤖

  • @SuperAppmaker
    @SuperAppmaker2 ай бұрын

    very informative videoa

  • @kirbymarchbarcena
    @kirbymarchbarcena7 ай бұрын

    This will be very helpful for my son who's interested in programming

  • @Socratica

    @Socratica

    7 ай бұрын

    Wonderful! The family that codes together learns loads together! 💜🦉

  • @milton8903
    @milton8903Ай бұрын

    Thank you GLaDOS sister

  • @bicycleninja1685
    @bicycleninja16857 ай бұрын

    She's back

  • @greatad2405
    @greatad24055 ай бұрын

    Crazy production and the joke of AI doing mischievous axtivities was extraordinary fr.

  • @iamjimgroth
    @iamjimgroth7 ай бұрын

    I just realised I keep watching these for the humour. I don't even like python. 😁

  • @Lenjiy
    @Lenjiy6 ай бұрын

    nice

  • @redthunder6183
    @redthunder61836 ай бұрын

    thanks Spock

  • @Socratica

    @Socratica

    6 ай бұрын

    🖖

  • @stephensalmon3148
    @stephensalmon31487 ай бұрын

    Why can't all tutorials be like this?

  • @setudutta3905
    @setudutta39056 ай бұрын

    👏 👏

  • @meguellatiyounes8659
    @meguellatiyounes86593 ай бұрын

    seggestion Socratica: how can i build my own python library or package ?

  • @richmondkoomson3403
    @richmondkoomson34035 ай бұрын

    God I love this woman

  • @user-ed8ey6gh1u
    @user-ed8ey6gh1u6 ай бұрын

    Hello, Would you please one one python multiprocessing. Thanks for this one

  • @digvijaysinghrajput8092
    @digvijaysinghrajput80927 ай бұрын

    In which version of python asyncio is introduced?

  • @senr4in

    @senr4in

    7 ай бұрын

    3.4?

  • @MannuJadhav

    @MannuJadhav

    7 ай бұрын

    3.5

  • @koushikr4770
    @koushikr47709 күн бұрын

    Bro what is this ai tool what ai tool u use to do videos like this 😊

  • @triggeracc6001
    @triggeracc60013 ай бұрын

    Tried but doesn't work, it took the same time

  • @corneillembay8893
    @corneillembay88936 ай бұрын

    Hey Teacher how about a payment courses Thanks a lot🙏 2:32

  • @bdcash
    @bdcash7 ай бұрын

    The return of eveyone's favourite AI dominatrix

  • @alexandrupavilcu
    @alexandrupavilcu7 ай бұрын

    I am thinking about the future. Several of them, in fact. All of them concurrent.

  • @jursamaj
    @jursamaj7 ай бұрын

    While I'm sure this pattern is very useful, it has some severe limits. As described here, you have to wait for *all* the concurrent tasks to get done. There are cases where you want to dispatch several threads, at different times, and as *each one* gets done, do something with the result.

  • @Mrme-cn9je

    @Mrme-cn9je

    7 ай бұрын

    What language mechanism is used then in your example? Another technique?

  • @Imthemaddie
    @Imthemaddie3 ай бұрын

    Sheldon Cooper vibes

  • @i_like_pengwinz1065
    @i_like_pengwinz10652 ай бұрын

    3:27 lmao

  • @shrutish
    @shrutish2 ай бұрын

    inhale, widen your eyes and run

  • @lightninglemma
    @lightninglemma7 ай бұрын

    are you an Ai teaching robo? :D

  • @papunmohanty2291
    @papunmohanty22916 ай бұрын

    hmmm..... code is not pythonic (no snack case convention followed in function name) [OUCH!!] 👻 but good explanation though 🤓

  • @bartuslongus
    @bartuslongus2 ай бұрын

    My 10 year old clothes neither look so good nor fit so well any more.

  • @mathewmcfool
    @mathewmcfool7 ай бұрын

    i can't help but think this is a deepfake 🤷‍♂ she was gone for so long now she's back? naaah

  • @Anjinink
    @Anjinink7 ай бұрын

    No link for code?

Келесі