One coroutine is a slow file write, the other one is a fast LCD screen refresh.
When the event is set (triggered), is it possible that the slow file write will withhold the LCD screen from refreshing quickly?
Do I need to encapsulate the ordinary Python file write in a uasyncio.StreamWriter() object?
The reason why I am asking is because of reading the following passage in an article:
blocking library functions are incompatible with async frameworks.
So, there's a bunch of things in Python Standard library that are assigned as blocking functions: socket.*, select.*, subprocess.*, os.waitpid, threading.*, multiprocessing.*, time.sleep. Everything that has to do with networking, processes, threads, you cannot use them. This is true for every async framework. If you use these functions the thing is gonna hang. So, don't use them. It's very unfortunate.