@spudly/sleep
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@spudly/sleep

Returns a promise that resolves after a specified number of milliseconds.

Installation

npm install --save @spudly/sleep

Usage

import sleep from '@spudly/sleep';

const doSomething = async () => {
  // do some stuff
  await sleep(1000);
  // do some more stuff
};

Readme

Keywords

none

Package Sidebar

Install

npm i @spudly/sleep

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

5 kB

Total Files

10

Last publish

Collaborators

  • spudly