pause method

  1. @override
  2. @nonVirtual
void pause()
override

Pause the executor. Paused until resume is called.

Implementation

@override
@nonVirtual
void pause() {
  info('Pausing $this - $configuration');

  try {
    _stateMachine.pause();
  } catch (error) {
    addError('Error pausing $this: $error');
    _setState(_UndefinedState(this));
  }
}