Skip to content
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

networkTimeoutSeconds in NetworkOnly #2620

Merged
merged 4 commits into from
Nov 6, 2020
Merged

networkTimeoutSeconds in NetworkOnly #2620

merged 4 commits into from
Nov 6, 2020

Conversation

jeffposnick
Copy link
Contributor

R: @philipwalton
CC: @Snugug

Fixes #2030

This adds support for networkTimeoutSeconds to the NetworkOnly strategy, for folks who are okay with a network request failing after a period of time.

promises.push(timeoutPromise);
}

response = await Promise.race(promises);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know Promise.race() is often not the right choice... but here I think it is?

@jeffposnick
Copy link
Contributor Author

@philipwalton, PTAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add networkTimeoutSeconds to NetworkOnly strategy
2 participants