Function to batch the inputs across multiple calls
Optional
disregardExecutionTime?: booleanSee debounce
for more information
Function to be wrapped
Interval between each batched call
Optional
unbatch?: (inputs: Parameters<TFn>[], output: AwaitRet<TFn>) => AwaitRet<TFn>[]If provided, unbatch the output according to the inputs, so each call receives its own output.
By default, each input will receive the same output from the batched call
Options to construct a
batch
function