Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

How to exit main thread when executeAsync method execute completed? #695

Open
xulunfan opened this issue Jan 26, 2021 · 1 comment
Open

Comments

@xulunfan
Copy link

xulunfan commented Jan 26, 2021

When I use the executeAsync method, my program cannot exit from the main thread.

jestClient.executeAsync( new Index.Builder(employeeObject3).build(), new JestResultHandler<JestResult>() {
            @Override public void completed(JestResult result) {
                // handle result
            }
            @Override public void failed(Exception ex) {
                // handle exception
            }
        });

image

How to exit main thread when async method execute completed?

@xulunfan
Copy link
Author

xulunfan commented Jan 26, 2021

To be Contrast, when I use execute, the main method would exit success when it complete.
Who can help me? Thanks!
image

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

No branches or pull requests

1 participant