Scoped values are a new feature proposed for Java that allow methods to share immutable data with their callees within the same thread and with child threads efficiently. Unlike thread-local variables, scoped values have a bounded lifetime, are easier to reason about, and have lower space and time costs, particularly when used

22m read timeFrom openjdk.org
Post cover image
Table of contents
SummaryHistoryGoalsNon-GoalsMotivationDescriptionAlternatives
1 Comment

Sort: