Await Sleep Save

Delay with async/await

Project README

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
}

Open Source Agenda is not affiliated with "Await Sleep" Project. README Source: sorenlouv/await-sleep
Stars
39
Open Issues
0
Last Commit
2 years ago

Open Source Agenda Badge

Open Source Agenda Rating