Package-level declarations

Types

Link copied to clipboard
interface Bus

Represents an event bus capable of registering subscribers and dispatching events.

Link copied to clipboard
interface Cancelable

Represents an object that can be marked as canceled.

Link copied to clipboard

Determines how a Bus should interpret cancellation when dispatching events that implement Cancelable.

Link copied to clipboard
interface Event

Marker interface for all events dispatched through a Bus.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class EventHandler(val priority: Int = 0, val runIfCanceled: Boolean = false)

Marks a function as an event handler that should be invoked when an event of the appropriate type is posted to a Bus.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class ExceptionHandler(val priority: Int = 0)

Marks a function as an exception handler for failures that occur during event dispatch.

Link copied to clipboard
interface Modifiable

Represents an object whose state can be marked as modified.