Skip to content

TimeoutConfig -> Timeout#591

Merged
lovelydinosaur merged 1 commit intomasterfrom
timeout-cleanup
Dec 4, 2019
Merged

TimeoutConfig -> Timeout#591
lovelydinosaur merged 1 commit intomasterfrom
timeout-cleanup

Conversation

@lovelydinosaur
Copy link
Contributor

Starting some timeout cleanup, which will eventually relate to #433, #463, #578, and #435.

First pass here is that we'd really like timeout=httpx.Timeout(read_timeout=5) rather than timeout=httpx.TimeoutConfig(read_timeout=5), so...

  • Renamed TimeoutConfig to Timeout.
  • Included TimeoutConfig synonm.
  • Tweaked exception naming. I'd like TimeoutError here really, but that happens to be a Python built-in. I've gone with RequestTimeout as the base at the moment. (?)

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