Re: How to store and use a continuation for later use

2012-04-17 Thread sebb
Such questions belong on the Commons User list, not the developer list. Please subscribe to it and ask there. On 18 April 2012 00:53, Safwan Khan wrote: > I’m a very newbie in javaflow. Consider the following basic example: > class MyRunnable implements Runnable { >  public void run() { >    Sy

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();