Searched refs:isawaitable (Results 1 – 12 of 12) sorted by relevance
196 Use :func:`inspect.isawaitable` to detect them.214 Use :func:`inspect.isawaitable` to detect them.
41 awaitable (:func:`inspect.isawaitable` is used for the test.)
322 .. function:: isawaitable(object)335 assert not isawaitable(gen())336 assert isawaitable(gen_coro())
176 if inspect.isawaitable(value):
44 coroutines--use inspect.isawaitable instead.
225 Fix inspect.isawaitable to always return bool Patch by Justin Mayfield.
1654 Fix inspect.isawaitable to always return bool Patch by Justin Mayfield.
589 elif inspect.isawaitable(coro_or_future):
192 self.assertFalse(inspect.isawaitable(gen()))197 self.assertTrue(inspect.isawaitable(coro))198 self.assertTrue(inspect.isawaitable(gen_coro))203 self.assertTrue(inspect.isawaitable(Future()))204 self.assertFalse(inspect.isawaitable(Future))209 self.assertFalse(inspect.isawaitable(not_fut))
319 self.assertTrue(inspect.isawaitable(g.aclose()))
221 def isawaitable(object): function
1315 :func:`~inspect.isawaitable`, :func:`~inspect.getcoroutinelocals`,