Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/asyncio/
Dfutures.py21 isfuture = base_futures.isfuture variable
333 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 None
340 dest_loop = _get_loop(destination) if isfuture(destination) else None
343 if isfuture(future):
370 if isfuture(future):
Dbase_futures.py23 def isfuture(obj): function
Dtasks.py351 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
506 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
585 elif futures.isfuture(coro_or_future):
Dcoroutines.py121 if (base_futures.isfuture(res) or inspect.isgenerator(res) or
Dbase_events.py562 new_task = not futures.isfuture(future)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_futures.py115 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))
/external/python/cpython3/Doc/library/
Dasyncio-future.rst17 .. function:: isfuture(obj)
34 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.