(timeoutMs: number, nowMs = Date.now())
| 57 | } |
| 58 | |
| 59 | static fromTimeoutMs(timeoutMs: number, nowMs = Date.now()): Deadline { |
| 60 | return new Deadline(nowMs, timeoutMs); |
| 61 | } |
| 62 | |
| 63 | remainingMs(nowMs = Date.now()): number { |
| 64 | return Math.max(0, this.expiresAtMs - nowMs); |
no outgoing calls
no test coverage detected