Lines Matching refs:futures
3 import concurrent.futures
12 from asyncio import futures
377 from asyncio.futures import _copy_future_state
478 ex = concurrent.futures.ThreadPoolExecutor(1)
495 ex = concurrent.futures.ThreadPoolExecutor(1)
506 ex = concurrent.futures.ThreadPoolExecutor(1)
520 ex = concurrent.futures.ThreadPoolExecutor(1)
529 f1 = concurrent.futures.Future()
537 f1 = concurrent.futures.Future()
593 futures._set_result_unless_cancelled(fut, 2)
628 @unittest.skipUnless(hasattr(futures, '_CFuture'),
632 cls = futures._CFuture
644 @unittest.skipUnless(hasattr(futures, '_CFuture'),
648 class CSubFuture(futures._CFuture):
657 cls = futures._PyFuture
861 @unittest.skipUnless(hasattr(futures, '_CFuture'),
867 return futures._CFuture(loop=self.loop)
870 @unittest.skipUnless(hasattr(futures, '_CFuture'),
876 class CSubFuture(futures._CFuture):
885 return futures._PyFuture(loop=self.loop)
918 return futures._PyFuture
921 @unittest.skipUnless(hasattr(futures, '_CFuture'),
926 return futures._CFuture