title: Can I ignore a promise in javascript?
body: <p>I have a promise/deferred set up for my web worker where the main thread makes a change in the web worker's data and tells me to recalculate. I have a promise to call it back upon completion.</p>
  
  <p>However, in mid process the main thread can make an additional change, again with the promise to call back upon completion. (This interrupt can occur because the web worker makes a setTimeout call at times to allow interruptions.) At this point the web worker holds 2 promises to the main thread, both of which will return the exact same value.</p>
  
  <p>Is it ok to throw away the first promise and only call back on the second. The code will all run fine and the main thread logic will be great (better in fact) with just the one call back. Is there any problem with doing this?</p>
  
  <p>The promise is just a function stored in an object I'm holding in a hashtable. So if I remove it from the hashtable its memory should be returned to the heap and so there should be no leak of any kind.</p>
  
  <p>So can I make my callback system a liar (when appropriate)?</p>