JavaEventSource

interface JavaEventSource<T : Any>

Java equivalent of EventSource.

Parameters

T

the base event type

Inheritors

Properties

Link copied to clipboard

All events received using a Flow.Publisher

Link copied to clipboard

the underlying delegate EventSource

Functions

Link copied to clipboard
open fun <E : T> on(eventType: Class<E>, handler: Consumer<E>)

Creates an event handler which executes Consumer for every event of eventType.