Sha256: 655697b99bbf31f8f245230dbe8aea4a962558c2d1b5413b936251456a2619ad

Contents?: true

Size: 1.09 KB

Versions: 23

Compression:

Stored size: 1.09 KB

Contents

/// <reference types="node" />
import { EventEmitter } from 'events';
import * as fsScandir from '@nodelib/fs.scandir';
import Settings from '../settings';
import { Entry, Errno } from '../types';
import Reader from './reader';
declare type EntryEventCallback = (entry: Entry) => void;
declare type ErrorEventCallback = (error: Errno) => void;
declare type EndEventCallback = () => void;
export default class AsyncReader extends Reader {
    protected readonly _settings: Settings;
    protected readonly _scandir: typeof fsScandir.scandir;
    protected readonly _emitter: EventEmitter;
    private readonly _queue;
    private _isFatalError;
    private _isDestroyed;
    constructor(_root: string, _settings: Settings);
    read(): EventEmitter;
    destroy(): void;
    onEntry(callback: EntryEventCallback): void;
    onError(callback: ErrorEventCallback): void;
    onEnd(callback: EndEventCallback): void;
    private _pushToQueue;
    private _worker;
    private _handleError;
    private _handleEntry;
    private _emitEntry;
}
export {};
//# sourceMappingURL=async.d.ts.map

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-5.0.6 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-5.0.5 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-5.0.4 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-5.0.3 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-5.0.2 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-5.0.1 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.3.5 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-5.0.0 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.3.4 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.3.3 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.3.2 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.3.1 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.3 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.2.3 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.2.2 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.2.1 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.2 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.1.9 node_modules/@nodelib/fs.walk/out/readers/async.d.ts
trusty-cms-4.1.8 node_modules/@nodelib/fs.walk/out/readers/async.d.ts