Virtual threads in existing FJP logic

Christian Stein sormuras at gmail.com
Mon Feb 17 07:13:47 UTC 2020


On Fri, Feb 14, 2020 at 9:25 PM Christian Stein <sormuras at gmail.com> wrote:

> [...]
>
> My idea was to "simply" configure those custom classes to
> create virtual threads. Is this possible? If not, we might
> resort to add a virtual thread based implementation of the
> HierarchicalTestExecutorService interface.
>

FYI, we took the second road and started with
VirtualThreadHierarchicalTestExecutorService [0].
Got virtual threads running on our first try.

So glad, that "virtual threads are threads".

Cheers,
Christian

[0]:
https://github.com/junit-team/junit5/blob/dfb8ab64b073d3e26af56e86038edea1b924727b/junit-jupiter-engine/src/main/java15/org/junit/jupiter/engine/executor/VirtualThreadHierarchicalTestExecutorService.java


More information about the loom-dev mailing list