Properties
Protected buffer
buffer: T[] = []
Protected exec
exec: ((items: T[]) => Promise<void>)
Type declaration
-
- (items: T[]): Promise<void>
-
Returns Promise<void>
Protected lastDrain
lastDrain: Promise<void> = ...
Protected size
size: number = 1000
Protected time
time: number = 0
Protected timeout
timeout: undefined | Timeout
An util for buffering arbitrary items until a size condition is fulfilled in which case an asynchronous drain method will be invoked