Created
March 5, 2018 16:48
-
-
Save kelunik/a44236c2ab82dabf204c303cd7ad4d0a 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"; | |
$http = new Amp\Artax\Client; | |
$promises = [ | |
async $http->request("https://google.com/"), | |
async $http->request("https://stackoverflow.com/"), | |
]; | |
$responses = await $promises; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment