Package-level declarations


Link copied to clipboard
open class EventDefinition<T>

Definition of an event. Event is used as a key so both hashCode and equals need to be implemented properly. Inheriting of this class is an experimental feature. Instantiate directly if inheritance not necessary.

Link copied to clipboard
typealias EventHandler<T> = (T) -> Unit

Specifies signature for the event handler

Link copied to clipboard
class Events


Link copied to clipboard
fun <T> Events.raiseCatching(definition: EventDefinition<T>, value: T, logger: Logger? = null)

Raises an event the same way as Events.raise but catches an exception and logs it if the logger is provided