Polling
Asks the server again until a long job is done, or refreshes a view on a timer — with growing pauses, a pause while the tab is hidden, retries and no overlapping requests.
Part of @tectra-ng/utils (npm install @tectra-ng/utils, also included in tectra-ng).
Job
poll repeats the request while the job is running and completes when it is done. A pretend export server here; the pauses grow from 0.5 s.
Refresh every
refreshEvery reloads a value every 2 s while the switch is on; a slow answer never overlaps the next one, and a hidden tab pauses it.
Poller
TxPoller keeps the state of a page in signals: loading, polling and the last error. This pretend deploy fails on the third check — press Restart to try again.