Is there a way to wait really “at most the given time” with aFuture.get(aLong, aTimeUnit) in a multi-thread service?

前端 未结 0 497
小蘑菇
小蘑菇 2020-12-08 21:17
/**
  * Waits if necessary for at most the given time for the computation
  * to complete, and then retrieves its result, if available.
**/
java.util.concurrent.Futu         


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