Home
last modified time | relevance | path

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

/third_party/python/Lib/asyncio/
Dtasks.py96 if not coroutines.iscoroutine(coro):
365 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
376 if any(coroutines.iscoroutine(f) for f in fs):
542 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
625 if not coroutines.iscoroutine(coro_or_future):
864 if not coroutines.iscoroutine(coro):
Dcoroutines.py40 assert inspect.isgenerator(gen) or inspect.iscoroutine(gen), gen
177 def iscoroutine(obj): function
194 assert iscoroutine(coro)
Drunners.py36 if not coroutines.iscoroutine(main):
D__main__.py45 if not inspect.iscoroutine(coro):
Dstreams.py243 if coroutines.iscoroutine(res):
Dunix_events.py94 if (coroutines.iscoroutine(callback) or
Dbase_events.py755 if (coroutines.iscoroutine(callback) or
/third_party/python/Lib/test/test_asyncio/
Dtest_pep492.py116 self.assertTrue(asyncio.iscoroutine(f))
120 self.assertTrue(asyncio.iscoroutine(FakeCoro()))
Dtest_tasks.py2015 self.assertTrue(asyncio.iscoroutine(coro))
2311 self.assertTrue(asyncio.iscoroutine(gen))
Dtest_events.py2285 self.assertTrue(asyncio.iscoroutine(coro))
/third_party/python/Lib/unittest/test/testmock/
Dtestasync.py220 self.assertTrue(asyncio.iscoroutine(awaitable))
241 self.assertTrue(asyncio.iscoroutine(awaitable))
345 self.assertFalse(inspect.iscoroutine(mock_method))
/third_party/python/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
/third_party/python/Doc/library/
Dasyncio-future.rst43 coroutine (:func:`iscoroutine` is used for the test);
Dasyncio-task.rst1092 .. function:: iscoroutine(obj)
1096 This method is different from :func:`inspect.iscoroutine` because
Dinspect.rst338 .. function:: iscoroutine(object)
/third_party/python/Lib/test/
Dtest_inspect.py95 inspect.iscoroutine, inspect.iscoroutinefunction,
162 self.istest(inspect.iscoroutine, 'coroutine_function_example(1)')
181 self.assertFalse(inspect.iscoroutine(gen_coro))
197 self.assertTrue(inspect.iscoroutine(coro))
/third_party/python/Lib/
Dinspect.py344 def iscoroutine(object): function
/third_party/python/Doc/whatsnew/
D3.5.rst1314 :func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`,