SlidingTimeWindowReservoir constructor

SlidingTimeWindowReservoir(
  1. Duration window, [
  2. Clock clock = const Clock()
])

Creates a new SlidingTimeWindowReservoir with the given clock and duration.

Implementation

SlidingTimeWindowReservoir(
  this.window, [
  this.clock = const Clock(),
]);