Core · interface

MessageQueueOptions

Explained in The loop.

interface MessageQueueOptions
import type { MessageQueueOptions } from '@driftengine/core';

Properties

NameTypeDescription
dedupeWindowMsreadonlyoptionalnumberHow long the same id is ignored after being shown.
More

The realistic source of duplicates is a caller pushing from a per-frame check rather than an edge — sixty identical toasts a second, a bug that presents as the interface freezing on one message.

maxPendingreadonlyoptionalnumberBacklog ceiling. Without one, a caller pushing in a loop grows the queue forever and the player spends the next minute watching notifications from something that happened once.