import { getOrMakeEntry } from "@effect/core/stm/TRef/operations/_internal/getOrMakeEntry" /** * Sets the value of the `TRef`. * * @tsplus static effect/core/stm/TRef.Aspects set * @tsplus pipeable effect/core/stm/TRef set */ export function set(value: A) { return (self: TRef): STM => STM.Effect((journal) => { const entry = getOrMakeEntry(self, journal) entry.use((_) => _.unsafeSet(value)) return undefined }) }