RichSignal

final class RichSignal[V](val signal: Signal[V]) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def onUi(subscriber: V => Unit)(context: EventContext): Subscription

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.

Concrete fields

val signal: Signal[V]