Table of Contents

Class AsyncOperation

Namespace
TAssetBundle.Extensions
Assembly
TAssetBundle.Extensions.dll

Represents an asynchronous operation. Tracks progress and completion status.

public class AsyncOperation : IAsyncOperation, IEnumerator, IGetProgressable
Inheritance
AsyncOperation
Implements
Derived
Inherited Members
Extension Methods

Properties

Current

Returns the current object. In this case, it returns null.

public object Current { get; }

Property Value

object

GetProgressFunc

Sets the delegate to retrieve progress.

public GetProgressDelegate GetProgressFunc { set; }

Property Value

GetProgressDelegate

IsDone

Indicates whether the operation is completed.

public bool IsDone { get; }

Property Value

bool

Pool

public static IAsyncOperationPool Pool { get; set; }

Property Value

IAsyncOperationPool

Progress

Gets the progress of the operation.

public float Progress { get; }

Property Value

float

Methods

Clear()

Resets the operation and clears any associated state.

public virtual void Clear()

Complete()

Marks the operation as completed and triggers the completion event.

public void Complete()

MoveNext()

Moves to the next iteration. Returns false when the operation is done.

public bool MoveNext()

Returns

bool

True if the operation is not done, false otherwise.

Reset()

Resets the operation to its initial state. This implementation does not use it.

public void Reset()

Events

OnCompleted

Event that is triggered when the operation is completed.

public event Action OnCompleted

Event Type

Action