funfun
spawn_fn!
spawn_fn!
Takes a closure or function and its arguments, runs the
closure or function with the passed arguments in a new thread, and
returns the thread's hook.
box_fn!
box_fn!
Boxes a closure.
Usage:
// use of boxed functions in structs
type T = ;
let c: T = box_fn!;
let mut f = F ;
f.c = box_fn!;
f.c = box_fn!;
// multithreading with spawn_fn!
let eg = box_fn!;
let also = box_fn!;
let mut v1 = Vec new;
for i1 in 0..10000
v1.push;
for res in v1.into_iter