AutoTweaker API
Toggle table of contents
0.1.0-alpha.35+c07218c5
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
AutoTweaker API
AutoTweaker API
/
io.github.autotweaker.api.base
/
CatchingResult
/
rethrowCancellation
rethrow
Cancellation
jvm
fun
rethrowCancellation
(
)
:
CatchingResult
<
T
>
(
source
)
重新抛出类型为
CancellationException
的异常
fun
rethrowCancellation
(
on
:
(
CancellationException
)
->
Unit
)
:
CatchingResult
<
T
>
(
source
)
如果异常为
CancellationException
,执行
on
并抛出
CancellationException