Skip to main content
Module

x/run_exclusive/mod.ts

βš‘πŸ”’ Wait queue for function execution πŸ”’ ⚑
Go to Latest
import * as runExclusive from "https://deno.land/x/run_exclusive@v2.2.18/mod.ts";

Functions

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

(Read all before using)

Same as build but to restrict the exclusion to a class instance object.

(Read all before using)

Cancel all queued calls of a run-exclusive function. Note that the current running call will not be cancelled.

Return a promise that resolve when all the current queued call of a runExclusive functions have completed.

Get the number of queued call of a run-exclusive function. Note that if you call a runExclusive function and call this directly after it will return 0 as there is one function call execution ongoing but 0 queued.

Tell if a run-exclusive function has an instance of it's call currently being performed.