Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/test_asyncio/
Dtest_futures.py248 f_one_callbacks.add_done_callback(_fakefunc)
257 f_two_callbacks.add_done_callback(first_cb)
258 f_two_callbacks.add_done_callback(last_cb)
266 f_many_callbacks.add_done_callback(first_cb)
268 f_many_callbacks.add_done_callback(_fakefunc)
269 f_many_callbacks.add_done_callback(last_cb)
514 f.add_done_callback(self._make_callback(bag, 42))
515 f.add_done_callback(self._make_callback(bag, 17))
528 f.add_done_callback(self._make_callback(bag, 100))
547 f.add_done_callback(cb1)
[all …]
Dtest_tasks.py288 t.add_done_callback(Dummy())
369 t.add_done_callback(Dummy())
1310 def add_done_callback(self, fn): member in BaseTaskTests.test_step_result_future.Fut
1312 super().add_done_callback(fn)
1960 fut.add_done_callback(cancelling_callback)
2025 def add_done_callback(self, *args): member in add_subclass_tests.CommonFuture
2027 return super().add_done_callback(*args)
2155 fut.add_done_callback(cb)
2177 fut.add_done_callback(cb)
2196 fut.add_done_callback(cb)
[all …]
Dtest_proactor_events.py153 self.loop._proactor.send.return_value.add_done_callback.\
520 self.proactor.recv.return_value.add_done_callback.assert_called_with(
528 self.proactor.recv.return_value.add_done_callback.assert_called_with(
Dtest_base_events.py592 fut.add_done_callback(lambda fut: self.loop.stop())
602 fut.add_done_callback(lambda fut: self.loop.stop())
619 fut.add_done_callback(lambda *args: self.loop.stop())
/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.py210 result.add_done_callback(self._wakeup)
340 fut.add_done_callback(cb)
387 f.add_done_callback(_on_completion)
455 f.add_done_callback(_on_completion)
635 fut.add_done_callback(functools.partial(_done_callback, i))
688 inner.add_done_callback(_done_callback)
Dproactor_events.py217 self._read_fut.add_done_callback(self._loop_reading)
294 self._write_fut.add_done_callback(self._loop_writing)
297 self._write_fut.add_done_callback(self._loop_writing)
317 self._read_fut.add_done_callback(self._pipe_closed)
492 f.add_done_callback(self._loop_self_reading)
534 f.add_done_callback(loop)
Dfutures.py265 def add_done_callback(self, fn): member in Future
420 destination.add_done_callback(_call_check_cancel)
421 source.add_done_callback(_call_set_state)
Dwindows_events.py365 f.add_done_callback(loop_accept_pipe)
769 f.add_done_callback(callback)
Dbase_events.py452 future.add_done_callback(_run_until_complete_cb)
Dselector_events.py462 fut.add_done_callback(
/external/python/cpython3/Lib/test/
Dtest_concurrent_futures.py542 f.add_done_callback(fn)
553 f.add_done_callback(fn)
564 f.add_done_callback(fn)
583 f.add_done_callback(raising_fn)
584 f.add_done_callback(fn)
598 f.add_done_callback(fn)
609 f.add_done_callback(fn)
620 f.add_done_callback(fn)
/external/python/cpython3/Doc/library/
Dasyncio-task.rst214 - Callbacks registered with :meth:`add_done_callback` are always called
259 .. method:: add_done_callback(fn)
269 ``fut.add_done_callback(functools.partial(print, "Future:",
319 :meth:`~Future.add_done_callback` method to be notified when the future is
327 :meth:`Future.add_done_callback` method to describe explicitly the control
343 future.add_done_callback(got_result)
Dconcurrent.futures.rst305 .. method:: add_done_callback(fn)
/external/python/cpython3/Lib/concurrent/futures/
D_base.py361 def add_done_callback(self, fn): member in Future
/external/python/futures/concurrent/futures/
D_base.py418 def add_done_callback(self, fn): member in Future
/external/python/futures/docs/
Dindex.rst250 .. method:: Future.add_done_callback(fn)
/external/python/cpython3/Modules/
D_asynciomodule.c12 _Py_IDENTIFIER(add_done_callback);