Lines Matching refs:executor
37 with ThreadPoolExecutor(max_workers=1) as executor:
38 future = executor.submit(pow, 323, 1235)
72 Signal the executor that it should free any resources that it is using
79 executor have been freed. If *wait* is ``False`` then this method will
80 return immediately and the resources associated with the executor will be
86 futures that the executor has not started running. Any futures that
91 executor has started running will be completed prior to this method
131 executor = ThreadPoolExecutor(max_workers=2)
132 a = executor.submit(wait_on_b)
133 b = executor.submit(wait_on_a)
138 f = executor.submit(pow, 5, 2)
143 executor = ThreadPoolExecutor(max_workers=1)
144 executor.submit(wait_on_future)
205 with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
207 future_to_url = {executor.submit(load_url, url, 60): url for url in URLS}
258 was undefined but operations on the executor or its futures would often
300 with concurrent.futures.ProcessPoolExecutor() as executor:
301 for number, prime in zip(PRIMES, executor.map(is_prime, PRIMES)):
506 when an executor is broken for some reason, and cannot be used