CallAggregator constructor
Creates an CallAggregator instance.
The _duration
parameter specifies the time duration during which the
required number of calls should be accumulated before execution.
The _requiredCallCount
parameter sets the number of calls required to
trigger the execution of the _runnable
function.
The _runnable
parameter is a callback function that will be executed
when the required number of calls is accumulated within the specified duration.
Implementation
CallAggregator(this._duration, this._requiredCallCount, this._runnable);