1234567891011121314151617181920212223242526272829 |
- var abort = require('./abort.js')
- , async = require('./async.js')
- ;
- module.exports = terminator;
- function terminator(callback)
- {
- if (!Object.keys(this.jobs).length)
- {
- return;
- }
-
- this.index = this.size;
-
- abort(this);
-
- async(callback)(null, this.results);
- }
|