# jetformbuilder/3.6.6/modules/jobs/async-job.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 31 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/jobs/async-job.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/jobs/async-job.php
- Modified: 2024-02-01T14:15:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/jobs/async-job.php#L10-L20`.

```php
<?php


namespace JFB_Modules\Jobs;

use JFB_Modules\Jobs\Interfaces\Job_It;
use JFB_Modules\Jobs\Traits\Job_Trait;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die();
}


class Async_Job implements Job_It {

	use Job_Trait;

	public function schedule(): int {
		if ( ! function_exists( 'as_enqueue_async_action' ) ) {
			return 0;
		}

		return as_enqueue_async_action(
			$this->get_hook(),
			$this->get_args(),
			\JFB_Modules\Post_Type\Module::SLUG
		);
	}
}

```
