Spring can already work with CompletableFuture
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 11 Dec 2016 22:04:57 +0000 (23:04 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 11 Dec 2016 22:04:57 +0000 (23:04 +0100)
commitc3bf6b4f6c61b51b3618901b76eba1d5c7ec8579
treee47ee654cedee99c1a348c28f49ef118561e0efe
parent500c5a1e7f1b23a412f931ec3a9577a3f550afd5
Spring can already work with CompletableFuture

No need of creating my own adapter :)
See: org.springframework.web.servlet.mvc.method.annotation.DeferredResultMethodReturnValueHandler.CompletionStageAdapter
SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/CompletableFutureCarController.java
SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/adapters/CompletableFutureAdapter.java [deleted file]