Starter examples for testing EA builds

Remi Forax forax at univ-mlv.fr
Tue Mar 17 08:49:24 UTC 2020


Shameless plug :)
There are some examples here
  https://github.com/forax/loom-fiber

There are more examples of how continuation works than how virtual threads works, mostly because you can take any examples that creates threads and replace them by virtual threads [1], easily.

regards,
Rémi

[1] https://github.com/forax/loom-fiber/blob/master/src/main/java/fr.umlv.loom/fr/umlv/loom/proxy/TCPFiberProxy.java#L59


----- Mail original -----
> De: "Alan Bateman" <Alan.Bateman at oracle.com>
> À: "Swaranga Sarma" <sarma.swaranga at gmail.com>, "loom-dev" <loom-dev at openjdk.java.net>
> Envoyé: Mardi 17 Mars 2020 09:17:18
> Objet: Re: Starter examples for testing EA builds

> On 16/03/2020 22:00, Swaranga Sarma wrote:
>> Are there any resources that one can follow to discover what we can do with
>> the API available in the latest EA builds. That will help a newbie like me
>> to test out the features as well as trying out for other use-cases. With
>> only that Javadoc, it is a little harder to discover what can be done
>> currently.
>>
>> Apologies if this is already available somewhere; I have checked the loom
>> wiki and there is very little on how to use the APIs.
>>
> Not yet but high priority once more of the APIs in place.
> 
> In the mean-time, look for "since 99" in the javadoc for Thread,
> Thread.Builder, and ExecutorService (don't read anything into "@since
> 99", its just a placeholder). There are samples in the javadoc of
> several methods and hopefully will be enough to get you started.
> 
> -Alan.


More information about the loom-dev mailing list