共用方式為


AwaitExtensions.TaskSchedulerAwaiter(TaskScheduler, Boolean) Constructor

Definition

Initializes a new instance of the AwaitExtensions.TaskSchedulerAwaiter struct.

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

Parameters

scheduler
TaskScheduler

The scheduler for continuations.

alwaysYield
Boolean

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

Applies to