Kraken\Promise\PromiseInterface::isCancelled PHP Method

isCancelled() public method

Check if Promise is cancelled.
public isCancelled ( ) : boolean
return boolean
    public function isCancelled();

Usage Example

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