[javaflow] How to compare two continuations?

2012-04-17 Thread Safwan Khan
I’m a very newbie in javaflow. Consider the following basic example: class MyRunnable implements Runnable { public void run() { System.out.println("started!"); for( int i=0; i<10; i++ ) echo(i); } private void echo(int x) { System.out.println(x); Continuation.suspend();

How to store and use a continuation for later use

2012-04-17 Thread Safwan Khan
I’m a very newbie in javaflow. Consider the following basic example: class MyRunnable implements Runnable { public void run() { System.out.println("started!"); for( int i=0; i<10; i++ ) echo(i); } private void echo(int x) { System.out.println(x); Continuation.suspend();

[javaflow] How to store and use a continuation for later use

2012-04-17 Thread Safwan Khan
I’m a very newbie in javaflow. Consider the following basic example: class MyRunnable implements Runnable { public void run() { System.out.println("started!"); for( int i=0; i<10; i++ ) echo(i); } private void echo(int x) { System.out.println(x); Continuation.suspend();