DiscardLatest

data class DiscardLatest(val onCancellation: Runnable? = null) : SuspendHandlerBehavior, Record

Discards the new event if a job is active.

Constructors

Link copied to clipboard
constructor(onCancellation: Runnable? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val onCancellation: Runnable?

Functions

Link copied to clipboard
open override fun <T : Event> EventListener.createEventHook(eventClass: Class<T>, wrappedContext: CoroutineContext, priority: Short, handler: SuspendableEventHandler<T>): EventHook<T>