import asyncio: Learn Python's AsyncIO #4 - Coroutines Under The Hood

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024

Комментарии • 34

  • @maheshut
    @maheshut 4 года назад +16

    Excellent videos on asyncio man. You have an excellent skill explain complex things in such a simple way. Many times i came to this channel to check if new video is updated.

  • @chiragjn101
    @chiragjn101 4 года назад +9

    Loved the movie references in the video and the description!
    least favorite parts of async programming: 1) identifying all 3rd party code that is not made with async support and might block the event loop and putting them into loop.run_in_executor 2) reasoning about the flow - some other code running in between awaits that might change the state or tricky cancellations between awaits that might leave the system (database) in inconsistent states

  • @Das.Kleine.Krokodil
    @Das.Kleine.Krokodil 2 года назад +5

    00:00 Introduction
    02:43 briefly about Future
    03:39 examples of methods of Future
    05:06 set_result, set_exception, cancel
    09:49 gather
    10:33 callback
    12:11 under the hood of Future
    14:00 coroutine as generator in Python 3.4
    17:14 generators
    20:19 passing a value to a generator
    21:41 more generator methods
    22:15 how coroutines worked in 2014
    24:00 under the hood of the Task class in 2014
    28:05 under the hood of the Task class in 2020
    30:29 implementation of tasks in C
    31:48 implementation of coroutines in C
    33:33 demonstration of the execution steps
    42:30 about performing several, not one task
    44:05 under the hood
    47:50 result
    48:19 The answer to the question of the viewer
    51:23 used computer resources
    56:25 What's next

  • @marekmelzacki5736
    @marekmelzacki5736 4 года назад +3

    Love the episode and the series! Waiting for another and I will certainly watch the whole series once again to consume and learn everything. I like the casual (+funny) style but still very professional / competent. Gonna recommend the series to friends.
    Keep up the great work,
    looking forward to the rest of the series :)

  • @JohnoScott
    @JohnoScott 4 года назад +9

    Yes! Finally the next episode - awesome !

  • @sampri22
    @sampri22 4 месяца назад

    This video is nothing short of amazing! Hats off, and thanks for the lecture.

  • @Radioguy00
    @Radioguy00 2 года назад

    Perfect. I have been looking for these details for a while. Thank you

  • @anuragbisht1200
    @anuragbisht1200 Месяц назад

    great great tutorial, no one does it better than you. .
    could you please create a new updated version of this series. If you get time from your busy schedule.
    Cheers !

  • @agukasian
    @agukasian 4 года назад +3

    Futures/promises etc... was one of the reason I hated JS. Why python? Why?!?!?!?! Very good videos, still strugling to get the concept nailed down. Mostly due to the huge set of different things with which the same action can be performed.
    Low/high level APIs
    Version dependency for some APIs
    are a couple of the confusing factors.
    A good clean up is required. Thank you for the great videos though. Keep the good work up it makes things a bit less painful to understand.

  • @radek2359
    @radek2359 Год назад

    Dzięki Łukaszu za całą tę serię 👍

  • @dboss112
    @dboss112 4 года назад +1

    Sweet! I've been waiting for this

  • @adamurban6904
    @adamurban6904 2 года назад

    This video is exactly the one that I needed!

  • @agamemnon8964
    @agamemnon8964 3 года назад +6

    I'm sure that the speaker is smart and has a deep knowledge of asyncio and Python in general, and that the video series covers many interesting topics. However, the video series is not really beginner-friendly in my opinion. It would be much better to review these videos after acquiring some practical experience of Asyncio.

  • @horse_butt
    @horse_butt 3 года назад

    Thank you for such a thorough explanation!

  • @_elkd
    @_elkd 2 года назад +1

    This series really deserves no haircut 🙏🙏

  • @jackmaison4209
    @jackmaison4209 4 года назад +8

    I'd love to see a demo of edge db.

    • @EdgeDB
      @EdgeDB  4 года назад +1

      We'll make sure to get a video on this topic on the channel. In the mean time, you can try it out yourself right now on tutorial.edgedb.com!

    • @_jfsanchez_
      @_jfsanchez_ 4 года назад +1

      @@EdgeDB You should bring it as part of this asyncio course :).

  • @henrybigelow3570
    @henrybigelow3570 8 месяцев назад

    Excellent videos, I'm watching them all. At 25:07 you mentioned that the _step function calls coro.send(None) to advance the coroutine to the next stopping point. But, what is the equivalent for async generators? They suspend both at the lowest level awaits and also at yields. Does asyncio call asend to resume async generators from awaits?

  • @francescolucantoni3243
    @francescolucantoni3243 4 года назад +7

    24:35 "that looks promising" i know what u did there

  • @mykun8737
    @mykun8737 Год назад +1

    could you please publish a playlist on multithreadred in python?

  • @JakubNadulski
    @JakubNadulski 3 года назад

    This is a great video, superb!

  • @gurkhart
    @gurkhart 4 года назад

    These videos are great! Thank you 🙏
    I’m trying to find a good strategy for managing parallel tasks, e.g. restarting finished tasks without disturbing active tasks. Tried gather but don’t think that’s right tool for the job. Possibly wrapping tasks in a factory task with a trampoline might work.

  • @domingochavez14
    @domingochavez14 3 года назад

    Congrats man. Great stuff!

  • @tzigkis
    @tzigkis 3 года назад

    Great content again! Thank you

  • @honmameiko1333
    @honmameiko1333 2 года назад

    awesome tutorial for me, appreciate a lot!

  • @March71980
    @March71980 3 года назад

    you are great at this !

  • @gauff3r
    @gauff3r 3 года назад

    Coming back to this videos, I thought to myself: "I'll give the edge db a try" :)

  • @eugenekatsevman7501
    @eugenekatsevman7501 4 года назад

    AWESOME

  • @oleksisfraga
    @oleksisfraga 4 года назад

    👏🏾👏🏾👏🏾

  • @random_act
    @random_act 3 года назад

    great

  • @user-be1cs5nk1l
    @user-be1cs5nk1l 4 года назад

    u cool man!

  • @Janlaxle
    @Janlaxle 3 года назад

    I heard you like generators...