title: How to end the action of the function?
body: <p>I want that, pressing the "buton", then finish what is doing at the moment. 
  First I press a button for do some calculations, it finishes between 3 or 4 minuts, and I want that presing a button could end, still the programe hasn't finished his work. How can I do it?</p>