ActionScheduler_Abstract_QueueRunner::has_maximum_concurrent_batches()publicWC 1.0

Check if the number of allowed concurrent batches is met or exceeded.

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

Хуков нет.

Возвращает

true|false.

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

$ActionScheduler_Abstract_QueueRunner = new ActionScheduler_Abstract_QueueRunner();
$ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches();

Код ActionScheduler_Abstract_QueueRunner::has_maximum_concurrent_batches() WC 6.9.4

public function has_maximum_concurrent_batches() {
	return $this->store->get_claim_count() >= $this->get_allowed_concurrent_batches();
}