AwaitExtensions.TaskSchedulerAwaiter(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.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.