/** * Accesses the specified service in the environment of the effect. * * Especially useful for creating "accessor" methods on services' companion * objects. * * @tsplus static effect/core/stm/STM.Ops service */ export function service(tag: Tag): STM { return STM.environmentWith((env) => env.unsafeGet(tag)) }