"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getWith = void 0;
exports.getWith_ = getWith_;

var _primitives = /*#__PURE__*/require("@effect/core/io/Effect/definition/primitives");

/**
 * Gets the value associated with the current fiber and uses it to run the
 * specified effect.
 *
 * @tsplus fluent ets/FiberRef getWith
 */
function getWith_(self, f, __tsplusTrace) {
  return new _primitives.IFiberRefWith(self, f, __tsplusTrace);
}
/**
 * Gets the value associated with the current fiber and uses it to run the
 * specified effect.
 *
 * @tsplus static ets/FiberRef/Aspects getWith
 */


const getWith = (f, __tsplusTrace) => self => getWith_(self, f, __tsplusTrace);

exports.getWith = getWith;
//# sourceMappingURL=getWith.js.map