WordPress at Your Fingertips
function is not described

ActionScheduler_AsyncRequest_QueueRunner::maybe_dispatch() public WC 1.0

If the async request runner is needed and allowed to run, dispatch a request.

{} It's a method of the class: ActionScheduler_AsyncRequest_QueueRunner{}

No Hooks.

Return

null. Nothing.

Usage

$ActionScheduler_AsyncRequest_QueueRunner = new ActionScheduler_AsyncRequest_QueueRunner();
$ActionScheduler_AsyncRequest_QueueRunner->maybe_dispatch();

Code of ActionScheduler_AsyncRequest_QueueRunner::maybe_dispatch() WC 6.1.1

public function maybe_dispatch() {
	if ( ! $this->allow() ) {
		return;
	}

	$this->dispatch();
	ActionScheduler_QueueRunner::instance()->unhook_dispatch_async_request();
}