Skip to content
Discussion options

You must be logged in to vote

Yes. createPoller(task, { onError }) stores the latest failure in snapshot().lastError, emits the error event, and then schedules the next run again. The scheduled loop catches the task failure after notifying onError, so future runs continue. Use until(predicate, { rejectOnError: true }) only when a waiting caller should fail on the next poll error.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by clyxudev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants