stop method

void stop()
inherited

Stops this worker.

Implementation

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