"use strict";

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

var _getOrMakeEntry = /*#__PURE__*/require("@effect/core/stm/TRef/operations/_internal/getOrMakeEntry");

/**
 * Unsafely retrieves the value of the `TRef`.
 *
 * @tsplus fluent ets/TRef unsafeGet
 */
function unsafeGet_(self, journal) {
  const entry = (0, _getOrMakeEntry.getOrMakeEntry)(self, journal);
  return entry.use(_ => _.unsafeGet());
}
/**
 * Unsafely retrieves the value of the `TRef`.
 *
 * @tsplus static ets/TRef/Aspects unsafeGet
 */


const unsafeGet = journal => self => unsafeGet_(self, journal);

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