Codebase list php-react-promise / upstream/2.5.1 src / ExtendedPromiseInterface.php
upstream/2.5.1

Tree @upstream/2.5.1 (Download .tar.gz)

ExtendedPromiseInterface.php @upstream/2.5.1raw · history · blame

<?php

namespace React\Promise;

interface ExtendedPromiseInterface extends PromiseInterface
{
    /**
     * @return void
     */
    public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null);

    /**
     * @return ExtendedPromiseInterface
     */
    public function otherwise(callable $onRejected);

    /**
     * @return ExtendedPromiseInterface
     */
    public function always(callable $onFulfilledOrRejected);

    /**
     * @return ExtendedPromiseInterface
     */
    public function progress(callable $onProgress);
}