Future::reject PHP Méthode

reject() public méthode

public reject ( $reason )
    public function reject($reason)
    {
        if ($this->state === self::PENDING) {
            $this->state = self::REJECTED;
            $this->reason = $reason;
            while (count($this->subscribers) > 0) {
                $subscriber = array_shift($this->subscribers);
                $this->privateReject($subscriber['onreject'], $subscriber['next'], $reason);
            }
        }
    }

Usage Example

Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function reject($reason = null)
 {
     parent::reject($reason);
 }
All Usage Examples Of Future::reject