Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/asyncio/
Dtasks.py69 assert coroutines.iscoroutine(coro), repr(coro)
295 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
424 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
510 elif coroutines.iscoroutine(coro_or_future):
697 if not coroutines.iscoroutine(coro):
Dcoroutines.py91 assert inspect.isgenerator(gen) or inspect.iscoroutine(gen), gen
268 def iscoroutine(obj): function
274 assert iscoroutine(coro)
Dstreams.py239 if coroutines.iscoroutine(res):
Dunix_events.py80 if (coroutines.iscoroutine(callback)
Dbase_events.py583 if (coroutines.iscoroutine(callback) or
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_pep492.py101 self.assertTrue(asyncio.iscoroutine(f))
112 self.assertTrue(asyncio.iscoroutine(FakeCoro()))
Dtest_tasks.py1434 self.assertTrue(asyncio.iscoroutine(coro))
1702 self.assertTrue(asyncio.iscoroutine(gen))
Dtest_events.py2428 self.assertTrue(asyncio.iscoroutine(coro))
/external/python/cpython3/Doc/library/
Dasyncio-task.rst35 call it a *coroutine object* (:func:`iscoroutine` returns ``True``).
562 .. function:: iscoroutine(obj)
Dinspect.rst294 .. function:: iscoroutine(object)
/external/python/cpython3/Lib/test/
Dtest_inspect.py68 inspect.iscoroutine, inspect.iscoroutinefunction,
138 self.istest(inspect.iscoroutine, 'coroutine_function_example(1)')
152 self.assertFalse(inspect.iscoroutine(gen_coro))
160 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`,
/external/python/cpython3/Misc/
DNEWS5741 works only for 'async def' coroutines; inspect.iscoroutine no longer