0.0.2 • Published 7 years ago
sleep-es6 v0.0.2
sleep-es6
Sleep with Promise
Install
npm install sleep-es6 --save
or
yarn add sleep-es6
Usage
import { sleep } from "sleep-es6";
sleep(1000).then(()=>console.log("after 1000ms"));
API
function sleep(timeout: number): Promise<void>;
Test
npm install
npm test