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

Questions: Is there a way to gather results return by promises passed into a barrier? #11

Open
xlqian opened this issue Mar 20, 2017 · 0 comments

Comments

@xlqian
Copy link

xlqian commented Mar 20, 2017

I'd like to gather results returned by promises that are passed into a barrier, I imagined an interface like this:

        p1 = http.Request('http://a')
        p2 = http.Request('http://b')
        p3 = http.Request('http://c')
        requests = [p1, p2, p3]
        def gather_results(*res): # 
            pass  # all requests complete
        b = barrier(requests).then(gather_results)

Can this be achieved by using the current interface?

Thank you very much

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