README.md 409 B

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