shithub: mc

ref: 9a2f63d47a96bf522e6c5d39e215b2e6a9e600c7
dir: /lib/thread/util.myr/

View raw version
use std
use thread

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

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