Demystifying Python's Async and Await Keywords

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

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

  • @fredrikjonsen6222
    @fredrikjonsen6222 4 ปีที่แล้ว +69

    10:09 for anyone who already knows the general concept of async and multiprocessing and just wants to watch the Python part

  • @PaulHrimiuc
    @PaulHrimiuc ปีที่แล้ว

    Great stuff inside! For anyone who wants to learn about how async works in python this is the best starting point!

  •  5 ปีที่แล้ว +15

    Thanks Michael, great tutorial. And your PyCharm skills are 10/10. Also your podcast!

    • @mikeckennedy
      @mikeckennedy 5 ปีที่แล้ว +3

      Hi Laurentiu, thanks so much! :)

  • @maverickv3517
    @maverickv3517 4 ปีที่แล้ว +3

    Thank you! I'm blown away by this webcast. Great work. Great examples and explanations. I will definitely check out your podcasts.

    • @JetBrainsTV
      @JetBrainsTV  4 ปีที่แล้ว

      Glad it was helpful!

  • @rakshithkumarl1089
    @rakshithkumarl1089 4 ปีที่แล้ว +2

    Great! Not just an 'hello world' intro but much more than that. Would definitely recommend for someone who is looking to implement asyncio in real-world application.
    Thanks!!

  • @karen-7057
    @karen-7057 3 ปีที่แล้ว +2

    58:41 unsync to speed up requests

  • @AerroReyna
    @AerroReyna 4 ปีที่แล้ว

    Best video I founded on TH-cam about this topic, I find asyn attempts on python rather weird, coming from Javascript. But this really help me. Thank you

  • @AndJusTIceForRob
    @AndJusTIceForRob 4 ปีที่แล้ว +2

    I have never seen an arrow character in python code or in any coding language for that matter. Can you explain how you even got it to show up in the text as well as what function it is performing here?

    • @bart9522
      @bart9522 4 ปีที่แล้ว

      It's ->, a return type annotation. See mypy and PEP 484.

  • @gregorvonbergen
    @gregorvonbergen 5 ปีที่แล้ว +4

    Thanks. Well done intro. Will definitely download your async training course!

  • @omfchg
    @omfchg 3 ปีที่แล้ว +4

    This is great tutorial! It really helped me to understand asyncio better.
    I would like to have some kind of example for protocols and transporting data (as this is the use case I would like to use asyncio for), so I would be greatful if you could add some additional video or share some other training materials in the topic.

  • @harshavardhan9991
    @harshavardhan9991 4 ปีที่แล้ว +2

    Thank You Michael !! You are awesome

  • @smiley2827
    @smiley2827 ปีที่แล้ว

    It was really nice, but why we skipped Try/Except part?

  • @cryptojeff3993
    @cryptojeff3993 4 ปีที่แล้ว +1

    What is the difference between asynio.gather(task1, task2, task3) and loop.create_task?

  • @zhenghaohuang1533
    @zhenghaohuang1533 2 ปีที่แล้ว

    This was just brilliant! Thank you @mkennedy!

  • @eldarmammadov7872
    @eldarmammadov7872 ปีที่แล้ว

    a liitle bit difficult to comprehend on async aiohttp session(), due using two context managers but overall put everything in plain text. Learnt much than any other resources about asyncio

  • @kshitijkarthick6449
    @kshitijkarthick6449 ปีที่แล้ว +1

    Great talk!
    Thanks a lot.

  • @jewpcabra666
    @jewpcabra666 3 ปีที่แล้ว

    This was a wonderful tutorial - just found this and will most likely be checking out all your content at talk python! Thanks so much for this!

  • @utsavdahiya3729
    @utsavdahiya3729 4 ปีที่แล้ว +1

    Really great tutorial!
    Learnt about unsync!!

  • @pedrocorreia5857
    @pedrocorreia5857 ปีที่แล้ว

    Incredible, thank you 👍👍👍

  • @Vijay-Yarramsetty
    @Vijay-Yarramsetty 3 ปีที่แล้ว

    great and in-depth with good examples. Thank you.

    • @JetBrainsTV
      @JetBrainsTV  3 ปีที่แล้ว

      You're very welcome!

  • @df6148
    @df6148 2 ปีที่แล้ว +1

    Thanks for the great video! I’m a big fan of your podcast content. I’m looking to use asyncio as a way of testing for my discord bot using pytest-asyncio so that my bot can stay running during testing while running some of its functions. I don’t want it to shut down or get hung up on a single function but would rather it run concurrently (a new term I learned 😁) so that I can attempt to test lets say maybe 4 or 5 functions all at the same time while the bot is “live”.
    That’s my use case so that I can push out more features without having to turn the bot on and off for each and every feature. I just want the bot to stay ON and run tests.

  • @esmanlitebriz
    @esmanlitebriz 5 ปีที่แล้ว +2

    It was best source about this context that i get.

  • @bansonedo7417
    @bansonedo7417 4 ปีที่แล้ว +1

    this is great help to understand asyncio.

  • @piby1802
    @piby1802 5 ปีที่แล้ว +1

    Thank you so much Michael!

  • @norcal6181
    @norcal6181 3 ปีที่แล้ว +1

    I recognize that voice.... Talk Python to Me!!! Yay!

  • @renancatan
    @renancatan 2 ปีที่แล้ว

    this is still up to date?

  • @Saitama-ur3lq
    @Saitama-ur3lq 5 ปีที่แล้ว

    aiopg vs asyncpg? which one do you think is good?

  • @shreepads
    @shreepads 4 ปีที่แล้ว

    Realised it was a very familiar voice almost 10 mins in! Shouldn't 'multiprocessing' come under 'Do more at once' rather than 'Do things faster'?

  • @nopens
    @nopens 3 ปีที่แล้ว +1

    Unsync is pure magic.

  • @rpiitkgpian
    @rpiitkgpian 5 ปีที่แล้ว +4

    Very nice intro to python-async. One question, is unsync production ready or is it more experimental ?

    • @mikeckennedy
      @mikeckennedy 5 ปีที่แล้ว +3

      Hi, I think unsync is production ready. If you look at what it does, it's just a wrapper / cleanup on top of asyncio's event loops. Seems solid enough.

  • @williantuness
    @williantuness 5 ปีที่แล้ว +3

    Really good workshop! Thank you! #Python #Asyncio

    • @mikeckennedy
      @mikeckennedy 5 ปีที่แล้ว

      You're welcome Willian.

  • @十步-q1w
    @十步-q1w 2 ปีที่แล้ว

    really good tutorial!

  • @rogueriver
    @rogueriver 3 ปีที่แล้ว +1

    So Good, Thanks!

  • @cschandragiri
    @cschandragiri 4 ปีที่แล้ว

    Thanks! Coming in from java, can relate to some stuff. Loved unsync

  • @borkarfaiz
    @borkarfaiz 4 ปีที่แล้ว +2

    learned about typing thanks...

  • @arturomuller4816
    @arturomuller4816 4 ปีที่แล้ว

    Great Tutorial!

  • @Bishonen88
    @Bishonen88 5 ปีที่แล้ว +3

    Great tutorial! Perhaps multithreading/-processing would make a good idea for a future one :)

    • @mikeckennedy
      @mikeckennedy 5 ปีที่แล้ว

      Thanks, and that's a good idea.

  • @nccamsc
    @nccamsc ปีที่แล้ว

    You are mixing in terms like parallel and serial into the discussion about concurrent/asynchronous. That's confusing, because parallel is not the same as concurrent.

  • @BabyBalla3score
    @BabyBalla3score 5 ปีที่แล้ว +1

    Great intro. Maybe I can use this and go back to py instead of node now

  • @undisclosedmusic4969
    @undisclosedmusic4969 4 ปีที่แล้ว +2

    I love the redesign of macos on your macbook pro with 6 cores, looks just like windows!

    • @doaltplusf4448
      @doaltplusf4448 4 ปีที่แล้ว

      You can install Windows 10 super easily on MacBooks, its honestly very surprising.

  • @santoshgokul3053
    @santoshgokul3053 4 ปีที่แล้ว

    Very informative

  • @kithenry
    @kithenry 2 ปีที่แล้ว

    At last i understand this topic

  • @jacobsamson834
    @jacobsamson834 4 ปีที่แล้ว +1

    thank u👏

  • @Spiritusp
    @Spiritusp 5 ปีที่แล้ว +11

    Stop answering questions!!! Just talk.

  • @TheOPtmal
    @TheOPtmal 5 ปีที่แล้ว

    I used VS Code to follow along.

  • @ilyam1425
    @ilyam1425 5 ปีที่แล้ว

    its not programming, its collective farm.

  • @HitBoxMaster
    @HitBoxMaster ปีที่แล้ว +2

    Not really well explained at all

  • @utsavdahiya3729
    @utsavdahiya3729 4 ปีที่แล้ว

    ♥️♥️♥️

  • @tourdesource
    @tourdesource 3 ปีที่แล้ว

    Wow, that's 50 times easier to do in Javascript. Just saying.

  • @jonasbernard
    @jonasbernard 4 ปีที่แล้ว

    Never saw a TH-cam video title with so many Y's in it...

    • @JetBrainsTV
      @JetBrainsTV  4 ปีที่แล้ว

      Didn't notice but thanks for the laugh. ;)

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

    Anync programing is not parallel!

  • @nixon36dbd
    @nixon36dbd 5 ปีที่แล้ว +4

    too much of "idk" and "maybe" for an expert in async programming
    also this "try except" failure...
    i think its just an anti ad for his courses
    overall it looks like that somebody didnt practice the topic enough
    so still waiting for a little better explanation than "async is good for io and you grab loop and you know, launch tasks"
    just another tutorial that scratches the surface, there are tons of that in the internet
    p.s. sorry, but it just so frustrating

    • @piby1802
      @piby1802 5 ปีที่แล้ว +7

      What do you need to learn more besides that? And why? Especially when he introduced unsync.
      Sorry but that's all you need to know unless you need to do something bizarre

    • @mikeckennedy
      @mikeckennedy 5 ปีที่แล้ว

      @@piby1802 Thanks Piby. ;)

    • @MR-jj5dn
      @MR-jj5dn 4 ปีที่แล้ว +3

      Dima Bogdanov, can you provide a link to a video that explains it better? Or perhaps you've made one of you own?