C# Class CielaSpike.Task

Represents an async task.
Inheritance: IEnumerator
Show file Open project: DiUS/3DiUS Class Usage Examples

Public Methods

Method Description
Cancel ( ) : void

Cancel the task till next iteration;

MoveNext ( ) : bool

Runs next iteration.

Reset ( ) : void
Task ( IEnumerator routine ) : UnityEngine
Wait ( ) : IEnumerator

A co-routine that waits the task.

Private Methods

Method Description
BackgroundRunner ( object state ) : void
GotoState ( RunningState state ) : void
MoveNextAsync ( ) : void
MoveNextUnity ( ) : void
OnMoveNext ( ) : bool
SetPendingCurrentObject ( object current ) : void

Method Details

Cancel() public method

Cancel the task till next iteration;
public Cancel ( ) : void
return void

MoveNext() public method

Runs next iteration.
public MoveNext ( ) : bool
return bool

Reset() public method

public Reset ( ) : void
return void

Task() public method

public Task ( IEnumerator routine ) : UnityEngine
routine IEnumerator
return UnityEngine

Wait() public method

A co-routine that waits the task.
public Wait ( ) : IEnumerator
return IEnumerator