effect-io-ai

Package: effect
Module: Stream

Stream.timeout

Ends the stream if it does not produce a value after the specified duration.

Signature

declare const timeout: { (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