Asynchronous task scheduling for ISchedulables. Asynchronous tasks will not freeze the main program, which makes them ideal for slow or blocking operations which don't need to be completed post-haste. The functionality of this class works in any state.
More...
|
static void | Dispose () |
|
static void | Schedule (ISchedulable toRun, bool extraLean=false, bool ui=false) |
| Schedule a task to run asynchronously. This uses custom task runners (by default) to not interfere with the game. More...
|
|
|
static readonly Svelto.Tasks.ExtraLean.Unity.UpdateMonoRunner | extraLeanRunner = new Svelto.Tasks.ExtraLean.Unity.UpdateMonoRunner("TechbloxModdingAPIExtraLean") |
|
static readonly Svelto.Tasks.Lean.Unity.UpdateMonoRunner | leanRunner = new Svelto.Tasks.Lean.Unity.UpdateMonoRunner("TechbloxModdingAPILean") |
|
Asynchronous task scheduling for ISchedulables. Asynchronous tasks will not freeze the main program, which makes them ideal for slow or blocking operations which don't need to be completed post-haste. The functionality of this class works in any state.
◆ Dispose()
static void TechbloxModdingAPI.Tasks.Scheduler.Dispose |
( |
| ) |
|
|
inlinestatic |
◆ Schedule()
static void TechbloxModdingAPI.Tasks.Scheduler.Schedule |
( |
ISchedulable |
toRun, |
|
|
bool |
extraLean = false , |
|
|
bool |
ui = false |
|
) |
| |
|
inlinestatic |
Schedule a task to run asynchronously. This uses custom task runners (by default) to not interfere with the game.
- Parameters
-
toRun | The task to run |
extraLean | Schedule toRun on an extra lean runner? |
ui | Schedule toRun on Techblox's built-in UI task runner? |
◆ extraLeanRunner
readonly Svelto.Tasks.ExtraLean.Unity.UpdateMonoRunner TechbloxModdingAPI.Tasks.Scheduler.extraLeanRunner = new Svelto.Tasks.ExtraLean.Unity.UpdateMonoRunner("TechbloxModdingAPIExtraLean") |
|
static |
◆ leanRunner
readonly Svelto.Tasks.Lean.Unity.UpdateMonoRunner TechbloxModdingAPI.Tasks.Scheduler.leanRunner = new Svelto.Tasks.Lean.Unity.UpdateMonoRunner("TechbloxModdingAPILean") |
|
static |
◆ extraLeanRunnerUI
Svelto.Tasks.ExtraLean.Unity.UpdateMonoRunner TechbloxModdingAPI.Tasks.Scheduler.extraLeanRunnerUI |
|
staticget |
◆ leanRunnerUI
Svelto.Tasks.Lean.Unity.UpdateMonoRunner TechbloxModdingAPI.Tasks.Scheduler.leanRunnerUI |
|
staticget |
The documentation for this class was generated from the following file: