WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\GuzzleHttp\Promise

each_limit() Yoast 1.0

Like each, but only allows a certain number of outstanding promises at any given time.

$concurrency may be an integer or a function that accepts the number of pending promises and returns a numeric concurrency limit value to allow for dynamic a concurrency size.

Хуков нет.

Возвращает

PromiseInterface.

Использование

each_limit( $iterable, $concurrency, $onFulfilled, $onRejected );
$iterable(смешанный) (обязательный)
$concurrency(число/callable) (обязательный)
$onFulfilled(callable)

По умолчанию: null
$onRejected(callable)

По умолчанию: null

Код each_limit() Yoast 15.7

<?php
function each_limit($iterable, $concurrency, callable $onFulfilled = null, callable $onRejected = null)
{
    return (new \YoastSEO_Vendor\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected, 'concurrency' => $concurrency]))->promise();
}