Suppose I'm inside a thread and I have a call to an external function like

```
Response resp = ResponseSender.getResponse();

```

Suppose I don't get a response within `t seconds` , I want the request to timeout and execute the next line. How do I do this?