It demonstrates how to use Promises to solve a common problem with web sites that HTTP POST an addition to a list, and then expect an immediate HTTP GET of the entire list to include the newly posted record. The problem is that the POST may not have completed by the time the GET does, even though the POST was issued first.
The problem is solved through a JavaScript object that decorates the underlying Web API object. The decorator keeps track of POSTs whose Promises have not resolved yet, and adds them to the results of GET as necessary. Also, when a Promise is finally resolved, the decorator adds the ID (supplied in the return value of the resolution) to the POSTed object, for the benefit of any lists that may be holding it.
See the README.md and JavaScript files in the Plunk for details.