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.

  1. https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-1.html
  2. https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-2
  3. https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-3
  4. https://bbc.github.io/cloudfit-public-docs/asyncio/asyncio-part-4
  5. 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

Popular posts from this blog

New BBC Radio 3 streams

A two-character fix in two hours: Wrestling with gpsd, cgps, and a $15 GPS puck

Further adventures of AK6IM, the kosher ham