class_docstr: Manages running threads and processes of a Launchpad Program.
class_docstr_tok: ["Manages","running","threads","and","processes","of","a","Launchpad","Program","."]
docstr: Raises an error if there's an exception in one of the workers.
docstr_tok: ["Raises","an","error","if","there","'s","an","exception","in","one","of","the","workers","."]
code: def check_for_thread_worker_exception(self):
      """Raises an error if there's an exception in one of the workers."""
      recently_finished, _ = self._update_and_get_recently_finished()
      for future in recently_finished:
          future.result()
  
imports: import collections
  from concurrent import futures
  import dataclasses
  import functools
  import signal
  import subprocess
  import threading
  import time
  from typing import Any, Callable, Iterable, List, Mapping, MutableMapping, Optional, Sequence, Tuple
  from absl import logging
  from launchpad import flags
  import psutil
  import termcolor
label_desc: Use image node_id 9 for calling the WorkerManager obj's underlying member method code with example usage: obj.check_for_thread_worker_exception() without return types