Create a new Emitter
the stream that uses the Emitter to fire events
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 factory that creates data shared between StreamImpl and Emitter.