"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformError = void 0;
const transformError = async function* (src, transformFn) {
    try {
        for await (const item of src) {
            yield item;
        }
    }
    catch (err) {
        throw await transformFn(err);
    }
};
exports.transformError = transformError;
//# sourceMappingURL=GeneratorUtils.js.map