execute

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

Executes block under the adaptive concurrency limit, blocking (without polling) until a slot is available.

Return

the result of the operation

Parameters

block

the operation to execute

Throws

whatever block throws; a thrown exception always counts as overload