CompareAndSetAsync Method
CompareAndSetAsync(T, T)
Compares the value for equality and, if equal, replaces the current value.
Declaration
Task<bool> CompareAndSetAsync(T comparand, T value)
Parameters
T | comparand | The value that is compared to the current value. |
T | value | The value that replaces the current value if the comparison results in equality. |
Returns
Task<bool> | The updated value. |