runWithInterruptible

inline suspend fun <T> runWithInterruptible(context: CoroutineContext = RunWithInterruptibleDefaultCoroutineContext, crossinline block: () -> T): T

默认使用 DefaultBlockingDispatcher 作为调度器的可中断执行函数。

See also

runInterruptible

Throws

CancellationException

May be thrown by runInterruptible