Answer the question
In order to leave comments, you need to log in
How to make a request queue?
My script works in php-cli, an eternal cycle is spinning there all the time - VK bot.
I'm going to make a queue of requests for the API, there is a call to the function that makes requests for the API.
Now I'm going to do this: let's say every second all calls to the function are collected and 1 request is made
How to make the script wait for the function's response and have the function return its own response to each call?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question