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

Support CompletableFuture as alternative to DeferredResult in MVC [SPR-12597] #17198

Closed
spring-issuemaster opened this issue Jan 5, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Jan 5, 2015

Francisco Lozano opened SPR-12597 and commented

It would be great if, when using Java 8, CompletableFuture (or CompletionStage) was supported as return method of MVC controllers.


Issue Links:

  • #17199 Support CompletableFuture as alternative to DeferredResult in MVC ("is duplicated by")
  • #16821 Support CompletableFuture as return value in @MessageMapping handlers
  • #17719 Support CompletableFuture<> as return type of @Async methods
  • #19823 Consistently support CompletionStage next to CompletableFuture

Referenced from: commits 5b0a0f4

0 votes, 5 watchers

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Feb 15, 2017

Yaroslav Gnatyuk commented

Please add CompletableFuture as supported return type to official Spring Web MVC documentation:
https://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Feb 15, 2017

Juergen Hoeller commented

Good point, mentioning it next to ListenableFuture there now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.