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 cgPitt,
I reproduced your code with a little modif in foreach loop..
But had that my $manager->tick() always result false without PHP error..
Result true on single addTask..
Did I had something wrong here? I used php70 version.
use AsyncPHP\Doorman\Manager\ProcessManager;
use AsyncPHP\Doorman\Task\ProcessCallbackTask;
$manager = new ProcessManager();
foreach($jobs as $job){
$manager->addTask(new ProcessCallbackTask(function()use($job){
doingJob($job);
}));
}
$manager>addRule($rule);
echo $manager->tick();
Regards,
The text was updated successfully, but these errors were encountered:
Hi cgPitt,
I reproduced your code with a little modif in foreach loop..
But had that my $manager->tick() always result false without PHP error..
Result true on single addTask..
Did I had something wrong here? I used php70 version.
use AsyncPHP\Doorman\Manager\ProcessManager;
use AsyncPHP\Doorman\Task\ProcessCallbackTask;
$manager = new ProcessManager();
foreach($jobs as $job){
$manager->addTask(new ProcessCallbackTask(function()use($job){
doingJob($job);
}));
}
$manager>addRule($rule);
echo $manager->tick();
Regards,
The text was updated successfully, but these errors were encountered: