1
m30102 2020-03-31 22:26:41 +08:00 1
```
synchronized(obj) { try{ future.get(1000 * 10, TimeUnit.MILLISECONDS); }catch(){ } } ``` |
2
Jacky23333 2020-03-31 22:33:26 +08:00 via Android
既然想要等待可中断,为什么不选择 lock 呢
|
3
momocraft 2020-03-31 22:37:29 +08:00
CountdownLatch
|