ref: 690ab7aa8e6c56a4ae8a2bd5bce58d1df681234e dir: /lib/thread/do.myr/
use std use "future" use "spawn" pkg thread = generic do : (fn : (-> @a) -> future(@a)#) ;; generic do = {fn var r r = mkfut() spawn({; futput(r, fn()) }) -> r }