Struct mioco::JoinHandle [] [src]

pub struct JoinHandle<T> {
    // some fields omitted
}

Allows to join on mioco Coroutine

Can be used both inside and outside of mioco instance.

Methods

impl<T> JoinHandle<T> where T: Send + 'static
[src]

fn join(self) -> Result<T>

Block waiting for coroutine completion

Return value returned by coroutine or Err if coroutine panicked or was killed.