Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

80 lines
3.8 KiB
C#

using System;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// <summary>Represents an object that waits for the completion of an asynchronous task and provides a parameter for the result.</summary>
/// <typeparam name="TResult">The result for the task.</typeparam>
// Token: 0x02000546 RID: 1350
[Token(Token = "0x2000546")]
public struct TaskAwaiter<TResult> : ICriticalNotifyCompletion, INotifyCompletion
{
// Token: 0x06002A45 RID: 10821 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A45")]
[Address(RVA = "0x461A30", Offset = "0x460830", VA = "0x180461A30")]
internal TaskAwaiter(Task<TResult> 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`1" /> object was not properly initialized.</exception>
// Token: 0x17000641 RID: 1601
// (get) Token: 0x06002A46 RID: 10822 RVA: 0x00016830 File Offset: 0x00014A30
[Token(Token = "0x17000641")]
public bool IsCompleted
{
[Token(Token = "0x6002A46")]
[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`1" /> 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`1" /> object was not properly initialized.</exception>
// Token: 0x06002A47 RID: 10823 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A47")]
[Address(RVA = "0x28EBB20", Offset = "0x28EA920", VA = "0x1828EBB20", Slot = "5")]
public void OnCompleted(Action continuation)
{
}
/// <summary>Schedules the continuation action for the asynchronous task 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: 0x06002A48 RID: 10824 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A48")]
[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>
/// <returns>The result of the completed task.</returns>
/// <exception cref="T:System.NullReferenceException">The <see cref="T:System.Runtime.CompilerServices.TaskAwaiter`1" /> 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: 0x06002A49 RID: 10825 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002A49")]
[Address(RVA = "0x28E6EC0", Offset = "0x28E5CC0", VA = "0x1828E6EC0")]
public TResult GetResult()
{
return null;
}
// Token: 0x04001884 RID: 6276
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001884")]
private readonly Task<TResult> m_task;
}
}