DropIfAlreadyRunning

inline fun <reified T : UiEvent> DropIfAlreadyRunning(): DispatchStrategy<T>

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>

An event is ignored while an event that is a T and has the same key, such as the id of an item, is running or waiting.