TcpTunnel.closeAsync() Overload 1

DESCRIPTION

Close this tunnel asynchronously.

DECLARATION

    public func closeAsync(closure: @escaping AsyncStatusReceiver) 

PARAMETERS

closure:
Invoked when authentication is completed or an error occurs

Overload 2

DESCRIPTION

Close this tunnel. Blocks until the tunnel is closed.

DECLARATION

    public func closeAsync() async throws 

THROWS ERRORS

INVALID_STATE:
if the tunnel is not open.