I have a method, that gets a website as a String. Sometimes this method hangs, so i want to construct a timeout.
So if I call the method and it doesn't deliver the page within x seconds the program shall abort the download and continue its work.
this is a general problem, so an improved download method will help me, but won't fix the abstract problem itself...
So: how can I timeout a method-call ?