SuspendHandlerBehaviour

sealed interface SuspendHandlerBehaviour

Controls how a suspend handler behaves when a new event arrives.

Inheritors

Types

Link copied to clipboard

Skips the new event if the previous coroutine is still running. Useful for handlers that must not overlap (e.g. UI updates, debounced actions).

Link copied to clipboard

Launches a new coroutine for every event regardless of whether a previous one is still running. All invocations run concurrently.

Link copied to clipboard

Cancels the previous coroutine and launches a new one for the incoming event. Useful for handlers that should always process the latest event.