Quantumbraid's picture
download
raw
809 Bytes
import { AsyncScheduler } from './AsyncScheduler';
export class AsapScheduler extends AsyncScheduler {
flush(action) {
this._active = true;
const flushId = this._scheduled;
this._scheduled = undefined;
const { actions } = this;
let error;
action = action || actions.shift();
do {
if ((error = action.execute(action.state, action.delay))) {
break;
}
} while ((action = actions[0]) && action.id === flushId && actions.shift());
this._active = false;
if (error) {
while ((action = actions[0]) && action.id === flushId && actions.shift()) {
action.unsubscribe();
}
throw error;
}
}
}
//# sourceMappingURL=AsapScheduler.js.map

Xet Storage Details

Size:
809 Bytes
·
Xet hash:
a0360b389fcf969431bb555a2e6b0119abc600b371d79c276c8462c36eb93cae

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.