Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Coroutines in Java?

kitfox-JavaNetMar 12 2013 — edited Mar 13 2013
I'd like to be able to use coroutines in Java (http://en.wikipedia.org/wiki/Coroutine), but as far as I can tell Java does not currently support this.

I've come across a few projects that will provide coroutine-like abilities by modifying your byte code, but I'm afraid that this would not be very portable.

Is there any way to implement coroutines in Java? Is this a feature which may be added to a future Java release?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2013
Added on Mar 12 2013
2 comments
793 views