Why does `ScopedValue.where(SCOPE_VALUE, val).call()` throw Exception?
Pedro Lamarão
pedro.lamarao at prodist.com.br
Thu Mar 23 12:07:22 UTC 2023
Em qui., 23 de mar. de 2023 às 08:19, Kasper Nielsen <kasperni at gmail.com>
escreveu:
> So I would really like something like
> <R> R supply(Supplier<? extends R> op);
> on ScopedValue.Carrier
>
This is exactly what I have in my homegrown "scoped context".
Seems to me it fits neatly with run and call.
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230323/03460408/attachment.htm>
More information about the loom-dev
mailing list