GraphQL\Tests\Executor\Root::promiseToChangeTheNumber PHP Method

promiseToChangeTheNumber() public method

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