Spaces:
Running
Running
Download node_modules/next/dist/server/lib/async-callback-set.js from cafe3310/ling-open-studio: direct link, hf CLI and curl.
- Browser
- Download file 733 Bytes
-
https://huggingface.co/spaces/cafe3310/ling-open-studio/resolve/main/node_modules/next/dist/server/lib/async-callback-set.js
- Command line
-
hf download hf://spaces/cafe3310/ling-open-studio/node_modules/next/dist/server/lib/async-callback-set.js
-
curl -L -o async-callback-set.js https://huggingface.co/spaces/cafe3310/ling-open-studio/resolve/main/node_modules/next/dist/server/lib/async-callback-set.js
733 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| Object.defineProperty(exports, "AsyncCallbackSet", { | |
| enumerable: true, | |
| get: function() { | |
| return AsyncCallbackSet; | |
| } | |
| }); | |
| class AsyncCallbackSet { | |
| add(callback) { | |
| this.callbacks.push(callback); | |
| } | |
| async runAll() { | |
| if (!this.callbacks.length) { | |
| return; | |
| } | |
| const callbacks = this.callbacks; | |
| this.callbacks = []; | |
| await Promise.allSettled(callbacks.map(// NOTE: wrapped in an async function to protect against synchronous exceptions | |
| async (f)=>f())); | |
| } | |
| constructor(){ | |
| this.callbacks = []; | |
| } | |
| } | |
| //# sourceMappingURL=async-callback-set.js.map |