Java tutorial
package org.apache.commons.javaflow.examples.inheritance; import org.apache.commons.javaflow.api.Continuation; public class InheritanceExample { public static void main(final String[] argv) throws Exception { for (Continuation cc = Continuation.startWith(new Execution()); null != cc; cc = cc.resume()) { System.out.println("Interrupted " + cc.value()); } System.out.println("==="); } }