YoastSEO_Vendor\GuzzleHttp\Promise
Promise::wait() public Yoast 1.0
{} Это метод класса: Promise{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$Promise = new Promise(); $Promise->wait( $unwrap );
Код Promise::wait() Promise::wait Yoast 15.6.2
public function wait($unwrap = \true)
{
$this->waitIfPending();
$inner = $this->result instanceof \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface ? $this->result->wait($unwrap) : $this->result;
if ($unwrap) {
if ($this->result instanceof \YoastSEO_Vendor\GuzzleHttp\Promise\PromiseInterface || $this->state === self::FULFILLED) {
return $inner;
} else {
// It's rejected so "unwrap" and throw an exception.
throw exception_for($inner);
}
}
}