InterceptResult
Constructors
Link copied to clipboard
构造一个 InterceptResult, 以 value 继续处理后续指令执行.
构造一个 InterceptResult, 以 原因 中断指令执行.
Functions
Link copied to clipboard
inline fun <T, R> InterceptResult<T>.fold(onIntercepted: (reason: InterceptedReason) -> R, otherwise: (call: T) -> R): R
Link copied to clipboard
inline fun <T : R, R> InterceptResult<T>.getOrElse(onIntercepted: (reason: InterceptedReason) -> R): R