Skip to main content
Module

x/run_exclusive/mod.ts>build

⚡🔒 Wait queue for function execution 🔒 ⚡
Go to Latest
function build
import { build } from "https://deno.land/x/run_exclusive@v2.2.18/mod.ts";

Built a run-exclusive function from a function that return a promise.

Type Parameters

T extends (...input: any[]) => Promise<any>

Built a run-exclusive function from a function that return a promise.

The group ref parameter is used when in need that two or more different functions do nor run simultaneously. Group refs are created by calling createGroupRef().

Type Parameters

T extends (...input: any[]) => Promise<any>

Parameters

groupRef: GroupRef
fun: T