This is a simple explanation of the asyncio
module and new supporting language features in Python 3.5. Even though the new keywords async
and await
are new language constructs, they are mostly* useless without an event loop, and that is supplied in the standard library as asyncio
. Also, you need awaitable functions, which are only supplied by asyncio
(or in the growing set of async libraries, like asyncssh
, quamash
etc.).
Note: My previous post uses these without the asyncio event loop. But you should not normally do that.