Skip to content

Commit

Permalink
feat: support backoff schedule in batched atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Feb 22, 2024
1 parent 321f05c commit 3adb913
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion batched_atomic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ export class BatchedAtomicOperation {
*/
enqueue(
value: unknown,
options?: { delay?: number; keysIfUndelivered?: Deno.KvKey[] },
options?: {
delay?: number;
keysIfUndelivered?: Deno.KvKey[];
backoffSchedule?: number[];
},
): this {
return this.#enqueue("enqueue", [value, options]);
}
Expand Down

0 comments on commit 3adb913

Please sign in to comment.