Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
Artax replaced with http-client.
  • Loading branch information
michalzielanski committed Aug 27, 2020
1 parent 8612330 commit c67ee17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Expand Up @@ -43,7 +43,7 @@ foreach ($responses as $url => $response) {
```

[`file_get_contents`](https://secure.php.net/file_get_contents) is just used as an example for a blocking function here.
If you just want to fetch multiple HTTP resources concurrently, it's better to use [Artax](https://amphp.org/artax/), our non-blocking HTTP client.
If you just want to fetch multiple HTTP resources concurrently, it's better to use [http-client](https://amphp.org/http-client/), our non-blocking HTTP client.

The functions you call must be predefined or autoloadable by Composer so they also exist in the worker processes.
Instead of simple callables, you can also [enqueue `Task` instances](./workers#task) with `Amp\Parallel\Worker\enqueue()`.
Instead of simple callables, you can also [enqueue `Task` instances](./workers#task) with `Amp\Parallel\Worker\enqueue()`.

0 comments on commit c67ee17

Please sign in to comment.