Greetings, using the example of https://github.com/wielski/PHPThreads/blob/master/demos/demo3.php sleep works fine. The question is how can I use my function there (it works with the database and updates the information) The usual call goes like this:
echo the_server();
Displays the result as a string with numbers. How do I use the_server () instead of sleep? Or can someone tell the idea better?