restart method

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

Restart the executor.

This forces the executor to reload its configuration and initialize sampling accordingly. Any changes to the configuration must be specified via the initialize method before calling restart.

Only executors that has been started (i.e. in state ExecutorState.started) or stopped (state ExecutorState.stopped) can be restarted.

Calling restart automatically starts the executor if it can be restarted.

Implementation

@override
@nonVirtual
void restart() {
  info('Restarting $this - $configuration');
  _stateMachine.restart();
}