ActionScheduler_WPCLI_QueueRunner::stop_the_insanity()protectedWC 1.0

Устарела с версии 3.0.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Sleep and help avoid hitting memory limit

Метод класса: ActionScheduler_WPCLI_QueueRunner{}

Хуков нет.

Возвращает

null. Ничего (null).

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->stop_the_insanity( $sleep_time );
$sleep_time(int)
Amount of seconds to sleep

Список изменений

Устарела с 3.0.0

Код ActionScheduler_WPCLI_QueueRunner::stop_the_insanity() WC 8.7.0

protected function stop_the_insanity( $sleep_time = 0 ) {
	_deprecated_function( 'ActionScheduler_WPCLI_QueueRunner::stop_the_insanity', '3.0.0', 'ActionScheduler_DataController::free_memory' );

	ActionScheduler_DataController::free_memory();
}