Searched refs:all_tasks (Results 1 – 19 of 19) sorted by relevance
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_futures2.py | 13 return asyncio.all_tasks()
|
D | test_tasks.py | 2373 self.assertEqual(asyncio.all_tasks(loop=self.loop), {task}) 2390 self.assertEqual(asyncio.all_tasks(loop=self.loop), set()) 2619 self.assertEqual(asyncio.all_tasks(self.loop), set()) 3038 self.assertEqual(asyncio.all_tasks(loop), set()) 3040 self.assertEqual(asyncio.all_tasks(loop), {task}) 3054 self.assertEqual(asyncio.all_tasks(loop), set()) 3056 self.assertEqual(asyncio.all_tasks(loop), {task}) 3070 self.assertEqual(asyncio.all_tasks(loop), set()) 3072 self.assertEqual(asyncio.all_tasks(loop), set()) 3123 self.assertEqual(asyncio.all_tasks(loop), set()) [all …]
|
/external/python/cpython3/Lib/asyncio/ |
D | runners.py | 56 to_cancel = tasks.all_tasks(loop)
|
D | tasks.py | 41 def all_tasks(loop=None): function
|
/external/rust/crates/tokio/tests/ |
D | io_async_fd.rs | 383 let mut all_tasks = futures::future::try_join_all(tasks); in multiple_waiters() localVariable 386 r = std::pin::Pin::new(&mut all_tasks) => { in multiple_waiters() 395 all_tasks.await.unwrap(); in multiple_waiters()
|
/external/python/cpython3/Modules/ |
D | _asynciomodule.c | 44 static PyObject *all_tasks; variable 1967 PyObject *res = _PyObject_CallMethodIdOneArg(all_tasks, in register_task() 1982 PyObject *res = _PyObject_CallMethodIdOneArg(all_tasks, in unregister_task() 3313 Py_CLEAR(all_tasks); in module_free() 3393 all_tasks = PyObject_CallNoArgs(weak_set); in module_init() 3395 if (all_tasks == NULL) { in module_init() 3473 Py_INCREF(all_tasks); in PyInit__asyncio() 3474 if (PyModule_AddObject(m, "_all_tasks", all_tasks) < 0) { in PyInit__asyncio() 3475 Py_DECREF(all_tasks); in PyInit__asyncio()
|
/external/python/cpython3/Lib/unittest/ |
D | async_case.py | 130 to_cancel = asyncio.all_tasks(loop)
|
/external/python/cpython3/Doc/library/ |
D | asyncio-api-index.rst | 45 * - :func:`all_tasks`
|
D | asyncio-task.rst | 732 .. function:: all_tasks(loop=None)
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.0a4.rst | 513 Implement ``asyncio.current_task()`` and ``asyncio.all_tasks()``. Add 517 and ``asyncio.Task.all_tasks()``.
|
D | 3.7.0b5.rst | 150 Make asyncio.all_tasks() return only pending tasks.
|
D | 3.9.0b4.rst | 308 :meth:`asyncio.Task.all_tasks`. Patch contributed by Rémi Lapeyre.
|
D | 3.6.1rc1.rst | 261 Fix Task.current_task and Task.all_tasks implemented in C to accept None
|
D | 3.8.0a1.rst | 2730 Protect tasks weak set manipulation in ``asyncio.all_tasks()`` 4490 Make asyncio.all_tasks() return only pending tasks.
|
D | 3.9.0a1.rst | 3057 Eliminate :exc:`RuntimeError` raised by :func:`asyncio.all_tasks()` if
|
D | 3.7.0a1.rst | 3326 Fix Task.current_task and Task.all_tasks implemented in C to accept None
|
/external/python/cpython3/Lib/test/ |
D | test_asyncgen.py | 1201 tasks = asyncio.all_tasks()
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.7.rst | 669 :class:`~asyncio.Task` instance, and the new :func:`asyncio.all_tasks` 672 :meth:`Task.all_tasks() <asyncio.Task.all_tasks>` methods have been deprecated. 1958 The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks`
|
D | 3.9.rst | 1034 * The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks` 1036 :func:`asyncio.current_task` and :func:`asyncio.all_tasks` instead.
|