class_docstr: Context manager that .cancel()s all elements of a list upon exit.
  This is used to abort futures faster when raising an exception.
class_docstr_tok: ["Context","manager","that",".cancel","(",")","s","all","elements","of","a","list","upon","exit",".","This","is","used","to","abort","futures","faster","when","raising","an","exception","."]
code: def __exit__(self, _type, _value, _traceback):
      for future in self.future_list:
          future.cancel()
  
file_path: speechbrain/speechbrain/utils/parallel.py
imports: import itertools
  import multiprocessing
  from collections import deque
  from concurrent.futures import Executor, ProcessPoolExecutor
  from threading import Condition
  from typing import Any, Callable, Iterable, Optional
  from tqdm.auto import tqdm
label_desc: Use image node_id 3 for calling the CancelFuturesOnExit obj's underlying member method code with example usage: obj.__exit__(_type, _value, _traceback) without return types