We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e126b58 commit 6057902Copy full SHA for 6057902
packages/utils/src/promisebuffer.ts
@@ -23,7 +23,6 @@ function allPromises<U = unknown>(collection: Array<U | PromiseLike<U>>): Promis
23
}
24
25
export interface PromiseBuffer<T> {
26
- _buffer: Array<PromiseLike<T>>;
27
add(taskProducer: () => PromiseLike<T>): PromiseLike<T>;
28
remove(task: PromiseLike<T>): PromiseLike<T>;
29
drain(timeout?: number): PromiseLike<boolean>;
@@ -110,7 +109,6 @@ export function makePromiseBuffer<T>(limit?: number): PromiseBuffer<T> {
110
109
111
112
const promiseBuffer: PromiseBuffer<T> = {
113
- _buffer: buffer,
114
add,
115
remove,
116
drain,
0 commit comments