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
Hi Wondered if you could help me. Trying to use you php-multitasking code to try and replace some processParallel code with uses pcntl_fork and keep getting defunct
addWorker(
function (WorkerInfo $info) {
echo "hello";
},
10
); // add 10 workers to the manager
$man->run(); // all workers will be executed in order, no more than 2 workes will be running at the same time
$man->wait();
i keep getting
PHP Catchable fatal error: Argument 1 passed to {closure}() must be an instance of WorkerInfo, instance of Oasis\Mlib\Multitasking\WorkerInfo given in
how do i get this to say hello 10 times.
many thanks
The text was updated successfully, but these errors were encountered:
Hi Wondered if you could help me. Trying to use you php-multitasking code to try and replace some processParallel code with uses pcntl_fork and keep getting defunct
addWorker( function (WorkerInfo $info) { echo "hello"; }, 10 ); // add 10 workers to the manager $man->run(); // all workers will be executed in order, no more than 2 workes will be running at the same time $man->wait(); i keep getting PHP Catchable fatal error: Argument 1 passed to {closure}() must be an instance of WorkerInfo, instance of Oasis\Mlib\Multitasking\WorkerInfo given in how do i get this to say hello 10 times. many thanksThe text was updated successfully, but these errors were encountered: