Interface IAsyncOperation<T>
Templated version of IAsyncOperation, provides templated overrides where possible
Inherited Members
Namespace: UnityEngine.ResourceManagement.AsyncOperations
Syntax
public interface IAsyncOperation<T> : IAsyncOperation, IEnumerator
Type Parameters
Name | Description |
---|---|
T |
Properties
Result
Gets the result as the templated type.
Declaration
T Result { get; }
Property Value
Type | Description |
---|---|
T | The result. |
WaitHandle
Returns an event wait handle. This is used by the await support but can be used to wait on the operation in a separate thread. The event is set after delegates are invoked.
Declaration
WaitHandle WaitHandle { get; }
Property Value
Type | Description |
---|---|
System.Threading.WaitHandle |
Methods
Retain()
Internally marks operations to not automatically release back to the cache.
Declaration
IAsyncOperation<T> Retain()
Returns
Type | Description |
---|---|
IAsyncOperation<T> | Passes back this |
Events
Completed
Occurs when completed.
Declaration
event Action<IAsyncOperation<T>> Completed
Event Type
Type | Description |
---|---|
System.Action<IAsyncOperation<T>> |