effect-io-ai

Package: effect
Module: Stream

Stream.interruptAfter

Specialized version of Stream.interruptWhen which interrupts the evaluation of this stream after the given Duration.

Signature

declare const interruptAfter: { (duration: Duration.DurationInput): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>; <A, E, R>(self: Stream<A, E, R>, duration: Duration.DurationInput): Stream<A, E, R>; }

Source

Since v2.0.0