Overrides Promise::wait
public function wait($unwrap = true) { $this->promise ->wait(false); if ($unwrap) { if (self::REJECTED === $this->getState()) { throw $this->exception; } return $this->response; } }