public IFuture<Void> execute(IInternalAccess ia) { guards[cnt[0]] = true; System.out.println("now is: "+Arrays.toString(guards)); if(++cnt[0]<guards.length) { getExternalAccess().waitForDelay(1000, this); } return IFuture.DONE; } });
getExternalAccess().waitForDelay(1000, new IComponentStep<Void>()