"use strict";
/**
 * Save promises for later
 */
function memoize(locks, key, fn) {
    if (locks && locks[key])
        return locks[key];
    locks[key] = fn();
    return locks[key];
}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = memoize;
//# sourceMappingURL=memoize.js.map