execute

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

Executes block on dispatcher once a permit is available.

Throws

if the bulkhead is full

if waiting for a permit times out