106 lines
5.9 KiB
C#
106 lines
5.9 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading.Tasks
|
|
{
|
|
/// <summary>Represents the producer side of a <see cref="T:System.Threading.Tasks.Task`1" /> unbound to a delegate, providing access to the consumer side through the <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task" /> property.</summary>
|
|
/// <typeparam name="TResult">The type of the result value assocatied with this <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</typeparam>
|
|
// Token: 0x020003A0 RID: 928
|
|
[Token(Token = "0x20003A0")]
|
|
public class TaskCompletionSource<TResult>
|
|
{
|
|
/// <summary>Creates a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</summary>
|
|
// Token: 0x060021C3 RID: 8643 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021C3")]
|
|
[Address(RVA = "0x29F85C0", Offset = "0x29F75C0", VA = "0x1829F85C0")]
|
|
public TaskCompletionSource()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Threading.Tasks.Task`1" /> created by this <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</summary>
|
|
/// <returns>Returns the <see cref="T:System.Threading.Tasks.Task`1" /> created by this <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</returns>
|
|
// Token: 0x170004BE RID: 1214
|
|
// (get) Token: 0x060021C4 RID: 8644 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170004BE")]
|
|
public Task<TResult> Task
|
|
{
|
|
[Token(Token = "0x60021C4")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060021C5 RID: 8645 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021C5")]
|
|
[Address(RVA = "0x2F03640", Offset = "0x2F02640", VA = "0x182F03640")]
|
|
private void SpinUntilCompleted()
|
|
{
|
|
}
|
|
|
|
/// <summary>Attempts to transition the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state and binds it to a specified exception.</summary>
|
|
/// <param name="exception">The exception to bind to this <see cref="T:System.Threading.Tasks.Task`1" />.</param>
|
|
/// <returns>True if the operation was successful; otherwise, false.</returns>
|
|
/// <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task" /> was disposed.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="exception" /> argument is null.</exception>
|
|
// Token: 0x060021C6 RID: 8646 RVA: 0x000162C0 File Offset: 0x000144C0
|
|
[Token(Token = "0x60021C6")]
|
|
[Address(RVA = "0x2F03AD0", Offset = "0x2F02AD0", VA = "0x182F03AD0")]
|
|
public bool TrySetException(Exception exception)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Transitions the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state and binds it to a specified exception.</summary>
|
|
/// <param name="exception">The exception to bind to this <see cref="T:System.Threading.Tasks.Task`1" />.</param>
|
|
/// <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task" /> was disposed.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="exception" /> argument is null.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">The underlying <see cref="T:System.Threading.Tasks.Task`1" /> is already in one of the three final states: <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" />, <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" />, or <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" />.</exception>
|
|
// Token: 0x060021C7 RID: 8647 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60021C7")]
|
|
[Address(RVA = "0x2F03100", Offset = "0x2F02100", VA = "0x182F03100")]
|
|
public void SetException(Exception exception)
|
|
{
|
|
}
|
|
|
|
/// <summary>Attempts to transition the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" /> state.</summary>
|
|
/// <param name="result">The result value to bind to this <see cref="T:System.Threading.Tasks.Task`1" />.</param>
|
|
/// <returns>True if the operation was successful; otherwise, false.</returns>
|
|
// Token: 0x060021C8 RID: 8648 RVA: 0x000162D8 File Offset: 0x000144D8
|
|
[Token(Token = "0x60021C8")]
|
|
[Address(RVA = "0x2F03D10", Offset = "0x2F02D10", VA = "0x182F03D10")]
|
|
public bool TrySetResult(TResult result)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Attempts to transition the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" /> state.</summary>
|
|
/// <returns>True if the operation was successful; false if the operation was unsuccessful or the object has already been disposed.</returns>
|
|
// Token: 0x060021C9 RID: 8649 RVA: 0x000162F0 File Offset: 0x000144F0
|
|
[Token(Token = "0x60021C9")]
|
|
[Address(RVA = "0x2F036A0", Offset = "0x2F026A0", VA = "0x182F036A0")]
|
|
public bool TrySetCanceled()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Attempts to transition the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" /> state and enables a cancellation token to be stored in the canceled task.</summary>
|
|
/// <param name="cancellationToken">A cancellation token.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the operation is successful; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060021CA RID: 8650 RVA: 0x00016308 File Offset: 0x00014508
|
|
[Token(Token = "0x60021CA")]
|
|
[Address(RVA = "0x2F036D0", Offset = "0x2F026D0", VA = "0x182F036D0")]
|
|
public bool TrySetCanceled(CancellationToken cancellationToken)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x040012F2 RID: 4850
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40012F2")]
|
|
private readonly Task<TResult> m_task;
|
|
}
|
|
}
|