effect 4.0.0-beta.39 → 4.0.0-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Stream.d.ts CHANGED
@@ -2812,6 +2812,28 @@ export declare const timeout: {
2812
2812
  */
2813
2813
  <A, E, R>(self: Stream<A, E, R>, duration: Duration.Input): Stream<A, E, R>;
2814
2814
  };
2815
+ /**
2816
+ * @since 2.0.0
2817
+ * @category Rate Limiting
2818
+ */
2819
+ export declare const timeoutOrElse: {
2820
+ /**
2821
+ * @since 2.0.0
2822
+ * @category Rate Limiting
2823
+ */
2824
+ <B, E2, R2>(options: {
2825
+ readonly duration: Duration.Input;
2826
+ readonly orElse: () => Stream<B, E2, R2>;
2827
+ }): <A, E, R>(self: Stream<A, E, R>) => Stream<A | B, E | E2, R | R2>;
2828
+ /**
2829
+ * @since 2.0.0
2830
+ * @category Rate Limiting
2831
+ */
2832
+ <A, E, R, B, E2, R2>(self: Stream<A, E, R>, options: {
2833
+ readonly duration: Duration.Input;
2834
+ readonly orElse: () => Stream<B, E2, R2>;
2835
+ }): Stream<A | B, E | E2, R | R2>;
2836
+ };
2815
2837
  /**
2816
2838
  * Repeats each element of the stream according to the provided schedule,
2817
2839
  * including the original emission.