Google is committed to advancing racial equity for Black communities. See how.

close method

void close ([int statusCode])

Close the bound channel.

This function does nothing if the object is not bound.

Implementation

void close([int statusCode]) {
  if (isBound) {
    if (statusCode != null) {
      _writeEpitaph(statusCode);
    }
    _reader.close();
    _impl = null;

    state = InterfaceState.closed;
  }
}