EmitterOptions interface
Signature:
export interface EmitterOptions
Properties
Property | Type | Description |
---|---|---|
delay? | number | string | Date | (Optional) Delays the emission for or until the given time.Accepts either a vercel/ms time string like "30 seconds" or "2min" or a number of milliseconds as a delay, or can be scheduled for a particular time by sending a Date. |
priority? | Priority | (Optional) Sets the priority of the message. Higher priority messages will be routed to consumers before lower priority messages, regardless of queue position.Can be a numeric value from 1 to 10. |