AwaitExtensions::TaskSchedulerAwaitable Constructor (TaskScheduler^, Boolean)

 

Initializes a new instance of the TaskSchedulerAwaitable.

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

public:
TaskSchedulerAwaitable(
	TaskScheduler^ taskScheduler,
	bool alwaysYield = false
)

Parameters

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

The task scheduler used to execute 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: