{"action":"created","issue":{"url":"https://api.github.com/repos/caolan/async/issues/675","labels_url":"https://api.github.com/repos/caolan/async/issues/675/labels{/name}","comments_url":"https://api.github.com/repos/caolan/async/issues/675/comments","events_url":"https://api.github.com/repos/caolan/async/issues/675/events","html_url":"https://github.com/caolan/async/issues/675","id":50572438,"number":675,"title":"Looking for a way to not exit on async.parallel on error.","user":{"login":"reggi","id":296798,"avatar_url":"https://avatars.githubusercontent.com/u/296798?v=3","gravatar_id":"","url":"https://api.github.com/users/reggi","html_url":"https://github.com/reggi","followers_url":"https://api.github.com/users/reggi/followers","following_url":"https://api.github.com/users/reggi/following{/other_user}","gists_url":"https://api.github.com/users/reggi/gists{/gist_id}","starred_url":"https://api.github.com/users/reggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reggi/subscriptions","organizations_url":"https://api.github.com/users/reggi/orgs","repos_url":"https://api.github.com/users/reggi/repos","events_url":"https://api.github.com/users/reggi/events{/privacy}","received_events_url":"https://api.github.com/users/reggi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caolan/async/labels/feature","name":"feature","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-12-01T20:45:56Z","updated_at":"2015-11-20T15:25:15Z","closed_at":null,"body":"Majority of my most recent use-cases involve async functions that aren't dependent on each other, and so when some async function breaks up top, the rest of my code doesn't execute. Wondering if there's a simple way to do something like this without being so obtrusive to the library / so much overhead. In this case I'd like to return false on error, so I'm building an object with every property intact, if something fails everything is else is still there, and false takes the broken async functions place.\r\n\r\n```\r\nvar noError = function(func) {\r\n  return function(callback) {\r\n    func(function(err, value) {\r\n      if (err) return callback(null, false);\r\n      return callback(null, value);\r\n    });\r\n  }\r\n}\r\n\r\nvar parallelNoError = function(functions, callback) {\r\n  var newFunctions = {};\r\n  for (var func in functions) {\r\n    newFunctions[func] = noError(functions[func]);\r\n  }\r\n  return async.parallel(newFunctions, callback);\r\n}\r\n```\r\n\r\n@aearly Would love your thoughts on this one too."},"comment":{"url":"https://api.github.com/repos/caolan/async/issues/comments/158431379","html_url":"https://github.com/caolan/async/issues/675#issuecomment-158431379","issue_url":"https://api.github.com/repos/caolan/async/issues/675","id":158431379,"user":{"login":"oillescas","id":1347045,"avatar_url":"https://avatars.githubusercontent.com/u/1347045?v=3","gravatar_id":"","url":"https://api.github.com/users/oillescas","html_url":"https://github.com/oillescas","followers_url":"https://api.github.com/users/oillescas/followers","following_url":"https://api.github.com/users/oillescas/following{/other_user}","gists_url":"https://api.github.com/users/oillescas/gists{/gist_id}","starred_url":"https://api.github.com/users/oillescas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oillescas/subscriptions","organizations_url":"https://api.github.com/users/oillescas/orgs","repos_url":"https://api.github.com/users/oillescas/repos","events_url":"https://api.github.com/users/oillescas/events{/privacy}","received_events_url":"https://api.github.com/users/oillescas/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T15:25:15Z","updated_at":"2015-11-20T15:25:15Z","body":"+1"}}