Removes the
System.Threading.SynchronizationContext
for all following awaiters.
Roughly equivalent to calling .ConfigureAwait(false)
for all nested await calls.
See https://blogs.msdn.microsoft.com/benwilli/2017/02/09/an-alternative-to-configureawaitfalse-everywhere/.
- Namespace
- Statiq
.Core - Interfaces
-
- INotifyCompletion
- Base Types
-
- object
- ValueType
Syntax
public struct SynchronizationContextRemover : ValueType, INotifyCompletion
Properties
Name | Property Type | Summary |
---|---|---|
IsCompleted | bool |
Methods
Name | Return Value | Summary |
---|---|---|
GetAwaiter |
Synchronization |
|
GetResult |
void | |
OnCompleted |
void |