Skip to content

Commit 5448b5d

Browse files
committed
Document mixing increment with other ops
This is not necessarily the desired behavior but reflects the actual behavior of current implementations.
1 parent da58d54 commit 5448b5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wit/atomic.wit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ interface atomics {
3737
/// If the key does not exist in the store, it creates a new key-value pair with the value set
3838
/// to the given delta.
3939
///
40+
/// The result of using both `increment` and any other operation in this spec with the same key
41+
/// is implementation-dependent.
42+
///
4043
/// If any other error occurs, it returns an `Err(error)`.
4144
increment: func(bucket: borrow<bucket>, key: string, delta: s64) -> result<s64, error>;
4245

0 commit comments

Comments
 (0)