title: UISearchController request to webservice without stacking many requests
body: <p>I'm using the <code>UISearchController</code> to get objects to my <code>tableview</code>. My main problem is about stacking a lot of requests while the user types the text.</p>
  
  <p>Every time the user type a character, the controller sends another request to my api and it does not make sense to me, because the first request will be for sure the longest one (if the user types "a", a lot of items is coming and the request will take a lot of time), and it will overwrite the short request.</p>
  
  <ol>
  <li><p>User types: a (first request will take 10seconds to take everything which contains a)</p></li>
  <li><p>User keep typing: bacate (a lot of request being faster then the first one)</p></li>
  <li><p>The api returns all the requests for bacate (fruit abacate) and will show in screen.</p></li>
  <li><p>The api NOW (because takes a lot of time) returns the request for the single a and overwrite with all fruits which contains a.</p></li>
  </ol>
  
  <p>Sorry for the mess of my question, I'm really confused.</p>
  
  <p>Thanks</p>