GetAndSetAsync Method GetAndSetAsync(long) Sets the current value, and returns the original value. Declaration Task<long> GetAndSetAsync(long value) Parameters long value The value to set. Returns Task<long> The original value.