1.0.0 • Published 6 years ago

@dkh-dev/sleep v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

sleep

Sleeps for some time

Installation

npm install @dkh-dev/sleep

Example

'use strict'

const sleep = require('@dkh-dev/sleep')

const main = async () => {
  // const data = await request()

  // sleeps for 1s
  await sleep(1000)
}

main()
1.0.0

6 years ago