File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ into your traditional, synchronous (blocking) application stack.
3333### Quickstart example
3434
3535The following example code demonstrates how this library can be used along with
36- an [ async HTTP client] ( https://github.com/clue/ reactphp-buzz ) to process two
36+ an [ async HTTP client] ( https://github.com/reactphp/http#client-usage ) to process two
3737non-blocking HTTP requests and block until the first (faster) one resolves.
3838
3939``` php
@@ -44,7 +44,7 @@ function blockingExample()
4444
4545 // this example uses an HTTP client
4646 // this could be pretty much everything that binds to an event loop
47- $browser = new Clue\ React\Buzz \Browser($loop);
47+ $browser = new React\Http \Browser($loop);
4848
4949 // set up two parallel requests
5050 $request1 = $browser->get('http://www.google.com/');
@@ -128,7 +128,7 @@ will throw an `UnexpectedValueException` instead.
128128``` php
129129try {
130130 $result = Block\await($promise, $loop);
131- // promise successfully fulfilled with $value
131+ // promise successfully fulfilled with $result
132132 echo 'Result: ' . $result;
133133} catch (Exception $exception) {
134134 // promise rejected with $exception
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ function sleep($time, LoopInterface $loop)
5858 * ```php
5959 * try {
6060 * $result = Block\await($promise, $loop);
61- * // promise successfully fulfilled with $value
61+ * // promise successfully fulfilled with $result
6262 * echo 'Result: ' . $result;
6363 * } catch (Exception $exception) {
6464 * // promise rejected with $exception
You can’t perform that action at this time.
0 commit comments