protected static function parallelize(\CharlotteDunois\Phoebe\Pool $pool, callable $function, array $args) {
        $task = new \CharlotteDunois\Phoebe\ParallelTask($function, $args);
        return $pool->submitTask($task);
    }
protected static function parallelize(\CharlotteDunois\Phoebe\Pool $pool, callable $function, array $args) {
        $task = new \CharlotteDunois\Phoebe\ParallelTask($function, $args);
        return $pool->submitTask($task);
    }
protected static function parallelize ( \ CharlotteDunois \ Phoebe \ Pool $ pool , callable $ function , array $ args ) { $ task = new \ CharlotteDunois \ Phoebe \ ParallelTask ( $ function , $ args ) ; return $ pool -> submitTask ( $ task ) ; }
Creates a parallelized function from a callable and the arguments.
@param \CharlotteDunois\Phoebe\Pool  $pool
@param callable                      $function
@param mixed[]                       $args      Must be serializable.
@return \React\Promise\PromiseInterface
@codeCoverageIgnore
Creates a parallelized function from a callable and the arguments .