aiofiles icon indicating copy to clipboard operation
aiofiles copied to clipboard

Python 3.9: `to_thread` or not `to_thread`?

Open stankudrow opened this issue 10 months ago • 0 comments

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/

stankudrow avatar Feb 02 '25 08:02 stankudrow