restart method

  1. @override
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) can be restarted.

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

Implementation

@override
void restart() {
  info('Restarting $runtimeType');
  _stateMachine.restart();
}