Lines Matching refs:future1
299 future1 = self.executor.submit(mul, 21, 2)
303 [CANCELLED_FUTURE, future1, future2],
306 self.assertEqual(set([future1]), done)
310 future1 = self.executor.submit(time.sleep, 1.5)
313 [CANCELLED_AND_NOTIFIED_FUTURE, SUCCESSFUL_FUTURE, future1],
319 self.assertEqual(set([future1]), pending)
322 future1 = self.executor.submit(mul, 2, 21)
327 [future1, future2, future3],
330 self.assertEqual(set([future1, future2]), finished)
334 future1 = self.executor.submit(divmod, 21, 0)
341 future1, future2],
346 future1]), finished)
350 future1 = self.executor.submit(time.sleep, 2)
353 [EXCEPTION_FUTURE, future1],
357 self.assertEqual(set([future1]), pending)
360 future1 = self.executor.submit(divmod, 2, 0)
367 future1,
374 future1,
379 future1 = self.executor.submit(mul, 6, 7)
386 future1, future2],
393 future1]), finished)
422 future1 = self.executor.submit(mul, 2, 21)
429 future1, future2]))
434 future1, future2]),
438 future1 = self.executor.submit(time.sleep, 2)
445 future1],
459 future1 = self.executor.submit(time.sleep, 2)
460 completed = [f for f in futures.as_completed([future1,future1])]