title: Do nothing if the same function is already running
body: <p>I have a javascript function that runs every 3 seconds, is there any way to do nothing if a previous instance of the function is already running?</p>