close method

void close()

Closes the connection. To pass in a reason use channel.sink.close().

Implementation

void close() {
  channel.sink.close();
}