import { getOrMakeEntry } from "@effect/core/stm/TRef/operations/_internal/getOrMakeEntry";
/**
 * Unsafely sets the value of the `TRef`.
 *
 * @tsplus fluent ets/TRef unsafeSet
 */

export function unsafeSet_(self, value, journal) {
  const entry = getOrMakeEntry(self, journal);
  entry.use(_ => _.unsafeSet(value));
  return undefined;
}
/**
 * Unsafely sets the value of the `TRef`.
 *
 * @tsplus static ets/TRef/Aspects unsafeSet
 */

export const unsafeSet = (value, journal) => self => unsafeSet_(self, value, journal);
//# sourceMappingURL=unsafeSet.mjs.map