How to get asyn result? (Do not block the ui thread) Follow
Answered
I need to do this get result
Future<?> future = executor.submit(callable);
return (String) future.get();
Previously, the results were obtained asynchronously without blocking the UI thread
But now I need to get the results first, and then proceed to the next step. How do I do it?
Please sign in to leave a comment.
Please provide a more complete code sample. It's impossible to guess what happens here,e.g. where does executor instance come from etc.
Hello,
Callable is a time-consuming operation that waits for the results to be obtained after the operation is completed.
Now is the
the UI thread will be blocked. What do I do?
Please see https://plugins.jetbrains.com/docs/intellij/general-threading-rules.html