close method

Future<void> close()

Stops receiving notifications; a running import completes. sink is not closed: the caller owns it.

Implementation

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