# IMQDelay class · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.imqdelay/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

Represents a delay expressed as a numeric timer value in a given time unit. Used to defer IMQ request processing.

**Signature:**

```typescript
export declare class IMQDelay 
```

## Constructors


| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(timer, unit)](https://imqueue.org/api/rpc/latest/rpc.imqdelay._constructor_/) |  | Constructs a new instance of the `IMQDelay` class |


## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [ms](https://imqueue.org/api/rpc/latest/rpc.imqdelay.ms/) | `readonly` | number | Returns [IMQDelay.timer](https://imqueue.org/api/rpc/latest/rpc.imqdelay.timer/) converted to milliseconds. |
| [timer](https://imqueue.org/api/rpc/latest/rpc.imqdelay.timer/) |  | number | The delay magnitude, expressed in [IMQDelay.unit](https://imqueue.org/api/rpc/latest/rpc.imqdelay.unit/). Mutable after construction, and read by [IMQDelay.ms](https://imqueue.org/api/rpc/latest/rpc.imqdelay.ms/). |
| [unit](https://imqueue.org/api/rpc/latest/rpc.imqdelay.unit/) |  | 'ms' \| 's' \| 'm' \| 'h' \| 'd' | Time unit of [IMQDelay.timer](https://imqueue.org/api/rpc/latest/rpc.imqdelay.timer/) — milliseconds, seconds, minutes, hours or days. Defaults to `'ms'`, meaning `timer` is already a millisecond count. |

