Companion
object Companion
The ready-made strategies. Each one answers Dispatch.Run when no active event matches the events it looks at.
Properties
Functions
Link copied to clipboard
An event is ignored while any event that is a T is running or waiting. For actions that must not run twice, such as a submit button tapped again.
inline fun <reified T : UiEvent> DropIfAlreadyRunning(noinline key: (T) -> Any?): DispatchStrategy<T>
Link copied to clipboard
A new event cancels every active event that is a T and then runs. For input that makes the previous work pointless, such as a search box or a slider.
Link copied to clipboard
The events that are a T run one after the other, in the order they were sent. For changes that must be applied in order, such as a counter tapped several times. A run that fails does not stop the ones after it.