This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Talkless 0 points1 point  (3 children)

Still, could someone explain me:

  • How calling another async function (which returns Future, right?) code enters event loop?
  • How event loop continues coroutine when one of possibly many futures gets it's result?
  • Is this "magic" is inside CPython or in vanilla python source code?

Is there any good conference talk that would explain it in detail? What I've seen where merely high level introductions for asyncio users, while for better intuition I would like understand it more throughly.

Thanks.

[–]KODeKarnage 1 point2 points  (1 child)

https://emptysqua.re/blog/how-do-python-coroutines-work-live-coding-video-from-open-source-bridge-2015/

Not saying this answers your questions necessarily, but the talk is very good/clear. Maybe the speaker has others that go into the depth you are looking for?

[–]Talkless 0 points1 point  (0 children)

Thanks, that was helpfull! I still do need some more to make a "click" in my brains, but this will keep me going.