Function drone_core::fib::new_once[][src]

pub fn new_once<F, R>(f: F) -> FiberOnce<F, R> where
    F: FnOnce() -> R,
    F: Unpin

Creates a fiber that calls the closure f once.

This type of fiber will never yield and will busy its thread until completion.