"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MetricListener = void 0;

/**
 * A `MetricListener` is capable of taking some action in response to a metric
 * being recorded, such as sending that metric to a third-party service.
 *
 * @tsplus type ets/Metrics/MetricListener
 */
class MetricListener {
  constructor(unsafeUpdate) {
    this.unsafeUpdate = unsafeUpdate;
  }

  unsafeUpdateCache(key) {
    return this.unsafeUpdate(key);
  }

}

exports.MetricListener = MetricListener;
//# sourceMappingURL=MetricListener.js.map