Partager via


AwaitExtensions.TaskSchedulerAwaitable(TaskScheduler, Boolean) Constructor

Definition

Initializes a new instance of the AwaitExtensions.TaskSchedulerAwaitable struct.

public TaskSchedulerAwaitable (System.Threading.Tasks.TaskScheduler taskScheduler, bool alwaysYield = false);
new Microsoft.VisualStudio.Threading.AwaitExtensions.TaskSchedulerAwaitable : System.Threading.Tasks.TaskScheduler * bool -> Microsoft.VisualStudio.Threading.AwaitExtensions.TaskSchedulerAwaitable
Public Sub New (taskScheduler As TaskScheduler, Optional alwaysYield As Boolean = false)

Parameters

taskScheduler
TaskScheduler

The task scheduler used to execute continuations.

alwaysYield
Boolean

A value indicating whether the caller should yield even if already executing on the desired task scheduler.

Applies to