105 lines
4.6 KiB
C#
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: 0x02000545 RID: 1349
|
|
[Token(Token = "0x2000545")]
|
|
public struct TaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion
|
|
{
|
|
// Token: 0x06002A3C RID: 10812 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A3C")]
|
|
[Address(RVA = "0x461A30", Offset = "0x460830", VA = "0x180461A30")]
|
|
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: 0x17000640 RID: 1600
|
|
// (get) Token: 0x06002A3D RID: 10813 RVA: 0x00016818 File Offset: 0x00014A18
|
|
[Token(Token = "0x17000640")]
|
|
public bool IsCompleted
|
|
{
|
|
[Token(Token = "0x6002A3D")]
|
|
[Address(RVA = "0x28E73F0", Offset = "0x28E61F0", VA = "0x1828E73F0")]
|
|
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: 0x06002A3E RID: 10814 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A3E")]
|
|
[Address(RVA = "0x28EBB20", Offset = "0x28EA920", VA = "0x1828EBB20", 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: 0x06002A3F RID: 10815 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A3F")]
|
|
[Address(RVA = "0x28EBB50", Offset = "0x28EA950", VA = "0x1828EBB50", 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: 0x06002A40 RID: 10816 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A40")]
|
|
[Address(RVA = "0x294C090", Offset = "0x294AE90", VA = "0x18294C090")]
|
|
public void GetResult()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002A41 RID: 10817 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A41")]
|
|
[Address(RVA = "0x2960770", Offset = "0x295F570", VA = "0x182960770")]
|
|
internal static void ValidateEnd(Task task)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002A42 RID: 10818 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A42")]
|
|
[Address(RVA = "0x2960410", Offset = "0x295F210", VA = "0x182960410")]
|
|
private static void HandleNonSuccessAndDebuggerNotification(Task task)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002A43 RID: 10819 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A43")]
|
|
[Address(RVA = "0x2960640", Offset = "0x295F440", VA = "0x182960640")]
|
|
private static void ThrowForNonSuccess(Task task)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002A44 RID: 10820 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A44")]
|
|
[Address(RVA = "0x2960570", Offset = "0x295F370", VA = "0x182960570")]
|
|
internal static void OnCompletedInternal(Task task, Action continuation, bool continueOnCapturedContext, bool flowExecutionContext)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001883 RID: 6275
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4001883")]
|
|
private readonly Task m_task;
|
|
}
|
|
}
|