import { MVarInternal } from "@effect/core/concurrent/MVar/definition" /** * Creates an `MVar` which is initially empty. * * @tsplus static effect/core/concurrent/MVar.Ops empty */ export function empty(): Effect> { return TRef.make(Maybe.empty()).map((tRef) => new MVarInternal(tRef)).commit }