6 ms·
That's what the `window` option does (https://github.com/hackermondev/batched?tab=readme-ov-file#batched-1 https://github.com/hackermondev/batched?tab=readme-ov
by hackermondev 1y ago
That's what the `window` option does (https://github.com/hackermondev/batched?tab=readme-ov-file#batched-1 https://github.com/hackermondev/batched?tab=readme-ov-file#b...). After the first item is added to the buffer, it waits for the maximum window time, then calls the inner function with the buffer fill.