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.

Functions

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

Stop and use value as the result.

Link copied to clipboard

Continue with no value; the Unit-shaped variant used by the after* callbacks.

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

Continue, carrying value forward.