shithub: mc

ref: 18341c3b341f7f7c151673d2f79299f4074d378b
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))
	;;
}