-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout does not work #4
Comments
You're rejecting the promise immediately (return Promise.reject()$. So your task function runs and completes immediately. The timeout comes into play for a task function that will take some time, like an Ajax request or something and if the promise returned by the task function doesn't resolve within 'timeout' milliseconds, it will reject. Does that make sense? |
Ah, that's something different than I thought it would be. I saw it as an alternative to |
Ok, great. Sorry for the confusion! I'll update the README to be a little clearer. |
The timeout-functionality seems to be broken:
This will log "polling..." 5 times (which seems to be the default) and then fails. When adding
retries: Infinity
, it keeps polling infinitely.Any idea what's up?
The text was updated successfully, but these errors were encountered: