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)
96 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):
36 if not coroutines.iscoroutine(main):
45 if not inspect.iscoroutine(coro):
243 if coroutines.iscoroutine(res):
94 if (coroutines.iscoroutine(callback) or
755 if (coroutines.iscoroutine(callback) or
116 self.assertTrue(asyncio.iscoroutine(f))120 self.assertTrue(asyncio.iscoroutine(FakeCoro()))
2015 self.assertTrue(asyncio.iscoroutine(coro))2311 self.assertTrue(asyncio.iscoroutine(gen))
2285 self.assertTrue(asyncio.iscoroutine(coro))
220 self.assertTrue(asyncio.iscoroutine(awaitable))241 self.assertTrue(asyncio.iscoroutine(awaitable))345 self.assertFalse(inspect.iscoroutine(mock_method))
39 coroutines; inspect.iscoroutine no longer uses collections.abc.Coroutine,
344 Optimize asyncio.iscoroutine() and loop.create_task() for non-native
43 coroutine (:func:`iscoroutine` is used for the test);
1092 .. function:: iscoroutine(obj)1096 This method is different from :func:`inspect.iscoroutine` because
338 .. function:: iscoroutine(object)
95 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))
344 def iscoroutine(object): function
1314 :func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`,