import { runVal } from "https://esm.town/v/std/runVal";
export let limitedVal = (async () => {
const limit = await runVal("rlimit.limit", {
max: 100,
interval: "10s",
cost: 5,
});
if (!limit.ok) {
throw new Error("limit reached");
}
console.log("limit ok", limit);
})();