-
Notifications
You must be signed in to change notification settings - Fork 39
Timeout improvements #26
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
Conversation
build issues appear to be related to http-rs/tide#305 |
can't for the life of me figure out why this isn't building. It's complaining that
It looks like the blanket implementation of TryStream is failing, but I can't see why it should. two things-
|
@danieleades Build failure on the master branch was fixed in #27. |
…ions on inner error type
…enum. All restrictions on error types now removed
aha! thanks for this. that should do it |
@danieleades thanks heaps for filing this! -- I agree with the reasoning you've outlined here, and in fact we came to a similar conclusion when designing the APIs in Something I'm moderately concerned about is how it would work when integrating with some of the codebases we've built on top of this. cc/ @stjepang I feel you might have a good sense of whether these changes would be compatible with |
I like this set of changes! :) I think my only comment is to rename the |
any progress on this @yoshuawuyts ? |
Description
By wrapping the return type of the error returned by the timeout method, the restrictions on the type of error are removed, and a consumer can differentiate whether the timeout deadline was hit, or whether the inner future errored. This is a breaking change.
Motivation and Context
In its present state, this method can only be used with error types that implement Fromio::Error which is restrictive. additionally, if the error type already has a Fromio::Error implementation, it becomes unergonomic to distinguish between timeouts and other types of error
How Has This Been Tested?
Yep (see completed checks below)
Types of changes
Checklist: