‪TechbloxModdingAPI  ‪v2.2.0
‪The unofficial Techblox modding API
TechbloxModdingAPI.Tasks.Scheduler Class Reference

‪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 Public Member Functions

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 Public Attributes

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")
 

Properties

static Svelto.Tasks.ExtraLean.Unity.UpdateMonoRunner extraLeanRunnerUI [get]
 
static Svelto.Tasks.Lean.Unity.UpdateMonoRunner leanRunnerUI [get]
 

Detailed Description

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.

Member Function Documentation

◆ 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?

Member Data Documentation

◆ 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

Property Documentation

◆ 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: