Google.Maps.TileLoading.WorkQueue.Result< T >

Container for a result intended to be yielded by a Unity coroutine until it is populated in a separate thread, e.g. by WorkQueue.

Summary

Inheritance

Inherits from: CustomYieldInstruction

Public attributes

Value
T
The actual result.

Properties

TimedOut
bool
True if Deadline passed before this result was available.
keepWaiting
override bool
Returns true while still waiting for an asynchronous response. Returns false when the response is ready and available to the main Unity thread.

Public functions

Result()
Default constructor.
Result(TimeSpan? timeout)
Constructor with timeout.
SetValue(T value)
void
Sets Value and signals that the coroutine can resume.

Public attributes

Value

T Value

The actual result.

Properties

TimedOut

bool TimedOut

True if Deadline passed before this result was available.

keepWaiting

override bool keepWaiting

Returns true while still waiting for an asynchronous response. Returns false when the response is ready and available to the main Unity thread.

Public functions

Result

 Result()

Default constructor.

Result

 Result(
  TimeSpan? timeout
)

Constructor with timeout.

Details
Parameters
timeout
Maximum amount of time to wait for this result.

SetValue

void SetValue(
  T value
)

Sets Value and signals that the coroutine can resume.

Send feedback about...

Google Maps Platform gaming solution
Google Maps Platform gaming solution