With a trick the developers made asynchronous code looking like synchronous code.
They use generators with the send function, which allows to delegate everything.
It's a combination of:
If you want to dig deeper in asyncio, you should watch some talks on YouTube.
Some of them are explaining it very deep.
They use generators with the send function, which allows to delegate everything.
It's a combination of:
- DefaultSelector, which uses select, epoll and other os related selectors for sockets
- Generators (await was before yield from, async was previously a normal generator with a yield statement used with send from outside)
- EventLoop, which is asyncio.run_forever()
If you want to dig deeper in asyncio, you should watch some talks on YouTube.
Some of them are explaining it very deep.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!