Click or drag to resize

ModAsyncOperation Class

An awaitable object that is returned by async operations so you can wait for completion in a coroutine as well as access progress and status information.
Inheritance Hierarchy

Namespace:  UMod
Assembly:  UMod-Shared (in UMod-Shared.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class ModAsyncOperation : IEnumerator

The ModAsyncOperation type exposes the following members.

Constructors
  NameDescription
Protected methodModAsyncOperation
Initializes a new instance of the ModAsyncOperation class
Top
Properties
  NameDescription
Public propertyCurrent
IEnumerator.Current imlementation.
Public propertyIsDone
Returns true if the async operation has finished or false if it is still running.
Public propertyIsSuccessful
Returns true if the async operation completed successfully or false if an error occurred.
Public propertyProgress
Get the current progress of the async operation. This is a normalized value between 0-1.
Public propertyProgressPercentage
Get the current progress percentage of the async operation.
Public propertyResult
Get the Object result of the async operation.
Public propertyStatus
Get the current status of the async operation.
Top
Methods
  NameDescription
Protected methodMarkAsCompleted
Public methodMoveNext
IEnumerator.MoveNext() implementation.
Public methodReset
IEnumerator.Reset() implementation.
Top
Fields
  NameDescription
Protected fieldisSuccessful
Was the operation successful or did something gowrong.
Protected fieldstatus
Get the current status of the async operation.
Protected fielduserData
User data suppiled by the object that marked the operation as complete.
Top
See Also