close method

void close()

Dispose this object and cancel any existing subscription.

Implementation

void close() {
  _sink.close();
  _isClosed = true;
}