Home
last modified time | relevance | path

Searched refs:add_done_callback (Results 1 – 25 of 39) sorted by relevance

12

/external/python/cpython3/Lib/test/test_asyncio/
Dtest_futures.py172 fut.add_done_callback(lambda f: None)
303 f_one_callbacks.add_done_callback(_fakefunc)
313 f_two_callbacks.add_done_callback(first_cb)
314 f_two_callbacks.add_done_callback(last_cb)
322 f_many_callbacks.add_done_callback(first_cb)
324 f_many_callbacks.add_done_callback(_fakefunc)
325 f_many_callbacks.add_done_callback(last_cb)
619 f.add_done_callback(cb1)
620 f.add_done_callback(cb2)
621 f.add_done_callback(cb3)
[all …]
Dtest_tasks.py289 t.add_done_callback(Dummy())
363 t.add_done_callback(Dummy())
1474 def add_done_callback(self, *args, **kwargs): member in BaseTaskTests.test_step_result_future.Fut
1476 super().add_done_callback(*args, **kwargs)
2150 fut.add_done_callback(cancelling_callback)
2331 fut.add_done_callback(fut_on_done)
2393 def add_done_callback(self, *args, **kwargs): member in add_subclass_tests.CommonFuture
2395 return super().add_done_callback(*args, **kwargs)
2826 fut.add_done_callback(cb)
2848 fut.add_done_callback(cb)
[all …]
Dtest_proactor_events.py157 self.loop._proactor.send.return_value.add_done_callback.\
781 self.proactor.recv.return_value.add_done_callback.assert_called_with(
789 self.proactor.recv.return_value.add_done_callback.assert_called_with(
/external/python/futures/
Dtest_futures.py544 f.add_done_callback(fn)
554 f.add_done_callback(fn)
564 f.add_done_callback(fn)
589 f.add_done_callback(raising_fn)
590 f.add_done_callback(raising_old_style_fn)
591 f.add_done_callback(fn)
606 f.add_done_callback(fn)
616 f.add_done_callback(fn)
626 f.add_done_callback(fn)
769 f.add_done_callback(fn)
/external/python/cpython3/Lib/asyncio/
Dtasks.py258 result.add_done_callback(
404 fut.add_done_callback(cb)
453 f.add_done_callback(_on_completion)
476 fut.add_done_callback(cb)
536 f.add_done_callback(_on_completion)
731 fut.add_done_callback(_done_callback)
792 inner.add_done_callback(_done_callback)
Dfutures.py196 def add_done_callback(self, fn, *, context=None): member in Future
364 destination.add_done_callback(_call_check_cancel)
365 source.add_done_callback(_call_set_state)
Dproactor_events.py290 self._read_fut.add_done_callback(self._loop_reading)
374 self._write_fut.add_done_callback(self._loop_writing)
377 self._write_fut.add_done_callback(self._loop_writing)
410 self._read_fut.add_done_callback(self._pipe_closed)
634 f.add_done_callback(self._loop_self_reading)
684 f.add_done_callback(loop)
Dwindows_events.py360 f.add_done_callback(loop_accept_pipe)
826 f.add_done_callback(callback)
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_channel_ready_future_test.py49 ready_future.add_done_callback(callback.accept_value)
71 ready_future.add_done_callback(callback.accept_value)
D_rpc_test.py591 response_future.add_done_callback(callback)
662 response_future.add_done_callback(callback)
727 response_future.add_done_callback(callback)
783 response_future.add_done_callback(callback)
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_utilities_test.py52 ready_future.add_done_callback(callback.accept_value)
74 ready_future.add_done_callback(callback.accept_value)
/external/python/cpython3/Lib/test/
Dtest_concurrent_futures.py992 f.add_done_callback(fn)
1003 f.add_done_callback(fn)
1014 f.add_done_callback(fn)
1033 f.add_done_callback(raising_fn)
1034 f.add_done_callback(fn)
1048 f.add_done_callback(fn)
1059 f.add_done_callback(fn)
1070 f.add_done_callback(fn)
Dtest_contextlib_async.py267 f.add_done_callback(lambda f: loop.stop())
/external/grpc-grpc/src/python/grpcio/grpc/framework/foundation/
Dfuture.py209 def add_done_callback(self, fn): member in Future
/external/grpc-grpc/examples/python/interceptors/default_value/
Ddefault_value_client_interceptor.py47 def add_done_callback(self, fn): member in _ConcreteValue
/external/grpc-grpc/src/python/grpcio/grpc/
D_auth.py62 future.add_done_callback(_create_get_token_callback(callback))
D_utilities.py145 def add_done_callback(self, fn): member in _ChannelReadyFuture
D_interceptor.py127 def add_done_callback(self, fn): member in _FailureOutcome
185 def add_done_callback(self, fn): member in _UnaryOutcome
/external/python/cpython3/Doc/library/
Dasyncio-future.rst134 .. method:: add_done_callback(callback, *, context=None)
152 fut.add_done_callback(
244 - Callbacks registered with :meth:`asyncio.Future.add_done_callback`
/external/grpc-grpc/src/python/grpcio/grpc/beta/
Dutilities.py114 def add_done_callback(self, fn): member in _ChannelReadyFuture
D_client_adaptations.py123 def add_done_callback(self, fn): member in _Rendezvous
124 self._future.add_done_callback(lambda ignored_callback: fn(self))
/external/grpc-grpc/src/python/grpcio_tests/tests/qps/
Dbenchmark_client.py126 response_future.add_done_callback(
/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/
D_time.py124 def add_done_callback(self, fn): member in _Future
/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/_channel/
D_invocation.py214 def add_done_callback(self, fn): member in _FutureCall
/external/python/cpython3/Lib/concurrent/futures/
D_base.py388 def add_done_callback(self, fn): member in Future

12