import * as tsplus_module_1 from "@tsplus/stdlib/collections/HashSet/empty";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/succeed";
/**
 * Updates the metric with the specified update message. For example, if the
 * metric were a counter, the update would increment the method by the
 * provided amount.
 *
 * @tsplus fluent ets/Metrics/Metric update
 */

export function update_(self, input, __tsplusTrace) {
  return tsplus_module_2.succeed(() => self.unsafeUpdate(input(), tsplus_module_1.empty()), __tsplusTrace);
}
/**
 * Updates the metric with the specified update message. For example, if the
 * metric were a counter, the update would increment the method by the
 * provided amount.
 *
 * @tsplus static ets/Metrics/Metric/Aspects update
 */

export const update = (input, __tsplusTrace) => self => update_(self, input, __tsplusTrace);
//# sourceMappingURL=update.mjs.map