The event emitter to convert
The name of the event that emits data (default: 'data')
The name of the event that signals completion (default: 'end')
The name of the event that signals an error (default: 'error')
An async iterable that yields data from the event emitter
Converts an event emitter to an async iterable.