Home
last modified time | relevance | path

Searched refs:iscoroutine (Results 1 – 17 of 17) sorted by relevance

/external/python/cpython3/Lib/asyncio/
Dcoroutines.py39 assert inspect.isgenerator(gen) or inspect.iscoroutine(gen), gen
173 def iscoroutine(obj): function
190 assert iscoroutine(coro)
Dtasks.py105 if not coroutines.iscoroutine(coro):
351 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
506 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
578 if coroutines.iscoroutine(coro_or_future):
801 if not coroutines.iscoroutine(coro):
Drunners.py36 if not coroutines.iscoroutine(main):
Dstreams.py238 if coroutines.iscoroutine(res):
Dunix_events.py81 if (coroutines.iscoroutine(callback) or
Dbase_events.py698 if (coroutines.iscoroutine(callback) or
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_pep492.py114 self.assertTrue(asyncio.iscoroutine(f))
118 self.assertTrue(asyncio.iscoroutine(FakeCoro()))
Dtest_tasks.py1587 self.assertTrue(asyncio.iscoroutine(coro))
1863 self.assertTrue(asyncio.iscoroutine(gen))
Dtest_events.py2823 self.assertTrue(asyncio.iscoroutine(coro))
/external/python/cpython3/Misc/NEWS.d/
D3.5.0b3.rst39 coroutines; inspect.iscoroutine no longer uses collections.abc.Coroutine,
D3.7.0a4.rst344 Optimize asyncio.iscoroutine() and loop.create_task() for non-native
/external/python/cpython3/Doc/library/
Dasyncio-future.rst38 coroutine (:func:`iscoroutine` is used for the test.)
Dasyncio-task.rst894 .. function:: iscoroutine(obj)
898 This method is different from :func:`inspect.iscoroutine` because
Dinspect.rst314 .. function:: iscoroutine(object)
/external/python/cpython3/Lib/test/
Dtest_inspect.py90 inspect.iscoroutine, inspect.iscoroutinefunction,
160 self.istest(inspect.iscoroutine, 'coroutine_function_example(1)')
174 self.assertFalse(inspect.iscoroutine(gen_coro))
182 self.assertTrue(inspect.iscoroutine(coro))
/external/python/cpython3/Lib/
Dinspect.py217 def iscoroutine(object): function
/external/python/cpython3/Doc/whatsnew/
D3.5.rst1314 :func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`,