Skip to content

Commit 07ee773

Browse files
committed
Update README to reactphp/http v1.0.0
1 parent 81c03f7 commit 07ee773

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ into your traditional, synchronous (blocking) application stack.
3333
### Quickstart example
3434

3535
The 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
3737
non-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
129129
try {
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

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)