import * as tsplus_module_1 from "@effect/core/stm/STM/operations/service";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/flatMap";
/**
 * STMfully accesses the specified service in the environment of the
 * effect.
 *
 * Especially useful for creating "accessor" methods on services' companion
 * objects.
 *
 * @tsplus static ets/STM/Ops serviceWithSTM
 */

export function serviceWithSTM(tag) {
  return f => tsplus_module_2.flatMap_(tsplus_module_1.service(tag), f);
}
//# sourceMappingURL=serviceWithSTM.mjs.map