Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/live/engine/core/utils.ts>SingleFlight

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
interface SingleFlight
import { type SingleFlight } from "https://deno.land/x/live@1.57.3/engine/core/utils.ts";

Properties

do: (key: string, f: () => Promise<T>) => Promise<T>

Do separates executions between "keys"

run: (f: () => Promise<T>) => Promise<T>

Run do not separate execution it is meant to be a single but deduplicated execution