Searched refs:iscoroutine (Results 1 – 17 of 17) sorted by relevance
39 assert inspect.isgenerator(gen) or inspect.iscoroutine(gen), gen173 def iscoroutine(obj): function190 assert iscoroutine(coro)
105 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):
36 if not coroutines.iscoroutine(main):
238 if coroutines.iscoroutine(res):
81 if (coroutines.iscoroutine(callback) or
698 if (coroutines.iscoroutine(callback) or
114 self.assertTrue(asyncio.iscoroutine(f))118 self.assertTrue(asyncio.iscoroutine(FakeCoro()))
1587 self.assertTrue(asyncio.iscoroutine(coro))1863 self.assertTrue(asyncio.iscoroutine(gen))
2823 self.assertTrue(asyncio.iscoroutine(coro))
39 coroutines; inspect.iscoroutine no longer uses collections.abc.Coroutine,
344 Optimize asyncio.iscoroutine() and loop.create_task() for non-native
38 coroutine (:func:`iscoroutine` is used for the test.)
894 .. function:: iscoroutine(obj)898 This method is different from :func:`inspect.iscoroutine` because
314 .. function:: iscoroutine(object)
90 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))
217 def iscoroutine(object): function
1314 :func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`,