ViewThreadObservable
struct · ferroui-reactiveui · v0.5.0
struct ViewThreadObservable<T: 'static>
Delivers each notification on the thread that owns the object a binding writes to, or on a
scheduler (ViewThreadObservable<T>).
A notification raised on the owning thread, while nothing waits, is delivered at once. Otherwise it waits for the owning thread, and both forms deliver only the latest value that waits: a two-way binding that names a scheduler writes each side once with the newest value, rather than replaying every value the other side raised in between. A delivery on a scheduler never runs at once.
Members
new
fn new(source: Rc<dyn IObservable<T>>, target: Rc<dyn Any>, invoker: Rc<dyn IViewThreadInvoker>) -> Self
The stage that delivers on the thread that owns target, through invoker
(ViewThreadObservable(IObservable<T>, object, IViewThreadInvoker)).
on_sequencer
fn on_sequencer(source: Rc<dyn IObservable<T>>, sequencer: Rc<dyn IScheduler>) -> Self
The stage that delivers on sequencer (ViewThreadObservable(IObservable<T>, ISequencer)).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnySubscribeGuard<T>IObservable<T>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.