delayfor

1.0.1 • Public • Published

delayfor

Promise that will resolve after X ms

Usage

async function foobar() {
  ...
  await delayfor(250)
  ...
}

Could also be used as a promise

delayfor(250).then(
  () => console.log('resolved!')
)

Readme

Keywords

none

Package Sidebar

Install

npm i delayfor

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

1.48 kB

Total Files

4

Last publish

Collaborators

  • kentos