private function succeed() { $this->promisor->succeed(); if ($this->writeWatcher) { \Amp\cancel($this->writeWatcher); } }