private function finallyResolve(PromiseInterface $promise, callable $callable, $args)
    {
        try {
            // Since we must have blocked to get to this point, we now use
            // a blocking request to resolve things once and for all.
            $promise->resolve(\call_user_func_array($callable, $args));
        } catch (\Exception $e) {
            $promise->reject($e);
        }
    }
private function finallyResolve(PromiseInterface $promise, callable $callable, $args)
    {
        try {
            // Since we must have blocked to get to this point, we now use
            // a blocking request to resolve things once and for all.
            $promise->resolve(\call_user_func_array($callable, $args));
        } catch (\Exception $e) {
            $promise->reject($e);
        }
    }
private function finallyResolve ( PromiseInterface $ promise , callable $ callable , $ args ) { try { // Since we must have blocked to get to this point, we now use // a blocking request to resolve things once and for all. $ promise -> resolve ( \ call_user_func_array ( $ callable , $ args ) ) ; } catch ( \ Exception $ e ) { $ promise -> reject ( $ e ) ; } }
Resolve or reject a promise by invoking a callable.

@param \GuzzleHttp\Promise\PromiseInterface $promise
@param callable                             $callable
@param array                                $args
Resolve or reject a promise by invoking a callable .