예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function reject($reason = null)
 {
     try {
         parent::reject($reason);
     } catch (\Exception $e) {
         $reason = $e;
     }
     $this->deferred->reject($reason);
 }
예제 #2
0
 /**
  * @param callable $onFulfilled
  * @param callable $onRejected
  * @param callable $onNotify
  */
 public function __construct(callable $onFulfilled = null, callable $onRejected = null, callable $onNotify = null)
 {
     parent::__construct($onFulfilled, $onRejected, $onNotify);
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function notify($state = null)
 {
     $this->promise();
     parent::notify($state);
 }