https://github.com/michael-spengler/sleep
🦕 module for sleep. You can sleep for a specific amount of time or you can sleep for a random amount of time with this.
https://github.com/michael-spengler/sleep
sleep
Last synced: about 1 year ago
JSON representation
🦕 module for sleep. You can sleep for a specific amount of time or you can sleep for a random amount of time with this.
- Host: GitHub
- URL: https://github.com/michael-spengler/sleep
- Owner: michael-spengler
- Created: 2020-08-18T09:32:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-26T13:24:13.000Z (over 2 years ago)
- Last Synced: 2025-04-10T01:05:28.327Z (about 1 year ago)
- Topics: sleep
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sleep
## Usage Example
```ts
import { sleep } from "https://deno.land/x/sleep/mod.ts"
console.log('I should sleep')
await sleep(5)
console.log('Good Morning :)')
// Advanced Usage
// import { sleepRandomAmountOfSeconds } from "https://deno.land/x/sleep/mod.ts"
// console.log('I should sleep')
// await sleepRandomAmountOfSeconds(2, 4)
// console.log('Good Morning :)')
```
## Trigger Usage Example
```sh
deno run https://deno.land/x/sleep/usage-example.ts
```
## Trigger Test Execution
```sh
deno test https://deno.land/x/sleep/test.ts
```
## Donations
Thanks to [Freedom Cash](https://FreedomCash.org), we are already free.
If you want to donate, you might consider donating to the [otherparty.co.uk](https://www.otherparty.co.uk/donate-crypto-the-other-party) to ensure people do not need to donate to victims but rather donate successfully to problem solvers.
