monitor

fun monitor(register: Boolean = true, callback: (T) -> Unit): ListenerInstance<*>(source)

Monitors this event. This is the same as listen, but you do not have access to the mutable functions of the event scope. This callback will be executed after EventPriority.LAST, therefore monitor sees the final state.