AwaitExtensions.TaskSchedulerAwaitable Constructor
Initializes a new instance of the TaskSchedulerAwaitable.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Public Sub New ( _
taskScheduler As TaskScheduler, _
alwaysYield As Boolean _
)
public TaskSchedulerAwaitable(
TaskScheduler taskScheduler,
bool alwaysYield
)
public:
TaskSchedulerAwaitable(
TaskScheduler^ taskScheduler,
bool alwaysYield
)
new :
taskScheduler:TaskScheduler *
alwaysYield:bool -> TaskSchedulerAwaitable
public function AwaitExtensions.TaskSchedulerAwaitable(
taskScheduler : TaskScheduler,
alwaysYield : boolean
)
Parameters
taskScheduler
Type: System.Threading.Tasks.TaskSchedulerThe task scheduler used to execute continuations.
alwaysYield
Type: System.BooleanA value indicating whether the caller should yield even if already executing on the desired task scheduler.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.