Home
last modified time | relevance | path

Searched refs:to_thread (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/test/test_asyncio/
Dtest_threads.py31 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/
Dthreads.py12 async def to_thread(func, /, *args, **kwargs): function
/third_party/python/Doc/library/
Dasyncio-api-index.rst51 * - :func:`to_thread`
Dasyncio-task.rst616 .. 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/
D3.9.rst360 Added a new :term:`coroutine` :func:`asyncio.to_thread`. It is mainly used for
/third_party/python/Misc/
DNEWS1466 - bpo-32309: Added a new :term:`coroutine` :func:`asyncio.to_thread`. It is