C# (CSharp) HikariThreading Namespace

Classes

Name Description
Hikari Never put Hikari on a GameObject! Hikari will spawn one for you. Hikari is the entry point to the threading system. It is fully threadsafe and designed to be accessed statically. To schedule a task in Hikari use the following code: Hikari.Schedule( ( ActionTask task ) => YourWorkHere(); ) To schedule a task in Unity use the following code: Hikari.ScheduleUnity( ( ActionTask task ) => YourWorkHere(); ) You may also schedule tasks using enumerators, similar to coroutines in Unity.
ManagerBase Base class for Thread- and UnityManager. Contains the helpful stuff that's shared between them for dispatching tasks.
NapForSeconds
ThreadManager Manages assignment of work for a pool of threads. All methods not marked unsafe are threadsafe. UnsafeUpdate must be called for ThreadManager to do any work, but ThreadManager will not call it.
UnityManager Manages work for Unity's thread. All methods not marked Unsafe are thread safe. UnsafeUpdate must be called for UnityManager to do any work, but UnityManager will not call it.