handler

abstract fun handler(handler: Consumer<T>): EventListener.Builder<T>

Sets the handler for the listener.

This is what will be called by the event system if the event passes all the set conditions (filters, expiry, etc).

Return

this builder

Parameters

handler

the handler for the listener