title: Searching strategy in an infinte list
body: <p>I am listening to a 3rd party web-service, when the services starts it generates a stream of objects which I am receiving. I have to search for a specific object within given amount of time and do some processing if the object is found or throw an error in any of the below condition:</p>
  
  <ol>
  <li>The web-service stops and I haven't found the object.  </li>
  <li>My timer expires.   </li>
  <li>Any other erroneous condition.</li>
  </ol>
  
  <p>I am wondering about what could be the best way to search for the object assuming I am searching in an infinite list and the order of items in which they appear in the list cannot be predicted ?</p>