Full code examples for the two articles on Medium, Asyncio Coroutine Patterns: Beyond await and Asyncio Coroutine Patterns: Errors and cancellation.
These examples require Python 3.5 or above and aiohttp.
- Make sure your version of Python is 3.5 or above:
python3 --version - Clone this repo
- Create a virtualenv
pip install -r requirements.txt- Run any file you'd like, i.e.
python 01_recursive_coroutines/recursive_coroutines.py