Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 310 Bytes

readme.MD

File metadata and controls

24 lines (15 loc) · 310 Bytes

await-sleep

Simple sleep with async/await

Installation

npm install --save await-sleep

Usage

import * as sleep from 'await-sleep';

async function myAsyncFunction() {
  console.time('Sleeping');

  await sleep(1500);

  console.timeEnd('Sleeping'); // Sleeping: 1507.180ms
}