ValueTaskSourceOnCompletedFlags ValueTaskSourceOnCompletedFlags ValueTaskSourceOnCompletedFlags ValueTaskSourceOnCompletedFlags Enum

Definition

Provides flags passed from ValueTask and ValueTask<TResult> to the OnCompleted method to control the behavior of a continuation.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class ValueTaskSourceOnCompletedFlags
[System.Flags]
public enum ValueTaskSourceOnCompletedFlags
type ValueTaskSourceOnCompletedFlags = 
Public Enum ValueTaskSourceOnCompletedFlags
Inheritance
ValueTaskSourceOnCompletedFlagsValueTaskSourceOnCompletedFlagsValueTaskSourceOnCompletedFlagsValueTaskSourceOnCompletedFlags
Attributes

Fields

FlowExecutionContext FlowExecutionContext FlowExecutionContext FlowExecutionContext 2

OnCompleted should capture the current ExecutionContext and use it to run the continuation.

None None None None 0

No requirements are placed on how the continuation is invoked.

UseSchedulingContext UseSchedulingContext UseSchedulingContext UseSchedulingContext 1

OnCompleted should capture the current scheduling context (the SynchronizationContext) and use it when queueing the continuation for execution. If this glag is not set, the implementation may choose to execute the continuation in an arbitrary location.

Remarks

This value is passed from a ValueTask to the OnCompleted method, and from a System.Threading.Tasks.ValueTask<TResult> to the IValueTaskSource<TResult>.OnCompleted method.

Applies to