aiofiles
aiofiles copied to clipboard
Python 3.9: `to_thread` or not `to_thread`?
Once Python 3.8 is dropped and the next 3.9 version takes its place (#204), the wrap decorator can use asyncio.to_thread coroutine function.
References:
- https://docs.python.org/3.9/library/asyncio-task.html#running-in-threads
- https://superfastpython.com/asyncio-to_thread/