withBlockingDetection

suspend fun <R> withBlockingDetection(mode: BlockingDetection, action: suspend () -> R): R(source)

Execute action in a coroutine scope governed by the specified blockingDetection mode.

Example:

    withBlockHoundMode(BlockingDetection.DISABLED) { someBlockingCall() }