3 ms·
async / await is just a protocol to delegate async behavior outside of your control flow. You can provide the async behavior using any solution you want: thre
by BiteCode_dev 6y ago
async / await is just a protocol to delegate async behavior outside of your control flow.
You can provide the async behavior using any solution you want: threads, io event loop, subinterpretters, subprocess...
It can all be called from async / await.
In fact, if you use asyncio, the lib, it provides mechanisme to await from threads, subprocess.Popen, and multiprocessing pools.