Lines Matching defs:wait
60 """Provides the event that wait() and as_completed() block on."""
97 """Used by wait(return_when=FIRST_COMPLETED)."""
112 """Used by wait(return_when=FIRST_EXCEPTION and ALL_COMPLETED)."""
205 timeout: The maximum number of seconds to wait. If None, then there
206 is no limit on the wait time.
243 waiter.event.wait(wait_timeout)
263 def wait(fs, timeout=None, return_when=ALL_COMPLETED):
268 wait upon.
269 timeout: The maximum number of seconds to wait. If None, then there
270 is no limit on the wait time.
283 futures that completed (is finished or cancelled) before the wait
305 waiter.event.wait(timeout)
432 timeout: The number of seconds to wait for the result if the future
433 isn't done. If None, then there is no limit on the wait time.
451 self._condition.wait(timeout)
467 timeout: The number of seconds to wait for the exception if the
468 future isn't done. If None, then there is no limit on the wait
487 self._condition.wait(timeout)
504 to as_completed() or wait()) are notified and False is returned.
589 timeout: The maximum number of seconds to wait. If None, then there
590 is no limit on the wait time.
627 def shutdown(self, wait=True, *, cancel_futures=False):
634 wait: If True then shutdown will not return until all running
647 self.shutdown(wait=True)