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

Andrew Haley aph-open at littlepinkcloud.com
Thu Mar 23 16:32:23 UTC 2023


On 3/23/23 11:16, Kasper Nielsen wrote:
> So I would really like something like
>   <R> R supply(Supplier<? extends R> op);
> on ScopedValue.Carrier

What would supply() do? Just like call() but without an exception?

-- 
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