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.
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
box_fn!
box_fn!
Boxes a closure and returns an Rc pointer.
type T = ;
let c: T = box_fn!;
let mut f = F ;
f.c = box_fn!;
f.c = box_fn!;
arc_fn!
box_fn!
Boxes a closure and returns an Arc pointer. Slower than
an Rc pointer, but allows derivation of traits like Clone.
type T = ;
let c: T = arc_fn!;
let mut f = F ;
f.c = arc_fn!;
f.c = arc_fn!;