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

‪An asynchronous task to be performed once. Once constructed, this can be run by scheduling it with Scheduler.Schedule() More...

Inheritance diagram for TechbloxModdingAPI.Tasks.Once:
TechbloxModdingAPI.Tasks.ISchedulable

Public Member Functions

 Once (Action task, float after=0.0f)
 ‪Construct a single-run task More...
 
IEnumerator< TaskContract > Run ()
 ‪Asynchronous task runner More...
 

Detailed Description

An asynchronous task to be performed once. Once constructed, this can be run by scheduling it with Scheduler.Schedule()

Constructor & Destructor Documentation

◆ Once()

TechbloxModdingAPI.Tasks.Once.Once ( Action  task,
float  after = 0.0f 
)
inline

‪Construct a single-run task

Parameters
task‪The task to run once
after‪The delay (in seconds) before the task is run

Member Function Documentation

◆ Run()

IEnumerator<TaskContract> TechbloxModdingAPI.Tasks.Once.Run ( )
inline

‪Asynchronous task runner

Returns
‪A yield-ed Svelto.Tasks-compatible object

Implements TechbloxModdingAPI.Tasks.ISchedulable.


The documentation for this class was generated from the following file: