An interface that abstracts creation or handling of Stream events.
- Implements
-
- Sink<T>
- Implemented by
Constructors
Methods
-
add(
T event) → void -
Send a data event to a stream.
-
addError(
errorEvent, [StackTrace stackTrace]) → void -
Send an async error to a stream.
-
close(
) → void -
Close the sink. No further events can be added after closing.