Use ayncio.sleep instead of time.sleep
When we use time.sleep
, it will keep the system busy. We don't want that since this will run with other stuff in parallel.
Instead we should use asyncio.sleep
. It could also be interesting to use asyncio coroutines instead of python threads.