I have some method called exampleMethod
.
When I call this method (it work with network...) some times, when is network slow it takes a long time...
How can I set up some max time for execute?
For example 10s.
Like this...
try {
exampleMethod();
} catch(Exeption e) {
LoggError("I was to slow");
}
I hope, you understand me, thank you for any help.,