Optional
autoWhether to begin polling automatically; defaults to true
.
A factory function that is passed a poll tick and returns a poll promise.
Optional
frequencyThe polling frequency parameters.
Optional
lingerThe number of ticks to linger if poll switches to standby when-hidden
.
Defaults to 1
.
Optional
nameThe name of the poll.
Defaults to 'unknown'
.
Optional
standbyIndicates when the poll switches to standby or a function that returns
a boolean or a Poll.Standby
value to indicate whether to stand by.
Defaults to 'when-hidden'
.
If a function is passed in, for any given context, it should be idempotent and safe to call multiple times. It will be called before each tick execution, but may be called by clients as well.
Instantiation options for polls.
Typeparam
T - The resolved type of the factory's promises.
Typeparam
U - The rejected type of the factory's promises.
Typeparam
V - The type to extend the phases supported by a poll.