withOperation

suspend fun <T> withOperation(operation: RadioOperation, block: suspend () -> T): T(source)

Runs block with operation held, releasing that exact lease even on failure or cancellation.