Lines Matching refs:future1
446 future1 = self.executor.submit(mul, 21, 2)
450 [CANCELLED_FUTURE, future1, future2],
453 self.assertEqual(set([future1]), done)
457 future1 = self.executor.submit(time.sleep, 1.5)
460 [CANCELLED_AND_NOTIFIED_FUTURE, SUCCESSFUL_FUTURE, future1],
466 self.assertEqual(set([future1]), pending)
469 future1 = self.executor.submit(mul, 2, 21)
474 [future1, future2, future3],
477 self.assertEqual(set([future1, future2]), finished)
481 future1 = self.executor.submit(divmod, 21, 0)
488 future1, future2],
493 future1]), finished)
497 future1 = self.executor.submit(time.sleep, 2)
500 [EXCEPTION_FUTURE, future1],
504 self.assertEqual(set([future1]), pending)
507 future1 = self.executor.submit(divmod, 2, 0)
514 future1,
521 future1,
526 future1 = self.executor.submit(mul, 6, 7)
533 future1, future2],
540 future1]), finished)
571 future1 = self.executor.submit(mul, 2, 21)
578 future1, future2]))
583 future1, future2]),
587 future1 = self.executor.submit(time.sleep, 2)
594 future1],
609 future1 = self.executor.submit(time.sleep, 2)
611 f for f in futures.as_completed(itertools.repeat(future1, 3))