TimeoutBetweenEvents<E> class
A StreamTransformer that adds a timeout between events. If the time between two consecutive events exceeds the specified duration, a TimeoutBetweenEventsException will be added to the stream.
- Inheritance
-
- Object
- StreamTransformerBase<
E, E> - TimeoutBetweenEvents
Constructors
- TimeoutBetweenEvents({required Duration duration})
-
const
Properties
Methods
-
bind(
Stream< E> stream) → Stream<E> -
Transforms the provided
stream.override -
cast<
RS, RT> () → StreamTransformer< RS, RT> -
Provides a
StreamTransformer<RS, RT>view of this stream transformer.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited