title: Angular 2 - Cancelling a subscription after a timeout
body: <p>I want to ignore a response from my API if it is taking too long. I use </p>
  
  <pre><code>this.http.get(mysqlUrl).subscribe()
  </code></pre>
  
  <p>to get the response. But I want to cancel that subscription if it takes longer than 5 seconds to finish. I know I can use unsubscribe(), but how can I link that to a timeout value?</p>
  
  <p>Thanks!</p>