108 lines
4.6 KiB
C#
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: 0x02000547 RID: 1351
|
|
[Token(Token = "0x2000547")]
|
|
public struct ConfiguredTaskAwaitable
|
|
{
|
|
// Token: 0x06002A4A RID: 10826 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A4A")]
|
|
[Address(RVA = "0x294C070", Offset = "0x294AE70", VA = "0x18294C070")]
|
|
internal ConfiguredTaskAwaitable(Task task, bool continueOnCapturedContext)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns an awaiter for this awaitable object.</summary>
|
|
/// <returns>The awaiter.</returns>
|
|
// Token: 0x06002A4B RID: 10827 RVA: 0x00016848 File Offset: 0x00014A48
|
|
[Token(Token = "0x6002A4B")]
|
|
[Address(RVA = "0x723D40", Offset = "0x722B40", VA = "0x180723D40")]
|
|
public ConfiguredTaskAwaitable.ConfiguredTaskAwaiter GetAwaiter()
|
|
{
|
|
return default(ConfiguredTaskAwaitable.ConfiguredTaskAwaiter);
|
|
}
|
|
|
|
// Token: 0x04001885 RID: 6277
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4001885")]
|
|
private readonly ConfiguredTaskAwaitable.ConfiguredTaskAwaiter m_configuredTaskAwaiter;
|
|
|
|
/// <summary>Provides an awaiter for an awaitable (<see cref="T:System.Runtime.CompilerServices.ConfiguredTaskAwaitable" />) object.</summary>
|
|
// Token: 0x02000548 RID: 1352
|
|
[Token(Token = "0x2000548")]
|
|
public struct ConfiguredTaskAwaiter : ICriticalNotifyCompletion, INotifyCompletion
|
|
{
|
|
// Token: 0x06002A4C RID: 10828 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A4C")]
|
|
[Address(RVA = "0x139F300", Offset = "0x139E100", VA = "0x18139F300")]
|
|
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: 0x17000642 RID: 1602
|
|
// (get) Token: 0x06002A4D RID: 10829 RVA: 0x00016860 File Offset: 0x00014A60
|
|
[Token(Token = "0x17000642")]
|
|
public bool IsCompleted
|
|
{
|
|
[Token(Token = "0x6002A4D")]
|
|
[Address(RVA = "0x28E73F0", Offset = "0x28E61F0", VA = "0x1828E73F0")]
|
|
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: 0x06002A4E RID: 10830 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A4E")]
|
|
[Address(RVA = "0x28E7390", Offset = "0x28E6190", VA = "0x1828E7390", 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: 0x06002A4F RID: 10831 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A4F")]
|
|
[Address(RVA = "0x28E73C0", Offset = "0x28E61C0", VA = "0x1828E73C0", 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: 0x06002A50 RID: 10832 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002A50")]
|
|
[Address(RVA = "0x294C090", Offset = "0x294AE90", VA = "0x18294C090")]
|
|
public void GetResult()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001886 RID: 6278
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4001886")]
|
|
private readonly Task m_task;
|
|
|
|
// Token: 0x04001887 RID: 6279
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4001887")]
|
|
private readonly bool m_continueOnCapturedContext;
|
|
}
|
|
}
|
|
}
|