I have a function that needs to only be executed once at time. I\'m trying to avoid a function to be called while it hasn\'t completed the last request. Here\'s what I\'m trying