end method

Future<void> end({
  1. bool flush = false,
})

Stop polling requests

flush Whether to flush replica from Vigil upon teardown

Implementation

Future<void> end({bool flush = false}) async {
  _pollTicker?.cancel();

  if (flush) {
    await _dispatchFlushRequest();
  }
}