How to call asynchronous request synchronously with a timeout value?

前端 未结 0 907
醉话见心
醉话见心 2021-01-07 17:39

I have to synchronously call an asynchronous api request. Since this api request takes long time to answer, I also want to set a timeout to fail the api-request and continue

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