An interface that abstracts creation or handling of Stream events.

Implements
Implemented by

Constructors

EventSink()

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.