Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContinueException in 【for...continue...】 #6

Closed
qw623577789 opened this issue Nov 5, 2021 · 1 comment
Closed

ContinueException in 【for...continue...】 #6

qw623577789 opened this issue Nov 5, 2021 · 1 comment

Comments

@qw623577789
Copy link

  @Async(logResultTree = true)
  public JPromise<Void> get() {
      ArrayList<Long> list = new ArrayList<>() {
          {
              add(1l);
              add(2l);
          }
      };

      for (Long l : list) {
          if (true) continue;   // throw io.github.vipcxj.jasync.spec.ContinueException
          JAsync.just().await();
      }

      return JAsync.just();
  }

but the following example is successful

  @Async(logResultTree = true)
  public JPromise<Void> get() {
      ArrayList<Long> list = new ArrayList<>() {
          {
              add(1l);
              add(2l);
          }
      };

      for (Long l : list) {
          JAsync.just().await();
          if (true) continue;
      }

      return JAsync.just();
  }
@vipcxj
Copy link
Owner

vipcxj commented Nov 5, 2021

I have just released v0.1.7 that references this issue.

Closing this issue. Please re-open if you think there's still more to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants