function blocking
source · line 6public
public suspend fun <T> blocking(block: () -> T): T
Suspends while a synchronous managed function runs on the current executor's blocking pool. Cancellation can withdraw a queued call. Once the function starts, its actual result or failure is delivered after cleanup, even when the caller's job has been cancelled. Requires an executor.
parameter block
source · line 6public
block: () -> T
type parameter T
source · line 6public
T