private static ListeningExecutorService executorService = MoreExecutors.listeningDecorator(Executors.newCachedThreadPool());
public static void main( String [] args) throws InterruptedException {
executorService.submit(()->{
try {
Thread.sleep(300);
System.out.println("abc");
}
catch (Exception ex){
}
});
System.out.println("end");

}

相关文章:

  • 2021-08-01
  • 2022-12-23
  • 2022-01-01
  • 2021-12-29
  • 2021-08-01
  • 2022-02-19
猜你喜欢
  • 2021-09-02
  • 2021-10-09
  • 2022-12-23
  • 2022-01-01
  • 2021-05-25
  • 2022-12-23
相关资源
相似解决方案