WebAssembly / WebAssembly/wasi-keyvalue
Signature of KeyValue::Atomic::Increment
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 54
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Currently, the signature of the atomic increment is
increment: func(bucket: bucket, key: key, delta: u64) -> result<u64, error>;
I would like to understand the reasoning behind the delta argument and the return u64 types. This would not support cases where atomic decrement is desired. Would it be better for the types to be i64 to allow for flexibility?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the KeyValue::Atomic::Increment signature shown in the issue, including its bucket, key, delta, and result types. Determine whether the requested signed types or decrement behavior is intended, then document the maintainer-approved API decision and update the signature if a change is agreed.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100