title: RxJS: How to fire 2 parallel requests, one of which is optional, with a timeout
body: <p>I have a case, where i have to fire 2 GET Requests at the same time:</p>
  
  <ol>
  <li>First one of them is <strong>mandatory</strong>. I have to wait for response, and if some error pops up, i have an exception handling, and i also can already cancel my 2. request.</li>
  <li>Second one is <strong>optional</strong>. In case of error, i can ignore the case. And i want to wait for max. 5 seconds "more" for this call, if it takes longer i want to cancel the request (i know i cant cancel the fired request but simply ignore the returned value/or returned error). So, if the 1. call may need 20sec. the 2. call may wait max. 25sec. If the 1. call needs just 1sec. the 2. call cannot wait more than 6 sec. etc.</li>
  </ol>
  
  <p>How can i implement this with rxjs?</p>
  
  <p>I know i can zip multiple requests, but all the examples i have seen so far had just 1 error handling block, but here i need to differentiate between two error cases.</p>
  
  <p>Thanks in advance</p>