Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ianfabs/sleyp

A tiny async/await implementation of sleep
https://github.com/ianfabs/sleyp

async async-await await javascript miliseconds promise sleep

Last synced: 3 days ago
JSON representation

A tiny async/await implementation of sleep

Awesome Lists containing this project

README

        

# Sleyp

Sorry, `sleep` was taken.

A sleep implementation for that sweet async/await syntax

Anyway, here is an example

```js
const sleep = require('sleyp');

(async () => {
console.log("Hello,");
await sleep(3000);
console.log("World!");
})();
```