tpunt / pht

A new threading extension for PHP
BSD 3-Clause "New" or "Revised" License
179 stars 14 forks source link

no work at laravel artisan command #2

Open hare2011 opened 6 years ago

hare2011 commented 6 years ago
1
       `$thread_col[$index]= new Thread();
        $thread_col[$index]->addFunctionTask(function($url){print_r($url);},$primaryUrl);
        $thread_col[$index]->start();`

after invoke the start() method, but the task closure function no run.