nyx Typedoc
    Preparing search index...

    Class TimerJobAdapter

    A ScheduleJobAdapter for millisecond schedule intervals

    Unlike setInterval, supports intervals longer than the runtime's maximum timer delay (24 days for Node) and doesn't drift, since each run is scheduled from the previous target rather than from when the callback ran.

    FIXME: This is a workaround for croner not supporting ms intervals. It should be removed if that's supported in the future.

    Implements

    Index
    callback: () => Awaitable<void>
    destroyed: boolean = false
    intervalMs: number
    nextRunAt: number | null = null
    timeout: Timeout | null = null
    MaxTimeoutMs: 2147483647 = 2_147_483_647

    The maximum delay setTimeout accepts before it fires immediately instead.