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
isTweening True if it is currently animated / tween
MainTasks Main thread tasks
FixedTasks FixedUpdate thread tasks
FixedPrimaryTasks Primary FixedUpdate thread tasks
MainNotClearedTasks Non cleared main thread tasks
MainPrimaryTasks Primary Main thread tasks
MainAnimationTasks Main thread animation tasks
FixedNotClearedTasks Non cleared FixedUpdate thread tasks
UnduplicateTasks Unduplicate tasks

Method

Init( ) Initialization of Task Scheduler
AddFixedThread(System.Collections.IEnumerator,UnityEngine.GameObject) Run in FixedUpdate
AddFixedThreadNotCleared(System.Collections.IEnumerator,UnityEngine.GameObject) Run in FixedUpdate ( Not cleared by ClearFixedThread( ) )
AddFixedThreadPrimary(System.Collections.IEnumerator,UnityEngine.GameObject) Run in FixedUpdate ( For primary only )
ClearFixedThread( ) Clear FixedUpdate tasks
AddMainThread(System.Collections.IEnumerator,UnityEngine.GameObject) Run in Update
AddMainThreadNotCleared(System.Collections.IEnumerator,UnityEngine.GameObject) Run in Update ( Not cleared by ClearMainThread( ) )
AddMainThreadPrimary(System.Collections.IEnumerator,UnityEngine.GameObject) Run in Update ( For primary only )
AddMainThreadAnimation(System.Collections.IEnumerator,UnityEngine.GameObject) Run in Update ( For animation only )
ClearMainThread( ) Clear main thread tasks
AddUnduplicateTask(System.Int32,System.Collections.IEnumerator,UnityEngine.GameObject,System.Boolean) Register 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