close method

Future<void> close()

Stops receiving: entries sent after this are lost. sink is not closed: the caller owns it.

Implementation

Future<void> close() async {
  _port.close();
  await _subscription.cancel();
}