• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/http/promise.php
  • Класс: BitrixMainWebHttpPromise
  • Вызов: Promise::wait
public function wait($unwrap = true)
{
	$this->queue->wait($this);

	if ($unwrap)
	{
		if ($this->getState() == self::REJECTED)
		{
			throw $this->exception;
		}

		return $this->response;
	}

	return null;
}