you should extend the `\Jenner\SimpleFork\Process` and overwrite the run method
https://github.com/huyanping/simple-fork-php/blob/4af8f61b283a612492ca9ab790472309ce681156/src/FixedPool.php#L34
Attempt to run process, constructed with Runnable, cause exeception "you should extend the \Jenner\SimpleFork\Process and overwrite the run method" from FixedPool::execute()
Had the same problem.
I did what I was told and created an extension like this:
class JobRunner extends \Jenner\SimpleFork\Process { function __construct($job) { parent::__construct($job); } }
Then use this class instead:
$pool->execute(new JobRunner(new OneJob())
Don't know what this is good for but it works....
Thanks. I have been too busy. If possible can you create a pull request?