SpicyPixel.Threading.UnityFiberInstruction Class Reference

Represents a fiber instruction to be processed by a FiberScheduler. More...

+ Collaboration diagram for SpicyPixel.Threading.UnityFiberInstruction:

Static Public Member Functions

static FiberInstruction WaitForSeconds (float seconds)
 Convenience coroutine to send a WaitForSeconds instruction to the scheduler. More...
 

Static Public Attributes

static FiberInstruction WaitForFixedUpdate = new ObjectInstruction(new UnityEngine.WaitForFixedUpdate())
 Convenience coroutine to send a WaitForFixedUpdate instruction to the scheduler. More...
 
static FiberInstruction WaitForEndOfFrame = new ObjectInstruction(new UnityEngine.WaitForEndOfFrame())
 Convenience coroutine to send a WaitForEndOfFrame instruction to the scheduler. More...
 

Detailed Description

Represents a fiber instruction to be processed by a FiberScheduler.

Specific instructions understood by a scheduler are to be derived from this abstract type.

See also
YieldForSeconds, YieldToAnyFiber, YieldToFiber, YieldUntilComplete

Definition at line 43 of file UnityFiberInstruction.cs.

Member Function Documentation

static FiberInstruction SpicyPixel.Threading.UnityFiberInstruction.WaitForSeconds ( float  seconds)
static

Convenience coroutine to send a WaitForSeconds instruction to the scheduler.

Returns
A WaitForSeconds instruction for a UnityFiberScheduler.
Parameters
secondsThe seconds to wait.

Definition at line 54 of file UnityFiberInstruction.cs.

Member Data Documentation

FiberInstruction SpicyPixel.Threading.UnityFiberInstruction.WaitForEndOfFrame = new ObjectInstruction(new UnityEngine.WaitForEndOfFrame())
static

Convenience coroutine to send a WaitForEndOfFrame instruction to the scheduler.

Returns
A WaitForEndOfFrame instruction for a UnityFiberScheduler.

Definition at line 73 of file UnityFiberInstruction.cs.

FiberInstruction SpicyPixel.Threading.UnityFiberInstruction.WaitForFixedUpdate = new ObjectInstruction(new UnityEngine.WaitForFixedUpdate())
static

Convenience coroutine to send a WaitForFixedUpdate instruction to the scheduler.

Returns
A WaitForFixedUpdate instruction for a UnityFiberScheduler.

Definition at line 65 of file UnityFiberInstruction.cs.


The documentation for this class was generated from the following file: