Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ that is needed to ensure the atomicity of the operation</p>
returns the new value.</p>
<p>If the key does not exist in the store, it creates a new key-value pair with the value set
to the given delta.</p>
<p>The result of using both <a href="#increment"><code>increment</code></a> and any other operation in this spec with the same key
is implementation-dependent.</p>
<p>If any other error occurs, it returns an <code>Err(error)</code>.</p>
<h5>Params</h5>
<ul>
Expand Down
3 changes: 3 additions & 0 deletions wit/atomic.wit
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ interface atomics {
/// If the key does not exist in the store, it creates a new key-value pair with the value set
/// to the given delta.
///
/// The result of using both `increment` and any other operation in this spec with the same key
/// is implementation-dependent.
///
/// If any other error occurs, it returns an `Err(error)`.
increment: func(bucket: borrow<bucket>, key: string, delta: s64) -> result<s64, error>;

Expand Down
Loading