You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the wait option for Batcher/LiteBatcher gets reset after an item is added. IMO the naming of this + the docs (including the JSDoc comment) don't make this clear enough, but that's an aside.
I'm wanting to flush the batch based on a timer that starts as soon as the batch has an item in it. For example: if 750ms has passed since the 1st add to the current batch, execute the batch.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Currently the
waitoption forBatcher/LiteBatchergets reset after an item is added. IMO the naming of this + the docs (including the JSDoc comment) don't make this clear enough, but that's an aside.I'm wanting to flush the batch based on a timer that starts as soon as the batch has an item in it. For example: if
750ms has passed since the 1st add to the current batch, execute the batch.https://remedajs.com/docs/#funnel supports something like this via
maxBurstDurationMs(instead ofminQuietPeriodMs).All reactions