ManualResetValueTaskSourceCore<TResult> ManualResetValueTaskSourceCore<TResult> ManualResetValueTaskSourceCore<TResult> ManualResetValueTaskSourceCore<TResult> Struct

Definition

Provides the core logic for implementing a manual-reset IValueTaskSource or IValueTaskSource<TResult>.

generic <typename TResult>
public value class ManualResetValueTaskSourceCore
public struct ManualResetValueTaskSourceCore<TResult>
type ManualResetValueTaskSourceCore<'Result> = struct
Public Structure ManualResetValueTaskSourceCore(Of TResult)

Type Parameters

TResult

The type of the result of this manual-reset IValueTaskSource<TResult>.

Inheritance
ManualResetValueTaskSourceCore<TResult>ManualResetValueTaskSourceCore<TResult>ManualResetValueTaskSourceCore<TResult>ManualResetValueTaskSourceCore<TResult>

Properties

RunContinuationsAsynchronously RunContinuationsAsynchronously RunContinuationsAsynchronously RunContinuationsAsynchronously

Gets or sets whether to force continuations to run asynchronously.

Version Version Version Version

Gets the operation version.

Methods

GetResult(Int16) GetResult(Int16) GetResult(Int16) GetResult(Int16)

Returns the result of the operation.

GetStatus(Int16) GetStatus(Int16) GetStatus(Int16) GetStatus(Int16)

Gets the status of the operation.

OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags) OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags) OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags) OnCompleted(Action<Object>, Object, Int16, ValueTaskSourceOnCompletedFlags)

Schedules the continuation action for this operation.

Reset() Reset() Reset() Reset()

Resets to prepare for the next operation.

SetException(Exception) SetException(Exception) SetException(Exception) SetException(Exception)

Completes with an error.

SetResult(TResult) SetResult(TResult) SetResult(TResult) SetResult(TResult)

Completes with a successful result.

Applies to