A CustomYieldInstruction that executes a task on a new thread and keeps waiting until it's done.
More...
|
| | 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.
|
| |
|
| override bool | keepWaiting [get] |
| | If the coroutine should keep waiting.
|
| |
|
|
bool | isRunning |
| | If the thread is still running.
|
| |
A CustomYieldInstruction that executes a task on a new thread and keeps waiting until it's done.
◆ 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
-
| task | Task to execute in the thread |
| priority | Priority of the thread to execute the task in |
◆ 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:
- C:/Users/Pidge/Documents/gamedev/core_project_arrhythmia/Assets/Scripts/WaitForThreadedTask.cs