public function connectionFromPromisedArray($dataPromise, $args = [])
    {
        $this->checkPromise($dataPromise);

        return $dataPromise->then(function ($data) use ($args) {
            return $this->connectionFromArray($data, $args);
        });
    }
public function connectionFromPromisedArray($dataPromise, $args = [])
    {
        $this->checkPromise($dataPromise);

        return $dataPromise->then(function ($data) use ($args) {
            return $this->connectionFromArray($data, $args);
        });
    }
public function connectionFromPromisedArray ( $ dataPromise , $ args = [ ] ) { $ this -> checkPromise ( $ dataPromise ) ; return $ dataPromise -> then ( function ( $ data ) use ( $ args ) { return $ this -> connectionFromArray ( $ data , $ args ) ; } ) ; }
A version of `connectionFromArray` that takes a promised array, and returns a
promised connection.

@param mixed          $dataPromise a promise
@param array|Argument $args

@return mixed a promise
A version of connectionFromArray that takes a promised array and returns a promised connection .