A parameterless convenience version of the Trigger
's apply
method.
Registers a live observer with this event.
Registers a live observer with this event. The method is called with the
observing function which receives the event's update messages, and the
method generates an opaque Observer
instance, which may be used to
remove the observer eventually (through the observer's remove
method),
or to add the observer to other events of the same type (using the
observer's add
method).
Note that the caller should not call add
on the resulting observer to register this event, as this is already
done as part of the call to react
.
Like react
, but passing in a transaction as first function argument.
Like react
, but passing in a transaction as first function argument.
A simple event implementation for an imperative (trigger) event that fires "bangs" or impulses, using the
Unit
type as event type parameter. Theapply
method of the companion object builds aBang
which also implements theObservable
trait, so that the bang can be connected to a live view (e.g. a GUI).