This content has been marked as final.
Show 2 replies
-
1. Re: SeamTest Asynchronous
hcgpragt Mar 4, 2009 9:22 PM (in response to wachtda.scsi.gmx.ch)I'm probably missing something here because you can always do a callback?
interface callback { public abstract postResult(int result); } class test implements callback{ Logic logic = new Logic(); int result = -1; public void aSyncTest { logic.setTest(this); logic.callAsync(); while (result == -1) try{Thread.sleep(20)}catch(InterruptedException e){} System.out.println("result :" + result); } public void postResult(int result) { this.result = result; } }
Hugo
-
2. Re: SeamTest Asynchronous
wachtda.scsi.gmx.ch Mar 5, 2009 8:59 AM (in response to wachtda.scsi.gmx.ch)You can call me stupid, but I really don't understand your answer solution...