EventHandler<K>: {
    onData: ((event: ProviderEventData<K>) => Promise<boolean>);
    onEnd: ((eof: boolean) => void);
    queue: PromiseQueue;
    state: {
        eof: boolean;
        finished: boolean;
    };
}

Type Parameters

Type declaration

  • onData: ((event: ProviderEventData<K>) => Promise<boolean>)
  • onEnd: ((eof: boolean) => void)
      • (eof: boolean): void
      • Parameters

        • eof: boolean

        Returns void

  • queue: PromiseQueue
  • state: {
        eof: boolean;
        finished: boolean;
    }
    • eof: boolean
    • finished: boolean