public void method(){
runAsyncFunction();
return;
}
I am wondering how it would be possible to block and NOT return this function (method
) until the runAsyncFunction()
is complete. Is this possible in Java 8? I have read about Futures, but I am not too sure how they work yet.