Home
last modified time | relevance | path

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

/external/python/cpython3/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.py389 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
577 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
668 elif futures.isfuture(coro_or_future):
Dcoroutines.py125 if (base_futures.isfuture(res) or inspect.isgenerator(res) or
Dbase_events.py620 new_task = not futures.isfuture(future)
/external/python/cpython3/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))))
465 self.assertTrue(asyncio.isfuture(f2))
/external/python/cpython3/Doc/library/
Dasyncio-future.rst22 .. function:: isfuture(obj)
39 a :class:`Task`, or a Future-like object (:func:`isfuture`
/external/python/cpython3/Misc/NEWS.d/
D3.6.0b4.rst207 Fix asyncio.isfuture() to support unittest.Mock.