You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt to run process, constructed with Runnable, cause exeception "you should extend the \Jenner\SimpleFork\Process and overwrite the run method" from FixedPool::execute()
The text was updated successfully, but these errors were encountered:
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....
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()The text was updated successfully, but these errors were encountered: