Is there a Java built-in class that blocks till an event happens and can be interrupted to throw an exception?

前端 未结 0 428
青春惊慌失措
青春惊慌失措 2021-02-10 10:50

I\'m using CountDownLatches to wait for a specific even but I need to be able to abort its await() method and throw an exception right away.

It\

相关标签:
回答
  • 消灭零回复
提交回复
热议问题