Kill python thread after N seconds

前端 未结 0 690
感动是毒
感动是毒 2020-11-28 05:35

I want to create threads that will add something to an array, but, if they don\'t do that in less than 2 seconds, I want to terminate them.

This is a prof of concept,

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