close abstract method

Future<Channel> close()

Close the channel, abort any pending operations and return a Future<Channel> to be completed when the channel is closed.

After closing the channel any attempt to send a message over it will cause a StateError

Implementation

Future<Channel> close();