Inherits from OGWTask : NSObject
Declared in OGWTimeTask.h

Overview

Task that finishes after a given time has passed. Finishes when the time has elapsed.

Used as base class for other duration-based tasks. Subclasses should call the super implementation when overriding the OGWTask taskDidStartWithStep: and proceedWithStep: methods.

Class Methods

waitForDuration:

Creates a new task that simply waits for a given duration (in steps) before finishing.

+ (id)waitForDuration:(GWStep)duration

Parameters

duration

The time (in steps) to wait.

Return Value

The news task.

Declared In

OGWTimeTask.h

Instance Methods

initWithDuration:

Creates a new task that simply waits for a given duration (in steps) before finishing.

- (id)initWithDuration:(GWStep)duration

Parameters

duration

The time (in steps) to wait.

Return Value

The news task.

Declared In

OGWTimeTask.h