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
graph BT
Type-->Base0["ValueType"]
Base0-->Base1["object"]
Type-.->Interface0["INotifyCompletion"]
Type["SynchronizationContextRemover"]
class Type type-node
Syntax
public struct SynchronizationContextRemover : ValueType, INotifyCompletion
Properties
Name | Property Type | Summary |
---|---|---|
IsCompleted | bool |
Methods
Name | Return Value | Summary |
---|---|---|
GetAwaiter |
Synchronization |
|
GetResult |
void | |
OnCompleted |
void |