コード例 #1
0
ファイル: ThenResolver.php プロジェクト: cubiche/cubiche
 /**
  * {@inheritdoc}
  */
 public function reject($reason = null)
 {
     try {
         parent::reject($reason);
     } catch (\Exception $e) {
         $reason = $e;
     }
     $this->deferred->reject($reason);
 }
コード例 #2
0
ファイル: DoneResolver.php プロジェクト: cubiche/cubiche
 /**
  * @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
ファイル: Deferred.php プロジェクト: cubiche/cubiche
 /**
  * {@inheritdoc}
  */
 public function notify($state = null)
 {
     $this->promise();
     parent::notify($state);
 }