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