阅读背景:

如何重复请求,直到一个成功而没有阻塞节点?

来源:互联网 

I have a function that takes a parameter and a callback. It's supposed to do a request to a remote API and get some info based on the parameter. When it gets the info, it needs to send it to the callback. Now, the remote API sometimes fails to provide. I need my function to keep trying until it manages to do it and I have a function that takes a parameter and a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: