shithub: mc

ref: 186c4e4026e1d9db729153e185bd717377060926
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))
	;;
}