execute

suspend fun <T> execute(block: suspend () -> T): T(source)

Executes an operation through the bulkhead.

Return

the result of the operation

Parameters

block

the operation to execute

Throws

if the bulkhead is full and cannot accept the call

if waiting for a permit times out