Struct AsyncFuture<T>
A handle back to a result that will be calculated in the future. This class is used to report an asynchronous solution.
Namespace: UnityEngine.Perception.GroundTruth
Syntax
public readonly struct AsyncFuture<T>
where T : DataModelElement
Type Parameters
Name | Description |
---|---|
T | The data type of the future (either a sensor, annotation, or metric) |
Methods
IsPending()
Is this future still pending?
Declaration
public readonly bool IsPending()
Returns
Type | Description |
---|---|
Boolean | Is this future still pending |
IsValid()
Is the future valid?
Declaration
public readonly bool IsValid()
Returns
Type | Description |
---|---|
Boolean | Is the future valid? |
Report(T)
Report the result that this future has been waiting for.
Declaration
public readonly void Report(T toReport)
Parameters
Type | Name | Description |
---|---|---|
T | toReport | The value to report |