I
Ike
If I have a URLConnection uc, I would like to permit the following line of
code to execute in say, ten seconds:
InputStream inputStream = uc.getInputStream();
If something is wrong on the server, this line of code hangs, and I'd like
to catch it after, say ten seconds, and have it segue to another line of
code. How do you do that? -Ike
code to execute in say, ten seconds:
InputStream inputStream = uc.getInputStream();
If something is wrong on the server, this line of code hangs, and I'd like
to catch it after, say ten seconds, and have it segue to another line of
code. How do you do that? -Ike