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

Provide a way to set a timeout #8

Closed
timmc-edx opened this issue Mar 17, 2021 · 1 comment
Closed

Provide a way to set a timeout #8

timmc-edx opened this issue Mar 17, 2021 · 1 comment

Comments

@timmc-edx
Copy link

Since this makes a network call, it would be good to have a way to cap the total time that this call can take, e.g. if the API is down or unreachable at the moment.

Most users of this library are likely using it on a login or registration request in an advisory fashion and would rather fail the lookup quickly rather than wait 30 seconds for a response.

Perhaps it could be threaded through the options, at least for the check call?

@dlo
Copy link
Member

dlo commented Jan 26, 2025

fixed in #6

@dlo dlo closed this as completed Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants