-
Notifications
You must be signed in to change notification settings - Fork 4.9k
[Improvement-17693][HttpTask] Support cancel http task #17694
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
base: dev
Are you sure you want to change the base?
Conversation
|
| * @throws IOException if a network error occurs or the request is canceled during execution | ||
| * @throws RuntimeException if an unexpected error occurs during request processing | ||
| */ | ||
| public static @NonNull OkHttpResult getWithCall( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current get method has implemented the AutoCloseable interface, and its connection is secure, so it doesn't need to be closed again.




Purpose of the pull request
close #17693
Brief change log
add call.cancel() to cancel the HttpTask
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
Pull Request Notice
If your pull request contains incompatible change, you should also add it to
docs/docs/en/guide/upgrade/incompatible.md