Spaces:
Running
Running
Download src/lib/sleep.ts from Joshleeave/AIComicFactory.org: direct link, hf CLI and curl.
- Browser
- Download file 150 Bytes
-
https://huggingface.co/spaces/Joshleeave/AIComicFactory.org/resolve/main/src/lib/sleep.ts
- Command line
-
hf download hf://spaces/Joshleeave/AIComicFactory.org/src/lib/sleep.ts
-
curl -L -o sleep.ts https://huggingface.co/spaces/Joshleeave/AIComicFactory.org/resolve/main/src/lib/sleep.ts
150 Bytes
| export const sleep = async (durationInMs: number) => | |
| new Promise((resolve) => { | |
| setTimeout(() => { | |
| resolve(true) | |
| }, durationInMs) | |
| }) |