Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joins could not be atomic #22

Open
GregMacdonald opened this issue Apr 10, 2014 · 0 comments
Open

Joins could not be atomic #22

GregMacdonald opened this issue Apr 10, 2014 · 0 comments

Comments

@GregMacdonald
Copy link

We use joins where we are collecting a list of objects being fetched. If any fetch fails, the aggregate operation is failed and our list ends up empty, but it would be better to get the list without objects that fail.

It would be good if a join could return the good and the bad. So, maybe something like:

typedef id(^joinPromiseCallback)(NSArray *values, NSArray *errors));

  • (KSPromise *)eventually:(joinPromiseCallback)callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant