Skip to content

Add optional timeouts to api calls#58

Open
ProbablyFaiz wants to merge 1 commit intorobolyst:masterfrom
ProbablyFaiz:master
Open

Add optional timeouts to api calls#58
ProbablyFaiz wants to merge 1 commit intorobolyst:masterfrom
ProbablyFaiz:master

Conversation

@ProbablyFaiz
Copy link

When making many API calls with this library, the likelihood that an HTTP request hangs indefinitely converges to 100%. To allow users to prevent this behavior, I've added an optional timeout: int | None = None argument to every function which makes a web request in the library.

Please let me know if any further changes would be helpful to get this through, or feel free to discard entirely if you'd like. Thank you!

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.

1 participant