A single function which creates a Promises/A+ promise.