class_docstr: Single thread executor
  
  Simple executor for debugging. No parameters.
  
  The submitted functions are wrapped with ``functools.partial``
  which are then executed in ``wait()``.
  
  Notes
  -----
  The tasks are started when wait is called
class_docstr_tok: ["Single","thread","executor","Simple","executor","for","debugging",".","No","parameters",".","The","submitted","functions","are","wrapped","with","``","functools.partial","``","which","are","then","executed","in","``","wait","(",")","``",".","Notes","--","--","-","The","tasks","are","started","when","wait","is","called"]
code: def __init__(self, n_workers=1, **config):
      super().__init__(n_workers=1)
      self.closed = False
      self.nested = 0
  
imports: import functools
  import time
  import traceback
  from orion.executor.base import AsyncException, AsyncResult, BaseExecutor, ExecutorClosed, Future
label_desc: Use image node_id 1 to create a new SingleExecutor object from inherited base classes: BaseExecutor with example: obj = SingleExecutor(n_workers)