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: 0x02000384 RID: 900
|
|
[Token(Token = "0x2000384")]
|
|
public class TaskCompletionSource<TResult>
|
|
{
|
|
/// <summary>Creates a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</summary>
|
|
// Token: 0x06001FB7 RID: 8119 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001FB7")]
|
|
[Address(RVA = "0x2207B00", Offset = "0x2206900", VA = "0x182207B00")]
|
|
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: 0x17000447 RID: 1095
|
|
// (get) Token: 0x06001FB8 RID: 8120 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000447")]
|
|
public Task<TResult> Task
|
|
{
|
|
[Token(Token = "0x6001FB8")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001FB9 RID: 8121 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001FB9")]
|
|
[Address(RVA = "0x28EC0B0", Offset = "0x28EAEB0", VA = "0x1828EC0B0")]
|
|
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: 0x06001FBA RID: 8122 RVA: 0x00013EF0 File Offset: 0x000120F0
|
|
[Token(Token = "0x6001FBA")]
|
|
[Address(RVA = "0x28EC540", Offset = "0x28EB340", VA = "0x1828EC540")]
|
|
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: 0x06001FBB RID: 8123 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001FBB")]
|
|
[Address(RVA = "0x28EBB70", Offset = "0x28EA970", VA = "0x1828EBB70")]
|
|
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: 0x06001FBC RID: 8124 RVA: 0x00013F08 File Offset: 0x00012108
|
|
[Token(Token = "0x6001FBC")]
|
|
[Address(RVA = "0x28EC780", Offset = "0x28EB580", VA = "0x1828EC780")]
|
|
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: 0x06001FBD RID: 8125 RVA: 0x00013F20 File Offset: 0x00012120
|
|
[Token(Token = "0x6001FBD")]
|
|
[Address(RVA = "0x28EC110", Offset = "0x28EAF10", VA = "0x1828EC110")]
|
|
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: 0x06001FBE RID: 8126 RVA: 0x00013F38 File Offset: 0x00012138
|
|
[Token(Token = "0x6001FBE")]
|
|
[Address(RVA = "0x28EC140", Offset = "0x28EAF40", VA = "0x1828EC140")]
|
|
public bool TrySetCanceled(CancellationToken cancellationToken)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x0400122F RID: 4655
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x400122F")]
|
|
private readonly Task<TResult> m_task;
|
|
}
|
|
}
|