Skip to content
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

Add Resource-based simple constructors #1015

Merged
merged 11 commits into from
Dec 6, 2024

Conversation

ybasket
Copy link
Contributor

@ybasket ybasket commented Feb 3, 2024

As Java 21+ allows explicitly closing clients, this adds new constructors that return the clients wrapped in a Resource. On older Java versions, the release is a no-op, on newer it enforces the cleanup of resources.

Also ensures the websocket client closes the input channel on release so the connection gets properly closed.

Closes #1011

As Java 21+ allows explicitly closing clients, this adds new constructors that return the clients wrapped in a Resource. On older Java versions, the release is a no-op, on newer it enforces the cleanup of resources.

Also ensures the websocket client closes the input channel on release so the connection gets properly closed.

Closes http4s#1011
@mergify mergify bot added the core label Feb 3, 2024
build.sbt Show resolved Hide resolved
build.sbt Outdated Show resolved Hide resolved
@hamnis hamnis changed the base branch from series/0.9 to series/0.10 November 19, 2024 16:41
@mergify mergify bot added the docs label Nov 19, 2024
@hamnis hamnis requested a review from amesgen November 20, 2024 19:31
@hamnis hamnis merged commit 3c8067a into http4s:series/0.10 Dec 6, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Java 21+: Ensure simple client is closed
3 participants