class_docstr: Used by wait(return_when=FIRST_EXCEPTION and ALL_COMPLETED).
class_docstr_tok: ["Used","by","wait","(","return_when=FIRST_EXCEPTION","and","ALL_COMPLETED",")","."]
code: def __init__(self, num_pending_calls, stop_on_exception):
      self.num_pending_calls = num_pending_calls
      self.stop_on_exception = stop_on_exception
      self.lock = threading.Lock()
      super().__init__()
  
imports: import collections
  import logging
  import threading
  import time
  import types
label_desc: Use image node_id 1 to create a new _AllCompletedWaiter object from inherited base classes: _Waiter with example: obj = _AllCompletedWaiter(num_pending_calls, stop_on_exception)