ScopedValue API

Volkan Yazıcı volkan at yazi.ci
Wed Jan 22 10:39:29 UTC 2025


Hello Peter,

Thanks so much for the feedback. AFAIK, that work is delivered by the Loom
crew and they use the `loom-dev` mailing list
<https://mail.openjdk.org/mailman/listinfo/loom-dev> for discussions. I
think they would really appreciate hearing your feedback: What is the
real-world use case you used SVs for? How was that particular logic
implemented before? What are the performance/code/semantic changes you
observed during migration? Did you encounter any problems? Did you find the
API intuitive? etc.

Kind regards.

On Wed, Jan 22, 2025 at 4:11 AM Peter Firmstone <peter.firmstone at zeus.net.au>
wrote:

> Just wanted to say, I've been experimenting with replacing ThreadLocal
> with ScopedValue, this is a great new API, I love the way ScopedValue
> uses recursion, we can have multiple immutable instances representing a
> scoped value for a short period and we're not worried about managing
> state as it goes out of scope as soon as it's no longer in use.
>
> Cheers,
>
> Peter.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250122/cd84cb3c/attachment.htm>


More information about the core-libs-dev mailing list