Class CompletedOperation<TObject>
Wrapper operation for completed results or error cases.
Inherited Members
Namespace: UnityEngine.ResourceManagement.AsyncOperations
Syntax
public class CompletedOperation<TObject> : AsyncOperationBase<TObject>, IAsyncOperation<TObject>, IAsyncOperation, IEnumerator
Type Parameters
| Name | Description |
|---|---|
| TObject |
Methods
Start(Object, Object, TObject, Exception)
Starts the operation.
Declaration
public virtual IAsyncOperation<TObject> Start(object context, object key, TObject val, Exception error = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | context | Context object. This is usually set to the IResourceLocation. |
| System.Object | key | Key value. This is usually set to the address. |
| TObject | val | Completed result object. This may be null if error is set. |
| System.Exception | error | Optional exception. This should be set when val is null. |
Returns
| Type | Description |
|---|---|
| IAsyncOperation<TObject> |