Table of Contents

Class TAsyncOperationBase

Namespace
TAssetBundle
Assembly
TAssetBundle.dll

Base class for asynchronous operations

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

Constructors

TAsyncOperationBase()

Constructor

public TAsyncOperationBase()

Properties

Current

Current state (Property for IEnumerator implementation)

public object Current { get; }

Property Value

object

IsDone

Whether the operation is completed

public bool IsDone { get; protected set; }

Property Value

bool

Pool

Pool for managing asynchronous operations

public static IAsyncOperationPool Pool { get; set; }

Property Value

IAsyncOperationPool

Progress

Progress of the operation (0.0 to 1.0)

public float Progress { get; }

Property Value

float

Methods

Clear()

Initializes the asynchronous operation

public virtual void Clear()

GetProgress()

Returns the progress of the operation

public float GetProgress()

Returns

float

MoveNext()

Checks if the operation is done

public bool MoveNext()

Returns

bool

Reset()

public void Reset()

Events

OnComplete

Event triggered when the operation is completed

public event Action<TAsyncOperationBase> OnComplete

Event Type

Action<TAsyncOperationBase>