ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

AsyncIO, await, and async - Concurrency in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2023
  • 𝙎𝙞𝙜𝙣 𝙪𝙥 𝙛𝙤𝙧 𝙎𝙤𝙘𝙧𝙖𝙩𝙞𝙘𝙖 𝘾𝙤𝙪𝙧𝙨𝙚𝙨: www.socratica....
    𝙎𝙤𝙘𝙧𝙖𝙩𝙞𝙘𝙖 𝙋𝙮𝙩𝙝𝙤𝙣 𝙨𝙝𝙞𝙧𝙩: shop.socratica...
    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/PythonSo...
    SQL: bit.ly/SQL_Socr...
    Subscribe to Socratica + bell for notifications:
    bit.ly/Socratic...
    ⧓⧓⧓⧓⧓
    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...
    ⧓⧓⧓⧓⧓
    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

ความคิดเห็น • 128

  • @MrMilesfinn
    @MrMilesfinn 8 หลายเดือนก่อน +93

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

    • @mkamp
      @mkamp 4 หลายเดือนก่อน +2

      And the level of absurdly funny turns 😂❤

    • @mosk53
      @mosk53 3 หลายเดือนก่อน

      insane

  • @MariosMartiopoulos
    @MariosMartiopoulos 9 หลายเดือนก่อน +83

    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 9 หลายเดือนก่อน +2

      wait ... isn't she a human ?

    • @MariosMartiopoulos
      @MariosMartiopoulos 9 หลายเดือนก่อน +8

      @@abdessamadao1973 no, she is superhuman.

    • @robertmanigault625
      @robertmanigault625 9 หลายเดือนก่อน +6

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

    • @MariosMartiopoulos
      @MariosMartiopoulos 9 หลายเดือนก่อน +3

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

    • @abdessamadao1973
      @abdessamadao1973 9 หลายเดือนก่อน

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

  • @crimsomnia1415
    @crimsomnia1415 6 หลายเดือนก่อน +12

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

  • @mr.bulldops7692
    @mr.bulldops7692 9 หลายเดือนก่อน +43

    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 9 หลายเดือนก่อน +1

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

  • @LawrenceMorrisson
    @LawrenceMorrisson 8 หลายเดือนก่อน +3

    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.

  • @feldinho
    @feldinho 9 หลายเดือนก่อน +10

    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 9 หลายเดือนก่อน +7

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

  • @Mohammad2525
    @Mohammad2525 7 หลายเดือนก่อน +4

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

  • @ChadDoebelin
    @ChadDoebelin 9 หลายเดือนก่อน +8

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

  • @a.joshatt7518
    @a.joshatt7518 6 หลายเดือนก่อน +2

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

  • @kmqwewq
    @kmqwewq 9 หลายเดือนก่อน +2

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

  • @Chuukwudi
    @Chuukwudi 5 หลายเดือนก่อน +3

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

  • @brianterry8512
    @brianterry8512 6 หลายเดือนก่อน

    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.

  • @steveq34
    @steveq34 9 หลายเดือนก่อน +4

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

  • @Rafi-nc3nw
    @Rafi-nc3nw 5 หลายเดือนก่อน

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

  • @devworks8787
    @devworks8787 9 หลายเดือนก่อน +2

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

  • @padraic1983
    @padraic1983 9 หลายเดือนก่อน

    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.

  • @robboerman9378
    @robboerman9378 4 หลายเดือนก่อน

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

  • @Allen-by6ci
    @Allen-by6ci 9 หลายเดือนก่อน +6

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

    • @MariosMartiopoulos
      @MariosMartiopoulos 9 หลายเดือนก่อน

      She also has a degree in computer science.

  • @ianmubangizi
    @ianmubangizi 2 หลายเดือนก่อน

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

  • @awuyadaniel8982
    @awuyadaniel8982 7 หลายเดือนก่อน

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

  • @MrPioneer7
    @MrPioneer7 9 หลายเดือนก่อน +1

    Thanks for coming back my best teacher 🎉🎉🎉

  • @TevfikBagcivan
    @TevfikBagcivan 9 หลายเดือนก่อน

    The legend is back. The most impressive way to teach

  • @omara2248
    @omara2248 5 หลายเดือนก่อน

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

  • @lenko_me
    @lenko_me 4 หลายเดือนก่อน

    Incredible video. Such comprehensive concept explained very cleanly

  • @dhrubajyotipaul8204
    @dhrubajyotipaul8204 3 หลายเดือนก่อน

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

  • @carlosrivadulla8903
    @carlosrivadulla8903 9 หลายเดือนก่อน

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

  • @seancharles1595
    @seancharles1595 2 หลายเดือนก่อน

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

  • @tarannumx
    @tarannumx 3 หลายเดือนก่อน

    Best video for asynchronous programming

  • @humanrightsadvocate
    @humanrightsadvocate 9 หลายเดือนก่อน +2

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

  • @hibryd7481
    @hibryd7481 6 หลายเดือนก่อน

    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.

  • @garyr1639
    @garyr1639 8 หลายเดือนก่อน

    Excellent as ever, well done Socratica!

  • @prabakark6791
    @prabakark6791 2 หลายเดือนก่อน

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

  • @jamesraphael8473
    @jamesraphael8473 9 หลายเดือนก่อน +1

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

  • @danieldesouzavicente7468
    @danieldesouzavicente7468 2 หลายเดือนก่อน

    Fantastic video production and explanation 👌👏

  • @aliyasmin75
    @aliyasmin75 11 วันที่ผ่านมา

    Thank you very much for entire supported videos 🤲🤲🤲😊👍💐💐💐

  • @markw5521
    @markw5521 2 หลายเดือนก่อน

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

  • @johnneiberger7311
    @johnneiberger7311 3 หลายเดือนก่อน

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

  • @Tiago_R_Ribeiro
    @Tiago_R_Ribeiro 6 หลายเดือนก่อน +2

    Who writes the text of these videos? Genius.

  • @arkadipbasu
    @arkadipbasu 9 หลายเดือนก่อน

    thank you madam, Glad you're back.

  • @ravi4522
    @ravi4522 8 หลายเดือนก่อน +2

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

  • @DavidBooth-mn3ji
    @DavidBooth-mn3ji 5 หลายเดือนก่อน

    This is actually so good

  • @moura3071
    @moura3071 5 หลายเดือนก่อน

    Amazing approach and explanation.

  • @bhargavsangani2901
    @bhargavsangani2901 6 หลายเดือนก่อน

    Wow!! Just Wow!! What an amazing explanation

  • @mlindatech
    @mlindatech 5 หลายเดือนก่อน

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

  • @sly2097
    @sly2097 9 หลายเดือนก่อน

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

  • @Smarandii
    @Smarandii 5 หลายเดือนก่อน

    This is awesome and deserves a millions of likes

  • @BillAugersdca
    @BillAugersdca 9 หลายเดือนก่อน +1

    Awesome video as usual - fun and useful!

  • @patriotir
    @patriotir 3 หลายเดือนก่อน

    This was amazing! Thank you!

  • @isragaytanmistico
    @isragaytanmistico 6 หลายเดือนก่อน

    Thanks to you so much. You won a subscriber.

  • @user-il1tk7pi9l
    @user-il1tk7pi9l 18 วันที่ผ่านมา

    Best explanation 👍

  • @ericstevens653
    @ericstevens653 5 หลายเดือนก่อน

    This was fantastic, thank you

  • @ryanprasad2090
    @ryanprasad2090 6 หลายเดือนก่อน

    Awesome explanation!

    • @Socratica
      @Socratica  6 หลายเดือนก่อน

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

  • @moibe182
    @moibe182 9 หลายเดือนก่อน

    I love this girl returned!!

  • @kirbymarchbarcena
    @kirbymarchbarcena 9 หลายเดือนก่อน

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

    • @Socratica
      @Socratica  9 หลายเดือนก่อน +3

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

  • @friesmaker
    @friesmaker 3 หลายเดือนก่อน

    Amazing video!

  • @MrCytrus
    @MrCytrus 7 หลายเดือนก่อน

    heavily underrated video

  • @sahil5124
    @sahil5124 8 หลายเดือนก่อน

    this is gold, thank you so much

  • @namanagrawal1908
    @namanagrawal1908 2 หลายเดือนก่อน

    Best explanation

  • @user-lf5xu4tc1u
    @user-lf5xu4tc1u 9 หลายเดือนก่อน

    Nice, that she is back

  • @bdcash
    @bdcash 9 หลายเดือนก่อน +10

    The return of eveyone's favourite AI dominatrix

  • @ridhwannashir3065
    @ridhwannashir3065 หลายเดือนก่อน

    woaaah what a treasure finding this type of video, so refreshing

  • @wouteranthierens
    @wouteranthierens 9 หลายเดือนก่อน +1

    Tnx ! amazing as always.

  • @DataWiseDiscoveries
    @DataWiseDiscoveries 2 หลายเดือนก่อน

    What a superb video🤩🤩🤩🤩🤩

  • @oldschoolsoldier1634
    @oldschoolsoldier1634 4 หลายเดือนก่อน

    That async-IO joke.... hit hard

  • @rahulkmail
    @rahulkmail 7 หลายเดือนก่อน

    Nice tutorial...

  • @alinaderiparizi7193
    @alinaderiparizi7193 4 หลายเดือนก่อน

    Awesome!♥

  • @Reep21
    @Reep21 9 หลายเดือนก่อน

    Learnt something new, thank you!

  • @soyuzssr
    @soyuzssr 9 หลายเดือนก่อน

    Brilliant video ! Bravo !!

  • @gabrielyrangel5492
    @gabrielyrangel5492 หลายเดือนก่อน

    Just perfect

  • @TheWyrdSmythe
    @TheWyrdSmythe 4 หลายเดือนก่อน

    Welcome back Funny Robot! 🤖

  • @iamjimgroth
    @iamjimgroth 9 หลายเดือนก่อน +3

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

  • @milton8903
    @milton8903 4 หลายเดือนก่อน

    Thank you GLaDOS sister

  • @voltexripper8367
    @voltexripper8367 9 หลายเดือนก่อน

    Bravoo ! Nice explanation

  • @alexandertownsend5079
    @alexandertownsend5079 29 วันที่ผ่านมา

    What code editor is being used in the video? I think it looks nice.

  • @SuperAppmaker
    @SuperAppmaker 5 หลายเดือนก่อน

    very informative videoa

  • @bicycleninja1685
    @bicycleninja1685 9 หลายเดือนก่อน

    She's back

  • @greatad2405
    @greatad2405 7 หลายเดือนก่อน

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

  • @ricksanchez4736
    @ricksanchez4736 6 วันที่ผ่านมา

    Is this the best tutorial or what

  • @EschinTenebrous
    @EschinTenebrous 9 หลายเดือนก่อน

    Great video, as usual :)

  • @redthunder6183
    @redthunder6183 8 หลายเดือนก่อน +1

    thanks Spock

    • @Socratica
      @Socratica  8 หลายเดือนก่อน +1

      🖖

  • @Nostang3
    @Nostang3 2 หลายเดือนก่อน

    Would be great if you could link the code to a github repo so we can look at it without having to scan the video to pause and/or screenshot the code.

  • @ehSamurai3483
    @ehSamurai3483 หลายเดือนก่อน

    the async await is little different here than JS async and await.

  • @Lenjiy
    @Lenjiy 8 หลายเดือนก่อน

    nice

  • @meguellatiyounes8659
    @meguellatiyounes8659 5 หลายเดือนก่อน

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

  • @stephensalmon3148
    @stephensalmon3148 9 หลายเดือนก่อน +3

    Why can't all tutorials be like this?

  • @user-ed8ey6gh1u
    @user-ed8ey6gh1u 8 หลายเดือนก่อน

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

  • @khonello
    @khonello 7 หลายเดือนก่อน

    God I love this woman

  • @JustThink2000
    @JustThink2000 2 หลายเดือนก่อน

    Epic

  • @pandemil5356
    @pandemil5356 23 วันที่ผ่านมา +1

    buen bidio

  • @jursamaj
    @jursamaj 9 หลายเดือนก่อน

    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 9 หลายเดือนก่อน

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

  • @alexandrupavilcu
    @alexandrupavilcu 9 หลายเดือนก่อน

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

  • @setudutta3905
    @setudutta3905 8 หลายเดือนก่อน

    👏 👏

  • @koushikr4770
    @koushikr4770 2 หลายเดือนก่อน

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

  • @RoyZennet
    @RoyZennet 11 วันที่ผ่านมา

    just knew this channel but why her voices just like a robot XD

  • @corneillembay8893
    @corneillembay8893 8 หลายเดือนก่อน

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

  • @triggeracc6001
    @triggeracc6001 5 หลายเดือนก่อน +1

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

  • @FushigiMigi
    @FushigiMigi 17 ชั่วโมงที่ผ่านมา

    i luv u

  • @digvijaysinghrajput8092
    @digvijaysinghrajput8092 9 หลายเดือนก่อน

    In which version of python asyncio is introduced?

    • @senr4in
      @senr4in 9 หลายเดือนก่อน

      3.4?

    • @MannuJadhav
      @MannuJadhav 9 หลายเดือนก่อน

      3.5

  • @Imthemaddie
    @Imthemaddie 5 หลายเดือนก่อน

    Sheldon Cooper vibes

  • @shrutish
    @shrutish 4 หลายเดือนก่อน

    inhale, widen your eyes and run