classes/Tasks/BackgroundProcess.php
public function maybe_handle() {
		if ( $this->is_process_running() ) {
			// Background process already running.
			wp_die();
		}

		if ( $this->is_queue_empty() ) {
			// No data to process.
			wp_die();
		}

		check_ajax_referer( $this->identifier, 'nonce' );

		$this->handle();

		wp_die();
	}
public function maybe_handle() {
		if ( $this->is_process_running() ) {
			// Background process already running.
			wp_die();
		}

		if ( $this->is_queue_empty() ) {
			// No data to process.
			wp_die();
		}

		check_ajax_referer( $this->identifier, 'nonce' );

		$this->handle();

		wp_die();
	}
public function maybe_handle ( ) { if ( $ this -> is_process_running ( ) ) { // Background process already running. wp_die ( ) ; } if ( $ this -> is_queue_empty ( ) ) { // No data to process. wp_die ( ) ; } check_ajax_referer ( $ this -> identifier , 'nonce' ) ; $ this -> handle ( ) ; wp_die ( ) ; }
Maybe process queue

Checks whether data exists within the queue and that
the process is not already running.
Maybe process queue