destroy method
void
destroy()
Closes the channel immediately in both directions. This may send a close message to the remote side. After this no more data can be sent or received.
Implementation
void destroy() {
if (_done.isCompleted) return;
_remoteStream.close();
_locaStreamConsumer.cancel();
_sendEOFIfNeeded();
_sendCloseIfNeeded();
_done.complete();
}