Home
last modified time | relevance | path

Searched refs:isfuture (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Lib/asyncio/
H A Dfutures.py4 'Future', 'wrap_future', 'isfuture',
19 isfuture = base_futures.isfuture variable
372 if not isfuture(source) and not isinstance(source,
375 if not isfuture(destination) and not isinstance(destination,
378 source_loop = _get_loop(source) if isfuture(source) else None
379 dest_loop = _get_loop(destination) if isfuture(destination) else None
382 if isfuture(future):
411 if isfuture(future):
H A Dbase_futures.py14 def isfuture(obj): function
H A Dtasks.py405 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
576 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
653 if futures.isfuture(coro_or_future):
H A Dbase_events.py631 new_task = not futures.isfuture(future)
/third_party/python/Lib/test/test_asyncio/
H A Dtest_futures.py124 self.assertFalse(asyncio.isfuture(MyFuture))
125 self.assertTrue(asyncio.isfuture(MyFuture()))
126 self.assertFalse(asyncio.isfuture(1))
129 self.assertFalse(asyncio.isfuture(mock.Mock()))
132 self.assertTrue(asyncio.isfuture(f))
133 self.assertFalse(asyncio.isfuture(type(f)))
136 self.assertTrue(asyncio.isfuture(mock.Mock(type(f))))
483 self.assertTrue(asyncio.isfuture(f2))

Completed in 11 milliseconds