MCPcopy
hub / github.com/lerna/lerna / Queue

Interface Queue

libs/commands/publish/src/lib/throttle-queue.ts:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2 * A queue abstraction for tasks that may require a delayed execution
3 */
4export interface Queue {
5 /**
6 * Run a task once the queue is cleared
7 * @param f A function that will be executed once the queue is useable
8 * @return A promise that wraps the value returned by f
9 */
10 queue<T>(f: () => Promise<T>): Promise<T>;
11}
12
13/**
14 * A sized queue that adds a delay between the end of an item's execution.

Callers 2

publishPackedMethod · 0.65

Implementers 1

TailHeadQueuelibs/commands/publish/src/lib/throttle

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…