blocking

suspend fun <T> blocking(block: suspend CoroutineScope.() -> T): T

Makes an "inappropriate blocking method call" appropriate.

See also

kotlinx.coroutines.Dispatchers
withContext

Sources

Link copied to clipboard