Type alias EventHandler<K>
Event
Handler
<K>: { onData
: ((event
: ProviderEventData<K>) => Promise<boolean>); onEnd
: ((eof
: boolean) => void); queue
: PromiseQueue; state
: { eof
: boolean; finished
: boolean; }; }
Type declaration
-
onData: ((event: ProviderEventData<K>) => Promise<boolean>)
-
onEnd: ((eof: boolean) => void)
-
- (eof: boolean): void
-
Returns void
-
-
state: {
eof: boolean;
finished: boolean;
}
-
eof: boolean
-
finished: boolean