Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Runtime/CompilerServices/YieldAwaitable.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

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: 0x0200054C RID: 1356
[Token(Token = "0x200054C")]
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: 0x06002A5A RID: 10842 RVA: 0x000168A8 File Offset: 0x00014AA8
[Token(Token = "0x6002A5A")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
public YieldAwaitable.YieldAwaiter GetAwaiter()
{
return default(YieldAwaitable.YieldAwaiter);
}
/// <summary>Provides an awaiter for switching into a target environment.</summary>
// Token: 0x0200054D RID: 1357
[Token(Token = "0x200054D")]
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: 0x17000645 RID: 1605
// (get) Token: 0x06002A5B RID: 10843 RVA: 0x000168C0 File Offset: 0x00014AC0
[Token(Token = "0x17000645")]
public bool IsCompleted
{
[Token(Token = "0x6002A5B")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
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: 0x06002A5C RID: 10844 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A5C")]
[Address(RVA = "0x2960EF0", Offset = "0x295FCF0", VA = "0x182960EF0", 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: 0x06002A5D RID: 10845 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A5D")]
[Address(RVA = "0x2961290", Offset = "0x2960090", VA = "0x182961290", Slot = "4")]
public void UnsafeOnCompleted(Action continuation)
{
}
// Token: 0x06002A5E RID: 10846 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A5E")]
[Address(RVA = "0x2960F50", Offset = "0x295FD50", VA = "0x182960F50")]
private static void QueueContinuation(Action continuation, bool flowContext)
{
}
// Token: 0x06002A5F RID: 10847 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A5F")]
[Address(RVA = "0x2961230", Offset = "0x2960030", VA = "0x182961230")]
private static void RunAction(object state)
{
}
/// <summary>Ends the await operation.</summary>
// Token: 0x06002A60 RID: 10848 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A60")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
public void GetResult()
{
}
// Token: 0x0400188C RID: 6284
[Token(Token = "0x400188C")]
private static readonly WaitCallback s_waitCallbackRunAction;
// Token: 0x0400188D RID: 6285
[Token(Token = "0x400188D")]
private static readonly SendOrPostCallback s_sendOrPostCallbackRunAction;
}
}
}