8000 Cancel other promises when one of any composition got fulfilled · Issue #17 · aomader/OMPromises · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cancel other promises when one of any composition got fulfilled #17
Open
@mzaks

Description

@mzaks

When you do
[OMPromise any:@[A, B, C]];
and e.g. B is fulfilled.
Wouldn't it be cool to cancel A and C.
It's not a big deal, but users may expect such behavior, special when there is a cancel method on promises.
Same is true for progress. If we have an any concatenation, we are done (100% progress) when any of the promises is fulfilled.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0