shithub: mc

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