import { IFiberRefLocally } from "@effect/core/io/Effect/definition/primitives";
/**
 * Returns an `Effect` that runs with `value` bound to the current fiber.
 *
 * Guarantees that fiber data is properly restored via `acquireRelease`.
 *
 * @tsplus fluent ets/FiberRef locally
 */

export function locally_(self, value, __tsplusTrace) {
  return use => new IFiberRefLocally(value, self, use, __tsplusTrace);
}
/**
 * Returns an `Effect` that runs with `value` bound to the current fiber.
 *
 * Guarantees that fiber data is properly restored via `acquireRelease`.
 *
 * @tsplus static ets/FiberRef/Aspects locally
 */

export const locally = (value, __tsplusTrace) => self => locally_(self, value, __tsplusTrace);
//# sourceMappingURL=locally.mjs.map