[−][src]Function greenie::scheduler::spawn_greenie
pub fn spawn_greenie<F: 'static, A: 'static + ApplyTo<F> + Clone>(
f: F,
args: A
) -> JoinHandle<A::Result>
Spawns a new thread Currently there are no way to specialize stack size for each thread.
Example
use greenie::*; fn green_main() { let handle = spawn_greenie(|x, y| x + y, (1, 2)); println!("{}", handle.join().unwrap()); }