isRejected() public method

Check if Promise is rejected.
public isRejected ( ) : boolean
return boolean
Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function isRejected()
 {
     return !$this->isPending() && $this->result->isRejected();
 }