pub struct TaskStreamPlugin;Expand description
Handles binding to TaskValues for the ^ stream binding operator.
A completed task produces its result, a failed one a binding error notification. The outcome of a task that is still running is delivered from a dispatcher job queued when the task finishes.
Implementations§
Source§impl TaskStreamPlugin
impl TaskStreamPlugin
Sourcepub fn handle_completed(
task: &TaskValue,
) -> Rc<dyn IObservable<Option<BoxedValue>>>
pub fn handle_completed( task: &TaskValue, ) -> Rc<dyn IObservable<Option<BoxedValue>>>
The stream of a finished task: its result, or a binding error notification for a failed one. Panics if the task is still running.
Source§impl TaskStreamPlugin
impl TaskStreamPlugin
Sourcepub fn observe(task: &TaskValue) -> Rc<dyn IObservable<Option<BoxedValue>>>
pub fn observe(task: &TaskValue) -> Rc<dyn IObservable<Option<BoxedValue>>>
The stream of a task: the outcome right away if the task has finished, otherwise delivered from a dispatcher job queued when the task finishes.
Trait Implementations§
Source§impl IStreamPlugin for TaskStreamPlugin
impl IStreamPlugin for TaskStreamPlugin
Auto Trait Implementations§
impl Freeze for TaskStreamPlugin
impl RefUnwindSafe for TaskStreamPlugin
impl Send for TaskStreamPlugin
impl Sync for TaskStreamPlugin
impl Unpin for TaskStreamPlugin
impl UnsafeUnpin for TaskStreamPlugin
impl UnwindSafe for TaskStreamPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more