Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

105 lines
4.6 KiB
C#

using System;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// <summary>Provides an object that waits for the completion of an asynchronous task.</summary>
// Token: 0x02000563 RID: 1379
[Token(Token = "0x2000563")]
public struct TaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion
{
// Token: 0x06002C4B RID: 11339 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C4B")]
[Address(RVA = "0x593200", Offset = "0x592200", VA = "0x180593200")]
internal TaskAwaiter(Task task)
{
}
/// <summary>Gets a value that indicates whether the asynchronous task has completed.</summary>
/// <returns>
/// <see langword="true" /> if the task has completed; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object was not properly initialized.</exception>
// Token: 0x170006B8 RID: 1720
// (get) Token: 0x06002C4C RID: 11340 RVA: 0x00018BE8 File Offset: 0x00016DE8
[Token(Token = "0x170006B8")]
public bool IsCompleted
{
[Token(Token = "0x6002C4C")]
[Address(RVA = "0x2CEC370", Offset = "0x2CEB370", VA = "0x182CEC370")]
get
{
return default(bool);
}
}
/// <summary>Sets the action to perform when the <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object stops waiting for the asynchronous task to complete.</summary>
/// <param name="continuation">The action to perform when the wait operation completes.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="continuation" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object was not properly initialized.</exception>
// Token: 0x06002C4D RID: 11341 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C4D")]
[Address(RVA = "0x2CFD110", Offset = "0x2CFC110", VA = "0x182CFD110", Slot = "5")]
public void OnCompleted(Action continuation)
{
}
/// <summary>Schedules the continuation action for the asynchronous task that is associated with this awaiter.</summary>
/// <param name="continuation">The action to invoke when the await operation completes.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="continuation" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The awaiter was not properly initialized.</exception>
// Token: 0x06002C4E RID: 11342 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C4E")]
[Address(RVA = "0x2CFD270", Offset = "0x2CFC270", VA = "0x182CFD270", Slot = "4")]
public void UnsafeOnCompleted(Action continuation)
{
}
/// <summary>Ends the wait for the completion of the asynchronous task.</summary>
/// <exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter" /> object was not properly initialized.</exception>
/// <exception cref="T:System.Threading.Tasks.TaskCanceledException">The task was canceled.</exception>
/// <exception cref="T:System.Exception">The task completed in a <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state.</exception>
// Token: 0x06002C4F RID: 11343 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C4F")]
[Address(RVA = "0x2CEC300", Offset = "0x2CEB300", VA = "0x182CEC300")]
public void GetResult()
{
}
// Token: 0x06002C50 RID: 11344 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C50")]
[Address(RVA = "0x2CFD290", Offset = "0x2CFC290", VA = "0x182CFD290")]
internal static void ValidateEnd(Task task)
{
}
// Token: 0x06002C51 RID: 11345 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C51")]
[Address(RVA = "0x2CFCEE0", Offset = "0x2CFBEE0", VA = "0x182CFCEE0")]
private static void HandleNonSuccessAndDebuggerNotification(Task task)
{
}
// Token: 0x06002C52 RID: 11346 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C52")]
[Address(RVA = "0x2CFD140", Offset = "0x2CFC140", VA = "0x182CFD140")]
private static void ThrowForNonSuccess(Task task)
{
}
// Token: 0x06002C53 RID: 11347 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C53")]
[Address(RVA = "0x2CFD040", Offset = "0x2CFC040", VA = "0x182CFD040")]
internal static void OnCompletedInternal(Task task, Action continuation, bool continueOnCapturedContext, bool flowExecutionContext)
{
}
// Token: 0x04001946 RID: 6470
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001946")]
private readonly Task m_task;
}
}