import * as tsplus_module_1 from "@tsplus/stdlib/data/Function";
import * as tsplus_module_2 from "@tsplus/stdlib/collections/Chunk/forAll";
import * as tsplus_module_3 from "@effect/core/stm/THub/operations/THub/publish";
import * as tsplus_module_4 from "@effect/core/stm/STM/operations/forEach";
import * as tsplus_module_5 from "@effect/core/stm/STM/operations/map";
/**
 * @tsplus fluent ets/THub publishAll
 */

export function publishAll_(self, as) {
  return tsplus_module_5.map_(tsplus_module_4.forEach(() => as, _ => tsplus_module_3.publish_(self, _)), _ => tsplus_module_2.forAll_(_, tsplus_module_1.identity));
}
/**
 * @tsplus static ets/THub/Aspects publishAll
 */

export const publishAll = as => self => publishAll_(self, as);
//# sourceMappingURL=publishAll.mjs.map