TenantAtlas/apps/platform/.pnpm-store/v10/files/b0/943b2fe286794cfaeba3745009e4544434c31e7fcee8477279524b03fa7f1d9d2c3594615a8c64d60810d609cc38fe8f2590066ad6aefc5dba908b20bb666b
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

30 lines
942 B
Plaintext

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