Connection.closeAsync() Overload 1

DESCRIPTION

Close this connection asynchronously.

The specified AsyncStatusReceiver closure is invoked with an error if an error occurs, see the close() function for details about error codes.

DECLARATION

    public func closeAsync(closure: @escaping AsyncStatusReceiver) 

PARAMETERS

closure:
Invoked when the close succeeds or fails.

Overload 2

DESCRIPTION

Close this connection asynchronously.

DECLARATION

    public func closeAsync() async throws 

THROWS ERRORS

a:
NabtoEdgeClientError if an error occurs during close.