AwaitExtensions::TaskSchedulerAwaiter Constructor (TaskScheduler^, Boolean)

 

Initializes a new instance of the TaskSchedulerAwaiter.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public:
TaskSchedulerAwaiter(
	TaskScheduler^ scheduler,
	bool alwaysYield = false
)

Parameters

scheduler
Type: System.Threading.Tasks::TaskScheduler^

The scheduler for continuations.

alwaysYield
Type: System::Boolean

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

Return to top
Show: