import { resolver } from "@rocicorp/resolver";
import { pid } from "node:process";
class Mutator {
  id = `mutator-${pid}`;
  #stopped;
  constructor() {
    this.#stopped = resolver();
  }
  run() {
    return this.#stopped.promise;
  }
  stop() {
    this.#stopped.resolve();
    return this.#stopped.promise;
  }
  drain() {
    this.#stopped.resolve();
    return this.#stopped.promise;
  }
}
export {
  Mutator
};
//# sourceMappingURL=mutator.js.map
