Attaches a function to listen for triggering.
Attaches a function to listen for triggering.
function listener
the listener instance
Clears all attached listeners.
Detaches a listener from this Trigger.
Detaches a listener from this Trigger.
the listener to detach
Cleans up all cross references in preparation for GC.
Triggers this instance.
Future that completes successfully upon the next triggering of this Trigger.
Attaches the listener but automatically detaches after being invoked once.
Attaches the listener but automatically detaches after being invoked once.
the listener
Trigger works very similar to
Channel
except it doesn't receive anything. Listeners are attached like on anObservable
, but they receive no arguments.