Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to enable Fibers for jdk-16 #17

Closed
zcaudate opened this issue Nov 14, 2020 · 1 comment
Closed

how to enable Fibers for jdk-16 #17

zcaudate opened this issue Nov 14, 2020 · 1 comment

Comments

@zcaudate
Copy link

zcaudate commented Nov 14, 2020

I wanted to try out your code for Fibers on https://jdk.java.net/loom/

but I don't see fiber class anywhere in the JDK

clzFiber = SystemUtils.findClassByName("java.lang.Fiber");

I also asked on https://stackoverflow.com/questions/64834923/how-to-enable-fibers-for-the-early-release-of-the-jdk-16-loom?noredirect=1#comment114631865_64834923

@lucav76
Copy link
Owner

lucav76 commented Nov 21, 2020

Hi,
Loom no longer have a Fiber class, and fibers are now called virtual threads. Now there is a startVirtualThread() method in Thread.
Much cleaner.
Fibry should support both methods.

You can find the Javadoc here:
https://download.java.net/java/early_access/loom/docs/api/java.base/java/lang/Thread.html

@lucav76 lucav76 closed this as completed Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants