org.apache.commons.javaflow.examples.inheritance.InheritanceExample.java Source code

Java tutorial

Introduction

Here is the source code for org.apache.commons.javaflow.examples.inheritance.InheritanceExample.java

Source

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("===");
    }

}