import * as tsplus_module_1 from "@effect/core/io/FiberRefs/operations/fiberRefs";
import * as tsplus_module_2 from "@effect/core/io/FiberRefs/operations/getOrDefault";
import * as tsplus_module_3 from "@effect/core/io/FiberRef/operations/set";
import * as tsplus_module_4 from "@effect/core/io/Effect/operations/excl-forEach";
/**
 * Sets the value of each `FiberRef` for the fiber running this effect to the
 * value in this collection of `FiberRef` values.
 *
 * @tsplus fluent ets/FiberRefs setAll
 */

export function setAll(self, __tsplusTrace) {
  return tsplus_module_4.forEachDiscard(() => tsplus_module_1.fiberRefs(self), fiberRef => tsplus_module_3.set_(fiberRef, tsplus_module_2.getOrDefault_(self, fiberRef), __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=setAll.mjs.map