done property

Future done

Returns a Future that completes when the underlying connection is closed.

This is the same future that's returned by listen and close. It may complete before close is called if the remote endpoint closes the connection.

Implementation

Future get done => _manager.done;