Plugin.AsyncPause Class
Asynchronous command runner pause plugin.
Methods
pause
()
chainable
Pause the run. Does not stop a command that is currently running, the run will pause before the next command runs.
resume
()
chainable
Resumes a paused run. If a command is currently running, the paused state may not be updated immediately. Resume does nothing if the run is not paused or not started yet or already complete.
Attributes
_args
Array
protected
Paused _runQueue arguments.
Fires event _argsChange
Fires when the value for the configuration attribute _args
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
_resumed
Array
protected
Boolean value indicating the resumed status of the run.
Fires event _resumedChange
Fires when the value for the configuration attribute _resumed
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added:
paused
Boolean
Boolean value indicating the paused status of the run.
Default: false
Fires event pausedChange
Fires when the value for the configuration attribute paused
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
Parameters:
-
e
EventFacadeAn Event Facade object with the following attribute-specific properties added: