Hacker News new | past | comments | ask | show | jobs | submit login

This is slightly misleading considering async funcions are just simply generators and nothing but parsing the keywords is actually implemented in the interpreter. The whole logic is in the asyncio library.

This is a great talk where the presenter goes into how asyncio works in detail and builds a mini version of the asyncio library:

https://youtu.be/M-UcUs7IMIM




> async funcions are just simply generators and nothing but parsing the keywords is actually implemented in the interpreter.

As I understand it, async functions have an extra flag that ordinary generators don't have, and the interpreter does some different things if that flag is present. But I have not dug deeply into the source code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: