获取线程池执行的返回结果

线程池submit() Callable实现的线程,返回Future,通过get从中获取结果,可以设置获取超时时间,避免get一直阻塞

posted @ 2021-11-30 11:51  GitHub-ahao  阅读(434)  评论(0)    收藏  举报