Skip to content

Navigation Menu

Sign in
Sign up

Future.exceptionNow and Future.resultNow #8245

Open
Assignees

Description

Java 19 added exceptionNow and resultNow methods to the Future interface. There are default implementations on the interface, but Guava's future library could provide more efficient overrides. In particular, exceptionNow() could avoid raising an exception.

There's also Future.state() but that seems harder, since the return value is an enumeration added in Java 19.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    AltStyle によって変換されたページ (->オリジナル) /