Lines Matching defs:Future
90 Future = None
96 return self.__class__.Future(loop=loop)
159 r'Task .* got Future .* attached'):
685 # Test Future.result() after calling cancel() with a message.
719 # Test Future.exception() after calling cancel() with a message.
987 # When calling Future.result() on a cancelled task, check that the
1014 # When calling Future.exception() on a cancelled task, check that the
1069 'Event loop stopped before Future completed.')
1666 class Fut(asyncio.Future):
2445 BaseFuture = cls.Future
2462 class Future(CommonFuture, BaseFuture):
2466 fut = self.Future(loop=self.loop)
2486 # Add patched Task & Future back to the test case
2488 cls.Future = Future
2504 Future = type(self).Future
2513 Future.set_result(task, 'spam')
2531 Future = type(self).Future
2540 Future.set_exception(task, MyExc())
2561 Future = getattr(futures, '_CFuture', None)
2592 Future = getattr(futures, '_CFuture', None)
2601 Future = futures._PyFuture
2609 Future = getattr(futures, '_CFuture', None)
2618 Future = futures._PyFuture
2626 Future = getattr(futures, '_CFuture', None)
2633 Future = futures._PyFuture
2639 Future = futures._PyFuture
2647 class Fut(asyncio.Future):
2845 self.assertTrue(issubclass(asyncio.Task, asyncio.Future))
2984 self.assertIsInstance(fut, asyncio.Future)
2995 self.assertIsInstance(fut, asyncio.Future)