Skip to main content
Module

x/blocks/utils/sync.ts>once

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Very Popular
Latest
variable once
import { once } from "https://deno.land/x/blocks@1.101.14/utils/sync.ts";

Run the function only once. usage:

const runOnce = once() runOnce.do(() => new Date()) // this will return always the first value used.

type

<T>() => SyncOnce<T>