Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Runtime/CompilerServices/ConfiguredTaskAwaitable.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

108 lines
4.6 KiB
C#

using System;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// <summary>Provides an awaitable object that enables configured awaits on a task.</summary>
// Token: 0x02000565 RID: 1381
[Token(Token = "0x2000565")]
public struct ConfiguredTaskAwaitable
{
// Token: 0x06002C59 RID: 11353 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C59")]
[Address(RVA = "0x2CEC2E0", Offset = "0x2CEB2E0", VA = "0x182CEC2E0")]
internal ConfiguredTaskAwaitable(Task task, bool continueOnCapturedContext)
{
}
/// <summary>Returns an awaiter for this awaitable object.</summary>
/// <returns>The awaiter.</returns>
// Token: 0x06002C5A RID: 11354 RVA: 0x00018C18 File Offset: 0x00016E18
[Token(Token = "0x6002C5A")]
[Address(RVA = "0x814AC0", Offset = "0x813AC0", VA = "0x180814AC0")]
public ConfiguredTaskAwaitable.ConfiguredTaskAwaiter GetAwaiter()
{
return default(ConfiguredTaskAwaitable.ConfiguredTaskAwaiter);
}
// Token: 0x04001948 RID: 6472
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001948")]
private readonly ConfiguredTaskAwaitable.ConfiguredTaskAwaiter m_configuredTaskAwaiter;
/// <summary>Provides an awaiter for an awaitable (<see cref="T:System.Runtime.CompilerServices.ConfiguredTaskAwaitable" />) object.</summary>
// Token: 0x02000566 RID: 1382
[Token(Token = "0x2000566")]
public struct ConfiguredTaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion
{
// Token: 0x06002C5B RID: 11355 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C5B")]
[Address(RVA = "0x9E9670", Offset = "0x9E8670", VA = "0x1809E9670")]
internal ConfiguredTaskAwaiter(Task task, bool continueOnCapturedContext)
{
}
/// <summary>Gets a value that specifies whether the task being awaited is completed.</summary>
/// <returns>
/// <see langword="true" /> if the task being awaited is completed; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
// Token: 0x170006BA RID: 1722
// (get) Token: 0x06002C5C RID: 11356 RVA: 0x00018C30 File Offset: 0x00016E30
[Token(Token = "0x170006BA")]
public bool IsCompleted
{
[Token(Token = "0x6002C5C")]
[Address(RVA = "0x2CEC370", Offset = "0x2CEB370", VA = "0x182CEC370")]
get
{
return default(bool);
}
}
/// <summary>Schedules the continuation action for the task associated with this awaiter.</summary>
/// <param name="continuation">The action to invoke when the await operation completes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
/// <exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
// Token: 0x06002C5D RID: 11357 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C5D")]
[Address(RVA = "0x2CEC310", Offset = "0x2CEB310", VA = "0x182CEC310", Slot = "5")]
public void OnCompleted(Action continuation)
{
}
/// <summary>Schedules the continuation action for the task associated with this awaiter.</summary>
/// <param name="continuation">The action to invoke when the await operation completes.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
/// <exception cref="T:System.NullReferenceException">The awaiter was not properly initialized.</exception>
// Token: 0x06002C5E RID: 11358 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C5E")]
[Address(RVA = "0x2CEC340", Offset = "0x2CEB340", VA = "0x182CEC340", Slot = "4")]
public void UnsafeOnCompleted(Action continuation)
{
}
/// <summary>Ends the await on the completed task.</summary>
/// <exception cref="T:System.NullReferenceException">The awaiter 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 faulted state.</exception>
// Token: 0x06002C5F RID: 11359 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C5F")]
[Address(RVA = "0x2CEC300", Offset = "0x2CEB300", VA = "0x182CEC300")]
public void GetResult()
{
}
// Token: 0x04001949 RID: 6473
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001949")]
private readonly Task m_task;
// Token: 0x0400194A RID: 6474
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x400194A")]
private readonly bool m_continueOnCapturedContext;
}
}
}