"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.interruptAs = void 0
// tracing: off
const interruption_1 = require("../Effect/interruption")
const completeWith_1 = require("./completeWith")
/**
 * Completes the promise with interruption. This will interrupt all fibers
 * waiting on the value of the promise as by the specified fiber.
 */
function interruptAs(id) {
  return (promise) =>
    (0, completeWith_1.completeWith)((0, interruption_1.interruptAs)(id))(promise)
}
exports.interruptAs = interruptAs
//# sourceMappingURL=interruptAs.js.map
