On Thu, 2 Jul 2026 21:45:07 GMT, Benjamin Peterson <[email protected]> 
wrote:

> Make `MinimalFuture` cancelation atomic. This prevents HTTP request 
> cancelation logic from racily completing the future with an error.
> 
> 
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Hmmm... OK - it seems that CompletableFuture::cancel will only return `false` 
if the future is already completed - so that may be OK. This will require some 
intensive testing.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/31758#issuecomment-4877396657

Reply via email to