.removeProcess - PeterNaydenov/code-assembly-line GitHub Wiki

Remove process/processes

tplEngine.removeProcess ( processName )

  • processName: string | string[]. Process names for remove;
  • Method return options:
    • tplEngine;
  • Method is chainable;

Example:

  const doSomething = [
                       { do: 'draw', tpl: 'any' }
                    ]



 tplEngine
     .insertProcess ( doSomething, 'something' ) // Process 'something' was inserted
     .removeProcess ( 'something' )              // ->  Process 'something' was removed'.