public function cancel($reason = null) { $this->getPromise(); return call_user_func($this->cancelCallback, $reason); }