chore: wipe legacy codebase for complete project restart
This commit is contained in:
1 parent
a90af21a8c
commit
e94410f388
11161 files changed
+1628844
-2097
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
import { type Queue, type RunFunction } from './queue.js';
|
||||
import { type QueueAddOptions } from './options.js';
|
||||
export type PriorityQueueOptions = {
|
||||
priority?: number;
|
||||
} & QueueAddOptions;
|
||||
export default class PriorityQueue implements Queue<RunFunction, PriorityQueueOptions> {
|
||||
#private;
|
||||
enqueue(run: RunFunction, options?: Partial<PriorityQueueOptions>): void;
|
||||
setPriority(id: string, priority: number): void;
|
||||
dequeue(): RunFunction | undefined;
|
||||
filter(options: Readonly<Partial<PriorityQueueOptions>>): RunFunction[];
|
||||
get size(): number;
|
||||
}
|
||||
Reference in new issue
Block a user