sleep-es6

0.0.2 • Public • Published

sleep-es6

Sleep with Promise

NPM version Build Status Dependency Status Coverage percentage experimental

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

Readme

Keywords

none

Package Sidebar

Install

npm i sleep-es6

Weekly Downloads

3

Version

0.0.2

License

ISC

Unpacked Size

5.95 kB

Total Files

15

Last publish

Collaborators

  • arvitaly