Module

x/live/utils/sync.ts>once

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
variable once
import { once } from "https://dotland.deno.dev/x/live@1.63.12/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>