Skip to main content
Module

x/run_exclusive/mod.ts>getQueuedCallCount

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

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.

The classInstanceObject parameter is to provide only for the run-exclusive function created with 'buildMethod[Cb].

Parameters

runExclusiveFunction: Function
optional
classInstanceObject: Object

Returns

number