Kotlin: Connection.awaitConnectionClose()

DESCRIPTION

Close a connection as described for Connection.connectionClose().

This function is meant to be used in a Kotlin coroutine to suspend execution until the connection is closed or an error occurs.

DECLARATION

suspend fun Connection.awaitConnectionClose() 

THROWS EXCEPTIONS

NabtoRuntimeException:
with error code STOPPED if the client instance was stopped