{"_id":"after-all-results","_rev":"945491","name":"after-all-results","description":"Bundle results of async functions calls into one callback with all the results","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"time":{"modified":"2024-08-21T04:40:16.000Z","created":"2014-08-16T23:13:07.748Z","2.0.0":"2015-01-31T17:08:01.393Z","1.1.0":"2014-08-16T23:52:54.393Z","1.0.0":"2014-08-16T23:13:07.748Z"},"users":{},"author":{"name":"Thomas Watson Steen","email":"w@tson.dk"},"repository":{"type":"git","url":"https://github.com/watson/after-all-results.git"},"versions":{"2.0.0":{"name":"after-all-results","version":"2.0.0","description":"Bundle results of async functions calls into one callback with all the results","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/watson/after-all-results.git"},"keywords":["parallel","callback","async","done"],"author":{"name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","bugs":{"url":"https://github.com/watson/after-all-results/issues"},"homepage":"https://github.com/watson/after-all-results","devDependencies":{"tape":"^2.14.0"},"gitHead":"e309bfccbe9fe088db4e697b894a6beba0d2f771","_id":"after-all-results@2.0.0","_shasum":"6ac2fc202b500f88da8f4f5530cfa100f4c6a2d0","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"6ac2fc202b500f88da8f4f5530cfa100f4c6a2d0","tarball":"http://registry-npm.ywwl.com/after-all-results/download/after-all-results-2.0.0.tgz","integrity":"sha512-2zHEyuhSJOuCrmas9YV0YL/MFCWLxe1dS6k/ENhgYrb/JqyMnadLN4iIAc9kkZrbElMDyyAGH/0J18OPErOWLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKV5QPG3CcGri6gKhYtoz78NrGG8JxxsoDUww/XEZMVwIgcbFUov3QbgOWB6F0rBkd7yvLcYxDUnEimgcg/b76gco="}],"size":3059,"noattachment":false,"key":"/after-all-results/-/after-all-results-2.0.0.tgz"},"directories":{},"publish_time":1422724081393,"_cnpm_publish_time":1422724081393},"1.1.0":{"name":"after-all-results","version":"1.1.0","description":"Bundle results of async functions calls into one callback with all the results","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/watson/after-all-results.git"},"keywords":["parallel","callback","async","done"],"author":{"name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","bugs":{"url":"https://github.com/watson/after-all-results/issues"},"homepage":"https://github.com/watson/after-all-results","devDependencies":{"tape":"^2.14.0"},"gitHead":"a3a53121c28bbf0c097158fd08374ee71d50ddb6","_id":"after-all-results@1.1.0","_shasum":"da9bab33a41731ffa99b7458932b59a5e875975b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"da9bab33a41731ffa99b7458932b59a5e875975b","tarball":"http://registry-npm.ywwl.com/after-all-results/download/after-all-results-1.1.0.tgz","integrity":"sha512-6t4+kM4BUQo463UPfyMBMOfAIQppm4yDFYTvCpUIZYTl5cFYCFurgzI1fxpNhRrv9e3vJNS4nzwuWnqrmO2xSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXIIdWqlnw1tq+4hg2pCdt4huPfjwZFIxZ3+BuXVpnaAiADSa0eUrUc3dDflPXCmF2Nv9hkkjIu+eSqMOIUMx5UJw=="}],"size":3063,"noattachment":false,"key":"/after-all-results/-/after-all-results-1.1.0.tgz"},"directories":{},"publish_time":1408233174393,"_cnpm_publish_time":1408233174393},"1.0.0":{"name":"after-all-results","version":"1.0.0","description":"Bundle results of async functions calls into one callback with all the results","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/watson/after-all-results.git"},"keywords":["parallel","callback","async","done"],"author":{"name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","bugs":{"url":"https://github.com/watson/after-all-results/issues"},"homepage":"https://github.com/watson/after-all-results","devDependencies":{"tape":"^2.14.0"},"gitHead":"fe322d592874ea5b9d5f6622343ad34fb23466ed","_id":"after-all-results@1.0.0","_shasum":"f006d65feb3de1b74f96c7493930cf59df24f560","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"f006d65feb3de1b74f96c7493930cf59df24f560","tarball":"http://registry-npm.ywwl.com/after-all-results/download/after-all-results-1.0.0.tgz","integrity":"sha512-+Nyuf9fOZ2NtiK5iFGAIiPuo7QfwEzPY3u5KFbP7YwKjcb6E017h7GS+I6mS5PVok+lSE+5sk+ljOPYPorbLYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjHXMm/DkmVAxcxXK4nC684F7AmD4bxX40OyoGWaePnAiAtuZssBV7272uZ7urczWZ34OiUecpz/5mV8ZEXWLxqbw=="}],"size":2887,"noattachment":false,"key":"/after-all-results/-/after-all-results-1.0.0.tgz"},"directories":{},"publish_time":1408230787748,"_cnpm_publish_time":1408230787748}},"readme":"# after-all-results\n\nIf you have multiple async function calls that you want to run in\nparallel and collect all their results in an array, this is the module\nfor you.\n\nIt's like [after-all](https://github.com/sorribas/after-all) with a\nbuild in results aggregator.\n\n[![build status](https://secure.travis-ci.org/watson/after-all-results.png)](http://travis-ci.org/watson/after-all-results)\n\n## Installation\n\n```\nnpm install after-all-results\n```\n\n## Usage\n\nFirst require the module:\n\n```javascript\nvar afterAll = require('after-all-results');\n```\n\nThen initialize with a callback that should be called once all the async\nstuff is done:\n\n```javascript\nvar next = afterAll(function (err, results) {\n  // all done!\n  console.log(results);\n});\n```\n\nThe returned `next` function is essentially just a smart\ncallback-generator. The after-all-results module will wait and not call\nthe all-done function until all the generated callbacks have been\ncalled:\n\n```javascript\nsomeAsyncFunction(next());\nanotherAsyncFunction(next());\n```\n\n**Note:** It is important that all `next()` calls are done on the same\ntick as the inital call to `afterAll()`!\n\n### Bonus: Inception mode\n\n```javascript\nvar next = afterAll(function (err, results) {\n  // results will be an array of `arg1` from below\n  console.log('Done with everything!');\n});\n\nasync(next(function (err, arg1, arg2) {\n  console.log('Done with first call to async');\n});\n\nasync(next(function (err, arg1, arg2) {\n  console.log('Done with second call to async');\n});\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/watson/after-all-results","bugs":{"url":"https://github.com/watson/after-all-results/issues"},"license":"MIT"}