选项(Choices)

object Choices

Java factories for the sealed CallbackChoice.

Continue carries the (possibly rewritten) value forward; Break stops and uses its value as the result.

函数

Link copied to clipboard
fun <C, B> breakWith(value: B): CallbackChoice<C, B>

停下来,然后使用它。 `value` 因此(as a result)。

Link copied to clipboard

继续执行(但没有任何实际效果/结果); Unit这种特定形状的变体被……所使用。 after* callbacks.

fun <C, B> proceed(value: C): CallbackChoice<C, B>

继续前行吧…… `value` `forward.`