Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.AtomicOperation#enqueue

A modern runtime for JavaScript and TypeScript.
Latest
method Deno.AtomicOperation.prototype.enqueue
import { Deno } from "https://deno.land/x/deno@v1.41.0/cli/tsc/dts/lib.deno.unstable.d.ts";
const { AtomicOperation } = Deno;

Add to the operation a mutation that enqueues a value into the queue if all checks pass during the commit.

Parameters

value: unknown
optional
options: { delay?: number; keysIfUndelivered?: Deno.KvKey[]; backoffSchedule?: number[]; }