React\Promise\SimpleTestCancellableThenable::then PHP Méthode

then() public méthode

public then ( callable $onFulfilled = null, callable $onRejected = null )
$onFulfilled callable
$onRejected callable
    public function then(callable $onFulfilled = null, callable $onRejected = null)
    {
        return new self();
    }
SimpleTestCancellableThenable