rethrow

重新抛出类型为 E 的异常,请使用 rethrowCancellation 替代 rethrow<CancellationException>()


inline fun <E : Throwable> rethrow(on: (E) -> Unit): CatchingResult<T>(source)

如果异常为 E,执行 on 并抛出异常。请使用 rethrowCancellation 替代 rethrow<CancellationException>()