From the main thread:
executorService.submit(new Runnable() { ... });
Now when Runnable has finished executing, is there the Java’s standard way of signaling the caller thread that it has finished executing, without making a new interface/listener class?
Bonus points if the signal can be emitted from the caller thread.
submitreturns aFutureon which the submitting thread can callgetto block until the task completes.