Searched refs:current_task (Results 1 – 12 of 12) sorted by relevance
34 def current_task(loop=None): function896 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:
2038 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 …]
42 * - :func:`current_task`
795 .. function:: current_task(loop=None)
513 Implement ``asyncio.current_task()`` and ``asyncio.all_tasks()``. Add516 and ``asyncio._unregister_task``. Deprecate ``asyncio.Task.current_task()``
261 Fix Task.current_task and Task.all_tasks implemented in C to accept None
1864 Removed :meth:`asyncio.Task.current_task` and
3326 Fix Task.current_task and Task.all_tasks implemented in C to accept None
669 * The new :func:`asyncio.current_task` function returns the currently running672 The :meth:`Task.current_task() <asyncio.Task.current_task>` and1959 The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks`
1042 * The :meth:`asyncio.Task.current_task` and :meth:`asyncio.Task.all_tasks`1044 :func:`asyncio.current_task` and :func:`asyncio.all_tasks` instead.
2931 - Added a Task.current_task() class method to asyncio.
17118 macro current_task(this_cpu()). However, I found that this is not