Skip to main content
Module

x/fathym_common/src/deno-kv/enqueueAtomic.ts>enqueueAtomic

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
function enqueueAtomic
import { enqueueAtomic } from "https://deno.land/x/fathym_common@v0.2.22-integration/src/deno-kv/enqueueAtomic.ts";

Enqueues an atomic operation and returns the result.

Parameters

queueKv: Deno.Kv

The KV store for the queue.

The message to enqueue.

optional
atomicOpHandler: AtomicOperationHandler

The atomic operation handler.

optional
opKv: Deno.Kv

The KV store for the operation.

Returns

A promise that resolves to the commit result of the enqueue operation.