Show / Hide Table of Contents

Struct TaskHandle

Handle for checking task status.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Moth.Tasks
Assembly: Moth.Tasks.dll
Syntax
public readonly struct TaskHandle

Properties

| Improve this Doc View Source

IsComplete

Checks if the task has been completed.

Declaration
public readonly bool IsComplete { get; }
Property Value
Type Description
System.Boolean
Remarks

Please note that this property does not indicate whether the task executed successfully or not.

Methods

| Improve this Doc View Source

WaitForCompletion()

Waits indefinitely until the task has been completed.

Declaration
public readonly void WaitForCompletion()
| Improve this Doc View Source

WaitForCompletion(Int32)

Waits for a maximum time in milliseconds for the task to complete.

Declaration
public readonly bool WaitForCompletion(int millisceondsTimeout)
Parameters
Type Name Description
System.Int32 millisceondsTimeout

The number of milliseconds to wait, or System.Threading.Timeout.Infinite (-1) to wait indefinitely.

Returns
Type Description
System.Boolean

true if the task was completed before timeout; otherwise, false.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX