Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Custom 'async' for better errors #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dfellis
Copy link

@dfellis dfellis commented Dec 29, 2013

Wrote a custom async.series and .parallel to improve the error handling behavior.

cc @squamos


// Write to three servers in series, stopping if any returns an error
var write123 = myRedisServers.writeTo('primary').thenTo('secondary').thenTo('tertiary');
write123.set('hello', 'world', callback);
// Gets array of objects of [err, result] arrays, keys matching server names, order of objects matching write order
// Gets error and resutl arrays of objects, keys matching server names, order of objects matching write order
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resutl -> result

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling f047e17 on custom-async-for-better-errors into dc881d3 on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling b01517f on custom-async-for-better-errors into dc881d3 on master.

@claassistantio
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


David Ellis seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants