import { listenQueueAtomic } from "https://deno.land/x/fathym_common@v0.2.167/src/deno-kv/listenQueueAtomic.ts";
Listen for a message in the queue and apply the atomic operation handler.
Parameters
queueKv: Deno.Kv
The queue Deno.Kv instance.
msg: DenoKVNonce
The message with nonce and versionstamp.
atomicOpHandler: AtomicOperationHandler
The atomic operation handler.
optional
opKv: Deno.Kv(optional) The operation Deno.Kv instance.
Returns
Promise<Deno.KvCommitResult | Deno.KvCommitError>
A Deno.KvCommitResult or Deno.KvCommitError based on the atomic operation handler.