Tag Archives: thread

如何关闭优雅关闭线程

前言

最近,遇到一个情况,引用的一些外部的cloud的包在调用的时候的时候报错了,看报错的内容是

The current thread was interrupted at xxxxx

后面就是堆栈信息, 在代码中是try catch(Exception e)
这段代码的,但是这个线程最后是阻断了,所以无法继续运行下去
于是...

Continue reading