title: Scheduling and Timeout handling with rxcpp
body: <p>I'm new to using rxcpp and trying to get something functional together in the following scenario:</p>
  
  <p>I have one data source that will retrieve commands from a separate source, the code I'm writing will retrieve these commands into an rxcpp observable. It has the special condition that if no command has been received within a certain period of time the subscribers onError function will be ran instead of the onNext, but the timeout can only happen before receiving the first command. After receiving the first command, no timeout can happen no matter how long it takes for it to receive any further commands. </p>
  
  <p>I'm trying to accomplish this with something like this:</p>
  
  <pre><code>auto timeout = rxcpp::observable&lt;&gt;::timer(std::chrono::steady_clock::now() + timeout,
                               rxcpp::observe_on_event_loop()).map([](int val) // Note, converts the value type of the timer observable and converts timeouts to errors
  {
      std::cout &lt;&lt; "TIMED OUT!" &lt;&lt; std::endl;
      throw std::runtime_error("timeout");
      return command_type();
  });
  auto commands = timeout.amb(rxcpp::observe_on_event_loop(), createCommandSource(event_loop_scheduler, ...));
  </code></pre>
  
  <p>The problem I have is that the timeout happens before any commands are recieved even though they are inserterd far before the timeout happens. I have experimented with timouts from 1000ms to 5000ms, and it makes no difference. If I remove the timeout code the command is recieved immediately however. I'm suspecting that it's likely that I simply have misunderstood how to use the schedulers in rxcpp though, so I'm wondering on how this could be accomplished.</p>