Get callback to call when the stream is closed
a close callback
Get the callback to call in the case of an error
an error callback
Get the listeners that will be attached to the stream
an object mapping event names to arrays of callback functions
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
A helper that is used to provide the values to construct a StreamImpl object. StreamImpl and Emitter share internal data. In order to prevent cyclic dependencies and visibility issues, the shared data is created and passed into the StreamImpl constructor.