ActionScheduler_WPCLI_QueueRunner::stop_the_insanity()protectedWC 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Sleep and help avoid hitting memory limit

Method of the class: ActionScheduler_WPCLI_QueueRunner{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->stop_the_insanity( $sleep_time );
$sleep_time(int)
Amount of seconds to sleep

Changelog

Deprecated since 3.0.0

ActionScheduler_WPCLI_QueueRunner::stop_the_insanity() code 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();
}