OGWJob Class Reference
Inherits from | NSObject |
Declared in | OGWJob.h |
Overview
A job performs a sequence of OGWTask objects. Jobs are run and managed by the OGWJobAspect.
Tasks that complete instantly will execute sequentially within the same frame, until either the job is finished or the job advanced to a task that does not finish instantly.
Tasks
Job Aspect
-
jobAspect
property
Delegate
-
delegate
property
State
-
currentTask
property -
running
property
Creating Jobs
Internal Use Only
Properties
delegate
The Job’s delegate. Must be an OGWAspect.
@property (weak) OGWAspect<OGWJobDelegate> *delegate
Return Value
The Job’s delegate. Must be an OGWAspect.
Declared In
OGWJob.h
jobAspect
Reference to the OGWJobAspect running this job. Is nil if the job isn’t running.
@property (weak) OGWJobAspect *jobAspect
Return Value
Reference to the OGWJobAspect running this job. Is nil if the job isn’t running.
Declared In
OGWJob.h
Class Methods
jobWithTasks:
Creates a new job with one or more tasks.
+ (id)jobWithTasks:(NSArray *)tasks
Parameters
- tasks
An array of OGWTask objects.
Return Value
A new job.
Declared In
OGWJob.h