Struct asynchron::Futurized [−][src]
pub struct Futurized<C, T, E> { /* fields omitted */ }
Expand description
Futurized task
Implementations
Try (it won’t block the current thread) to do the task now,
and then try to get the progress (if the task is in progress).
Send signal to the inner task handle that the task should be suspended.
this won’t do anything if not explicitly configured inside the task.
Check if progress of the task is suspended.
Send signal to the inner task handle that the task should be canceled.
this won’t do anything if not explicitly configured inside the task.
Check if progress of the task is canceled.
Get task handle,
‘recommended’ if only intended to try to do the task, check progress of the task or task cancelation,
from inside moving closures or from other threads to avoid (channel) synchronous Sender data races.
Get cancelation handle, use this to avoid unnecessary cloning unused task values,
‘recommended’ if only intended to cancel the task from inside moving closures or from other threads.
Get resume/suspend handle, use this to avoid unnecessary cloning unused task values,
‘recommended’ if only intended to resume or suspend the task from inside moving closures or from other threads.
Try to get the progress of the task, it won’t block current thread (non-blocking).
WARNING! to prevent from data races this fn should be called once at time.
Check if the task is in progress.
Trait Implementations
Auto Trait Implementations
impl<C, T, E> !RefUnwindSafe for Futurized<C, T, E>
impl<C, T, E> !UnwindSafe for Futurized<C, T, E>
Blanket Implementations
Mutably borrows from an owned value. Read more