ko-sleep
a promise just sleep Zzzz...
Last updated 8 years ago by alsotang .
MIT · Repository · Bugs · Original npm
$ cnpm install ko-sleep 
SYNC missed versions from official npm registry.

ko-sleep

Build Status

usage

sleep(time)

time - millisecond number, or '1s' which https://www.npmjs.com/package/ms support

example

  it('should sleep', function * () {
    var start = new Date();
    yield sleep(30);
    (new Date - start).should.aboveOrEqual(30)
  })

license

MIT

Current Tags

  • 1.0.3                                ...           latest (8 years ago)

1 Versions

  • 1.0.3                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
  • ms ^2.0.0
Dev Dependencies (3)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org