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

YoastSEO_Vendor\GuzzleHttp\Promise

EachPromise::__construct() public Yoast 1.0

Configuration hash can include the following key value pairs:

  • fulfilled: (callable) Invoked when a promise fulfills. The function is invoked with three arguments: the fulfillment value, the index position from the iterable list of the promise, and the aggregate promise that manages all of the promises. The aggregate promise may be resolved from within the callback to short-circuit the promise.
  • rejected: (callable) Invoked when a promise is rejected. The function is invoked with three arguments: the rejection reason, the index position from the iterable list of the promise, and the aggregate promise that manages all of the promises. The aggregate promise may be resolved from within the callback to short-circuit the promise.
  • concurrency: (integer) Pass this configuration option to limit the allowed number of outstanding concurrently executing promises, creating a capped pool of promises. There is no limit by default.

{} Это метод класса: EachPromise{}

Хуков нет.

Возвращает

null. Ничего.

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

$EachPromise = new EachPromise();
$EachPromise->__construct( $iterable, $config );
$iterable(разное) (обязательный)
Promises or values to iterate.
$config(массив)
Configuration options
По умолчанию: []

Код EachPromise::__construct() Yoast 17.1

public function __construct($iterable, array $config = [])
{
    $this->iterable = iter_for($iterable);
    if (isset($config['concurrency'])) {
        $this->concurrency = $config['concurrency'];
    }
    if (isset($config['fulfilled'])) {
        $this->onFulfilled = $config['fulfilled'];
    }
    if (isset($config['rejected'])) {
        $this->onRejected = $config['rejected'];
    }
}