IMQDelay class

Represents a delay expressed as a numeric timer value in a given time unit. Used to defer IMQ request processing.

Signature:

export declare class IMQDelay 

Constructors

Constructor

Modifiers

Description

(constructor)(timer, unit)

Constructs a new instance of the IMQDelay class

Properties

Property

Modifiers

Type

Description

ms

readonly

number

Returns IMQDelay.timer converted to milliseconds.

timer

number

The delay magnitude, expressed in IMQDelay.unit. Mutable after construction, and read by IMQDelay.ms.

unit

'ms' | 's' | 'm' | 'h' | 'd'

Time unit of IMQDelay.timer — milliseconds, seconds, minutes, hours or days. Defaults to 'ms', meaning timer is already a millisecond count.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.