// tracing: off
import * as CL from "../../Clock"
import { interruptWhen_ } from "./interruptWhen"
/**
 * Specialized version of interruptWhen which interrupts the evaluation of this stream
 * after the given duration.
 */

export function interruptAfter_(self, duration) {
  return interruptWhen_(self, CL.sleep(duration))
}
/**
 * Specialized version of interruptWhen which interrupts the evaluation of this stream
 * after the given duration.
 */

export function interruptAfter(duration) {
  return (self) => interruptAfter_(self, duration)
}
//# sourceMappingURL=interruptAfter.js.map
