Time out a function if it is taking more than 1 minutes in python

后端 未结 0 324
猫巷女王i
猫巷女王i 2020-12-04 21:52

I am running a multiprocessing task in python, how can I timeout a function after 60seconds.

What I have done is shown in the snippet below:

import mul         


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