All intensive tasks (CPU) that take too long to periodically clear the CPU and avoid other tasks getting blocked.
Solution: Doing an await asyncio.sleep(0) periodically.
Various native libraries are not compatible!
Socket, select, subprocess, os.waitpid, threading, multiprocessing, time.sleep.
There are, however, alternative libraries that support async.
Last updated 2 years ago