caolan / async

Async utilities for node and the browser
http://caolan.github.io/async/
MIT License
28.15k stars 2.41k forks source link

Cargo minimum payload size #1976

Open gsouf opened 1 month ago

gsouf commented 1 month ago

Hi,

I'm trying to use a cargo queue to batch my tasks in parallel, it works well but I noticed that the cargo will trigger the worker as soon as possible, even if the payload size is not reached.

Is there a way to wait for the payload to have reached a desired minimum size before triggering the worker, and the last batch will be triggered manually ?

Thanks