T
- The type of the event or thing that is the trigger for an event.public interface EventSource<T>
Modifier and Type | Method and Description |
---|---|
Restore |
start(java.util.function.Consumer<? super EventOf<T>> consumer)
Start listening for events.
|
Restore start(java.util.function.Consumer<? super EventOf<T>> consumer) throws java.lang.Exception
consumer
- The consumer to receive events on.java.lang.Exception
- If the listening could not be started.