Spaces:
Running
Running
Download node_modules/@k-l-lambda/web-editor/lib/backend/asyncCall.js from k-l-lambda/lotus: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40k-l-lambda/web-editor/lib/backend/asyncCall.js
- Command line
-
hf download hf://spaces/k-l-lambda/lotus/node_modules/@k-l-lambda/web-editor/lib/backend/asyncCall.js
-
curl -L -o asyncCall.js https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40k-l-lambda/web-editor/lib/backend/asyncCall.js
278 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| const asyncCall = (func, ...args) => new Promise((resolve, reject) => func(...args, (err, data) => { | |
| if (err) | |
| reject(err); | |
| else | |
| resolve(data); | |
| })); | |
| exports.default = asyncCall; | |