Struct ffi_helpers::task::TaskHandle [] [src]

pub struct TaskHandle<T> { /* fields omitted */ }

An opaque handle to some task which is running in the background.

Methods

impl<T> TaskHandle<T>
[src]

[src]

Spawn a Task in the background, returning the a TaskHandle so you can cancel it or retrieve the result later on.

[src]

Check if the background task has finished.

If the other end hangs up for whatever reason this will return an error.

[src]

Block the current thread until the task has finished and returned a result.

[src]

Cancel the background task.

[src]

Has this task been cancelled?

Trait Implementations

impl<T> Drop for TaskHandle<T>
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<T> Send for TaskHandle<T> where
    T: Send

impl<T> !Sync for TaskHandle<T>