Searched refs:isfuture (Results 1 – 8 of 8) sorted by relevance
21 isfuture = base_futures.isfuture variable333 if not isfuture(source) and not isinstance(source,336 if not isfuture(destination) and not isinstance(destination,339 source_loop = _get_loop(source) if isfuture(source) else None340 dest_loop = _get_loop(destination) if isfuture(destination) else None343 if isfuture(future):370 if isfuture(future):
23 def isfuture(obj): function
351 if futures.isfuture(fs) or coroutines.iscoroutine(fs):506 if futures.isfuture(fs) or coroutines.iscoroutine(fs):585 elif futures.isfuture(coro_or_future):
121 if (base_futures.isfuture(res) or inspect.isgenerator(res) or
562 new_task = not futures.isfuture(future)
115 self.assertFalse(asyncio.isfuture(MyFuture))116 self.assertTrue(asyncio.isfuture(MyFuture()))117 self.assertFalse(asyncio.isfuture(1))120 self.assertFalse(asyncio.isfuture(mock.Mock()))123 self.assertTrue(asyncio.isfuture(f))124 self.assertFalse(asyncio.isfuture(type(f)))127 self.assertTrue(asyncio.isfuture(mock.Mock(type(f))))440 self.assertTrue(asyncio.isfuture(f2))
17 .. function:: isfuture(obj)34 a :class:`Task`, or a Future-like object (:func:`isfuture`
207 Fix asyncio.isfuture() to support unittest.Mock.