stop method
Stops pulling
- If
cancelChannelCalls
istrue
it will callcancelChannelCalls
. 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();
}
}