parallel
parallel copied to clipboard
not get response from call a user function
I'am not getting response from user define methods . is there any way to get response to hit user method and get response...
getSum(2,2), $this->getDivsion(2,2), $this->getMultipel(2,2) ]; $promises = []; foreach ($funs as $fun) { $promises[] = Worker\enqueueCallable('call_user_func',$fun); } $responses = Promise\wait(Promise\all($promises)); foreach ($responses as $key => $response) { \printf($response, $key); } } }