ValueTask<TResult> ValueTask<TResult> ValueTask<TResult> ValueTask<TResult> Constructors

Definition

Overloads

ValueTask<TResult>(Task<TResult>) ValueTask<TResult>(Task<TResult>) ValueTask<TResult>(Task<TResult>) ValueTask<TResult>(Task<TResult>)

Initializes a new instance of the ValueTask<TResult> class using the supplied task that represents the operation.

ValueTask<TResult>(TResult) ValueTask<TResult>(TResult) ValueTask<TResult>(TResult) ValueTask<TResult>(TResult)

Initializes a new instance of the ValueTask<TResult> class using the supplied result of a successful operation.

ValueTask<TResult>(IValueTaskSource<TResult>, Int16) ValueTask<TResult>(IValueTaskSource<TResult>, Int16) ValueTask<TResult>(IValueTaskSource<TResult>, Int16) ValueTask<TResult>(IValueTaskSource<TResult>, Int16)

ValueTask<TResult>(Task<TResult>) ValueTask<TResult>(Task<TResult>) ValueTask<TResult>(Task<TResult>) ValueTask<TResult>(Task<TResult>)

Initializes a new instance of the ValueTask<TResult> class using the supplied task that represents the operation.

public:
 ValueTask(System::Threading::Tasks::Task<TResult> ^ task);
public ValueTask (System.Threading.Tasks.Task<TResult> task);
new System.Threading.Tasks.ValueTask<'Result> : System.Threading.Tasks.Task<'Result> -> System.Threading.Tasks.ValueTask<'Result>
Public Sub New (task As Task(Of TResult))

Parameters

Exceptions

ValueTask<TResult>(TResult) ValueTask<TResult>(TResult) ValueTask<TResult>(TResult) ValueTask<TResult>(TResult)

Initializes a new instance of the ValueTask<TResult> class using the supplied result of a successful operation.

public:
 ValueTask(TResult result);
public ValueTask (TResult result);
new System.Threading.Tasks.ValueTask<'Result> : 'Result -> System.Threading.Tasks.ValueTask<'Result>
Public Sub New (result As TResult)

Parameters

result
TResult TResult TResult TResult

The result.

ValueTask<TResult>(IValueTaskSource<TResult>, Int16) ValueTask<TResult>(IValueTaskSource<TResult>, Int16) ValueTask<TResult>(IValueTaskSource<TResult>, Int16) ValueTask<TResult>(IValueTaskSource<TResult>, Int16)

public:
 ValueTask(System::Threading::Tasks::Sources::IValueTaskSource<TResult> ^ source, short token);
public ValueTask (System.Threading.Tasks.Sources.IValueTaskSource<TResult> source, short token);
new System.Threading.Tasks.ValueTask<'Result> : System.Threading.Tasks.Sources.IValueTaskSource<'Result> * int16 -> System.Threading.Tasks.ValueTask<'Result>
Public Sub New (source As IValueTaskSource(Of TResult), token As Short)

Parameters

Applies to