Home
last modified time | relevance | path

Searched refs:isfuture (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Lib/asyncio/
Dfutures.py18 isfuture = base_futures.isfuture variable
369 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 None
376 dest_loop = _get_loop(destination) if isfuture(destination) else None
379 if isfuture(future):
406 if isfuture(future):
Dbase_futures.py14 def isfuture(obj): function
Dtasks.py365 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
542 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
619 if futures.isfuture(coro_or_future):
Dcoroutines.py125 if (base_futures.isfuture(res) or inspect.isgenerator(res) or
Dbase_events.py619 new_task = not futures.isfuture(future)
/third_party/python/Lib/test/test_asyncio/
Dtest_futures.py119 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))))
482 self.assertTrue(asyncio.isfuture(f2))
/third_party/python/Doc/library/
Dasyncio-future.rst22 .. function:: isfuture(obj)
39 a :class:`Task`, or a Future-like object (:func:`isfuture`
/third_party/python/Misc/NEWS.d/
D3.6.0b4.rst207 Fix asyncio.isfuture() to support unittest.Mock.