标签:rup interrupt err int style tar new t inter 实体类
FutureTask<实体类> futureTask = new FutureTask<>(() -> {
return 实体类;
});
new Thread(futureTask).start();
for(;;){
if (futureTask.isDone()) {
try {
实体类=futureTask.get();
break;
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
}
}
标签:rup interrupt err int style tar new t inter 实体类
原文地址:https://www.cnblogs.com/arygos/p/13237127.html