class_docstr: Helper abc which defines all methods a ParallelBackend must implement
class_docstr_tok: ["Helper","abc","which","defines","all","methods","a","ParallelBackend","must","implement"]
docstr: Abort any running tasks
  
  This is called when an exception has been raised when executing a tasks
  and all the remaining tasks will be ignored and can therefore be
  aborted to spare computation resources.
  
  If ensure_ready is True, the backend should be left in an operating
  state as future tasks might be re-submitted via that same backend
  instance.
  
  If ensure_ready is False, the implementer of this method can decide
  to leave the backend in a closed / terminated state as no new task
  are expected to be submitted to this backend.
  
  Setting ensure_ready to False is an optimization that can be leveraged
  when aborting tasks via killing processes from a local process pool
  managed by the backend it-self: if we expect no new tasks, there is no
  point in re-creating a new working pool.
code: def abort_everything(self, ensure_ready=True):
      """Abort any running tasks
  
      This is called when an exception has been raised when executing a tasks
      and all the remaining tasks will be ignored and can therefore be
      aborted to spare computation resources.
  
      If ensure_ready is True, the backend should be left in an operating
      state as future tasks might be re-submitted via that same backend
      instance.
  
      If ensure_ready is False, the implementer of this method can decide
      to leave the backend in a closed / terminated state as no new task
      are expected to be submitted to this backend.
  
      Setting ensure_ready to False is an optimization that can be leveraged
      when aborting tasks via killing processes from a local process pool
      managed by the backend it-self: if we expect no new tasks, there is no
      point in re-creating a new working pool.
      """
      # Does nothing by default: to be overriden in subclasses when canceling
      # tasks is possible.
      pass
  
imports: import gc
  import os
  import sys
  import warnings
  import threading
  from abc import ABCMeta, abstractmethod
  from .format_stack import format_exc
  from .my_exceptions import WorkerInterrupt, TransportableException
  from ._multiprocessing_helpers import mp
  from ._compat import with_metaclass
label_desc: Use image node_id 8 for calling the ParallelBackendBase obj's underlying member method code with example usage: obj.abort_everything(ensure_ready) without return types