How to add timeout to this async function

前端 未结 0 1503
暖寄归人
暖寄归人 2020-12-15 02:05

I want to add a timeout such that if any of these "tasks" takes longer than 5 minutes, it should stop that function and resolve the promise. I\'ve been struggling

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