Suspend Handler Behavior
Types
Link copied to clipboard
Cancels the previous job if it's active.
Link copied to clipboard
Discards the new event if a job is active.
Link copied to clipboard
data class Parallel(val start: CoroutineStart, val onCancellation: Runnable?) : SuspendHandlerBehavior, Record
Starts a new job for each event.
Link copied to clipboard
Suspends the new event if a job is active. Thus, all events will be handled one by one.
Functions
Link copied to clipboard
abstract fun <T : Event> EventListener.createEventHook(eventClass: Class<T>, wrappedContext: CoroutineContext, priority: Short, handler: SuspendableEventHandler<T>): EventHook<T>