Weird error with Promise<Deno.AtomicOperation>
When an async process returns a reference to an atomic operation:
it throws:
it throws:
error: Uncaught (in promise) TypeError: `Deno.AtomicOperation` is not a promise. Did you forget to call `commit()`?
at AtomicOperation.then (ext:deno_kv/01_db.ts:413:11)
at eventLoopTick (ext:core/01_core.js:168:7)const kv = await Deno.openKv();
// contrived async process:
new Promise( ok=>ok(kv.atomic()) );