Compare commits

..

2 Commits
v1.0 ... master

Author SHA1 Message Date
80cdc65407 Add installation 2020-12-14 17:02:19 +01:00
3e4d4343be Fix error in RepeatedTask 2020-12-14 16:08:14 +01:00
2 changed files with 7 additions and 1 deletions

View File

@ -18,6 +18,12 @@ library.
## Okay, how do I use it? ## Okay, how do I use it?
Install it with [composer](https://getcomposer.org/):
```sh
$ composer require toalett/multiprocessing
```
### Structure ### Structure
The library provides a single class to manage multiprocessing: the [`Context`](src/Context.php). It The library provides a single class to manage multiprocessing: the [`Context`](src/Context.php). It

View File

@ -11,7 +11,7 @@ abstract class Task
public array $arguments; public array $arguments;
protected ?TimerInterface $timer = null; protected ?TimerInterface $timer = null;
public function __construct(callable $callable, ...$arguments) public function __construct(callable $callable, array $arguments)
{ {
$this->callable = $callable; $this->callable = $callable;
$this->arguments = $arguments; $this->arguments = $arguments;