function createThenableFunction(resolvesTo) {
  var fn = function () {};
  fn.then = function (res) { res(resolvesTo) };
  return fn;
}
A naive function factory that adds a thenable that resolves to the given value.
@param resolvesTo {*} The value passed to the `resolve` then argument