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

Add concurrent loading of multiple resources #30

Open
matryer opened this issue Feb 6, 2014 · 5 comments
Open

Add concurrent loading of multiple resources #30

matryer opened this issue Feb 6, 2014 · 5 comments

Comments

@matryer
Copy link
Member

matryer commented Feb 6, 2014

No description provided.

matryer pushed a commit that referenced this issue Feb 6, 2014
@mazondo
Copy link
Contributor

mazondo commented Feb 28, 2014

What's this do? Should it be a plugin?

@matryer
Copy link
Member Author

matryer commented Mar 3, 2014

Let’s you load 100 pages by firing off 10 requests at a time… stitches the responses back together after.

Mat

On Feb 28, 2014, at 4:01 PM, Ryan [email protected] wrote:

What's this do? Should it be a plugin?


Reply to this email directly or view it on GitHub.

@mazondo
Copy link
Contributor

mazondo commented Mar 9, 2014

That's pretty cool. Maybe you could do something like

stretchr.at("path/here").all({
  each: function(response) {
    //things that happen for each response
  },
  success: function(response) {
    //things that happen when done and merged together
  }
})

@mazondo
Copy link
Contributor

mazondo commented Mar 9, 2014

I suppose the question would be: Does the output of each impact the merged results at all, or does it just let you get a jumpstart on results as they're coming in.

@matryer
Copy link
Member Author

matryer commented Mar 10, 2014

Love that.

Could even be:

{
  each: function(response, total, countSoFar) {}
}

Would make building progress bars very easy.

On Mar 9, 2014, at 1:07 PM, Ryan [email protected] wrote:

That's pretty cool. Maybe you could do something like

stretchr.at("path/here").all({
each: function(response) {
//things that happen for each response
},
success: function(response) {
//things that happen when done and merged together
}
})

Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants