AwaitExtensions.TaskSchedulerAwaitable(TaskScheduler, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.