Struct gj::ForkedPromise
[−]
[src]
pub struct ForkedPromise<T, E> where T: 'static + Clone, E: 'static + Clone {
// some fields omitted
}
The result of Promise::fork()
. Allows branches to be created. Dropping the ForkedPromise
along with any branches created through add_branch()
will cancel the computation.
Methods
impl<T, E> ForkedPromise<T, E> where T: 'static + Clone, E: 'static + Clone
[src]
fn add_branch(&mut self) -> Promise<T, E>
Creates a new promise that will resolve when the originally forked promise resolves.