N
Nikolay Petrov
Let's say I have a method that do something, doesn't matter. Some times it
happens that this method can't finish it's job.
How to implement a kind of Timeout in the calling method, so it doesn't wait
for the called method to finish, but instead generate an error to do
something else, and eventually stop the not responding method?
I was thinking about using threads.
Just wonder isn't there a more appropriate method.
Thanks in advance
happens that this method can't finish it's job.
How to implement a kind of Timeout in the calling method, so it doesn't wait
for the called method to finish, but instead generate an error to do
something else, and eventually stop the not responding method?
I was thinking about using threads.
Just wonder isn't there a more appropriate method.
Thanks in advance