Jump to content

Complete one function then do next?


rockinaway

Recommended Posts

I have 2 functions which work with setTimeout to continuously loop. However, they both start executing together and so sometimes information in the files clash and the functions fail. How can I make it so that one function starts and then ONLY WHEN THAT IS FINISHED the next function starts.. and then when that finishes the first function goes again. Any way to do this?

Link to comment
https://forums.phpfreaks.com/topic/266058-complete-one-function-then-do-next/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.