Home > @imqueue/rpc > IMQDelay > (constructor)
IMQDelay.(constructor)
Constructs a new instance of the IMQDelay class
Signature:
constructor(timer: number, unit?: 'ms' | 's' | 'm' | 'h' | 'd');
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
timer |
number |
delay value expressed in the given unit |
|
unit |
'ms' | 's' | 'm' | 'h' | 'd' |
(Optional) time unit of the timer value, defaults to 'ms' |