shithub: mc

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