asyncdelay

1.0.0 • Public • Published

asyncdelay

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

let asink = require('asink')
let asyncDelay = require('asyncdelay')
 
return asink(function *() {
  yield asyncDelay(1) // 1 ms
  yield asyncDelay(10) // 10 ms
}, this)

Readme

Keywords

none

Package Sidebar

Install

npm i asyncdelay

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ryanxcharles