Deno.AtomicOperation.prototype.check - Deno documentation
method Deno.AtomicOperation.prototype.check
AtomicOperation.prototype.check(...checks: AtomicCheck[]): this

Add to the operation a check that ensures that the versionstamp of the key-value pair in the KV store matches the given versionstamp. If the check fails, the entire operation will fail and no mutations will be performed during the commit.

Parameters

...checks: AtomicCheck[]

Return Type

this