/sleyp

A tiny async/await implementation of sleep

Primary LanguageJavaScript

Sleyp

Sorry, sleep was taken.

A sleep implementation for that sweet async/await syntax

Anyway, here is an example

const sleep = require('sleyp');

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