Tuesday, 6 December 2016

How can I delay a Request using the Request package?

How would one go about delaying a request using request.js?The website I am requesting has rate limited and I would like to delay each request sent by 1 second. Since the library is asynchronous, what is the easiest way to accomplish this without creating spaghetti code?

Submitted December 06, 2016 at 11:58PM by Midicide

No comments:

Post a Comment