import { halt as effectHalt } from "../Effect/core"
import { completeWith } from "./completeWith"
/**
 * Halts the promise with the specified cause, which will be propagated to all
 * fibers waiting on the value of the promise.
 */

export function halt_(promise, e) {
  return completeWith(effectHalt(e))(promise)
}
/**
 * Halts the promise with the specified cause, which will be propagated to all
 * fibers waiting on the value of the promise.
 */

export function halt(e) {
  return (promise) => halt_(promise, e)
}
//# sourceMappingURL=halt.js.map
