Quantumbraid's picture
download
raw
942 Bytes
import { AsyncScheduler } from './AsyncScheduler';
export class AnimationFrameScheduler extends AsyncScheduler {
flush(action) {
this._active = true;
let flushId;
if (action) {
flushId = action.id;
}
else {
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=AnimationFrameScheduler.js.map

Xet Storage Details

Size:
942 Bytes
·
Xet hash:
269beab5b0eedc265d9e47634ae87632d1102b507c17a9b7672911675beda2ea

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