shithub: mc

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