Scoped values polyfill
Davor Hrg
hrgdavor at gmail.com
Fri Jan 17 09:08:56 UTC 2025
Hi,
I am feeling sad because from what I have gathered scoped values will be in
preview for next LTS.
I am looking to see if someone has a workaround that uses ThreadLocals in
such way that is compatible with scoped values. (I do not need for
structured concurrency, just a stack inside a single thread)
I would like to organize my code in such a way to use scoped values for
certain contextual information using a polyfill so when a LTS with scoped
values enabled (not preview) arrives I can just switch implementation.
Hope it makes sense what I am asking.
best regards,
Davor Hrg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250117/06dff10e/attachment.htm>
More information about the loom-dev
mailing list