withCallId

suspend fun withCallId(delivery: AMQPResponse.Channel.Message.Delivery, block: suspend () -> Unit)

Executes a block of code with a specified call ID in the coroutine context, if the call ID is present.

Parameters

delivery

The AMQP message delivery containing the call ID in headers.

block

The block of code to execute.