shithub: mc

ref: d98a9bf8622f40b56c16ade98d0e3621249413a6
dir: /lib/thread/test/util.myr/

View raw version
use std
use thread

pkg =
	const mkherd : (n : uint32, fn : (-> void) ->void)
;;

const mkherd = {n, fn
	for var i = 0; i < n; i++
		std.try(thread.spawn(fn))
	;;
}