Kraken\Promise\PromiseInterface::isRejected PHP Method

isRejected() public method

Check if Promise is rejected.
public isRejected ( ) : boolean
return boolean
    public function isRejected();

Usage Example

Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function isRejected()
 {
     return !$this->isPending() && $this->result->isRejected();
 }