shutdownAsync method

Future<void> shutdownAsync()
inherited

Awaitable variant for callers that need to ensure the channel is closed.

Implementation

Future<void> shutdownAsync() async {
  if (_ownsChannel) {
    await channel.shutdown();
  }
}