GetAndSetAsync Method
GetAndSetAsync(T)
Sets the current value, and returns the original value.
Declaration
Task<T> GetAndSetAsync(T value)
Parameters
| T | value | The value to set.  | 
    
Returns
| Task<T> | The original value.  | 
    
Remarks
If T is a struct, method will return default(T) when reference is not set.
You can make it return null instead by using Nullable<T>.