Helper class to manage polling intervals. Automatically cleans up on disposal.
DEFAULT_INTERVAL
static
constructor
type new (options: PollerOptions): Poller
options
type PollerOptions
start
Start polling with optional overrides.
type (options?: { immediate?: boolean | undefined; interval?: number | undefined; } | undefined): void
options?
type
{ immediate?: boolean | undefined; interval?: number | undefined; } | undefinedoptional
returns
voidstop
Stop polling.
type (): void
returns
voidset_interval
Update the polling interval. If polling is active, it will restart with the new interval. No-op if the interval is already set to the same value.
type (interval: number | undefined): void
interval
type
number | undefinedreturns
voiddispose
Dispose of the poller, stopping any active polling.
type (): void
returns
void