Project Arrhythmia
A video game developed by Vitamin Games.
Loading...
Searching...
No Matches
WaitForThreadedTask Class Reference

A CustomYieldInstruction that executes a task on a new thread and keeps waiting until it's done. More...

+ Inheritance diagram for WaitForThreadedTask:

Public Member Functions

 WaitForThreadedTask (Action task, ThreadPriority priority=ThreadPriority.Normal)
 Start the task by starting a thread with the given priority. It immediately executes the given task. When the given task finishes, keepWaiting returns true.
 

Properties

override bool keepWaiting [get]
 If the coroutine should keep waiting.
 

Private Attributes

bool isRunning
 If the thread is still running.
 

Detailed Description

A CustomYieldInstruction that executes a task on a new thread and keeps waiting until it's done.

Constructor & Destructor Documentation

◆ WaitForThreadedTask()

WaitForThreadedTask.WaitForThreadedTask ( Action task,
ThreadPriority priority = ThreadPriority::Normal )

Start the task by starting a thread with the given priority. It immediately executes the given task. When the given task finishes, keepWaiting returns true.

Parameters
taskTask to execute in the thread
priorityPriority of the thread to execute the task in

Property Documentation

◆ keepWaiting

override bool WaitForThreadedTask.keepWaiting
get

If the coroutine should keep waiting.

If the thread is still running


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