shithub: mc

ref: 3665783a1d1fe03db70cca452c615b439310a329
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))
	;;
}