-
Notifications
You must be signed in to change notification settings - Fork 123
Options to cancel a Task. #128
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
Comments
Returning a |
There is a small problem with returning a task - it will change public API :(, though I do agree that its a better solution... |
@artemredkin So what's your preferred way forward? Are you open for a breaking change when switching to 2.0? Though I'm aware that we just recently got to 1.0. What do we want to do in the meantime? Exposing a second endpoint? |
|
|
I think making I believe @krzyzanowskim wants |
As discussed in #128. We make the ResponseAccumulator public to give developers an easy time to create a Task. With the ResponseAccumulator the developer using this does not have to worry, about implementing the HTTPClientResponseDelegate all by himself.
@fabianfett can we close this issue? |
@weissi Yes! |
Hi, the
AsyncHTTPClient
currently has an interface, that makes the consumer choose betweenI would like to be able to cancel my request but I don’t want to implement the delegate protocol myself. Currently the
ResponseAccumulator
is an internal class and therefore can’t be used by a consumer.Would it be possible to make the
ResponseAccumulator
public? Or can we build anexecute
method that doesn't need a delegate but returns aTask
instead of aResponse
?Whatever the preferred way is, if there is a decision on how to move forward, I'd be interested in creating a potential PR.
The text was updated successfully, but these errors were encountered: