Why does `ScopedValue.where(SCOPE_VALUE, val).call()` throw Exception?

Andrew Haley aph-open at littlepinkcloud.com
Fri Apr 21 15:26:26 UTC 2023


On 4/18/23 15:41, Andrew Haley wrote:
> On 4/18/23 15:35, Andrew Haley wrote:
>>> Alternatively, you could double down and change the names of the other
>>> methods to runWhere(Runnable) and callWhere(Callable).
>> That'd mean editing the JEP. God help me...
> 
> I just remembered the JEP doesn't mention those helper methods. I'll think
> on.

Done:

https://github.com/openjdk/loom/commit/489133916486f32f4551df9b9125ffe3f2953d65

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the loom-dev mailing list