set

abstract operator fun set(trigger: T, job: (E) -> Unit)

Adds a job to be performed whenever an event triggers the dispatcher through the listener.

Parameters

trigger

the type of the job that needs to occur.

job

the job that will happen whenever the given job occurs.