Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's what the `window` option does (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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: