class_docstr: Base executor class
  
  Parameters
  ----------
  n_workers: int
      The number of workers the Executor should have. Depending on the backend
      it may spawn this many worker or connect to running instance that
      dispatch work to ``n_workers`` workers.
docstr: Cancel a given future
  
  Parameters
  ----------
  future: `concurrent.futures.Futures` or equivalent interface
      The future to be cancelled
docstr_tok: ["Cancel","a","given","future","Parameters","--","--","--","--","--","future",":","`","concurrent.futures.Futures","`","or","equivalent","interface","The","future","to","be","cancelled"]
code: def cancel(self, future):
      """Cancel a given future
  
      Parameters
      ----------
      future: `concurrent.futures.Futures` or equivalent interface
          The future to be cancelled
  
      """
  
imports: from orion.core.utils import GenericFactory
label_desc: Use image node_id 4 for calling the BaseExecutor obj's underlying member method code with example usage: obj.cancel(future) without return types