deno icon indicating copy to clipboard operation
deno copied to clipboard

feat(unstable): kv atomic sum on bigints and numbers

Open losfair opened this issue 2 years ago • 0 comments

This patch allows to call kv.atomic().sum() directly on values of type bigint and number. Deno.KvU64 is no longer needed.

Also adds an option bag to sum() that allows to specify min/max value of result and behavior when this limit is exceeded (clamp or error).

losfair avatar Dec 15 '23 09:12 losfair