如果其中一个请求收到状态码429,是否可以终止/停止多个卷曲请求? p >
我一直试图找到解决方案,因为我从API中提取数据并且需要避免超过速率限制。 p>
这些请求是 异步,所以我不确定如何做到这一点。 p> div>
Is it possible to kill/stop multi curl requests if one of the requests receives the status code 429?
I've been trying to find a solution to this as I pull data from an API and need to avoid going over the rate limit.
These requests are asynchronous so I'm unsure how I would do this.
如果其中一个请求收到状态码429,是否可以终止/停止多个卷曲请求? p >
我一直试图找到解决方案,因为我从API中提取数据并且需要避免超过速率限制。 p>
这些请求是 异步,所以我不确定如何做到这一点。 p> div>