pause method

void pause()

Pauses the event subscription for this worker.

Implementation

void pause() {
  _subscription?.pause();
  _isPaused = true;
}