I got a requirement that I have a button and when user presses it continuously, I have to wait till the user gives 2 second gap. When the gap is there then I have to do a network hit. I am thinking to start timer for first click and when next click happens with in less than 2 seconds, I can stop it and start from beginning. But I don't feel like its a good idea. Any other ideas please?
Thanks in advance.