YoastSEO_Vendor\GuzzleHttp\Promise
Promise::invokeWaitFn() private Yoast 1.0
{} Это метод класса: Promise{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
// private - только в коде основоного (родительского) класса $result = $this->invokeWaitFn();
Код Promise::invokeWaitFn() Promise::invokeWaitFn Yoast 15.7
private function invokeWaitFn()
{
try {
$wfn = $this->waitFn;
$this->waitFn = null;
$wfn(\true);
} catch (\Exception $reason) {
if ($this->state === self::PENDING) {
// The promise has not been resolved yet, so reject the promise
// with the exception.
$this->reject($reason);
} else {
// The promise was already resolved, so there's a problem in
// the application.
throw $reason;
}
}
}