Future.resultNow / exceptionNow

Ron Pressler ron.pressler at oracle.com
Sat Nov 20 20:51:24 UTC 2021


> On 20 Nov 2021, at 16:43, Alex Otenko <oleksandr.otenko at gmail.com> wrote:
> 
> Is there a strong opinion about Future.resultNow and exceptionNow throwing
> IllegalStateException? It seems there will likely be boilerplate
> try-catching, as there is no safe way to inquire in what way the Future is
> isDone.


See the new Future.state(). But in many/most cases you would’t even need it.


More information about the loom-dev mailing list