Convenience method to send a value to set
similarly to an assignment operator.
Convenience method to send a value to set
similarly to an assignment operator.
the value to apply
Attaches a function to observe values fired against this Observable.
Attaches a function to observe values fired against this Observable.
function observer
the supplied function. This reference is useful for detaching the function later
Works similarly to attach
, but also references the previous value that was fired.
Works similarly to attach
, but also references the previous value that was fired. This is useful when you need
to handle changes, not just new values.
the ChangeObserver
the observer attached. This can be passed to detach
to remove this observer
Clears all attached observers from this Observable.
Clears all attached observers from this Observable.
Detaches a function from observing this Observable.
Detaches a function from observing this Observable.
function observer that was previously attached
Cleans up all cross references in preparation for releasing for GC.
Cleans up all cross references in preparation for releasing for GC.
Returns a Future[T] that represents the value of the next firing of this Observable.
Returns a Future[T] that represents the value of the next firing of this Observable.
the condition under which the observer will be invoked. Defaults to always return true.
Maps the Observable to another type.
Maps the Observable to another type.
the type of the new Observable
function to handle the mapping from T to R
Observable[R]
Direct attachment of a observer.
Direct attachment of a observer.
the observer to attach
the same observer supplied
List of all the observers currently observing changes to this Observable.
List of all the observers currently observing changes to this Observable.
Works like attach
, but doesn't receive the fired value.
Works like attach
, but doesn't receive the fired value.
function to invoke on fire
observer
Invokes the observer only one time and then detaches itself.
Invokes the observer only one time and then detaches itself. If supplied, the condition filters the scenarios in which the observer will be invoked.
the function observer
the condition under which the observer will be invoked. Defaults to always return true.