shithub: mc

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