Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/asyncio/
Dcoroutines.py40 assert inspect.isgenerator(gen) or inspect.iscoroutine(gen), gen
177 def iscoroutine(obj): function
194 assert iscoroutine(coro)
Dtasks.py120 if not coroutines.iscoroutine(coro):
389 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
405 if any(coroutines.iscoroutine(f) for f in fs):
577 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
661 if coroutines.iscoroutine(coro_or_future):
914 if not coroutines.iscoroutine(coro):
Drunners.py36 if not coroutines.iscoroutine(main):
D__main__.py45 if not inspect.iscoroutine(coro):
Dstreams.py262 if coroutines.iscoroutine(res):
Dunix_events.py84 if (coroutines.iscoroutine(callback) or
Dbase_events.py756 if (coroutines.iscoroutine(callback) or
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_pep492.py118 self.assertTrue(asyncio.iscoroutine(f))
122 self.assertTrue(asyncio.iscoroutine(FakeCoro()))
Dtest_tasks.py1995 self.assertTrue(asyncio.iscoroutine(coro))
2255 self.assertTrue(asyncio.iscoroutine(gen))
Dtest_events.py2262 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/Lib/unittest/test/testmock/
Dtestasync.py220 self.assertTrue(asyncio.iscoroutine(awaitable))
241 self.assertTrue(asyncio.iscoroutine(awaitable))
345 self.assertFalse(inspect.iscoroutine(mock_method))
/external/python/cpython3/Doc/library/
Dasyncio-future.rst43 coroutine (:func:`iscoroutine` is used for the test);
Dasyncio-task.rst1014 .. function:: iscoroutine(obj)
1018 This method is different from :func:`inspect.iscoroutine` because
Dinspect.rst332 .. function:: iscoroutine(object)
/external/python/cpython3/Lib/test/
Dtest_inspect.py90 inspect.iscoroutine, inspect.iscoroutinefunction,
157 self.istest(inspect.iscoroutine, 'coroutine_function_example(1)')
176 self.assertFalse(inspect.iscoroutine(gen_coro))
192 self.assertTrue(inspect.iscoroutine(coro))
/external/python/cpython3/Lib/
Dinspect.py226 def iscoroutine(object): function
/external/python/cpython3/Doc/whatsnew/
D3.5.rst1314 :func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`,