whole_func_string: function memoizedPromise(promiseCache, cb) {
    if (promiseCache.currentPromise) {
      return promiseCache.currentPromise;
    }
    promiseCache.currentPromise = new Promise(cb).then(function(ret) {
      promiseCache.currentPromise = undefined;
      return ret;
    });
    return promiseCache.currentPromise;
  }
func_code_string: function memoizedPromise(promiseCache, cb) {
    if (promiseCache.currentPromise) {
      return promiseCache.currentPromise;
    }
    promiseCache.currentPromise = new Promise(cb).then(function(ret) {
      promiseCache.currentPromise = undefined;
      return ret;
    });
    return promiseCache.currentPromise;
  }
func_documentation_string: If a user calls `.next()` multiple times in parallel,
  return the same result until something has resolved
  to prevent page-turning race conditions.