{"_id":"after-all-results","_rev":"8-a2613de8212184570456a55002344a6e","name":"after-all-results","description":"Bundle results of async functions calls into one callback with all the results","dist-tags":{"latest":"2.0.0"},"versions":{"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":"https://registry.npmjs.org/after-all-results/-/after-all-results-1.0.0.tgz","integrity":"sha512-+Nyuf9fOZ2NtiK5iFGAIiPuo7QfwEzPY3u5KFbP7YwKjcb6E017h7GS+I6mS5PVok+lSE+5sk+ljOPYPorbLYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjHXMm/DkmVAxcxXK4nC684F7AmD4bxX40OyoGWaePnAiAtuZssBV7272uZ7urczWZ34OiUecpz/5mV8ZEXWLxqbw=="}]}},"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":"https://registry.npmjs.org/after-all-results/-/after-all-results-1.1.0.tgz","integrity":"sha512-6t4+kM4BUQo463UPfyMBMOfAIQppm4yDFYTvCpUIZYTl5cFYCFurgzI1fxpNhRrv9e3vJNS4nzwuWnqrmO2xSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXIIdWqlnw1tq+4hg2pCdt4huPfjwZFIxZ3+BuXVpnaAiADSa0eUrUc3dDflPXCmF2Nv9hkkjIu+eSqMOIUMx5UJw=="}]}},"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":"https://registry.npmjs.org/after-all-results/-/after-all-results-2.0.0.tgz","integrity":"sha512-2zHEyuhSJOuCrmas9YV0YL/MFCWLxe1dS6k/ENhgYrb/JqyMnadLN4iIAc9kkZrbElMDyyAGH/0J18OPErOWLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKV5QPG3CcGri6gKhYtoz78NrGG8JxxsoDUww/XEZMVwIgcbFUov3QbgOWB6F0rBkd7yvLcYxDUnEimgcg/b76gco="}]}}},"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","maintainers":[{"name":"watson","email":"w@tson.dk"}],"time":{"modified":"2022-06-13T02:30:02.755Z","created":"2014-08-16T23:13:07.748Z","1.0.0":"2014-08-16T23:13:07.748Z","1.1.0":"2014-08-16T23:52:54.393Z","2.0.0":"2015-01-31T17:08:01.393Z"},"homepage":"https://github.com/watson/after-all-results","keywords":["parallel","callback","async","done"],"repository":{"type":"git","url":"https://github.com/watson/after-all-results.git"},"author":{"name":"Thomas Watson Steen","email":"w@tson.dk"},"bugs":{"url":"https://github.com/watson/after-all-results/issues"},"license":"MIT","readmeFilename":"README.md"}