A simple producer/consumer example, using an asyncio.Queue:
.. literalinclude:: examples/producer_consumer.py
A simple producer/consumer example, using Queue.task_done and Queue.join:
.. literalinclude:: examples/producer_consumer_join.py
For more information, see the asyncio queue documentation.