stop method

void stop()

Stops this worker.

Implementation

void stop() {
  if (_stopped == null) {
    _stopped = microsecTimeStamp();
    _openChannel = null;
    _channel?.close();
    _channel = null;
  }
}