raise

fun <T> raise(definition: EventDefinition<T>, value: T)

Raises the event specified by definition with the value and calls all handlers.

Handlers are called in order of subscriptions. If some handler throws an exception, all remaining handlers will still run. The exception will eventually be re-thrown.