rethrowCancellation

重新抛出类型为 CancellationException 的异常


fun rethrowCancellation(on: (CancellationException) -> Unit): CatchingResult<T>(source)

如果异常为 CancellationException,执行 on 并抛出 CancellationException