There was an error while loading. Please reload this page.
1 parent 8fc2292 commit 6b29b3eCopy full SHA for 6b29b3e
1 file changed
‎packages/core/src/tools/boundedBuffer.ts‎
@@ -2,12 +2,18 @@ import { removeItem } from './utils/arrayUtils'
2
3
const BUFFER_LIMIT = 500
4
5
+/**
6
+ * @deprecated Use `BufferedObservable` instead.
7
+ */
8
export interface BoundedBuffer<T = void> {
9
add: (callback: (arg: T) => void) => void
10
remove: (callback: (arg: T) => void) => void
11
drain: (arg: T) => void
12
}
13
14
15
16
17
export function createBoundedBuffer<T = void>(): BoundedBuffer<T> {
18
const buffer: Array<(arg: T) => void> = []
19
0 commit comments