Modifier and Type | Method and Description |
---|---|
Future<T> |
future() |
T |
value()
See
Future.get() |
void |
waitAndExit()
Wait until task has finished running and
System.exit() exits
with an appropriate status code. |
public void waitAndExit()
System.exit()
exits
with an appropriate status code.public T value() throws ExecutionException, InterruptedException
Future.get()
Copyright © 2020. All rights reserved.