IntervalStreamTransformer<T> constructor

IntervalStreamTransformer<T>(
  1. Duration duration
)

Constructs a StreamTransformer which emits each item from the source Stream, after a given duration.

Implementation

IntervalStreamTransformer(Duration duration)
    : _transformer = _buildTransformer(duration);