Loom prototype publicly available

Alan Bateman Alan.Bateman at oracle.com
Tue Aug 7 17:29:07 UTC 2018


On 07/08/2018 17:03, Simon Basle wrote:
> Great to have something to play with, Ron, thanks for putting that
> prototype out.
>
> My thoughts and questions probably fall in the "this is an early prototype,
> just wait" category, but here goes nothing:
>
>   - has there been any further decision regarding `Fiber.execute(Callable)`,
> ie running a computation that returns a value, inside a Fiber?
>
>   - is there a particular rationale behind `Fiber#awaitNanos(long)` to
> return the `Fiber` itself, rather than a boolean? This prevent from finding
> out wether or not the timeout was triggered.
>
The API is deliberately minimal in the current prototype. A number of 
things, including value returning tasks are deliberately left out while 
we focus on the control flow and the lower level support.  So expect 
many iterations on the API over the coming month. In the mean time I 
assume you can wrap the task so you have a CompletableFuture that you 
can invoke join on to wait for the result.

-Alan


More information about the loom-dev mailing list