@@ -52,7 +52,7 @@ HTTP webserver and send a large number of HTTP GET requests:
5252
5353``` php
5454$loop = React\EventLoop\Factory::create();
55- $browser = new Clue\ React\Buzz \Browser($loop);
55+ $browser = new React\Http \Browser($loop);
5656
5757// load a huge array of URLs to fetch
5858$urls = file('urls.txt');
@@ -143,13 +143,13 @@ $q = new Queue(10, null, array($browser, 'get'));
143143This library works under the assumption that you want to concurrently handle
144144async operations that use a [ Promise] ( https://github.com/reactphp/promise ) -based API.
145145
146- The demonstration purposes, the examples in this documentation use the async
147- HTTP client [ clue/reactphp-buzz ] ( https://github.com/clue/ reactphp-buzz ) , but you
146+ The demonstration purposes, the examples in this documentation use
147+ [ ReactPHP's async HTTP client] ( https://github.com/reactphp/http#client-usage ) , but you
148148may use any Promise-based API with this project. Its API can be used like this:
149149
150150``` php
151151$loop = React\EventLoop\Factory::create();
152- $browser = new Clue\ React\Buzz \Browser($loop);
152+ $browser = new React\Http \Browser($loop);
153153
154154$promise = $browser->get($url);
155155```
@@ -159,7 +159,7 @@ like this:
159159
160160``` php
161161$loop = React\EventLoop\Factory::create();
162- $browser = new Clue\ React\Buzz \Browser($loop);
162+ $browser = new React\Http \Browser($loop);
163163
164164$q = new Queue(10, null, function ($url) use ($browser) {
165165 return $browser->get($url);
@@ -270,7 +270,7 @@ resolves with the results of all jobs on success.
270270
271271``` php
272272$loop = React\EventLoop\Factory::create();
273- $browser = new Clue\ React\Buzz \Browser($loop);
273+ $browser = new React\Http \Browser($loop);
274274
275275$promise = Queue::all(3, $urls, function ($url) use ($browser) {
276276 return $browser->get($url);
@@ -347,7 +347,7 @@ to `cancel()` all outstanding jobs.
347347
348348``` php
349349$loop = React\EventLoop\Factory::create();
350- $browser = new Clue\ React\Buzz \Browser($loop);
350+ $browser = new React\Http \Browser($loop);
351351
352352$promise = Queue::any(3, $urls, function ($url) use ($browser) {
353353 return $browser->get($url);
@@ -421,7 +421,7 @@ could look something like this:
421421use Clue\React\Block;
422422
423423$loop = React\EventLoop\Factory::create();
424- $browser = new Clue\ React\Buzz \Browser($loop);
424+ $browser = new React\Http \Browser($loop);
425425
426426$promise = Queue::all(3, $urls, function ($url) use ($browser) {
427427 return $browser->get($url);
@@ -449,7 +449,7 @@ all the async details from the outside:
449449function download(array $uris)
450450{
451451 $loop = React\EventLoop\Factory::create();
452- $browser = new Clue\ React\Buzz \Browser($loop);
452+ $browser = new React\Http \Browser($loop);
453453
454454 $promise = Queue::all(3, $uris, function ($uri) use ($browser) {
455455 return $browser->get($uri);
0 commit comments