Skip to main content
Module

x/kv_toolbox/batched_atomic.ts>batchedAtomic

Utilities for working with Deno KV 🦕🗝️
Go to Latest
function batchedAtomic
import { batchedAtomic } from "https://deno.land/x/kv_toolbox@0.17.0/batched_atomic.ts";

Similar to Deno.Kv.prototype.atomic but deals with the limits of transactions imposed by Deno KV.

When committing the transaction, the operation is broken up in batches and each commit result from each batch is returned, unless there is a commit error, where any pending batched operations will be abandoned and the last item in the commit result array will be the error.