shithub: mc

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