Searched refs:to_thread (Results 1 – 6 of 6) sorted by relevance
/third_party/python/Lib/test/test_asyncio/ |
D | test_threads.py | 31 return await asyncio.to_thread(sum, [40, 2]) 41 await asyncio.to_thread(raise_runtime) 50 await asyncio.to_thread(func) 61 fut = asyncio.to_thread(func) 73 await asyncio.to_thread(func, 'test', something=True) 86 return await asyncio.to_thread(get_ctx)
|
/third_party/python/Lib/asyncio/ |
D | threads.py | 12 async def to_thread(func, /, *args, **kwargs): function
|
/third_party/python/Doc/library/ |
D | asyncio-api-index.rst | 51 * - :func:`to_thread`
|
D | asyncio-task.rst | 616 .. coroutinefunction:: to_thread(func, /, *args, **kwargs) 642 asyncio.to_thread(blocking_io), 659 by using `asyncio.to_thread()`, we can run it in a separate thread without 664 Due to the :term:`GIL`, `asyncio.to_thread()` can typically only be used 667 have one, `asyncio.to_thread()` can also be used for CPU-bound functions.
|
/third_party/python/Doc/whatsnew/ |
D | 3.9.rst | 360 Added a new :term:`coroutine` :func:`asyncio.to_thread`. It is mainly used for
|
/third_party/python/Misc/ |
D | NEWS | 1466 - bpo-32309: Added a new :term:`coroutine` :func:`asyncio.to_thread`. It is
|