shithub: mc

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