GraphQL\Tests\Executor\Root::promiseToChangeTheNumber PHP Méthode

promiseToChangeTheNumber() public méthode

public promiseToChangeTheNumber ( $newNumber ) : Promise
$newNumber
Résultat React\Promise\Promise
    public function promiseToChangeTheNumber($newNumber)
    {
        return new Promise(function (callable $resolve) use($newNumber) {
            return $resolve($this->immediatelyChangeTheNumber($newNumber));
        });
    }