Skip to content

jormaechea/nap-time

Repository files navigation

💤 Nap time 💤

npm version Build status Coverage status

A simple non-blocking sleep implementation

📥 Installation

npm install nap-time

💻 Usage

const { sleep, usleep } = require('nap-time');

(async () => {

	console.log('Do something');

	await sleep(1); // One second

	console.log('Do another thing');

	await usleep(500); // 500ms

	console.log('And done');

})();

About

A simple non-blocking sleep implementation

Resources

Stars

Watchers

Forks

Packages

No packages published