Class AsyncOperation<T>
- Namespace
- TAssetBundle.Extensions
- Assembly
- TAssetBundle.Extensions.dll
Represents a generic asynchronous operation. Can store and return a result.
public class AsyncOperation<T> : AsyncOperation, IAsyncOperation, IEnumerator, IGetProgressable
Type Parameters
T
The result type.
- Inheritance
-
AsyncOperation<T>
- Implements
- Inherited Members
- Extension Methods
Properties
Result
The result of the operation.
public T Result { get; }
Property Value
- T
Methods
Clear()
Resets the operation and clears the result and events.
public override void Clear()
Complete(T)
Marks the operation as completed and passes the result to the completion event.
public void Complete(T result)
Parameters
result
TThe result of the operation.
Events
OnCompleted
Event triggered when the operation is completed, passing the result.
public event Action<T> OnCompleted
Event Type
- Action<T>