Skip to content

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

Description

@xlqian

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions