TaskWait
TaskWait[task] waits for the specified task to be completely finished.
Examples
task = SessionSubmit[Pause[2]; "Done"];
TaskWait[task]
task["Result"]Something isn't working? Report an issue.
Please visit the official Wolfram Language Reference for more details.