mTaskScheduler

Summary

Task management class Used when you want to execute IEnumerator's coroutine from a class that is not a Monobehaviour or another thread

Property

Instance Task management class Used when you want to execute IEnumerator's coroutine from a class that is not a Monobehaviour or another thread
MainTasks Main thread tasks
FixedTasks FixedUpdate thread tasks
FixedPrimaryTasks Primary FixedUpdate thread tasks
MainPrimaryTasks Primary Main thread tasks
UnduplicateTasks Unduplicate tasks
MainAnimationTasks Animation thread tasks

Method

Init( ) Initialization of Task Scheduler
AddFixedThread(System.Collections.IEnumerator,UnityEngine.GameObject,System.Action) Run in FixedUpdate
AddFixedThreadPrimary(System.Collections.IEnumerator,UnityEngine.GameObject,System.Action) Run in FixedUpdate ( For primary only )
ClearFixedThread( ) Clear FixedUpdate tasks
AddMainThread(System.Collections.IEnumerator,UnityEngine.GameObject,System.Action) Run in Update
AddMainThreadPrimary(System.Collections.IEnumerator,UnityEngine.GameObject,System.Action) Run in Update ( For primary only )
ClearMainThread( ) Clear main thread tasks
AddAnimationThread(System.Collections.IEnumerator,UnityEngine.GameObject,System.Action) Run in Update ( For primary only )
AddUnduplicateTask(System.Int32,System.Collections.IEnumerator,UnityEngine.GameObject,System.Action,System.Boolean) Register unduplicate task
ClearUnduplicateTask(System.Int32) Clears the unduplicate task.
RunInOtherThread(System.Action,System.Action) Run in other thread Unity part function can not be used because it runs completely in another thread
Clear( ) Clear all tasks
Dispose( ) Dispose scheduler

Reference