close

abstract suspend fun close(reason: String = "", code: UShort): AMQPResponse.Channel.Closed

Closes the channel.

Return

Nothing. The channel is closed synchronously.

Parameters

reason

Reason that can be logged by the broker.

code

Code that can be logged by the broker.