Home
last modified time | relevance | path

Searched refs:return_when (Results 1 – 10 of 10) sorted by relevance

/third_party/python/Lib/concurrent/futures/
D_base.py157 def _create_and_install_waiters(fs, return_when): argument
158 if return_when == _AS_COMPLETED:
160 elif return_when == FIRST_COMPLETED:
166 if return_when == FIRST_EXCEPTION:
168 elif return_when == ALL_COMPLETED:
171 raise ValueError("Invalid return condition: %r" % return_when)
265 def wait(fs, timeout=None, return_when=ALL_COMPLETED): argument
295 if (return_when == FIRST_COMPLETED) and done:
297 elif (return_when == FIRST_EXCEPTION) and done:
305 waiter = _create_and_install_waiters(fs, return_when)
/third_party/python/Lib/asyncio/
Dtasks.py349 async def wait(fs, *, timeout=None, return_when=ALL_COMPLETED): argument
369 if return_when not in (FIRST_COMPLETED, FIRST_EXCEPTION, ALL_COMPLETED):
384 return await _wait(fs, timeout, return_when, loop)
463 async def _wait(fs, timeout, return_when, loop): argument
479 return_when == FIRST_COMPLETED or
480 return_when == FIRST_EXCEPTION and (not f.cancelled() and
/third_party/python/Lib/test/
Dtest_concurrent_futures.py586 return_when=futures.ALL_COMPLETED)
597 return_when=futures.FIRST_COMPLETED)
607 return_when=futures.FIRST_COMPLETED)
621 return_when=futures.FIRST_EXCEPTION)
635 return_when=futures.FIRST_EXCEPTION)
647 return_when=futures.FIRST_EXCEPTION)
662 return_when=futures.ALL_COMPLETED)
681 return_when=futures.ALL_COMPLETED)
703 futures.wait(fs, return_when=futures.ALL_COMPLETED)
/third_party/grpc/src/python/grpcio/grpc/experimental/aio/
D_interceptor.py517 return_when=asyncio.FIRST_COMPLETED)
543 return_when=asyncio.FIRST_COMPLETED)
/third_party/grpc/src/python/grpcio/grpc/aio/
D_interceptor.py516 return_when=asyncio.FIRST_COMPLETED)
542 return_when=asyncio.FIRST_COMPLETED)
/third_party/python/Doc/library/
Dconcurrent.futures.rst435 .. function:: wait(fs, timeout=None, return_when=ALL_COMPLETED)
449 *return_when* indicates when this function should return. It must be one of
Dasyncio-task.rst556 .. coroutinefunction:: wait(aws, *, timeout=None, return_when=ALL_COMPLETED)
560 by *return_when*.
577 *return_when* indicates when this function should return. It must
/third_party/grpc/src/python/grpcio_tests/tests_aio/unit/
Dserver_test.py499 asyncio.wait(rpcs, return_when=asyncio.FIRST_EXCEPTION))
/third_party/python/Lib/test/test_asyncio/
Dtest_tasks.py1325 wait_coro = asyncio.wait([sleep_coro], return_when=-1)
1346 asyncio.wait([b, a], return_when=asyncio.FIRST_COMPLETED))
1375 asyncio.wait([b, a], return_when=asyncio.FIRST_COMPLETED))
1402 asyncio.wait([b, a], return_when=asyncio.FIRST_EXCEPTION))
1432 task = asyncio.wait([b, a], return_when=asyncio.FIRST_EXCEPTION)
/third_party/python/Misc/
DHISTORY8022 return_when=ALL_COMPLETED)``. Patch by Matt Joiner.