Struct asynchron::ITaskHandle [−][src]
pub struct ITaskHandle<C> { /* fields omitted */ }
Expand description
Inner handle of the task,
where C: type of sync sender value.
Implementations
Send current progress of the task,
fast synchronous sender from crossbeam_channel crate under the hood.
Suspend the task (it’s quite rare that suspending task from inside itself, unless in a particular case).
Resume the task (it’s quite rare that resuming task from inside itself, unless in a particular case).
Check if progress of the task should be suspended,
usually applied for a specific task with event loop in it.
do other things (switch) while the task is suspended.
Cancel the task (it’s quite rare that canceling task from inside itself, unless in a particular case).
Check if progress of the task sould be canceled.
Trait Implementations
Auto Trait Implementations
impl<C> RefUnwindSafe for ITaskHandle<C>
impl<C> Send for ITaskHandle<C> where
C: Send,
impl<C> Sync for ITaskHandle<C> where
C: Send,
impl<C> Unpin for ITaskHandle<C>
impl<C> UnwindSafe for ITaskHandle<C>
Blanket Implementations
Mutably borrows from an owned value. Read more