Hello all,
I'm using a script that consist of several functions, so far so good.
Now I have received a request to delay the execution of one function by 5 minutes, once it is called, without delaying the rest of the script. If the same function should be called again within these 5 minutes it should 'ignore' this most recent call and continue with the previous one.
The function uses an array as parameter and gets called upon when the modified date of a file changes.
Can anyone point me in the right direction on how to properly handle this please?
Thanks in advance.
I'm using a script that consist of several functions, so far so good.
Now I have received a request to delay the execution of one function by 5 minutes, once it is called, without delaying the rest of the script. If the same function should be called again within these 5 minutes it should 'ignore' this most recent call and continue with the previous one.
The function uses an array as parameter and gets called upon when the modified date of a file changes.
Can anyone point me in the right direction on how to properly handle this please?
Thanks in advance.