Searched refs:isfuture (Results 1 – 8 of 8) sorted by relevance
18 isfuture = base_futures.isfuture variable369 if not isfuture(source) and not isinstance(source,372 if not isfuture(destination) and not isinstance(destination,375 source_loop = _get_loop(source) if isfuture(source) else None376 dest_loop = _get_loop(destination) if isfuture(destination) else None379 if isfuture(future):406 if isfuture(future):
14 def isfuture(obj): function
389 if futures.isfuture(fs) or coroutines.iscoroutine(fs):577 if futures.isfuture(fs) or coroutines.iscoroutine(fs):668 elif futures.isfuture(coro_or_future):
125 if (base_futures.isfuture(res) or inspect.isgenerator(res) or
620 new_task = not futures.isfuture(future)
119 self.assertFalse(asyncio.isfuture(MyFuture))120 self.assertTrue(asyncio.isfuture(MyFuture()))121 self.assertFalse(asyncio.isfuture(1))124 self.assertFalse(asyncio.isfuture(mock.Mock()))127 self.assertTrue(asyncio.isfuture(f))128 self.assertFalse(asyncio.isfuture(type(f)))131 self.assertTrue(asyncio.isfuture(mock.Mock(type(f))))465 self.assertTrue(asyncio.isfuture(f2))
22 .. function:: isfuture(obj)39 a :class:`Task`, or a Future-like object (:func:`isfuture`
207 Fix asyncio.isfuture() to support unittest.Mock.