C# Class SpicyPixel.Threading.Tasks.UnityTaskExtensions

Extends MonoBehaviour to support FiberTaskScheduler.
显示文件 Open project: spicypixel/concurrency-kit-cs

Public Methods

Method Description
CreateFiberFactory ( this behaviour ) : FiberFactory

Creates a fiber factory using a FiberScheduler initialized with the MonoBehaviour.

CreateFiberScheduler ( this behaviour ) : FiberScheduler

Creates the fiber scheduler.

CreateTaskFactory ( this behaviour ) : TaskFactory

Creates a task factory using a FiberTaskScheduler initialized with the MonoBehaviour.

CreateTaskScheduler ( this behaviour ) : FiberTaskScheduler

Creates the task scheduler.

Method Details

CreateFiberFactory() public static method

Creates a fiber factory using a FiberScheduler initialized with the MonoBehaviour.
public static CreateFiberFactory ( this behaviour ) : FiberFactory
behaviour this Behaviour.
return FiberFactory

CreateFiberScheduler() public static method

Creates the fiber scheduler.
public static CreateFiberScheduler ( this behaviour ) : FiberScheduler
behaviour this /// Behaviour. ///
return FiberScheduler

CreateTaskFactory() public static method

Creates a task factory using a FiberTaskScheduler initialized with the MonoBehaviour.
public static CreateTaskFactory ( this behaviour ) : TaskFactory
behaviour this /// Behaviour. ///
return TaskFactory

CreateTaskScheduler() public static method

Creates the task scheduler.
public static CreateTaskScheduler ( this behaviour ) : FiberTaskScheduler
behaviour this /// Behaviour. ///
return FiberTaskScheduler