Searched refs:iscoroutine (Results 1 – 19 of 19) sorted by relevance
40 assert inspect.isgenerator(gen) or inspect.iscoroutine(gen), gen177 def iscoroutine(obj): function194 assert iscoroutine(coro)
120 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):
36 if not coroutines.iscoroutine(main):
45 if not inspect.iscoroutine(coro):
262 if coroutines.iscoroutine(res):
84 if (coroutines.iscoroutine(callback) or
756 if (coroutines.iscoroutine(callback) or
118 self.assertTrue(asyncio.iscoroutine(f))122 self.assertTrue(asyncio.iscoroutine(FakeCoro()))
1995 self.assertTrue(asyncio.iscoroutine(coro))2255 self.assertTrue(asyncio.iscoroutine(gen))
2262 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
220 self.assertTrue(asyncio.iscoroutine(awaitable))241 self.assertTrue(asyncio.iscoroutine(awaitable))345 self.assertFalse(inspect.iscoroutine(mock_method))
43 coroutine (:func:`iscoroutine` is used for the test);
1014 .. function:: iscoroutine(obj)1018 This method is different from :func:`inspect.iscoroutine` because
332 .. function:: iscoroutine(object)
90 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))
226 def iscoroutine(object): function
1314 :func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`,