Skip to content

Joins could not be atomic #22

@GregMacdonald

Description

@GregMacdonald

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions