SampleExtensions<T> extension
Extends the Stream class with the ability to sample events from the Stream
- on
-
- Stream<
T>
- Stream<
Methods
-
sample(
Stream sampleStream) → Stream< T> -
Available on Stream<
Emits the most recently emitted item (if any) emitted by the source Stream since the previous emission from theT> , provided by the SampleExtensions extensionsampleStream
. -
sampleTime(
Duration duration) → Stream< T> -
Available on Stream<
Emits the most recently emitted item (if any) emitted by the source Stream since the previous emission within the recurring time span, defined byT> , provided by the SampleExtensions extensionduration