/** * Specialized version of interruptWhen which interrupts the evaluation of * this stream after the given duration. * * @tsplus static effect/core/stream/Stream.Aspects interruptAfter * @tsplus pipeable effect/core/stream/Stream interruptAfter */ export function interruptAfter(duration: Duration) { return (self: Stream): Stream => self.interruptWhen(Effect.sleep(duration)) }