React\Promise\SimpleTestCancellableThenable::then PHP Метод

then() публичный Метод

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