Represents a job that encapsulates a task to be executed.
More...
#include <Job.h>
|
| using | Task = std::function<void()> |
|
| | Job (Task task) |
| | Constructs a Job with a given task.
|
| void | Execute () |
| | Executes the job's task.
|
Represents a job that encapsulates a task to be executed.
A job is a simple wrapper around a std::function that represents a unit of work to be executed. The task is executed via the Execute() method.
◆ Task
◆ Job()
| Raven::Job::Job |
( |
Task | task | ) |
|
|
inlineexplicit |
Constructs a Job with a given task.
- Parameters
-
| task | The task to be executed by the Job. |
◆ Execute()
| void Raven::Job::Execute |
( |
| ) |
|
|
inline |
Executes the job's task.
Calls the task that was passed during the creation of the Job.
The documentation for this class was generated from the following file:
- Engine/src/Raven/Job/Job.h