RichSignal
class AnyVal
trait Matchable
class Any
Value members
Concrete methods
An extension method to the Signal
class. You can use signal.onUi { value => ... }
instead of
signal.foreach { value => ... }
to enforce the subscription to be run on the UI dispatch queue when
the default dispatch queue in the given code block is different.
An extension method to the Signal
class. You can use signal.onUi { value => ... }
instead of
signal.foreach { value => ... }
to enforce the subscription to be run on the UI dispatch queue when
the default dispatch queue in the given code block is different.
- Value Params
- context
The event context the subscription is assigned to.
- subscriber
A subscriber function which consumes the value.
- Returns
A new
Subscription
to the signal.