cancel method

void cancel()

Terminates an in-progress query, closing down the stream.

Implementation

void cancel() {
  assert(() {
    if (_responseController != null) {
      throw Exception('Attempted to cancel a response that is not open.');
    }
    return true;
  }());
  _finalizeResponse();
}