TaskObservableExt
trait · ferroui-reactive · v0.5.0
trait TaskObservableExt<T>
A task as a sequence (TaskObservableExtensions.ToObservable): any future of a
Result<T, ObservableError>, which runs as a task of the current thread; a
Flatten (shared.flatten()) is the Shared it awaits, used as it is.
Members
to_observable
fn to_observable(self: Self) -> Rc<dyn IObservable<T>>
A sequence of the result of the task, or of its error; a cancellation ends it with the
error of the cancellation (ToObservable(Task<TResult>), ToObservable(Task) for T = ()).
to_observable_on
fn to_observable_on(self: Self, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
to_observable with the notifications on scheduler
(ToObservable(Task<TResult>, IScheduler), ToObservable(Task<TResult>, TaskObservationOptions)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.