Python·100 questions

What is asyncio and when is it needed?

Answer
asyncio — concurrency for I/O (network/files) without threads.
Use async def and await.
Does not speed up CPU-heavy tasks.
Suitable for web services/bots/parsers.
For CPU — multiprocessing.
Was this answer helpful?

More questions in this topic

Related questions from other topics