C# Class SpicyPixel.Threading.FiberInstruction

Represents a fiber instruction to be processed by a FiberScheduler.
Specific instructions understood by a scheduler are to be derived from this abstract type.
Show file Open project: spicypixel/concurrency-kit-cs Class Usage Examples

Public Properties

Property Type Description
Stop StopInstruction
YieldToAnyFiber YieldToAnyFiber

Protected Methods

Method Description
FiberInstruction ( ) : System

Initializes a new instance of the FiberInstruction class.

Method Details

FiberInstruction() protected method

Initializes a new instance of the FiberInstruction class.
protected FiberInstruction ( ) : System
return System

Property Details

Stop public static property

An instruction to terminate execution of the current fiber.
public static StopInstruction,SpicyPixel.Threading Stop
return StopInstruction

YieldToAnyFiber public static property

An instruction to cause the current fiber to yield to any ready fiber.
public static YieldToAnyFiber,SpicyPixel.Threading YieldToAnyFiber
return YieldToAnyFiber