[−][src]Function drone_core::fib::new_once
pub fn new_once<F, R>(f: F) -> FiberOnce<F, R> where
F: FnOnce() -> R,
F: Unpin,
Creates a fiber from the closure f
.
This type of fiber will never yield and will busy its thread until completion.