Return autocloseable object inside a CompletableFuture and use it in whenComplete
I want to return an autocloseable object inside a CompletableFuture and use it in whenComplete without going to close it manually later. This is the ...