Struct gj::TaskSet [] [src]

pub struct TaskSet<T, E> where T: 'static, E: 'static {
    // some fields omitted
}

Holds a collection of Promise<T, E>s and ensures that each executes to completion. Destroying a TaskSet automatically cancels all of its unfinished promises.

Methods

impl<T, E> TaskSet<T, E>
[src]

fn new(reaper: Box<TaskReaper<T, E>>) -> TaskSet<T, E>

fn add(&mut self, promise: Promise<T, E>)