WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::is_running_from_async_action_scheduler() public WC 1.0

Test whether the context of execution comes from async action scheduler. Note: this is a polyfill for wc_is_running_from_async_action_scheduler() which was introduced in WC 4.0.

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

No Hooks.

Return

true|false. Nothing.

Usage

$result = Onboarding::is_running_from_async_action_scheduler();

Code of Onboarding::is_running_from_async_action_scheduler() WC 5.3.0

<?php
public static function is_running_from_async_action_scheduler() {
	if ( function_exists( '\wc_is_running_from_async_action_scheduler' ) ) {
		return \wc_is_running_from_async_action_scheduler();
	}

	// phpcs:ignore WordPress.Security.NonceVerification.Recommended
	return isset( $_REQUEST['action'] ) && 'as_async_request_queue_runner' === $_REQUEST['action'];
}