Python Asyncio
Each time I need to write a multithreaded program in Python, I read through the Asyncio page in the Python docs, and give up and code with the threading library. This time I found a pretty good five-part tutorial written by someone at the BBC, so I'm bookmarking it here.
- https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-1.html
- https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-2
- https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-3
- https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-4
- https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-5
Of course, this leaves the question of why exactly one should use Asyncio instead of threads
The official, and largely opaque (to me anyway) Asyncio docs
The threading docs and a useful tutorial on condition variables
Comments