Intro to async concepts and the asyncio library: https://docs.python.org/3/library/asyncio.html
Basic examples of the asyncio library to write concurrent code taken from https://docs.python.org/3/library/asyncio-task.html
Running a sleep 1 and a sleep 2 command in sequence:
C02VQ1S6HTDD:python_asyncio_examples nsiddiq$ ./hello_world_with_await.py
started at 15:38:23
hello
world
finished at 15:38:26
Running a sleep 1 and a sleep 2 command concurrently:
C02VQ1S6HTDD:python_asyncio_examples nsiddiq$ ./hello_world_concurrent_tasks.py
started at 15:38:32
hello
world
finished at 15:38:34