Home
last modified time | relevance | path

Searched refs:current_task (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Lib/asyncio/
Dtasks.py34 def current_task(loop=None): function
896 current_task = _current_tasks.get(loop)
897 if current_task is not None:
904 current_task = _current_tasks.get(loop)
905 if current_task is not task:
/third_party/python/Lib/test/test_asyncio/
Dtest_tasks.py2038 self.assertIsNone(asyncio.current_task(loop=self.loop))
2041 self.assertIs(asyncio.current_task(), task)
2043 self.assertIs(asyncio.current_task(None), task)
2044 self.assertIs(asyncio.current_task(), task)
2048 self.assertIsNone(asyncio.current_task(loop=self.loop))
2051 self.assertIsNone(asyncio.current_task(loop=self.loop))
2057 self.assertTrue(asyncio.current_task() is task1)
2059 self.assertTrue(asyncio.current_task() is task1)
2063 self.assertTrue(asyncio.current_task() is task2)
2066 self.assertTrue(asyncio.current_task() is task2)
[all …]
/third_party/python/Doc/library/
Dasyncio-api-index.rst42 * - :func:`current_task`
Dasyncio-task.rst795 .. function:: current_task(loop=None)
/third_party/python/Misc/NEWS.d/
D3.7.0a4.rst513 Implement ``asyncio.current_task()`` and ``asyncio.all_tasks()``. Add
516 and ``asyncio._unregister_task``. Deprecate ``asyncio.Task.current_task()``
D3.6.1rc1.rst261 Fix Task.current_task and Task.all_tasks implemented in C to accept None
D3.10.0a1.rst1864 Removed :meth:`asyncio.Task.current_task` and
D3.7.0a1.rst3326 Fix Task.current_task and Task.all_tasks implemented in C to accept None
/third_party/python/Doc/whatsnew/
D3.7.rst669 * The new :func:`asyncio.current_task` function returns the currently running
672 The :meth:`Task.current_task() <asyncio.Task.current_task>` and
1959 The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks`
D3.9.rst1042 * The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks`
1044 :func:`asyncio.current_task` and :func:`asyncio.all_tasks` instead.
/third_party/python/Misc/
DHISTORY2931 - Added a Task.current_task() class method to asyncio.
/third_party/NuttX/
DReleaseNotes17118 macro current_task(this_cpu()). However, I found that this is not