Skip to content

Add support for adding a future into a dispatch group#19

Open
Adlai-Holler wants to merge 2 commits intopinterest:masterfrom
Adlai-Holler:DispatchGroup
Open

Add support for adding a future into a dispatch group#19
Adlai-Holler wants to merge 2 commits intopinterest:masterfrom
Adlai-Holler:DispatchGroup

Conversation

@Adlai-Holler
Copy link
Contributor

This can be useful when using multiple futures for one composite operation.

@rahul-malik
Copy link
Collaborator

@garrettmoon - Do you think we should merge this? Chris was requested for review but I think someone else needs to commandeer it

* leave when the future completes. If the future
* is already completed, this method has no effect.
*/
- (void)addToDispatchGroup:(dispatch_group_t)dispatchGroup;
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this is the best way to expose the composite future feature you're suggesting?

Separately, I think it would be more PINFuture-y to have this in a category and import it below?

@garrettmoon
Copy link
Contributor

No need to commandeer, I'm happy to review (sorry this took me so long to look at, my notification queue fell off the first page :( )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants