shithub: mc

ref: ff88594df5c5df6fb8f227ab8e5df3529ba6e72f
dir: /lib/thread/util.myr/

View raw version
use std
use thread

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

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