classes/Tasks/AsyncRequest.php
public function dispatch() {
		$url  = add_query_arg( $this->get_query_args(), $this->get_query_url() );
		$args = $this->get_post_args();

		Logger::info( "Background dispatching $url", $args);

		$rawUrl = esc_url_raw( $url );
		Logger::info("Async call to $rawUrl", ['args' => $args]);
		$result = wp_remote_post( $rawUrl, $args );
		Logger::info("Async call complete.", ['url' => $rawUrl, 'result'=>$result]);
		return $result;
	}
public function dispatch() {
		$url  = add_query_arg( $this->get_query_args(), $this->get_query_url() );
		$args = $this->get_post_args();

		Logger::info( "Background dispatching $url", $args);

		$rawUrl = esc_url_raw( $url );
		Logger::info("Async call to $rawUrl", ['args' => $args]);
		$result = wp_remote_post( $rawUrl, $args );
		Logger::info("Async call complete.", ['url' => $rawUrl, 'result'=>$result]);
		return $result;
	}
public function dispatch ( ) { $ url = add_query_arg ( $ this -> get_query_args ( ) , $ this -> get_query_url ( ) ) ; $ args = $ this -> get_post_args ( ) ; Logger :: info ( "Background dispatching $url" , $ args ) ; $ rawUrl = esc_url_raw ( $ url ) ; Logger :: info ( "Async call to $rawUrl" , [ 'args' => $ args ] ) ; $ result = wp_remote_post ( $ rawUrl , $ args ) ; Logger :: info ( "Async call complete." , [ 'url' => $ rawUrl , 'result' => $ result ] ) ; return $ result ; }
Dispatch the async request

@return array|WP_Error
Dispatch the async request