stop method

void stop({
  1. bool cancelChannelCalls = false,
})

Stops pulling

  • If cancelChannelCalls is true it will call cancelChannelCalls. Any event pulling or submit in this channel will be cancelled.

Implementation

void stop({bool cancelChannelCalls = false}) {
  if (_stopped) return;
  _stopped = true;

  if (!isScheduled) {
    _started = false;
  }

  if (cancelChannelCalls) {
    this.cancelChannelCalls();
  }
}