stop method

  1. @override
void stop()
inherited

Stops this worker.

Implementation

@override
void stop() {
  if (!isStopped) {
    channelLogger?.d('Stop worker');
    _stats.stop();
    _openChannel = null;
    _channel?.close();
    _channel = null;
  }
}