/elegant-concurrency-lab

Make concurrency elegant with channels.

Primary LanguagePython

Elegant Concurrency

It's the example codes of the “Elegant Concurrency” in PyCon TW 2017.

The files are grouped into three parts.

Channel-Based Concurrency

  1. consume_urls_with_task_done.py – The traditional way we use the queue.
  2. consume_urls_with_channel.py – Apply the channel concept.

Layered Channel-Based Concurrency

  1. atomic_utils.py – The layer of atomic utils.
  2. channel_operators.py – The layer of channel operators.
  3. graph_initializer.py – The layer of graph initializer.

Others

Some interesting but minor topics.

Have fun from 🐢 → ⚡️!