Lines Matching refs:future
253 future = self.executor.submit(get_init_status)
259 future.result()
401 """shutdown(wait=True) doesn't hang when a future was submitted and
610 future = self.executor.submit(time.sleep, 1.5)
611 done, not_done = futures.wait([future, future],
613 self.assertEqual({future}, done)
762 for future in futures.as_completed(
768 completed_futures.add(future)
795 for future in futures.as_completed(futures_list, timeout=0):
796 futures_list.remove(future)
797 wr = weakref.ref(future)
798 del future
803 for future in futures.as_completed(futures_list):
804 futures_list.remove(future)
805 wr = weakref.ref(future)
806 del future
829 future = self.executor.submit(pow, 2, 8)
830 self.assertEqual(256, future.result())
833 future = self.executor.submit(mul, 2, y=8)
834 self.assertEqual(16, future.result())
835 future = self.executor.submit(capture, 1, self=2, fn=3)
836 self.assertEqual(future.result(), ((1,), {'self': 2, 'fn': 3}))
886 # Deliberately discarding the future.
1033 future = self.executor.submit(self._test_traceback)
1035 future.result()
1058 future = self.executor.submit(id, obj)
1059 future.result()
1152 for i, future in enumerate(futures):
1153 self.assertEqual(future.result(), mul(i, i))
1472 # Set the result first to simulate a future that runs instantly,