It would be great to have a maxTries configuration parameter that would stop the poller after that many requests.
If catchError is true, perhaps the notify callback would be called one final time with a special value or throw a special exception which would indicate an interrupt rather than a server error.
It would be great to have a
maxTriesconfiguration parameter that would stop the poller after that many requests.If
catchErroristrue, perhaps the notify callback would be called one final time with a special value or throw a special exception which would indicate an interrupt rather than a server error.