withDefaultContext

inline suspend fun <T> withDefaultContext(crossinline block: suspend CoroutineScope.() -> T): T

This uses withContext([Dispatchers.Default]) for suspend functions.

Parameters

block

The suspend function to run.

See also