# CallbackChoice

sealed interface CallbackChoice<out ContinueT, out BreakT>

A generic callback choice type for callbacks.

#### Parameters

ContinueT

The type of data passed forward when continuing execution.

BreakT

The type of data returned when breaking/short-circuiting execution.

#### Inheritors

Continue
Break

## Types

Break
Link copied to clipboard
data class Break<out BreakT>(val value: BreakT) : CallbackChoice<Nothing, BreakT>

Halt or short-circuit execution, returning a final or replacement value.

Continue
Link copied to clipboard
data class Continue<out ContinueT>(val value: ContinueT) : CallbackChoice<ContinueT, Nothing>

Proceed with the execution, passing the original or modified data to the next stage.