Private _disposedPrivate _factoryPrivate _frequencyPrivate _lingerPrivate _lingeredPrivate _standbyPrivate _statePrivate _tickPrivate _tickedPrivate _timeoutReadonly nameThe name of the poll.
Protected hiddenWhether the poll is disposed.
A promise that resolves when the poll next ticks.
Private _executeRefreshes the poll. Schedules refreshed tick if necessary.
A promise that resolves after tick is scheduled and never rejects.
The returned promise resolves after the tick is scheduled, but before
the polling action is run. To wait until after the poll action executes,
await the poll.tick promise: await poll.refresh(); await poll.tick;
Schedule the next poll tick.
A promise that resolves when the next poll state is active.
This method is not meant to be invoked by user code typically. It is public to allow poll instances to be composed into classes that schedule ticks.
Generated using TypeDoc
A class that wraps an asynchronous function to poll at a regular interval with exponential increases to the interval length if the poll fails.
Typeparam
T - The resolved type of the factory's promises. Defaults to
any.Typeparam
U - The rejected type of the factory's promises. Defaults to
any.Typeparam
V - An optional type to extend the phases supported by a poll. Defaults to
standby, which already exists in thePhasetype.