title: How to destroy unresolved promise
body: <p>Have a look into the code snippet</p>
  
  <pre><code>$scope.getSongs = function(keyword){
       songServices.getSongList(keyword).then(
           function(resp){
               $scope.songList = resp.data.songList;
           }
       );
  }
  </code></pre>
  
  <p>Here getSongList simply returns list of songs from server by an HTTP request.</p>
  
  <p>And in my HTML:</p>
  
  <pre><code>&lt;input auto-focus type="text" placeholder="Enter song ID/Keyword" ng-model="keyword" ng-change="getSongs()"&gt;
  </code></pre>
  
  <p>The problem here is with behaviour of promises, sometimes if some promise takes more time(even in ms.) to get resolved then it shows false data. when you search for 'AKON' lets say promise with first strike 'A' returns last then it refreshes the scope with false data, Is there any way to stop or discard promise which have not been resolved before sending another promise to server, or how can I handle such kind of scenario.</p>
  
  <p>Thanks in advance.</p>