terminate method

  1. @override
Future<void> terminate()

Terminates this channel.

RPCs already in progress will be terminated. No further RPCs can be made on this channel.

Implementation

@override
Future<void> terminate() async {
  var _cr = _connectionResult;
  _connectionResult = null;
  await _cr?.result?.terminate();
}