Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / _esm2015 / internal / scheduler / AnimationFrameScheduler.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameScheduler.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameScheduler.js
new file mode 100644 (file)
index 0000000..cb658cb
--- /dev/null
@@ -0,0 +1,25 @@
+import { AsyncScheduler } from './AsyncScheduler';
+export class AnimationFrameScheduler 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=AnimationFrameScheduler.js.map
\ No newline at end of file