Using Timeout pattern, a client service or application can set the max waiting time in the form of timeout when connecting to a network resource.
If client is unable to establish connection or getting response within the given timeout period than it can be considered as failure and client doesn’t need to wait for the response forever.