-
Notifications
You must be signed in to change notification settings - Fork 53
How to send concurrent requests? #105
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
Comments
Okay, it seems Httplug promises and |
Tested cUrl adapter, it seems this one also working with Guzzle promises (not so surprisingly). Haven't tested other one. |
glad you found a solution. the recommended way of doing this is using the HttpAsyncClient with a request, which returns you a php-http/promise . see http://docs.php-http.org/en/latest/components/promise.html (for background: there should be a PSR - or even better a PHP language level solution - for promises. a PSR once started but so far has not been released, so we had to do our own promises for php-http.) |
@dbu Any estimate when the "own promises for php-http" could actually happen? Is there a related issue that I can follow? |
not sure i understand the question. the doc i linked explains how to use the php-http promises. they exist already, so nothing needs to "actually happen" ;-) for the btw, i noticed that there is another section in the doc on sending asynchronous requests: http://docs.php-http.org/en/latest/httplug/tutorial.html#using-an-asynchronous-client |
Is there a way to send concurrent requests and wait for their results in a same way as Guzzle supports?
Ex.: Load entities by ids in a function from on API that can only load entities one by one.
(#7 Might be related to this question.)
The text was updated successfully, but these errors were encountered: