RichEventStream
An extension method to the EventStream
class. You can use eventStream.onUi { event => ... }
instead of
eventStream.foreach { event => ... }
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 EventStream
class. You can use eventStream.onUi { event => ... }
instead of
eventStream.foreach { event => ... }
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 event.
- Returns
A new
Subscription
to the signal.
class AnyVal
trait Matchable
class Any