45 lines
1.8 KiB
C#
45 lines
1.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading.Tasks
|
|
{
|
|
/// <summary>Represents the current stage in the lifecycle of a <see cref="T:System.Threading.Tasks.Task" />.</summary>
|
|
// Token: 0x02000371 RID: 881
|
|
[Token(Token = "0x2000371")]
|
|
public enum TaskStatus
|
|
{
|
|
/// <summary>The task has been initialized but has not yet been scheduled.</summary>
|
|
// Token: 0x040011BF RID: 4543
|
|
[Token(Token = "0x40011BF")]
|
|
Created,
|
|
/// <summary>The task is waiting to be activated and scheduled internally by the .NET Framework infrastructure.</summary>
|
|
// Token: 0x040011C0 RID: 4544
|
|
[Token(Token = "0x40011C0")]
|
|
WaitingForActivation,
|
|
/// <summary>The task has been scheduled for execution but has not yet begun executing.</summary>
|
|
// Token: 0x040011C1 RID: 4545
|
|
[Token(Token = "0x40011C1")]
|
|
WaitingToRun,
|
|
/// <summary>The task is running but has not yet completed.</summary>
|
|
// Token: 0x040011C2 RID: 4546
|
|
[Token(Token = "0x40011C2")]
|
|
Running,
|
|
/// <summary>The task has finished executing and is implicitly waiting for attached child tasks to complete.</summary>
|
|
// Token: 0x040011C3 RID: 4547
|
|
[Token(Token = "0x40011C3")]
|
|
WaitingForChildrenToComplete,
|
|
/// <summary>The task completed execution successfully.</summary>
|
|
// Token: 0x040011C4 RID: 4548
|
|
[Token(Token = "0x40011C4")]
|
|
RanToCompletion,
|
|
/// <summary>The task acknowledged cancellation by throwing an OperationCanceledException with its own CancellationToken while the token was in signaled state, or the task's CancellationToken was already signaled before the task started executing. For more information, see Task Cancellation.</summary>
|
|
// Token: 0x040011C5 RID: 4549
|
|
[Token(Token = "0x40011C5")]
|
|
Canceled,
|
|
/// <summary>The task completed due to an unhandled exception.</summary>
|
|
// Token: 0x040011C6 RID: 4550
|
|
[Token(Token = "0x40011C6")]
|
|
Faulted
|
|
}
|
|
}
|