summaryrefslogtreecommitdiff
path: root/node_modules/jest-worker/build/PriorityQueue.d.ts
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-11-05 17:23:37 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-11-05 17:23:37 +0800
commit2cdf0cb352ab6a2d0f8cb25120e4ebc92c5316e3 (patch)
tree6b088c99810bd013f17b80522c936ca6dfc09858 /node_modules/jest-worker/build/PriorityQueue.d.ts
parentf8ee6ef722e6c560c4a1c879e04dbdf0b01f0316 (diff)
removed autoprefix hover as it will have a high chance of making hover stopped working
Diffstat (limited to 'node_modules/jest-worker/build/PriorityQueue.d.ts')
-rw-r--r--node_modules/jest-worker/build/PriorityQueue.d.ts41
1 files changed, 0 insertions, 41 deletions
diff --git a/node_modules/jest-worker/build/PriorityQueue.d.ts b/node_modules/jest-worker/build/PriorityQueue.d.ts
deleted file mode 100644
index d6bcf4cf..00000000
--- a/node_modules/jest-worker/build/PriorityQueue.d.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-import type { QueueChildMessage, TaskQueue } from './types';
-export declare type ComputeTaskPriorityCallback = (method: string, ...args: Array<unknown>) => number;
-declare type QueueItem = {
- task: QueueChildMessage;
- priority: number;
-};
-/**
- * Priority queue that processes tasks in natural ordering (lower priority first)
- * accoridng to the priority computed by the function passed in the constructor.
- *
- * FIFO ordering isn't guaranteed for tasks with the same priority.
- *
- * Worker specific tasks with the same priority as a non-worker specific task
- * are always processed first.
- */
-export default class PriorityQueue implements TaskQueue {
- private _computePriority;
- private _queue;
- private _sharedQueue;
- constructor(_computePriority: ComputeTaskPriorityCallback);
- enqueue(task: QueueChildMessage, workerId?: number): void;
- _enqueue(task: QueueChildMessage, queue: MinHeap<QueueItem>): void;
- dequeue(workerId: number): QueueChildMessage | null;
- _getWorkerQueue(workerId: number): MinHeap<QueueItem>;
-}
-declare type HeapItem = {
- priority: number;
-};
-declare class MinHeap<TItem extends HeapItem> {
- private _heap;
- peek(): TItem | null;
- add(item: TItem): void;
- poll(): TItem | null;
-}
-export {};