Skip to content

Instantly share code, notes, and snippets.

@kelunik
Created January 23, 2018 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelunik/9574ddd07467c876175278b33539abf8 to your computer and use it in GitHub Desktop.
Save kelunik/9574ddd07467c876175278b33539abf8 to your computer and use it in GitHub Desktop.
<?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