Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

co-timer

hallas2MIT0.0.1

Generator based timeout

readme

This is a small generated based timer library. It allows you to yield to wait for a timeout. If you want to learn about generators, see the article Working with Koa and Generators.

Installation

$ npm install co-timer

Usage

co(function* () {
  yield timer(3000);
})();

License

MIT