Created
January 23, 2018 18:10
-
-
Save kelunik/9574ddd07467c876175278b33539abf8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . "/vendor/autoload.php"; | |
use Amp\Promise; | |
$client = new Http\Adapter\Artax\Client; | |
$responses = Promise\wait(Promise\all([ | |
$client->sendAsyncRequest($request1); | |
$client->sendAsyncRequest($request2); | |
])); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment