effect 3.13.0 → 3.13.2
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/cjs/Array.js.map +1 -1
- package/dist/cjs/Channel.js.map +1 -1
- package/dist/cjs/Chunk.js.map +1 -1
- package/dist/cjs/Context.js.map +1 -1
- package/dist/cjs/DateTime.js.map +1 -1
- package/dist/cjs/Duration.js +1 -3
- package/dist/cjs/Duration.js.map +1 -1
- package/dist/cjs/Effect.js.map +1 -1
- package/dist/cjs/Either.js.map +1 -1
- package/dist/cjs/Exit.js.map +1 -1
- package/dist/cjs/Function.js.map +1 -1
- package/dist/cjs/HashSet.js.map +1 -1
- package/dist/cjs/Iterable.js.map +1 -1
- package/dist/cjs/Layer.js.map +1 -1
- package/dist/cjs/List.js.map +1 -1
- package/dist/cjs/Logger.js.map +1 -1
- package/dist/cjs/Metric.js.map +1 -1
- package/dist/cjs/MetricKey.js.map +1 -1
- package/dist/cjs/MetricPolling.js.map +1 -1
- package/dist/cjs/Micro.js.map +1 -1
- package/dist/cjs/MutableHashMap.js.map +1 -1
- package/dist/cjs/Option.js +1 -1
- package/dist/cjs/Option.js.map +1 -1
- package/dist/cjs/ParseResult.js.map +1 -1
- package/dist/cjs/Predicate.js.map +1 -1
- package/dist/cjs/Record.js.map +1 -1
- package/dist/cjs/Request.js.map +1 -1
- package/dist/cjs/RequestResolver.js.map +1 -1
- package/dist/cjs/STM.js.map +1 -1
- package/dist/cjs/Schedule.js.map +1 -1
- package/dist/cjs/Schema.js.map +1 -1
- package/dist/cjs/SchemaAST.js +1 -1
- package/dist/cjs/SchemaAST.js.map +1 -1
- package/dist/cjs/Sink.js.map +1 -1
- package/dist/cjs/SortedMap.js.map +1 -1
- package/dist/cjs/Stream.js.map +1 -1
- package/dist/cjs/Struct.js.map +1 -1
- package/dist/cjs/Subscribable.js.map +1 -1
- package/dist/cjs/SubscriptionRef.js.map +1 -1
- package/dist/cjs/SynchronizedRef.js.map +1 -1
- package/dist/cjs/TArray.js.map +1 -1
- package/dist/cjs/TMap.js.map +1 -1
- package/dist/cjs/Take.js.map +1 -1
- package/dist/cjs/TestServices.js.map +1 -1
- package/dist/cjs/Unify.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/Array.d.ts.map +1 -1
- package/dist/dts/Cause.d.ts.map +1 -1
- package/dist/dts/Channel.d.ts.map +1 -1
- package/dist/dts/ChildExecutorDecision.d.ts.map +1 -1
- package/dist/dts/Chunk.d.ts.map +1 -1
- package/dist/dts/Config.d.ts.map +1 -1
- package/dist/dts/ConfigProvider.d.ts.map +1 -1
- package/dist/dts/Console.d.ts.map +1 -1
- package/dist/dts/Context.d.ts.map +1 -1
- package/dist/dts/DateTime.d.ts.map +1 -1
- package/dist/dts/Duration.d.ts +1 -3
- package/dist/dts/Duration.d.ts.map +1 -1
- package/dist/dts/Effect.d.ts.map +1 -1
- package/dist/dts/Either.d.ts.map +1 -1
- package/dist/dts/ExecutionStrategy.d.ts.map +1 -1
- package/dist/dts/Exit.d.ts.map +1 -1
- package/dist/dts/Fiber.d.ts.map +1 -1
- package/dist/dts/FiberRefsPatch.d.ts.map +1 -1
- package/dist/dts/Function.d.ts.map +1 -1
- package/dist/dts/GroupBy.d.ts.map +1 -1
- package/dist/dts/HashSet.d.ts.map +1 -1
- package/dist/dts/Iterable.d.ts.map +1 -1
- package/dist/dts/Layer.d.ts.map +1 -1
- package/dist/dts/List.d.ts.map +1 -1
- package/dist/dts/Logger.d.ts.map +1 -1
- package/dist/dts/Mailbox.d.ts.map +1 -1
- package/dist/dts/MergeDecision.d.ts.map +1 -1
- package/dist/dts/MergeStrategy.d.ts.map +1 -1
- package/dist/dts/Metric.d.ts.map +1 -1
- package/dist/dts/MetricKey.d.ts.map +1 -1
- package/dist/dts/MetricPolling.d.ts.map +1 -1
- package/dist/dts/Micro.d.ts.map +1 -1
- package/dist/dts/MutableHashMap.d.ts.map +1 -1
- package/dist/dts/Option.d.ts +3 -3
- package/dist/dts/Option.d.ts.map +1 -1
- package/dist/dts/ParseResult.d.ts.map +1 -1
- package/dist/dts/Predicate.d.ts.map +1 -1
- package/dist/dts/RcMap.d.ts.map +1 -1
- package/dist/dts/Record.d.ts.map +1 -1
- package/dist/dts/RedBlackTree.d.ts.map +1 -1
- package/dist/dts/Request.d.ts.map +1 -1
- package/dist/dts/RequestResolver.d.ts.map +1 -1
- package/dist/dts/Runtime.d.ts.map +1 -1
- package/dist/dts/STM.d.ts.map +1 -1
- package/dist/dts/Schedule.d.ts.map +1 -1
- package/dist/dts/Schema.d.ts.map +1 -1
- package/dist/dts/Sink.d.ts.map +1 -1
- package/dist/dts/SortedMap.d.ts.map +1 -1
- package/dist/dts/Stream.d.ts.map +1 -1
- package/dist/dts/StreamHaltStrategy.d.ts.map +1 -1
- package/dist/dts/Struct.d.ts.map +1 -1
- package/dist/dts/Subscribable.d.ts.map +1 -1
- package/dist/dts/SubscriptionRef.d.ts.map +1 -1
- package/dist/dts/SynchronizedRef.d.ts.map +1 -1
- package/dist/dts/TArray.d.ts.map +1 -1
- package/dist/dts/TMap.d.ts.map +1 -1
- package/dist/dts/TSubscriptionRef.d.ts.map +1 -1
- package/dist/dts/Take.d.ts.map +1 -1
- package/dist/dts/TestServices.d.ts.map +1 -1
- package/dist/dts/Unify.d.ts.map +1 -1
- package/dist/dts/UpstreamPullRequest.d.ts.map +1 -1
- package/dist/dts/UpstreamPullStrategy.d.ts.map +1 -1
- package/dist/esm/Array.js.map +1 -1
- package/dist/esm/Channel.js.map +1 -1
- package/dist/esm/Chunk.js.map +1 -1
- package/dist/esm/Context.js.map +1 -1
- package/dist/esm/DateTime.js.map +1 -1
- package/dist/esm/Duration.js +1 -3
- package/dist/esm/Duration.js.map +1 -1
- package/dist/esm/Effect.js.map +1 -1
- package/dist/esm/Either.js.map +1 -1
- package/dist/esm/Exit.js.map +1 -1
- package/dist/esm/Function.js.map +1 -1
- package/dist/esm/HashSet.js.map +1 -1
- package/dist/esm/Iterable.js.map +1 -1
- package/dist/esm/Layer.js.map +1 -1
- package/dist/esm/List.js.map +1 -1
- package/dist/esm/Logger.js.map +1 -1
- package/dist/esm/Metric.js.map +1 -1
- package/dist/esm/MetricKey.js.map +1 -1
- package/dist/esm/MetricPolling.js.map +1 -1
- package/dist/esm/Micro.js.map +1 -1
- package/dist/esm/MutableHashMap.js.map +1 -1
- package/dist/esm/Option.js +1 -1
- package/dist/esm/Option.js.map +1 -1
- package/dist/esm/ParseResult.js.map +1 -1
- package/dist/esm/Predicate.js.map +1 -1
- package/dist/esm/Record.js.map +1 -1
- package/dist/esm/Request.js.map +1 -1
- package/dist/esm/RequestResolver.js.map +1 -1
- package/dist/esm/STM.js.map +1 -1
- package/dist/esm/Schedule.js.map +1 -1
- package/dist/esm/Schema.js.map +1 -1
- package/dist/esm/SchemaAST.js +1 -1
- package/dist/esm/SchemaAST.js.map +1 -1
- package/dist/esm/Sink.js.map +1 -1
- package/dist/esm/SortedMap.js.map +1 -1
- package/dist/esm/Stream.js.map +1 -1
- package/dist/esm/Struct.js.map +1 -1
- package/dist/esm/Subscribable.js.map +1 -1
- package/dist/esm/SubscriptionRef.js.map +1 -1
- package/dist/esm/SynchronizedRef.js.map +1 -1
- package/dist/esm/TArray.js.map +1 -1
- package/dist/esm/TMap.js.map +1 -1
- package/dist/esm/Take.js.map +1 -1
- package/dist/esm/TestServices.js.map +1 -1
- package/dist/esm/Unify.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +22 -82
- package/src/Cause.ts +20 -20
- package/src/Channel.ts +14 -44
- package/src/ChildExecutorDecision.ts +11 -11
- package/src/Chunk.ts +23 -36
- package/src/Config.ts +27 -27
- package/src/ConfigProvider.ts +3 -3
- package/src/Console.ts +9 -9
- package/src/Context.ts +2 -9
- package/src/DateTime.ts +96 -104
- package/src/Duration.ts +1 -3
- package/src/Effect.ts +64 -229
- package/src/Either.ts +2 -8
- package/src/ExecutionStrategy.ts +11 -11
- package/src/Exit.ts +27 -29
- package/src/Fiber.ts +9 -9
- package/src/FiberRefsPatch.ts +3 -3
- package/src/Function.ts +2 -8
- package/src/GroupBy.ts +5 -5
- package/src/HashSet.ts +2 -7
- package/src/Iterable.ts +2 -7
- package/src/Layer.ts +22 -77
- package/src/List.ts +32 -43
- package/src/Logger.ts +21 -55
- package/src/Mailbox.ts +9 -9
- package/src/MergeDecision.ts +9 -9
- package/src/MergeStrategy.ts +9 -9
- package/src/Metric.ts +13 -47
- package/src/MetricKey.ts +4 -16
- package/src/MetricPolling.ts +1 -3
- package/src/Micro.ts +43 -104
- package/src/MutableHashMap.ts +1 -4
- package/src/Option.ts +4 -7
- package/src/ParseResult.ts +4 -14
- package/src/Predicate.ts +2 -6
- package/src/RcMap.ts +10 -10
- package/src/Record.ts +24 -90
- package/src/RedBlackTree.ts +14 -14
- package/src/Request.ts +2 -7
- package/src/RequestResolver.ts +6 -22
- package/src/Runtime.ts +4 -4
- package/src/STM.ts +17 -67
- package/src/Schedule.ts +37 -126
- package/src/Schema.ts +99 -123
- package/src/SchemaAST.ts +1 -1
- package/src/Sink.ts +20 -68
- package/src/SortedMap.ts +1 -3
- package/src/Stream.ts +86 -311
- package/src/StreamHaltStrategy.ts +13 -13
- package/src/Struct.ts +2 -7
- package/src/Subscribable.ts +1 -3
- package/src/SubscriptionRef.ts +1 -3
- package/src/SynchronizedRef.ts +17 -19
- package/src/TArray.ts +7 -10
- package/src/TMap.ts +4 -13
- package/src/TSubscriptionRef.ts +3 -3
- package/src/Take.ts +24 -29
- package/src/TestServices.ts +1 -3
- package/src/Unify.ts +1 -3
- package/src/UpstreamPullRequest.ts +9 -9
- package/src/UpstreamPullStrategy.ts +9 -9
- package/src/internal/version.ts +1 -1
package/src/Stream.ts
CHANGED
|
@@ -571,10 +571,7 @@ export const branchAfter: {
|
|
|
571
571
|
* @since 2.0.0
|
|
572
572
|
* @category sequencing
|
|
573
573
|
*/
|
|
574
|
-
<A, A2, E2, R2>(
|
|
575
|
-
n: number,
|
|
576
|
-
f: (input: Chunk.Chunk<A>) => Stream<A2, E2, R2>
|
|
577
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
574
|
+
<A, A2, E2, R2>(n: number, f: (input: Chunk.Chunk<A>) => Stream<A2, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
578
575
|
/**
|
|
579
576
|
* Returns a `Stream` that first collects `n` elements from the input `Stream`,
|
|
580
577
|
* and then creates a new `Stream` using the specified function, and sends all
|
|
@@ -1265,9 +1262,7 @@ export const catchAllCause: {
|
|
|
1265
1262
|
* @since 2.0.0
|
|
1266
1263
|
* @category error handling
|
|
1267
1264
|
*/
|
|
1268
|
-
<E, A2, E2, R2>(
|
|
1269
|
-
f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>
|
|
1270
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2, R2 | R>
|
|
1265
|
+
<E, A2, E2, R2>(f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2, R2 | R>
|
|
1271
1266
|
/**
|
|
1272
1267
|
* Switches over to the stream produced by the provided function in case this
|
|
1273
1268
|
* one fails. Allows recovery from all causes of failure, including
|
|
@@ -1276,10 +1271,7 @@ export const catchAllCause: {
|
|
|
1276
1271
|
* @since 2.0.0
|
|
1277
1272
|
* @category error handling
|
|
1278
1273
|
*/
|
|
1279
|
-
<A, E, R, A2, E2, R2>(
|
|
1280
|
-
self: Stream<A, E, R>,
|
|
1281
|
-
f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>
|
|
1282
|
-
): Stream<A | A2, E2, R | R2>
|
|
1274
|
+
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>): Stream<A | A2, E2, R | R2>
|
|
1283
1275
|
} = internal.catchAllCause
|
|
1284
1276
|
|
|
1285
1277
|
/**
|
|
@@ -1297,9 +1289,7 @@ export const catchSome: {
|
|
|
1297
1289
|
* @since 2.0.0
|
|
1298
1290
|
* @category error handling
|
|
1299
1291
|
*/
|
|
1300
|
-
<E, A2, E2, R2>(
|
|
1301
|
-
pf: (error: E) => Option.Option<Stream<A2, E2, R2>>
|
|
1302
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A2 | A, E | E2, R2 | R>
|
|
1292
|
+
<E, A2, E2, R2>(pf: (error: E) => Option.Option<Stream<A2, E2, R2>>): <A, R>(self: Stream<A, E, R>) => Stream<A2 | A, E | E2, R2 | R>
|
|
1303
1293
|
/**
|
|
1304
1294
|
* Switches over to the stream produced by the provided function in case this
|
|
1305
1295
|
* one fails with some typed error.
|
|
@@ -1307,10 +1297,7 @@ export const catchSome: {
|
|
|
1307
1297
|
* @since 2.0.0
|
|
1308
1298
|
* @category error handling
|
|
1309
1299
|
*/
|
|
1310
|
-
<A, E, R, A2, E2, R2>(
|
|
1311
|
-
self: Stream<A, E, R>,
|
|
1312
|
-
pf: (error: E) => Option.Option<Stream<A2, E2, R2>>
|
|
1313
|
-
): Stream<A | A2, E | E2, R | R2>
|
|
1300
|
+
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, pf: (error: E) => Option.Option<Stream<A2, E2, R2>>): Stream<A | A2, E | E2, R | R2>
|
|
1314
1301
|
} = internal.catchSome
|
|
1315
1302
|
|
|
1316
1303
|
/**
|
|
@@ -1328,10 +1315,7 @@ export const catchTag: {
|
|
|
1328
1315
|
* @since 2.0.0
|
|
1329
1316
|
* @category error handling
|
|
1330
1317
|
*/
|
|
1331
|
-
<K extends E["_tag"] & string, E extends { _tag: string }, A1, E1, R1>(
|
|
1332
|
-
k: K,
|
|
1333
|
-
f: (e: Extract<E, { _tag: K }>) => Stream<A1, E1, R1>
|
|
1334
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A1 | A, E1 | Exclude<E, { _tag: K }>, R1 | R>
|
|
1318
|
+
<K extends E["_tag"] & string, E extends { _tag: string }, A1, E1, R1>(k: K, f: (e: Extract<E, { _tag: K }>) => Stream<A1, E1, R1>): <A, R>(self: Stream<A, E, R>) => Stream<A1 | A, E1 | Exclude<E, { _tag: K }>, R1 | R>
|
|
1335
1319
|
/**
|
|
1336
1320
|
* Switches over to the stream produced by the provided function in case this
|
|
1337
1321
|
* one fails with an error matching the given `_tag`.
|
|
@@ -1431,9 +1415,7 @@ export const catchSomeCause: {
|
|
|
1431
1415
|
* @since 2.0.0
|
|
1432
1416
|
* @category error handling
|
|
1433
1417
|
*/
|
|
1434
|
-
<E, A2, E2, R2>(
|
|
1435
|
-
pf: (cause: Cause.Cause<E>) => Option.Option<Stream<A2, E2, R2>>
|
|
1436
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A2 | A, E | E2, R2 | R>
|
|
1418
|
+
<E, A2, E2, R2>(pf: (cause: Cause.Cause<E>) => Option.Option<Stream<A2, E2, R2>>): <A, R>(self: Stream<A, E, R>) => Stream<A2 | A, E | E2, R2 | R>
|
|
1437
1419
|
/**
|
|
1438
1420
|
* Switches over to the stream produced by the provided function in case this
|
|
1439
1421
|
* one fails with some errors. Allows recovery from all causes of failure,
|
|
@@ -1514,9 +1496,7 @@ export const changesWithEffect: {
|
|
|
1514
1496
|
* @since 2.0.0
|
|
1515
1497
|
* @category utils
|
|
1516
1498
|
*/
|
|
1517
|
-
<A, E2, R2>(
|
|
1518
|
-
f: (x: A, y: A) => Effect.Effect<boolean, E2, R2>
|
|
1519
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
1499
|
+
<A, E2, R2>(f: (x: A, y: A) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
1520
1500
|
/**
|
|
1521
1501
|
* Returns a new stream that only emits elements that are not equal to the
|
|
1522
1502
|
* previous element emitted, using the specified effectual function to
|
|
@@ -1960,10 +1940,7 @@ export const crossWith: {
|
|
|
1960
1940
|
* @since 2.0.0
|
|
1961
1941
|
* @category utils
|
|
1962
1942
|
*/
|
|
1963
|
-
<AR, ER, RR, AL, A>(
|
|
1964
|
-
right: Stream<AR, ER, RR>,
|
|
1965
|
-
f: (left: AL, right: AR) => A
|
|
1966
|
-
): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
|
|
1943
|
+
<AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
|
|
1967
1944
|
/**
|
|
1968
1945
|
* Composes this stream with the specified stream to create a cartesian
|
|
1969
1946
|
* product of elements with a specified function. The `right` stream would be
|
|
@@ -2414,9 +2391,7 @@ export const dropUntilEffect: {
|
|
|
2414
2391
|
* @since 2.0.0
|
|
2415
2392
|
* @category utils
|
|
2416
2393
|
*/
|
|
2417
|
-
<A, E2, R2>(
|
|
2418
|
-
predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>
|
|
2419
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
2394
|
+
<A, E2, R2>(predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
2420
2395
|
/**
|
|
2421
2396
|
* Drops all elements of the stream until the specified effectful predicate
|
|
2422
2397
|
* evaluates to `true`.
|
|
@@ -2471,9 +2446,7 @@ export const dropWhileEffect: {
|
|
|
2471
2446
|
* @since 2.0.0
|
|
2472
2447
|
* @category utils
|
|
2473
2448
|
*/
|
|
2474
|
-
<A, E2, R2>(
|
|
2475
|
-
predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>
|
|
2476
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
2449
|
+
<A, E2, R2>(predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
2477
2450
|
/**
|
|
2478
2451
|
* Drops all elements of the stream for as long as the specified predicate
|
|
2479
2452
|
* produces an effect that evalutates to `true`
|
|
@@ -2481,10 +2454,7 @@ export const dropWhileEffect: {
|
|
|
2481
2454
|
* @since 2.0.0
|
|
2482
2455
|
* @category utils
|
|
2483
2456
|
*/
|
|
2484
|
-
<A, E, R, E2, R2>(
|
|
2485
|
-
self: Stream<A, E, R>,
|
|
2486
|
-
predicate: (a: A) => Effect.Effect<boolean, E2, R2>
|
|
2487
|
-
): Stream<A, E | E2, R | R2>
|
|
2457
|
+
<A, E, R, E2, R2>(self: Stream<A, E, R>, predicate: (a: A) => Effect.Effect<boolean, E2, R2>): Stream<A, E | E2, R | R2>
|
|
2488
2458
|
} = internal.dropWhileEffect
|
|
2489
2459
|
|
|
2490
2460
|
/**
|
|
@@ -2812,9 +2782,7 @@ export const filterEffect: {
|
|
|
2812
2782
|
* @since 2.0.0
|
|
2813
2783
|
* @category filtering
|
|
2814
2784
|
*/
|
|
2815
|
-
<A, E2, R2>(
|
|
2816
|
-
f: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>
|
|
2817
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
2785
|
+
<A, E2, R2>(f: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
2818
2786
|
/**
|
|
2819
2787
|
* Effectfully filters the elements emitted by this stream.
|
|
2820
2788
|
*
|
|
@@ -2860,9 +2828,7 @@ export const filterMapEffect: {
|
|
|
2860
2828
|
* @since 2.0.0
|
|
2861
2829
|
* @category utils
|
|
2862
2830
|
*/
|
|
2863
|
-
<A, A2, E2, R2>(
|
|
2864
|
-
pf: (a: A) => Option.Option<Effect.Effect<A2, E2, R2>>
|
|
2865
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
2831
|
+
<A, A2, E2, R2>(pf: (a: A) => Option.Option<Effect.Effect<A2, E2, R2>>): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
2866
2832
|
/**
|
|
2867
2833
|
* Performs an effectful filter and map in a single step.
|
|
2868
2834
|
*
|
|
@@ -2916,9 +2882,7 @@ export const filterMapWhileEffect: {
|
|
|
2916
2882
|
* @since 2.0.0
|
|
2917
2883
|
* @category utils
|
|
2918
2884
|
*/
|
|
2919
|
-
<A, A2, E2, R2>(
|
|
2920
|
-
pf: (a: A) => Option.Option<Effect.Effect<A2, E2, R2>>
|
|
2921
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
2885
|
+
<A, A2, E2, R2>(pf: (a: A) => Option.Option<Effect.Effect<A2, E2, R2>>): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
2922
2886
|
/**
|
|
2923
2887
|
* Effectfully transforms all elements of the stream for as long as the
|
|
2924
2888
|
* specified partial function is defined.
|
|
@@ -3023,9 +2987,7 @@ export const findEffect: {
|
|
|
3023
2987
|
* @since 2.0.0
|
|
3024
2988
|
* @category elements
|
|
3025
2989
|
*/
|
|
3026
|
-
<A, E2, R2>(
|
|
3027
|
-
predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>
|
|
3028
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
2990
|
+
<A, E2, R2>(predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
3029
2991
|
/**
|
|
3030
2992
|
* Finds the first element emitted by this stream that satisfies the provided
|
|
3031
2993
|
* effectful predicate.
|
|
@@ -4053,10 +4015,7 @@ export const groupedWithin: {
|
|
|
4053
4015
|
* @since 2.0.0
|
|
4054
4016
|
* @category grouping
|
|
4055
4017
|
*/
|
|
4056
|
-
(
|
|
4057
|
-
chunkSize: number,
|
|
4058
|
-
duration: Duration.DurationInput
|
|
4059
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<Chunk.Chunk<A>, E, R>
|
|
4018
|
+
(chunkSize: number, duration: Duration.DurationInput): <A, E, R>(self: Stream<A, E, R>) => Stream<Chunk.Chunk<A>, E, R>
|
|
4060
4019
|
/**
|
|
4061
4020
|
* Partitions the stream with the specified `chunkSize` or until the specified
|
|
4062
4021
|
* `duration` has passed, whichever is satisfied first.
|
|
@@ -4357,10 +4316,7 @@ export const interleaveWith: {
|
|
|
4357
4316
|
* @since 2.0.0
|
|
4358
4317
|
* @category utils
|
|
4359
4318
|
*/
|
|
4360
|
-
<A2, E2, R2, E3, R3>(
|
|
4361
|
-
that: Stream<A2, E2, R2>,
|
|
4362
|
-
decider: Stream<boolean, E3, R3>
|
|
4363
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E3 | E, R2 | R3 | R>
|
|
4319
|
+
<A2, E2, R2, E3, R3>(that: Stream<A2, E2, R2>, decider: Stream<boolean, E3, R3>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E3 | E, R2 | R3 | R>
|
|
4364
4320
|
/**
|
|
4365
4321
|
* Combines this stream and the specified stream deterministically using the
|
|
4366
4322
|
* stream of boolean values `pull` to control which stream to pull from next.
|
|
@@ -4531,9 +4487,7 @@ export const intersperseAffixes: {
|
|
|
4531
4487
|
* @since 2.0.0
|
|
4532
4488
|
* @category utils
|
|
4533
4489
|
*/
|
|
4534
|
-
<A2, A3, A4>(
|
|
4535
|
-
options: { readonly start: A2; readonly middle: A3; readonly end: A4 }
|
|
4536
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A3 | A4 | A, E, R>
|
|
4490
|
+
<A2, A3, A4>(options: { readonly start: A2; readonly middle: A3; readonly end: A4 }): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A3 | A4 | A, E, R>
|
|
4537
4491
|
/**
|
|
4538
4492
|
* Intersperse the specified element, also adding a prefix and a suffix.
|
|
4539
4493
|
*
|
|
@@ -4842,10 +4796,7 @@ export const mapAccumEffect: {
|
|
|
4842
4796
|
* @since 2.0.0
|
|
4843
4797
|
* @category mapping
|
|
4844
4798
|
*/
|
|
4845
|
-
<S, A, A2, E2, R2>(
|
|
4846
|
-
s: S,
|
|
4847
|
-
f: (s: S, a: A) => Effect.Effect<readonly [S, A2], E2, R2>
|
|
4848
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
4799
|
+
<S, A, A2, E2, R2>(s: S, f: (s: S, a: A) => Effect.Effect<readonly [S, A2], E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
4849
4800
|
/**
|
|
4850
4801
|
* Statefully and effectfully maps over the elements of this stream to produce
|
|
4851
4802
|
* new elements.
|
|
@@ -4927,9 +4878,7 @@ export const mapChunksEffect: {
|
|
|
4927
4878
|
* @since 2.0.0
|
|
4928
4879
|
* @category mapping
|
|
4929
4880
|
*/
|
|
4930
|
-
<A, B, E2, R2>(
|
|
4931
|
-
f: (chunk: Chunk.Chunk<A>) => Effect.Effect<Chunk.Chunk<B>, E2, R2>
|
|
4932
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<B, E2 | E, R2 | R>
|
|
4881
|
+
<A, B, E2, R2>(f: (chunk: Chunk.Chunk<A>) => Effect.Effect<Chunk.Chunk<B>, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<B, E2 | E, R2 | R>
|
|
4933
4882
|
/**
|
|
4934
4883
|
* Effectfully transforms the chunks emitted by this stream.
|
|
4935
4884
|
*
|
|
@@ -5048,9 +4997,7 @@ export const mapConcatChunkEffect: {
|
|
|
5048
4997
|
* @since 2.0.0
|
|
5049
4998
|
* @category mapping
|
|
5050
4999
|
*/
|
|
5051
|
-
<A, A2, E2, R2>(
|
|
5052
|
-
f: (a: A) => Effect.Effect<Chunk.Chunk<A2>, E2, R2>
|
|
5053
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
5000
|
+
<A, A2, E2, R2>(f: (a: A) => Effect.Effect<Chunk.Chunk<A2>, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
5054
5001
|
/**
|
|
5055
5002
|
* Effectfully maps each element to a chunk, and flattens the chunks into the
|
|
5056
5003
|
* output of this stream.
|
|
@@ -5058,10 +5005,7 @@ export const mapConcatChunkEffect: {
|
|
|
5058
5005
|
* @since 2.0.0
|
|
5059
5006
|
* @category mapping
|
|
5060
5007
|
*/
|
|
5061
|
-
<A, E, R, A2, E2, R2>(
|
|
5062
|
-
self: Stream<A, E, R>,
|
|
5063
|
-
f: (a: A) => Effect.Effect<Chunk.Chunk<A2>, E2, R2>
|
|
5064
|
-
): Stream<A2, E | E2, R | R2>
|
|
5008
|
+
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<Chunk.Chunk<A2>, E2, R2>): Stream<A2, E | E2, R | R2>
|
|
5065
5009
|
} = internal.mapConcatChunkEffect
|
|
5066
5010
|
|
|
5067
5011
|
/**
|
|
@@ -5079,9 +5023,7 @@ export const mapConcatEffect: {
|
|
|
5079
5023
|
* @since 2.0.0
|
|
5080
5024
|
* @category mapping
|
|
5081
5025
|
*/
|
|
5082
|
-
<A, A2, E2, R2>(
|
|
5083
|
-
f: (a: A) => Effect.Effect<Iterable<A2>, E2, R2>
|
|
5084
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
5026
|
+
<A, A2, E2, R2>(f: (a: A) => Effect.Effect<Iterable<A2>, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
5085
5027
|
/**
|
|
5086
5028
|
* Effectfully maps each element to an iterable, and flattens the iterables
|
|
5087
5029
|
* into the output of this stream.
|
|
@@ -5089,10 +5031,7 @@ export const mapConcatEffect: {
|
|
|
5089
5031
|
* @since 2.0.0
|
|
5090
5032
|
* @category mapping
|
|
5091
5033
|
*/
|
|
5092
|
-
<A, E, R, A2, E2, R2>(
|
|
5093
|
-
self: Stream<A, E, R>,
|
|
5094
|
-
f: (a: A) => Effect.Effect<Iterable<A2>, E2, R2>
|
|
5095
|
-
): Stream<A2, E | E2, R | R2>
|
|
5034
|
+
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<Iterable<A2>, E2, R2>): Stream<A2, E | E2, R | R2>
|
|
5096
5035
|
} = internal.mapConcatEffect
|
|
5097
5036
|
|
|
5098
5037
|
/**
|
|
@@ -5580,9 +5519,7 @@ export const mergeEither: {
|
|
|
5580
5519
|
* @since 2.0.0
|
|
5581
5520
|
* @category utils
|
|
5582
5521
|
*/
|
|
5583
|
-
<A2, E2, R2>(
|
|
5584
|
-
that: Stream<A2, E2, R2>
|
|
5585
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<Either.Either<A2, A>, E2 | E, R2 | R>
|
|
5522
|
+
<A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<Either.Either<A2, A>, E2 | E, R2 | R>
|
|
5586
5523
|
/**
|
|
5587
5524
|
* Merges this stream and the specified stream together to produce a stream of
|
|
5588
5525
|
* eithers.
|
|
@@ -5760,9 +5697,7 @@ export const onError: {
|
|
|
5760
5697
|
* @since 2.0.0
|
|
5761
5698
|
* @category utils
|
|
5762
5699
|
*/
|
|
5763
|
-
<E, X, R2>(
|
|
5764
|
-
cleanup: (cause: Cause.Cause<E>) => Effect.Effect<X, never, R2>
|
|
5765
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A, E, R2 | R>
|
|
5700
|
+
<E, X, R2>(cleanup: (cause: Cause.Cause<E>) => Effect.Effect<X, never, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E, R2 | R>
|
|
5766
5701
|
/**
|
|
5767
5702
|
* Runs the specified effect if this stream fails, providing the error to the
|
|
5768
5703
|
* effect if it exists.
|
|
@@ -5960,9 +5895,7 @@ export const orElseEither: {
|
|
|
5960
5895
|
* @since 2.0.0
|
|
5961
5896
|
* @category error handling
|
|
5962
5897
|
*/
|
|
5963
|
-
<A2, E2, R2>(
|
|
5964
|
-
that: LazyArg<Stream<A2, E2, R2>>
|
|
5965
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<Either.Either<A2, A>, E2, R2 | R>
|
|
5898
|
+
<A2, E2, R2>(that: LazyArg<Stream<A2, E2, R2>>): <A, E, R>(self: Stream<A, E, R>) => Stream<Either.Either<A2, A>, E2, R2 | R>
|
|
5966
5899
|
/**
|
|
5967
5900
|
* Switches to the provided stream in case this one fails with a typed error.
|
|
5968
5901
|
*
|
|
@@ -5971,10 +5904,7 @@ export const orElseEither: {
|
|
|
5971
5904
|
* @since 2.0.0
|
|
5972
5905
|
* @category error handling
|
|
5973
5906
|
*/
|
|
5974
|
-
<A, E, R, A2, E2, R2>(
|
|
5975
|
-
self: Stream<A, E, R>,
|
|
5976
|
-
that: LazyArg<Stream<A2, E2, R2>>
|
|
5977
|
-
): Stream<Either.Either<A2, A>, E2, R | R2>
|
|
5907
|
+
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: LazyArg<Stream<A2, E2, R2>>): Stream<Either.Either<A2, A>, E2, R | R2>
|
|
5978
5908
|
} = internal.orElseEither
|
|
5979
5909
|
|
|
5980
5910
|
/**
|
|
@@ -6550,9 +6480,7 @@ export const peel: {
|
|
|
6550
6480
|
* @since 2.0.0
|
|
6551
6481
|
* @category utils
|
|
6552
6482
|
*/
|
|
6553
|
-
<A2, A, E2, R2>(
|
|
6554
|
-
sink: Sink.Sink<A2, A, A, E2, R2>
|
|
6555
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<[A2, Stream<A, E, never>], E2 | E, Scope.Scope | R2 | R>
|
|
6483
|
+
<A2, A, E2, R2>(sink: Sink.Sink<A2, A, A, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<[A2, Stream<A, E, never>], E2 | E, Scope.Scope | R2 | R>
|
|
6556
6484
|
/**
|
|
6557
6485
|
* Peels off enough material from the stream to construct a `Z` using the
|
|
6558
6486
|
* provided `Sink` and then returns both the `Z` and the rest of the
|
|
@@ -6562,10 +6490,7 @@ export const peel: {
|
|
|
6562
6490
|
* @since 2.0.0
|
|
6563
6491
|
* @category utils
|
|
6564
6492
|
*/
|
|
6565
|
-
<A, E, R, A2, E2, R2>(
|
|
6566
|
-
self: Stream<A, E, R>,
|
|
6567
|
-
sink: Sink.Sink<A2, A, A, E2, R2>
|
|
6568
|
-
): Effect.Effect<[A2, Stream<A, E, never>], E | E2, Scope.Scope | R | R2>
|
|
6493
|
+
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<A2, A, A, E2, R2>): Effect.Effect<[A2, Stream<A, E, never>], E | E2, Scope.Scope | R | R2>
|
|
6569
6494
|
} = internal.peel
|
|
6570
6495
|
|
|
6571
6496
|
/**
|
|
@@ -6769,10 +6694,7 @@ export const provideServiceEffect: {
|
|
|
6769
6694
|
* @since 2.0.0
|
|
6770
6695
|
* @category context
|
|
6771
6696
|
*/
|
|
6772
|
-
<I, S, E2, R2>(
|
|
6773
|
-
tag: Context.Tag<I, S>,
|
|
6774
|
-
effect: Effect.Effect<NoInfer<S>, E2, R2>
|
|
6775
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | Exclude<R, I>>
|
|
6697
|
+
<I, S, E2, R2>(tag: Context.Tag<I, S>, effect: Effect.Effect<NoInfer<S>, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | Exclude<R, I>>
|
|
6776
6698
|
/**
|
|
6777
6699
|
* Provides the stream with the single service it requires. If the stream
|
|
6778
6700
|
* requires more than one service use `Stream.provideContext` instead.
|
|
@@ -6802,10 +6724,7 @@ export const provideServiceStream: {
|
|
|
6802
6724
|
* @since 2.0.0
|
|
6803
6725
|
* @category context
|
|
6804
6726
|
*/
|
|
6805
|
-
<I, S, E2, R2>(
|
|
6806
|
-
tag: Context.Tag<I, S>,
|
|
6807
|
-
stream: Stream<NoInfer<S>, E2, R2>
|
|
6808
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | Exclude<R, I>>
|
|
6727
|
+
<I, S, E2, R2>(tag: Context.Tag<I, S>, stream: Stream<NoInfer<S>, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | Exclude<R, I>>
|
|
6809
6728
|
/**
|
|
6810
6729
|
* Provides the stream with the single service it requires. If the stream
|
|
6811
6730
|
* requires more than one service use `Stream.provideContext` instead.
|
|
@@ -6861,9 +6780,7 @@ export const provideSomeLayer: {
|
|
|
6861
6780
|
* @since 2.0.0
|
|
6862
6781
|
* @category context
|
|
6863
6782
|
*/
|
|
6864
|
-
<RIn, E2, ROut>(
|
|
6865
|
-
layer: Layer.Layer<ROut, E2, RIn>
|
|
6866
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, RIn | Exclude<R, ROut>>
|
|
6783
|
+
<RIn, E2, ROut>(layer: Layer.Layer<ROut, E2, RIn>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, RIn | Exclude<R, ROut>>
|
|
6867
6784
|
/**
|
|
6868
6785
|
* Splits the context into two parts, providing one part using the
|
|
6869
6786
|
* specified layer and leaving the remainder `R0`.
|
|
@@ -6871,10 +6788,7 @@ export const provideSomeLayer: {
|
|
|
6871
6788
|
* @since 2.0.0
|
|
6872
6789
|
* @category context
|
|
6873
6790
|
*/
|
|
6874
|
-
<A, E, R, RIn, E2, ROut>(
|
|
6875
|
-
self: Stream<A, E, R>,
|
|
6876
|
-
layer: Layer.Layer<ROut, E2, RIn>
|
|
6877
|
-
): Stream<A, E | E2, RIn | Exclude<R, ROut>>
|
|
6791
|
+
<A, E, R, RIn, E2, ROut>(self: Stream<A, E, R>, layer: Layer.Layer<ROut, E2, RIn>): Stream<A, E | E2, RIn | Exclude<R, ROut>>
|
|
6878
6792
|
} = internal.provideSomeLayer
|
|
6879
6793
|
|
|
6880
6794
|
/**
|
|
@@ -7085,10 +6999,7 @@ export const refineOrDieWith: {
|
|
|
7085
6999
|
* @since 2.0.0
|
|
7086
7000
|
* @category error handling
|
|
7087
7001
|
*/
|
|
7088
|
-
<E, E2>(
|
|
7089
|
-
pf: (error: E) => Option.Option<E2>,
|
|
7090
|
-
f: (error: E) => unknown
|
|
7091
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A, E2, R>
|
|
7002
|
+
<E, E2>(pf: (error: E) => Option.Option<E2>, f: (error: E) => unknown): <A, R>(self: Stream<A, E, R>) => Stream<A, E2, R>
|
|
7092
7003
|
/**
|
|
7093
7004
|
* Keeps some of the errors, and terminates the fiber with the rest, using the
|
|
7094
7005
|
* specified function to convert the `E` into a defect.
|
|
@@ -7256,9 +7167,7 @@ export const repeatEither: {
|
|
|
7256
7167
|
* @since 2.0.0
|
|
7257
7168
|
* @category utils
|
|
7258
7169
|
*/
|
|
7259
|
-
<B, R2>(
|
|
7260
|
-
schedule: Schedule.Schedule<B, unknown, R2>
|
|
7261
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<Either.Either<A, B>, E, R2 | R>
|
|
7170
|
+
<B, R2>(schedule: Schedule.Schedule<B, unknown, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<Either.Either<A, B>, E, R2 | R>
|
|
7262
7171
|
/**
|
|
7263
7172
|
* Repeats the entire stream using the specified schedule. The stream will
|
|
7264
7173
|
* execute normally, and then repeat again according to the provided schedule.
|
|
@@ -7267,10 +7176,7 @@ export const repeatEither: {
|
|
|
7267
7176
|
* @since 2.0.0
|
|
7268
7177
|
* @category utils
|
|
7269
7178
|
*/
|
|
7270
|
-
<A, E, R, B, R2>(
|
|
7271
|
-
self: Stream<A, E, R>,
|
|
7272
|
-
schedule: Schedule.Schedule<B, unknown, R2>
|
|
7273
|
-
): Stream<Either.Either<A, B>, E, R | R2>
|
|
7179
|
+
<A, E, R, B, R2>(self: Stream<A, E, R>, schedule: Schedule.Schedule<B, unknown, R2>): Stream<Either.Either<A, B>, E, R | R2>
|
|
7274
7180
|
} = internal.repeatEither
|
|
7275
7181
|
|
|
7276
7182
|
/**
|
|
@@ -7449,9 +7355,7 @@ export const retry: {
|
|
|
7449
7355
|
* @since 2.0.0
|
|
7450
7356
|
* @category utils
|
|
7451
7357
|
*/
|
|
7452
|
-
<E0 extends E, R2, E, X>(
|
|
7453
|
-
schedule: Schedule.Schedule<X, E0, R2>
|
|
7454
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A, E, R2 | R>
|
|
7358
|
+
<E0 extends E, R2, E, X>(schedule: Schedule.Schedule<X, E0, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E, R2 | R>
|
|
7455
7359
|
/**
|
|
7456
7360
|
* When the stream fails, retry it according to the given schedule
|
|
7457
7361
|
*
|
|
@@ -7481,19 +7385,14 @@ export const run: {
|
|
|
7481
7385
|
* @since 2.0.0
|
|
7482
7386
|
* @category destructors
|
|
7483
7387
|
*/
|
|
7484
|
-
<A2, A, E2, R2>(
|
|
7485
|
-
sink: Sink.Sink<A2, A, unknown, E2, R2>
|
|
7486
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<A2, E2 | E, Exclude<R | R2, Scope.Scope>>
|
|
7388
|
+
<A2, A, E2, R2>(sink: Sink.Sink<A2, A, unknown, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<A2, E2 | E, Exclude<R | R2, Scope.Scope>>
|
|
7487
7389
|
/**
|
|
7488
7390
|
* Runs the sink on the stream to produce either the sink's result or an error.
|
|
7489
7391
|
*
|
|
7490
7392
|
* @since 2.0.0
|
|
7491
7393
|
* @category destructors
|
|
7492
7394
|
*/
|
|
7493
|
-
<A, E, R, A2, E2, R2>(
|
|
7494
|
-
self: Stream<A, E, R>,
|
|
7495
|
-
sink: Sink.Sink<A2, A, unknown, E2, R2>
|
|
7496
|
-
): Effect.Effect<A2, E | E2, Exclude<R | R2, Scope.Scope>>
|
|
7395
|
+
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<A2, A, unknown, E2, R2>): Effect.Effect<A2, E | E2, Exclude<R | R2, Scope.Scope>>
|
|
7497
7396
|
} = internal.run
|
|
7498
7397
|
|
|
7499
7398
|
/**
|
|
@@ -7559,21 +7458,14 @@ export const runFoldEffect: {
|
|
|
7559
7458
|
* @since 2.0.0
|
|
7560
7459
|
* @category destructors
|
|
7561
7460
|
*/
|
|
7562
|
-
<S, A, E2, R2>(
|
|
7563
|
-
s: S,
|
|
7564
|
-
f: (s: S, a: A) => Effect.Effect<S, E2, R2>
|
|
7565
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E2 | E, Exclude<R | R2, Scope.Scope>>
|
|
7461
|
+
<S, A, E2, R2>(s: S, f: (s: S, a: A) => Effect.Effect<S, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E2 | E, Exclude<R | R2, Scope.Scope>>
|
|
7566
7462
|
/**
|
|
7567
7463
|
* Executes an effectful fold over the stream of values.
|
|
7568
7464
|
*
|
|
7569
7465
|
* @since 2.0.0
|
|
7570
7466
|
* @category destructors
|
|
7571
7467
|
*/
|
|
7572
|
-
<A, E, R, S, E2, R2>(
|
|
7573
|
-
self: Stream<A, E, R>,
|
|
7574
|
-
s: S,
|
|
7575
|
-
f: (s: S, a: A) => Effect.Effect<S, E2, R2>
|
|
7576
|
-
): Effect.Effect<S, E | E2, Exclude<R | R2, Scope.Scope>>
|
|
7468
|
+
<A, E, R, S, E2, R2>(self: Stream<A, E, R>, s: S, f: (s: S, a: A) => Effect.Effect<S, E2, R2>): Effect.Effect<S, E | E2, Exclude<R | R2, Scope.Scope>>
|
|
7577
7469
|
} = internal.runFoldEffect
|
|
7578
7470
|
|
|
7579
7471
|
/**
|
|
@@ -7617,10 +7509,7 @@ export const runFoldScopedEffect: {
|
|
|
7617
7509
|
* @since 2.0.0
|
|
7618
7510
|
* @category destructors
|
|
7619
7511
|
*/
|
|
7620
|
-
<S, A, E2, R2>(
|
|
7621
|
-
s: S,
|
|
7622
|
-
f: (s: S, a: A) => Effect.Effect<S, E2, R2>
|
|
7623
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E2 | E, Scope.Scope | R2 | R>
|
|
7512
|
+
<S, A, E2, R2>(s: S, f: (s: S, a: A) => Effect.Effect<S, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E2 | E, Scope.Scope | R2 | R>
|
|
7624
7513
|
/**
|
|
7625
7514
|
* Executes an effectful fold over the stream of values. Returns a scoped
|
|
7626
7515
|
* value that represents the scope of the stream.
|
|
@@ -7628,11 +7517,7 @@ export const runFoldScopedEffect: {
|
|
|
7628
7517
|
* @since 2.0.0
|
|
7629
7518
|
* @category destructors
|
|
7630
7519
|
*/
|
|
7631
|
-
<A, E, R, S, E2, R2>(
|
|
7632
|
-
self: Stream<A, E, R>,
|
|
7633
|
-
s: S,
|
|
7634
|
-
f: (s: S, a: A) => Effect.Effect<S, E2, R2>
|
|
7635
|
-
): Effect.Effect<S, E | E2, Scope.Scope | R | R2>
|
|
7520
|
+
<A, E, R, S, E2, R2>(self: Stream<A, E, R>, s: S, f: (s: S, a: A) => Effect.Effect<S, E2, R2>): Effect.Effect<S, E | E2, Scope.Scope | R | R2>
|
|
7636
7521
|
} = internal.runFoldScopedEffect
|
|
7637
7522
|
|
|
7638
7523
|
/**
|
|
@@ -7676,11 +7561,7 @@ export const runFoldWhileEffect: {
|
|
|
7676
7561
|
* @since 2.0.0
|
|
7677
7562
|
* @category destructors
|
|
7678
7563
|
*/
|
|
7679
|
-
<S, A, E2, R2>(
|
|
7680
|
-
s: S,
|
|
7681
|
-
cont: Predicate<S>,
|
|
7682
|
-
f: (s: S, a: A) => Effect.Effect<S, E2, R2>
|
|
7683
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E2 | E, Exclude<R | R2, Scope.Scope>>
|
|
7564
|
+
<S, A, E2, R2>(s: S, cont: Predicate<S>, f: (s: S, a: A) => Effect.Effect<S, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E2 | E, Exclude<R | R2, Scope.Scope>>
|
|
7684
7565
|
/**
|
|
7685
7566
|
* Executes an effectful fold over the stream of values. Stops the fold early
|
|
7686
7567
|
* when the condition is not fulfilled.
|
|
@@ -7713,11 +7594,7 @@ export const runFoldWhileScoped: {
|
|
|
7713
7594
|
* @since 2.0.0
|
|
7714
7595
|
* @category destructors
|
|
7715
7596
|
*/
|
|
7716
|
-
<S, A>(
|
|
7717
|
-
s: S,
|
|
7718
|
-
cont: Predicate<S>,
|
|
7719
|
-
f: (s: S, a: A) => S
|
|
7720
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E, Scope.Scope | R>
|
|
7597
|
+
<S, A>(s: S, cont: Predicate<S>, f: (s: S, a: A) => S): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E, Scope.Scope | R>
|
|
7721
7598
|
/**
|
|
7722
7599
|
* Executes a pure fold over the stream of values. Returns a scoped value that
|
|
7723
7600
|
* represents the scope of the stream. Stops the fold early when the condition
|
|
@@ -7726,12 +7603,7 @@ export const runFoldWhileScoped: {
|
|
|
7726
7603
|
* @since 2.0.0
|
|
7727
7604
|
* @category destructors
|
|
7728
7605
|
*/
|
|
7729
|
-
<A, E, R, S>(
|
|
7730
|
-
self: Stream<A, E, R>,
|
|
7731
|
-
s: S,
|
|
7732
|
-
cont: Predicate<S>,
|
|
7733
|
-
f: (s: S, a: A) => S
|
|
7734
|
-
): Effect.Effect<S, E, Scope.Scope | R>
|
|
7606
|
+
<A, E, R, S>(self: Stream<A, E, R>, s: S, cont: Predicate<S>, f: (s: S, a: A) => S): Effect.Effect<S, E, Scope.Scope | R>
|
|
7735
7607
|
} = internal.runFoldWhileScoped
|
|
7736
7608
|
|
|
7737
7609
|
/**
|
|
@@ -7751,11 +7623,7 @@ export const runFoldWhileScopedEffect: {
|
|
|
7751
7623
|
* @since 2.0.0
|
|
7752
7624
|
* @category destructors
|
|
7753
7625
|
*/
|
|
7754
|
-
<S, A, E2, R2>(
|
|
7755
|
-
s: S,
|
|
7756
|
-
cont: Predicate<S>,
|
|
7757
|
-
f: (s: S, a: A) => Effect.Effect<S, E2, R2>
|
|
7758
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E2 | E, R2 | R | Scope.Scope>
|
|
7626
|
+
<S, A, E2, R2>(s: S, cont: Predicate<S>, f: (s: S, a: A) => Effect.Effect<S, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<S, E2 | E, R2 | R | Scope.Scope>
|
|
7759
7627
|
/**
|
|
7760
7628
|
* Executes an effectful fold over the stream of values. Returns a scoped
|
|
7761
7629
|
* value that represents the scope of the stream. Stops the fold early when
|
|
@@ -7787,9 +7655,7 @@ export const runForEach: {
|
|
|
7787
7655
|
* @since 2.0.0
|
|
7788
7656
|
* @category destructors
|
|
7789
7657
|
*/
|
|
7790
|
-
<A, X, E2, R2>(
|
|
7791
|
-
f: (a: A) => Effect.Effect<X, E2, R2>
|
|
7792
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
|
|
7658
|
+
<A, X, E2, R2>(f: (a: A) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
|
|
7793
7659
|
/**
|
|
7794
7660
|
* Consumes all elements of the stream, passing them to the specified
|
|
7795
7661
|
* callback.
|
|
@@ -7797,10 +7663,7 @@ export const runForEach: {
|
|
|
7797
7663
|
* @since 2.0.0
|
|
7798
7664
|
* @category destructors
|
|
7799
7665
|
*/
|
|
7800
|
-
<A, E, R, X, E2, R2>(
|
|
7801
|
-
self: Stream<A, E, R>,
|
|
7802
|
-
f: (a: A) => Effect.Effect<X, E2, R2>
|
|
7803
|
-
): Effect.Effect<void, E | E2, R | R2>
|
|
7666
|
+
<A, E, R, X, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<X, E2, R2>): Effect.Effect<void, E | E2, R | R2>
|
|
7804
7667
|
} = internal.runForEach
|
|
7805
7668
|
|
|
7806
7669
|
/**
|
|
@@ -7818,9 +7681,7 @@ export const runForEachChunk: {
|
|
|
7818
7681
|
* @since 2.0.0
|
|
7819
7682
|
* @category destructors
|
|
7820
7683
|
*/
|
|
7821
|
-
<A, X, E2, R2>(
|
|
7822
|
-
f: (a: Chunk.Chunk<A>) => Effect.Effect<X, E2, R2>
|
|
7823
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
|
|
7684
|
+
<A, X, E2, R2>(f: (a: Chunk.Chunk<A>) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
|
|
7824
7685
|
/**
|
|
7825
7686
|
* Consumes all elements of the stream, passing them to the specified
|
|
7826
7687
|
* callback.
|
|
@@ -7828,10 +7689,7 @@ export const runForEachChunk: {
|
|
|
7828
7689
|
* @since 2.0.0
|
|
7829
7690
|
* @category destructors
|
|
7830
7691
|
*/
|
|
7831
|
-
<A, E, R, X, E2, R2>(
|
|
7832
|
-
self: Stream<A, E, R>,
|
|
7833
|
-
f: (a: Chunk.Chunk<A>) => Effect.Effect<X, E2, R2>
|
|
7834
|
-
): Effect.Effect<void, E | E2, R | R2>
|
|
7692
|
+
<A, E, R, X, E2, R2>(self: Stream<A, E, R>, f: (a: Chunk.Chunk<A>) => Effect.Effect<X, E2, R2>): Effect.Effect<void, E | E2, R | R2>
|
|
7835
7693
|
} = internal.runForEachChunk
|
|
7836
7694
|
|
|
7837
7695
|
/**
|
|
@@ -7849,9 +7707,7 @@ export const runForEachChunkScoped: {
|
|
|
7849
7707
|
* @since 2.0.0
|
|
7850
7708
|
* @category destructors
|
|
7851
7709
|
*/
|
|
7852
|
-
<A, X, E2, R2>(
|
|
7853
|
-
f: (a: Chunk.Chunk<A>) => Effect.Effect<X, E2, R2>
|
|
7854
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, Scope.Scope | R2 | R>
|
|
7710
|
+
<A, X, E2, R2>(f: (a: Chunk.Chunk<A>) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, Scope.Scope | R2 | R>
|
|
7855
7711
|
/**
|
|
7856
7712
|
* Like `Stream.runForEachChunk`, but returns a scoped effect so the
|
|
7857
7713
|
* finalization order can be controlled.
|
|
@@ -7859,10 +7715,7 @@ export const runForEachChunkScoped: {
|
|
|
7859
7715
|
* @since 2.0.0
|
|
7860
7716
|
* @category destructors
|
|
7861
7717
|
*/
|
|
7862
|
-
<A, E, R, X, E2, R2>(
|
|
7863
|
-
self: Stream<A, E, R>,
|
|
7864
|
-
f: (a: Chunk.Chunk<A>) => Effect.Effect<X, E2, R2>
|
|
7865
|
-
): Effect.Effect<void, E | E2, Scope.Scope | R | R2>
|
|
7718
|
+
<A, E, R, X, E2, R2>(self: Stream<A, E, R>, f: (a: Chunk.Chunk<A>) => Effect.Effect<X, E2, R2>): Effect.Effect<void, E | E2, Scope.Scope | R | R2>
|
|
7866
7719
|
} = internal.runForEachChunkScoped
|
|
7867
7720
|
|
|
7868
7721
|
/**
|
|
@@ -7880,9 +7733,7 @@ export const runForEachScoped: {
|
|
|
7880
7733
|
* @since 2.0.0
|
|
7881
7734
|
* @category destructors
|
|
7882
7735
|
*/
|
|
7883
|
-
<A, X, E2, R2>(
|
|
7884
|
-
f: (a: A) => Effect.Effect<X, E2, R2>
|
|
7885
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, Scope.Scope | R2 | R>
|
|
7736
|
+
<A, X, E2, R2>(f: (a: A) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, Scope.Scope | R2 | R>
|
|
7886
7737
|
/**
|
|
7887
7738
|
* Like `Stream.forEach`, but returns a scoped effect so the finalization
|
|
7888
7739
|
* order can be controlled.
|
|
@@ -7890,10 +7741,7 @@ export const runForEachScoped: {
|
|
|
7890
7741
|
* @since 2.0.0
|
|
7891
7742
|
* @category destructors
|
|
7892
7743
|
*/
|
|
7893
|
-
<A, E, R, X, E2, R2>(
|
|
7894
|
-
self: Stream<A, E, R>,
|
|
7895
|
-
f: (a: A) => Effect.Effect<X, E2, R2>
|
|
7896
|
-
): Effect.Effect<void, E | E2, Scope.Scope | R | R2>
|
|
7744
|
+
<A, E, R, X, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<X, E2, R2>): Effect.Effect<void, E | E2, Scope.Scope | R | R2>
|
|
7897
7745
|
} = internal.runForEachScoped
|
|
7898
7746
|
|
|
7899
7747
|
/**
|
|
@@ -7911,9 +7759,7 @@ export const runForEachWhile: {
|
|
|
7911
7759
|
* @since 2.0.0
|
|
7912
7760
|
* @category destructors
|
|
7913
7761
|
*/
|
|
7914
|
-
<A, E2, R2>(
|
|
7915
|
-
f: (a: A) => Effect.Effect<boolean, E2, R2>
|
|
7916
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
|
|
7762
|
+
<A, E2, R2>(f: (a: A) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>
|
|
7917
7763
|
/**
|
|
7918
7764
|
* Consumes elements of the stream, passing them to the specified callback,
|
|
7919
7765
|
* and terminating consumption when the callback returns `false`.
|
|
@@ -7921,10 +7767,7 @@ export const runForEachWhile: {
|
|
|
7921
7767
|
* @since 2.0.0
|
|
7922
7768
|
* @category destructors
|
|
7923
7769
|
*/
|
|
7924
|
-
<A, E, R, E2, R2>(
|
|
7925
|
-
self: Stream<A, E, R>,
|
|
7926
|
-
f: (a: A) => Effect.Effect<boolean, E2, R2>
|
|
7927
|
-
): Effect.Effect<void, E | E2, R | R2>
|
|
7770
|
+
<A, E, R, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<boolean, E2, R2>): Effect.Effect<void, E | E2, R | R2>
|
|
7928
7771
|
} = internal.runForEachWhile
|
|
7929
7772
|
|
|
7930
7773
|
/**
|
|
@@ -7942,9 +7785,7 @@ export const runForEachWhileScoped: {
|
|
|
7942
7785
|
* @since 2.0.0
|
|
7943
7786
|
* @category destructors
|
|
7944
7787
|
*/
|
|
7945
|
-
<A, E2, R2>(
|
|
7946
|
-
f: (a: A) => Effect.Effect<boolean, E2, R2>
|
|
7947
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, Scope.Scope | R2 | R>
|
|
7788
|
+
<A, E2, R2>(f: (a: A) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, Scope.Scope | R2 | R>
|
|
7948
7789
|
/**
|
|
7949
7790
|
* Like `Stream.runForEachWhile`, but returns a scoped effect so the
|
|
7950
7791
|
* finalization order can be controlled.
|
|
@@ -7952,10 +7793,7 @@ export const runForEachWhileScoped: {
|
|
|
7952
7793
|
* @since 2.0.0
|
|
7953
7794
|
* @category destructors
|
|
7954
7795
|
*/
|
|
7955
|
-
<A, E, R, E2, R2>(
|
|
7956
|
-
self: Stream<A, E, R>,
|
|
7957
|
-
f: (a: A) => Effect.Effect<boolean, E2, R2>
|
|
7958
|
-
): Effect.Effect<void, E | E2, Scope.Scope | R | R2>
|
|
7796
|
+
<A, E, R, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<boolean, E2, R2>): Effect.Effect<void, E | E2, Scope.Scope | R | R2>
|
|
7959
7797
|
} = internal.runForEachWhileScoped
|
|
7960
7798
|
|
|
7961
7799
|
/**
|
|
@@ -8008,9 +7846,7 @@ export const runIntoPubSubScoped: {
|
|
|
8008
7846
|
* @since 2.0.0
|
|
8009
7847
|
* @category destructors
|
|
8010
7848
|
*/
|
|
8011
|
-
<A, E>(
|
|
8012
|
-
pubsub: PubSub.PubSub<Take.Take<A, E>>
|
|
8013
|
-
): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, Scope.Scope | R>
|
|
7849
|
+
<A, E>(pubsub: PubSub.PubSub<Take.Take<A, E>>): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, Scope.Scope | R>
|
|
8014
7850
|
/**
|
|
8015
7851
|
* Like `Stream.runIntoPubSub`, but provides the result as a scoped effect to
|
|
8016
7852
|
* allow for scope composition.
|
|
@@ -8062,9 +7898,7 @@ export const runIntoQueueElementsScoped: {
|
|
|
8062
7898
|
* @since 2.0.0
|
|
8063
7899
|
* @category destructors
|
|
8064
7900
|
*/
|
|
8065
|
-
<A, E>(
|
|
8066
|
-
queue: Queue.Enqueue<Exit.Exit<A, Option.Option<E>>>
|
|
8067
|
-
): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, Scope.Scope | R>
|
|
7901
|
+
<A, E>(queue: Queue.Enqueue<Exit.Exit<A, Option.Option<E>>>): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, Scope.Scope | R>
|
|
8068
7902
|
/**
|
|
8069
7903
|
* Like `Stream.runIntoQueue`, but provides the result as a scoped [[ZIO]]
|
|
8070
7904
|
* to allow for scope composition.
|
|
@@ -8093,9 +7927,7 @@ export const runIntoQueueScoped: {
|
|
|
8093
7927
|
* @since 2.0.0
|
|
8094
7928
|
* @category destructors
|
|
8095
7929
|
*/
|
|
8096
|
-
<A, E>(
|
|
8097
|
-
queue: Queue.Enqueue<Take.Take<A, E>>
|
|
8098
|
-
): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, Scope.Scope | R>
|
|
7930
|
+
<A, E>(queue: Queue.Enqueue<Take.Take<A, E>>): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, Scope.Scope | R>
|
|
8099
7931
|
/**
|
|
8100
7932
|
* Like `Stream.runIntoQueue`, but provides the result as a scoped effect
|
|
8101
7933
|
* to allow for scope composition.
|
|
@@ -8124,17 +7956,12 @@ export const runScoped: {
|
|
|
8124
7956
|
* @since 2.0.0
|
|
8125
7957
|
* @category destructors
|
|
8126
7958
|
*/
|
|
8127
|
-
<A2, A, E2, R2>(
|
|
8128
|
-
sink: Sink.Sink<A2, A, unknown, E2, R2>
|
|
8129
|
-
): <E, R>(self: Stream<A, E, R>) => Effect.Effect<A2, E2 | E, Scope.Scope | R2 | R>
|
|
7959
|
+
<A2, A, E2, R2>(sink: Sink.Sink<A2, A, unknown, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<A2, E2 | E, Scope.Scope | R2 | R>
|
|
8130
7960
|
/**
|
|
8131
7961
|
* @since 2.0.0
|
|
8132
7962
|
* @category destructors
|
|
8133
7963
|
*/
|
|
8134
|
-
<A, E, R, A2, E2, R2>(
|
|
8135
|
-
self: Stream<A, E, R>,
|
|
8136
|
-
sink: Sink.Sink<A2, A, unknown, E2, R2>
|
|
8137
|
-
): Effect.Effect<A2, E | E2, Scope.Scope | R | R2>
|
|
7964
|
+
<A, E, R, A2, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<A2, A, unknown, E2, R2>): Effect.Effect<A2, E | E2, Scope.Scope | R | R2>
|
|
8138
7965
|
} = internal.runScoped
|
|
8139
7966
|
|
|
8140
7967
|
/**
|
|
@@ -8216,10 +8043,7 @@ export const scanEffect: {
|
|
|
8216
8043
|
* @since 2.0.0
|
|
8217
8044
|
* @category utils
|
|
8218
8045
|
*/
|
|
8219
|
-
<S, A, E2, R2>(
|
|
8220
|
-
s: S,
|
|
8221
|
-
f: (s: S, a: A) => Effect.Effect<S, E2, R2>
|
|
8222
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<S, E2 | E, R2 | R>
|
|
8046
|
+
<S, A, E2, R2>(s: S, f: (s: S, a: A) => Effect.Effect<S, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<S, E2 | E, R2 | R>
|
|
8223
8047
|
/**
|
|
8224
8048
|
* Statefully and effectfully maps over the elements of this stream to produce
|
|
8225
8049
|
* all intermediate results of type `S` given an initial S.
|
|
@@ -8227,11 +8051,7 @@ export const scanEffect: {
|
|
|
8227
8051
|
* @since 2.0.0
|
|
8228
8052
|
* @category utils
|
|
8229
8053
|
*/
|
|
8230
|
-
<A, E, R, S, E2, R2>(
|
|
8231
|
-
self: Stream<A, E, R>,
|
|
8232
|
-
s: S,
|
|
8233
|
-
f: (s: S, a: A) => Effect.Effect<S, E2, R2>
|
|
8234
|
-
): Stream<S, E | E2, R | R2>
|
|
8054
|
+
<A, E, R, S, E2, R2>(self: Stream<A, E, R>, s: S, f: (s: S, a: A) => Effect.Effect<S, E2, R2>): Stream<S, E | E2, R | R2>
|
|
8235
8055
|
} = internal.scanEffect
|
|
8236
8056
|
|
|
8237
8057
|
/**
|
|
@@ -8285,9 +8105,7 @@ export const scanReduceEffect: {
|
|
|
8285
8105
|
* @since 2.0.0
|
|
8286
8106
|
* @category utils
|
|
8287
8107
|
*/
|
|
8288
|
-
<A2, A, E2, R2>(
|
|
8289
|
-
f: (a2: A2 | A, a: A) => Effect.Effect<A2 | A, E2, R2>
|
|
8290
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E, R2 | R>
|
|
8108
|
+
<A2, A, E2, R2>(f: (a2: A2 | A, a: A) => Effect.Effect<A2 | A, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E, R2 | R>
|
|
8291
8109
|
/**
|
|
8292
8110
|
* Statefully and effectfully maps over the elements of this stream to produce
|
|
8293
8111
|
* all intermediate results.
|
|
@@ -8316,9 +8134,7 @@ export const schedule: {
|
|
|
8316
8134
|
* @since 2.0.0
|
|
8317
8135
|
* @category utils
|
|
8318
8136
|
*/
|
|
8319
|
-
<X, A0 extends A, R2, A>(
|
|
8320
|
-
schedule: Schedule.Schedule<X, A0, R2>
|
|
8321
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R2 | R>
|
|
8137
|
+
<X, A0 extends A, R2, A>(schedule: Schedule.Schedule<X, A0, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R2 | R>
|
|
8322
8138
|
/**
|
|
8323
8139
|
* Schedules the output of the stream using the provided `schedule`.
|
|
8324
8140
|
*
|
|
@@ -8578,9 +8394,7 @@ export const split: {
|
|
|
8578
8394
|
* @since 2.0.0
|
|
8579
8395
|
* @category utils
|
|
8580
8396
|
*/
|
|
8581
|
-
<A, B extends A>(
|
|
8582
|
-
refinement: Refinement<NoInfer<A>, B>
|
|
8583
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<Chunk.Chunk<Exclude<A, B>>, E, R>
|
|
8397
|
+
<A, B extends A>(refinement: Refinement<NoInfer<A>, B>): <E, R>(self: Stream<A, E, R>) => Stream<Chunk.Chunk<Exclude<A, B>>, E, R>
|
|
8584
8398
|
/**
|
|
8585
8399
|
* Splits elements based on a predicate or refinement.
|
|
8586
8400
|
*
|
|
@@ -8884,9 +8698,7 @@ export const takeUntilEffect: {
|
|
|
8884
8698
|
* @since 2.0.0
|
|
8885
8699
|
* @category utils
|
|
8886
8700
|
*/
|
|
8887
|
-
<A, E2, R2>(
|
|
8888
|
-
predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>
|
|
8889
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
8701
|
+
<A, E2, R2>(predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
8890
8702
|
/**
|
|
8891
8703
|
* Takes all elements of the stream until the specified effectual predicate
|
|
8892
8704
|
* evaluates to `true`.
|
|
@@ -8894,10 +8706,7 @@ export const takeUntilEffect: {
|
|
|
8894
8706
|
* @since 2.0.0
|
|
8895
8707
|
* @category utils
|
|
8896
8708
|
*/
|
|
8897
|
-
<A, E, R, E2, R2>(
|
|
8898
|
-
self: Stream<A, E, R>,
|
|
8899
|
-
predicate: (a: A) => Effect.Effect<boolean, E2, R2>
|
|
8900
|
-
): Stream<A, E | E2, R | R2>
|
|
8709
|
+
<A, E, R, E2, R2>(self: Stream<A, E, R>, predicate: (a: A) => Effect.Effect<boolean, E2, R2>): Stream<A, E | E2, R | R2>
|
|
8901
8710
|
} = internal.takeUntilEffect
|
|
8902
8711
|
|
|
8903
8712
|
/**
|
|
@@ -9045,9 +8854,7 @@ export const tap: {
|
|
|
9045
8854
|
* @since 2.0.0
|
|
9046
8855
|
* @category sequencing
|
|
9047
8856
|
*/
|
|
9048
|
-
<A, X, E2, R2>(
|
|
9049
|
-
f: (a: NoInfer<A>) => Effect.Effect<X, E2, R2>
|
|
9050
|
-
): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
8857
|
+
<A, X, E2, R2>(f: (a: NoInfer<A>) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>
|
|
9051
8858
|
/**
|
|
9052
8859
|
* Adds an effect to consumption of every element of the stream.
|
|
9053
8860
|
*
|
|
@@ -9127,9 +8934,7 @@ export const tapError: {
|
|
|
9127
8934
|
* @since 2.0.0
|
|
9128
8935
|
* @category sequencing
|
|
9129
8936
|
*/
|
|
9130
|
-
<E, X, E2, R2>(
|
|
9131
|
-
f: (error: NoInfer<E>) => Effect.Effect<X, E2, R2>
|
|
9132
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>
|
|
8937
|
+
<E, X, E2, R2>(f: (error: NoInfer<E>) => Effect.Effect<X, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>
|
|
9133
8938
|
/**
|
|
9134
8939
|
* Returns a stream that effectfully "peeks" at the failure of the stream.
|
|
9135
8940
|
*
|
|
@@ -9154,9 +8959,7 @@ export const tapErrorCause: {
|
|
|
9154
8959
|
* @since 2.0.0
|
|
9155
8960
|
* @category utils
|
|
9156
8961
|
*/
|
|
9157
|
-
<E, X, E2, R2>(
|
|
9158
|
-
f: (cause: Cause.Cause<NoInfer<E>>) => Effect.Effect<X, E2, R2>
|
|
9159
|
-
): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>
|
|
8962
|
+
<E, X, E2, R2>(f: (cause: Cause.Cause<NoInfer<E>>) => Effect.Effect<X, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>
|
|
9160
8963
|
/**
|
|
9161
8964
|
* Returns a stream that effectfully "peeks" at the cause of failure of the
|
|
9162
8965
|
* stream.
|
|
@@ -9552,10 +9355,7 @@ export const timeoutFailCause: {
|
|
|
9552
9355
|
* @since 2.0.0
|
|
9553
9356
|
* @category utils
|
|
9554
9357
|
*/
|
|
9555
|
-
<E2>(
|
|
9556
|
-
cause: LazyArg<Cause.Cause<E2>>,
|
|
9557
|
-
duration: Duration.DurationInput
|
|
9558
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R>
|
|
9358
|
+
<E2>(cause: LazyArg<Cause.Cause<E2>>, duration: Duration.DurationInput): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R>
|
|
9559
9359
|
/**
|
|
9560
9360
|
* Fails the stream with given cause if it does not produce a value after d
|
|
9561
9361
|
* duration.
|
|
@@ -9585,10 +9385,7 @@ export const timeoutTo: {
|
|
|
9585
9385
|
* @since 2.0.0
|
|
9586
9386
|
* @category utils
|
|
9587
9387
|
*/
|
|
9588
|
-
<A2, E2, R2>(
|
|
9589
|
-
duration: Duration.DurationInput,
|
|
9590
|
-
that: Stream<A2, E2, R2>
|
|
9591
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E, R2 | R>
|
|
9388
|
+
<A2, E2, R2>(duration: Duration.DurationInput, that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E2 | E, R2 | R>
|
|
9592
9389
|
/**
|
|
9593
9390
|
* Switches the stream if it does not produce a value after the specified
|
|
9594
9391
|
* duration.
|
|
@@ -10021,10 +9818,7 @@ export const updateService: {
|
|
|
10021
9818
|
* @since 2.0.0
|
|
10022
9819
|
* @category context
|
|
10023
9820
|
*/
|
|
10024
|
-
<I, S>(
|
|
10025
|
-
tag: Context.Tag<I, S>,
|
|
10026
|
-
f: (service: NoInfer<S>) => NoInfer<S>
|
|
10027
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, I | R>
|
|
9821
|
+
<I, S>(tag: Context.Tag<I, S>, f: (service: NoInfer<S>) => NoInfer<S>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, I | R>
|
|
10028
9822
|
/**
|
|
10029
9823
|
* Updates the specified service within the context of the `Stream`.
|
|
10030
9824
|
*
|
|
@@ -10091,9 +9885,7 @@ export const whenCaseEffect: {
|
|
|
10091
9885
|
* @since 2.0.0
|
|
10092
9886
|
* @category utils
|
|
10093
9887
|
*/
|
|
10094
|
-
<A, A2, E2, R2>(
|
|
10095
|
-
pf: (a: A) => Option.Option<Stream<A2, E2, R2>>
|
|
10096
|
-
): <E, R>(self: Effect.Effect<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
9888
|
+
<A, A2, E2, R2>(pf: (a: A) => Option.Option<Stream<A2, E2, R2>>): <E, R>(self: Effect.Effect<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
10097
9889
|
/**
|
|
10098
9890
|
* Returns the stream when the given partial function is defined for the given
|
|
10099
9891
|
* effectful value, otherwise returns an empty stream.
|
|
@@ -10146,10 +9938,7 @@ export const withSpan: {
|
|
|
10146
9938
|
* @since 2.0.0
|
|
10147
9939
|
* @category tracing
|
|
10148
9940
|
*/
|
|
10149
|
-
(
|
|
10150
|
-
name: string,
|
|
10151
|
-
options?: Tracer.SpanOptions | undefined
|
|
10152
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Exclude<R, Tracer.ParentSpan>>
|
|
9941
|
+
(name: string, options?: Tracer.SpanOptions | undefined): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Exclude<R, Tracer.ParentSpan>>
|
|
10153
9942
|
/**
|
|
10154
9943
|
* Wraps the stream with a new span for tracing.
|
|
10155
9944
|
*
|
|
@@ -10256,9 +10045,7 @@ export const zipFlatten: {
|
|
|
10256
10045
|
* @since 2.0.0
|
|
10257
10046
|
* @category zipping
|
|
10258
10047
|
*/
|
|
10259
|
-
<A2, E2, R2>(
|
|
10260
|
-
that: Stream<A2, E2, R2>
|
|
10261
|
-
): <A extends ReadonlyArray<any>, E, R>(self: Stream<A, E, R>) => Stream<[...A, A2], E2 | E, R2 | R>
|
|
10048
|
+
<A2, E2, R2>(that: Stream<A2, E2, R2>): <A extends ReadonlyArray<any>, E, R>(self: Stream<A, E, R>) => Stream<[...A, A2], E2 | E, R2 | R>
|
|
10262
10049
|
/**
|
|
10263
10050
|
* Zips this stream with another point-wise and emits tuples of elements from
|
|
10264
10051
|
* both streams.
|
|
@@ -10268,10 +10055,7 @@ export const zipFlatten: {
|
|
|
10268
10055
|
* @since 2.0.0
|
|
10269
10056
|
* @category zipping
|
|
10270
10057
|
*/
|
|
10271
|
-
<A extends ReadonlyArray<any>, E, R, A2, E2, R2>(
|
|
10272
|
-
self: Stream<A, E, R>,
|
|
10273
|
-
that: Stream<A2, E2, R2>
|
|
10274
|
-
): Stream<[...A, A2], E | E2, R | R2>
|
|
10058
|
+
<A extends ReadonlyArray<any>, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<[...A, A2], E | E2, R | R2>
|
|
10275
10059
|
} = internal.zipFlatten
|
|
10276
10060
|
|
|
10277
10061
|
/**
|
|
@@ -10412,10 +10196,7 @@ export const zipAllRight: {
|
|
|
10412
10196
|
* @since 2.0.0
|
|
10413
10197
|
* @category zipping
|
|
10414
10198
|
*/
|
|
10415
|
-
<A2, E2, R2>(
|
|
10416
|
-
that: Stream<A2, E2, R2>,
|
|
10417
|
-
defaultRight: A2
|
|
10418
|
-
): <A, E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
10199
|
+
<A2, E2, R2>(that: Stream<A2, E2, R2>, defaultRight: A2): <A, E, R>(self: Stream<A, E, R>) => Stream<A2, E2 | E, R2 | R>
|
|
10419
10200
|
/**
|
|
10420
10201
|
* Zips this stream with another point-wise, and keeps only elements from the
|
|
10421
10202
|
* other stream.
|
|
@@ -10925,10 +10706,7 @@ export const zipLatestWith: {
|
|
|
10925
10706
|
* @since 2.0.0
|
|
10926
10707
|
* @category zipping
|
|
10927
10708
|
*/
|
|
10928
|
-
<AR, ER, RR, AL, A>(
|
|
10929
|
-
right: Stream<AR, ER, RR>,
|
|
10930
|
-
f: (left: AL, right: AR) => A
|
|
10931
|
-
): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
|
|
10709
|
+
<AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
|
|
10932
10710
|
/**
|
|
10933
10711
|
* Zips the two streams so that when a value is emitted by either of the two
|
|
10934
10712
|
* streams, it is combined with the latest value from the other stream to
|
|
@@ -11061,10 +10839,7 @@ export const zipWith: {
|
|
|
11061
10839
|
* @since 2.0.0
|
|
11062
10840
|
* @category zipping
|
|
11063
10841
|
*/
|
|
11064
|
-
<AR, ER, RR, AL, A>(
|
|
11065
|
-
right: Stream<AR, ER, RR>,
|
|
11066
|
-
f: (left: AL, right: AR) => A
|
|
11067
|
-
): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
|
|
10842
|
+
<AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>
|
|
11068
10843
|
/**
|
|
11069
10844
|
* Zips this stream with another point-wise and applies the function to the
|
|
11070
10845
|
* paired elements.
|