Scoop API

scoop:scoop.core:0.1.0

blocking

function blocking

source · line 6
public
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.

function blocking

source · line 17
public
public suspend fun <T> CoroutineExecutor.blocking(block: () -> T): T

Extension receiver: CoroutineExecutor

Runs a synchronous managed function on this executor and returns to the caller's execution. The function inherits context bindings and can allocate managed values, but cannot suspend. Cancellation and result delivery follow the same rules as the implicit-executor blocking call.