Astra Unity 2.6.6
Astra Unity Plugin
Astra.WaitForJob Class Reference

Use this class when you want to yield until the job is done More...

Inheritance diagram for Astra.WaitForJob:

Public Member Functions

 WaitForJob (Job job)
 Creates a new job that can be tested for via the pollable call keepWaiting More...
 

Properties

override bool keepWaiting [get]
 Yields true if the job is not yet done More...
 

Detailed Description

Use this class when you want to yield until the job is done

// Inside a coroutine...
var job = Loader.LoadAvatar("123-456");
return new WaitForJob(job);
WaitForJob(Job job)
Creates a new job that can be tested for via the pollable call keepWaiting
Definition: Job.cs:2591

Constructor & Destructor Documentation

◆ WaitForJob()

Astra.WaitForJob.WaitForJob ( Job  job)
inline

Creates a new job that can be tested for via the pollable call keepWaiting

Parameters
jobThe job to wait for

Property Documentation

◆ keepWaiting

override bool Astra.WaitForJob.keepWaiting
get

Yields true if the job is not yet done

True if the job is unfinished, false once completed


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