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