import { once } from "https://deno.land/x/blocks@1.59.3/utils/sync.ts";
Run the function only once. usage:
const runOnce = once() runOnce.do(() => new Date()) // this will return always the first value used.
import { once } from "https://deno.land/x/blocks@1.59.3/utils/sync.ts";
Run the function only once. usage:
const runOnce = once() runOnce.do(() => new Date()) // this will return always the first value used.