/** * Fails the stream with given cause if it does not produce a value after the * specified duration. * * @tsplus static effect/core/stream/Stream.Aspects timeoutFail * @tsplus pipeable effect/core/stream/Stream timeoutFail */ export function timeoutFail(e: LazyArg, duration: Duration) { return (self: Stream): Stream => self.timeoutTo(duration, Stream.failSync(e)) }