timeoutn
timeoutn is a simple library for taming timed out async work
Installation
$ npm install timeoutn
Basic Example
Here is a simple timed example. Where we call done callback before async work has finished.
var timeoutn = timedout { if err console if return console ...} timedout =
Or you could just use err passed to handle, for timed out scenario
var timeoutn = { if err return console ...}
What's it good for?
Whenever you need to be sure that something has finished, and is not staling forever. You should setup timeout expectation and respond accordingly.
Running tests
$ npm install
$ npm test
Authors
License
BSD