Skip to content

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

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions