95 lines
3.8 KiB
C#
95 lines
3.8 KiB
C#
using System;
|
|
using System.Threading;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.CompilerServices
|
|
{
|
|
/// <summary>Provides the context for waiting when asynchronously switching into a target environment.</summary>
|
|
// Token: 0x0200056A RID: 1386
|
|
[Token(Token = "0x200056A")]
|
|
public struct YieldAwaitable
|
|
{
|
|
/// <summary>Retrieves a <see cref="T:System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter" /> object for this instance of the class.</summary>
|
|
/// <returns>The object that is used to monitor the completion of an asynchronous operation.</returns>
|
|
// Token: 0x06002C69 RID: 11369 RVA: 0x00018C78 File Offset: 0x00016E78
|
|
[Token(Token = "0x6002C69")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
|
public YieldAwaitable.YieldAwaiter GetAwaiter()
|
|
{
|
|
return default(YieldAwaitable.YieldAwaiter);
|
|
}
|
|
|
|
/// <summary>Provides an awaiter for switching into a target environment.</summary>
|
|
// Token: 0x0200056B RID: 1387
|
|
[Token(Token = "0x200056B")]
|
|
public struct YieldAwaiter : ICriticalNotifyCompletion, INotifyCompletion
|
|
{
|
|
/// <summary>Gets a value that indicates whether a yield is not required.</summary>
|
|
/// <returns>Always <see langword="false" />, which indicates that a yield is always required for <see cref="T:System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter" />.</returns>
|
|
// Token: 0x170006BD RID: 1725
|
|
// (get) Token: 0x06002C6A RID: 11370 RVA: 0x00018C90 File Offset: 0x00016E90
|
|
[Token(Token = "0x170006BD")]
|
|
public bool IsCompleted
|
|
{
|
|
[Token(Token = "0x6002C6A")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Sets the continuation to invoke.</summary>
|
|
/// <param name="continuation">The action to invoke asynchronously.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="continuation" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06002C6B RID: 11371 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002C6B")]
|
|
[Address(RVA = "0x2CFD990", Offset = "0x2CFC990", VA = "0x182CFD990", Slot = "5")]
|
|
public void OnCompleted(Action continuation)
|
|
{
|
|
}
|
|
|
|
/// <summary>Posts the <paramref name="continuation" /> back to the current context.</summary>
|
|
/// <param name="continuation">The action to invoke asynchronously.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuation" /> argument is <see langword="null" />.</exception>
|
|
// Token: 0x06002C6C RID: 11372 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002C6C")]
|
|
[Address(RVA = "0x2CFDD30", Offset = "0x2CFCD30", VA = "0x182CFDD30", Slot = "4")]
|
|
public void UnsafeOnCompleted(Action continuation)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002C6D RID: 11373 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002C6D")]
|
|
[Address(RVA = "0x2CFD9F0", Offset = "0x2CFC9F0", VA = "0x182CFD9F0")]
|
|
private static void QueueContinuation(Action continuation, bool flowContext)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002C6E RID: 11374 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002C6E")]
|
|
[Address(RVA = "0x2CFDCD0", Offset = "0x2CFCCD0", VA = "0x182CFDCD0")]
|
|
private static void RunAction(object state)
|
|
{
|
|
}
|
|
|
|
/// <summary>Ends the await operation.</summary>
|
|
// Token: 0x06002C6F RID: 11375 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002C6F")]
|
|
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
|
|
public void GetResult()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400194F RID: 6479
|
|
[Token(Token = "0x400194F")]
|
|
private static readonly WaitCallback s_waitCallbackRunAction;
|
|
|
|
// Token: 0x04001950 RID: 6480
|
|
[Token(Token = "0x4001950")]
|
|
private static readonly SendOrPostCallback s_sendOrPostCallbackRunAction;
|
|
}
|
|
}
|
|
}
|