N
NKV
E.g. while reading from a URL I would like to timeout after a certain
time (say timeOutMS). I was thinking of embedding the read operation
in a thread (say t) and then use t.join(timeOutMS). But this way I
necessarily have to use a thread. Any other solutions?
time (say timeOutMS). I was thinking of embedding the read operation
in a thread (say t) and then use t.join(timeOutMS). But this way I
necessarily have to use a thread. Any other solutions?