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");

}

相关文章:

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