Skip to content

Create a synchronous SettableListenableFuture implementation [SPR-11614] #16237

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

Closed
spring-projects-issues opened this issue Mar 27, 2014 · 5 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 27, 2014

Mattias Severson opened SPR-11614 and commented

Create a class SettableListenableFuture that implements ListenableFuture.

When working with Future you sometimes need to implement an alternative that gets your result immediately, for example when integrating with legacy, synchronous APIs. If for no other reason, a synchronous implementation makes it much easier to implement tests.

Compare with Guava's SettableFuture


Affects: 4.0.2

Issue Links:

Referenced from: commits cf9d519, 0640a32, 38b525a

@spring-projects-issues
Copy link
Collaborator Author

Mattias Severson commented

I have created an implementation and submitted a pull request for this issue.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented May 27, 2014

Juergen Hoeller commented

Sébastien, while you're at it with #16440, could you have a look at this one as well please?

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Sébastien Deleuze commented

Yes, I will have a look to this one too.

@spring-projects-issues
Copy link
Collaborator Author

Rossen Stoyanchev commented

I've added a second proposal in a comment under Mattias' PR.

@spring-projects-issues
Copy link
Collaborator Author

Sébastien Deleuze commented

The pull request has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants