Sha256: 54f7859f7d9428dda66fd66fb7ef39e65c4acca6848ffa1fa74adaffc6ae5c8f

Contents?: true

Size: 783 Bytes

Versions: 53

Compression:

Stored size: 783 Bytes

Contents

import { AsyncScheduler } from './AsyncScheduler';
export class AsapScheduler extends AsyncScheduler {
    flush(action) {
        this.active = true;
        this.scheduled = undefined;
        const { actions } = this;
        let error;
        let index = -1;
        let count = actions.length;
        action = action || actions.shift();
        do {
            if (error = action.execute(action.state, action.delay)) {
                break;
            }
        } while (++index < count && (action = actions.shift()));
        this.active = false;
        if (error) {
            while (++index < count && (action = actions.shift())) {
                action.unsubscribe();
            }
            throw error;
        }
    }
}
//# sourceMappingURL=AsapScheduler.js.map

Version data entries

53 entries across 51 versions & 5 rubygems

Version Path
reed_sdk-1.0.1 node_modules/concurrently/node_modules/rxjs/_esm2015/internal/scheduler/AsapScheduler.js
reed_sdk-1.0.0 node_modules/concurrently/node_modules/rxjs/_esm2015/internal/scheduler/AsapScheduler.js
ilog-0.4.1 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
ilog-0.4.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
ilog-0.3.3 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-18.0.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.21.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.20.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.19.1 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.19.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.18.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.17.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.16.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.15.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.14.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.13.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.12.2 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.12.1 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.12.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js
govuk_publishing_components-17.11.0 node_modules/rxjs/_esm2015/scheduler/AsapScheduler.js