Function mioco::start [] [src]

pub fn start<F, T>(f: F) -> Result<T> where
    F: FnOnce() -> T,
    F: Send + 'static,
    T: Send + 'static, 

Start a new mioco instance.

Creates a mioco instance with default configuration and calls Mioco::start(f) on it.

This will block until mioco instance exits, which can be caused by: * no more runnable coroutines, * shutdown().