mirror of
https://github.com/amphp/parallel.git
synced 2025-01-17 12:48:34 +01:00
Fix example in README
This commit is contained in:
parent
60f2c1c976
commit
514ab54a4a
@ -40,7 +40,7 @@ $executions = [];
|
||||
foreach ($urls as $url) {
|
||||
// FetchTask is just an example, you'll have to implement
|
||||
// the Task interface for your task.
|
||||
$executions[$url] = Worker\submit(new FetchTask, $url);
|
||||
$executions[$url] = Worker\submit(new FetchTask($url));
|
||||
}
|
||||
|
||||
// Each submission returns an Execution instance to allow two-way
|
||||
|
Loading…
x
Reference in New Issue
Block a user