import { succeedWith } from "../Effect/core"
import { Pending } from "./state"
export function interruptJoiner(joiner) {
  return (promise) =>
    succeedWith(() => {
      const state = promise.state.get

      if (state._tag === "Pending") {
        promise.state.set(new Pending(state.joiners.filter((j) => j !== joiner)))
      }
    })
}
//# sourceMappingURL=interruptJoiner.js.map
