@socketsecurity/sdk 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,27 +9,27 @@ export declare class PromiseQueue {
9
9
  * @param maxQueueLength - Maximum queue size (older tasks are dropped if exceeded)
10
10
  */
11
11
  constructor(maxConcurrency: number, maxQueueLength?: number | undefined);
12
+ private runNext;
13
+ /**
14
+ * Get the number of tasks currently running
15
+ */
16
+ get activeCount(): number;
12
17
  /**
13
18
  * Add a task to the queue
14
19
  * @param fn - Async function to execute
15
20
  * @returns Promise that resolves with the function's result
16
21
  */
17
22
  add<T>(fn: () => Promise<T>): Promise<T>;
18
- private runNext;
19
23
  /**
20
- * Wait for all queued and running tasks to complete
24
+ * Clear all pending tasks from the queue (does not affect running tasks)
21
25
  */
22
- onIdle(): Promise<void>;
26
+ clear(): void;
23
27
  /**
24
- * Get the number of tasks currently running
28
+ * Wait for all queued and running tasks to complete
25
29
  */
26
- get activeCount(): number;
30
+ onIdle(): Promise<void>;
27
31
  /**
28
32
  * Get the number of tasks waiting in the queue
29
33
  */
30
34
  get pendingCount(): number;
31
- /**
32
- * Clear all pending tasks from the queue (does not affect running tasks)
33
- */
34
- clear(): void;
35
35
  }