Pass a function if it takes more than 5 seconds

后端 未结 0 1257
春和景丽
春和景丽 2021-01-20 19:54

I\'m calling a function in a for loop however, I want to check if that function takes longer than 5 seconds to execute, I want to pass that iteration and move on to the next

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