Creates the listener but does not add it.
Creates the listener but does not add it.
the priority of this listener
the modes the listener should listen to. If this is empty it will be set to EventProcessor.DefaultModes.
the function to invoke when the listener is invoked.
Listener
Allows extending classes to continue processing on additional listeners if needed before a response is determined and sent back to the caller.
Allows extending classes to continue processing on additional listeners if needed before a response is determined and sent back to the caller.
the current EventState
the current ListenMode
the current Listenable
Works similarly to on
but after the first event is received the listener is removed.
Works similarly to on
but after the first event is received the listener is removed.
the function to invoke upon event.
listener
Invokes the function upon each event until it returns Some[V] and then removes the listener from receiving any other invocations.
Invokes the function upon each event until it returns Some[V] and then removes the listener from receiving any other invocations.
the default value to send if None is returned by the function.
the priority for this listener. Defaults to Normal.
the function to invoke upon event.
Listener[E, V, R]