Fix example in README

This commit is contained in:
Niklas Keller 2023-02-14 22:25:56 +01:00
parent 60f2c1c976
commit 514ab54a4a
No known key found for this signature in database
GPG Key ID: AFA536ABA90C76A6

View File

@ -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