Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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