effect 4.0.0-beta.69 → 4.0.0-beta.70
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/Array.d.ts +454 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +152 -0
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +87 -33
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +37 -11
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +71 -14
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +35 -10
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +4 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +4 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +16 -11
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +16 -11
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +13 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +8 -0
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +95 -3
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +56 -2
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +312 -0
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +126 -0
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +20 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +12 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +59 -22
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +29 -10
- package/dist/Chunk.js.map +1 -1
- package/dist/Combiner.d.ts +75 -71
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +67 -62
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +167 -46
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +108 -28
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +235 -158
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +144 -93
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +21 -79
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -75
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +4 -4
- package/dist/Context.js +2 -2
- package/dist/Cron.d.ts +42 -16
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +33 -13
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +6 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +132 -70
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +44 -29
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +227 -14
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +115 -6
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +94 -27
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +33 -8
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +64 -6
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +26 -2
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +907 -603
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +360 -233
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +3 -1
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +16 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +16 -0
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +52 -40
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +32 -26
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +190 -153
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +129 -104
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +35 -14
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +18 -6
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +10 -3
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +4 -3
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +212 -6
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +139 -2
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +8 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +4 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +46 -23
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +27 -11
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +43 -4
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +27 -4
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +21 -6
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -6
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +64 -0
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +26 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +53 -21
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +20 -9
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +21 -22
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +12 -12
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +67 -75
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +29 -19
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +51 -13
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +19 -3
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +22 -21
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +33 -10
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +27 -10
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +50 -9
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +17 -3
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +4 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +2 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +2 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +15 -2
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +11 -2
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +104 -22
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +46 -12
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +61 -80
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +35 -42
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +16 -20
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +16 -20
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +123 -73
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +95 -53
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +28 -2
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +22 -2
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +781 -335
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +324 -129
- package/dist/Layer.js.map +1 -1
- package/dist/LogLevel.d.ts +86 -13
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +30 -4
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +63 -51
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +61 -51
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +12 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +1 -0
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +83 -1
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +31 -1
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +89 -12
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +53 -8
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +14 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +4 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +2 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +24 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +22 -6
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +2 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +69 -30
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +52 -22
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +6 -0
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +2 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +16 -30
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +6 -12
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +90 -40
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +48 -24
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +121 -111
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +56 -54
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +169 -167
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +135 -135
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +4 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +2 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +7 -5
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +5 -5
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +8 -0
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +4 -0
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +10 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +8 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +12 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +10 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +30 -16
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +30 -16
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +520 -352
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +271 -184
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +4 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +2 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +22 -4
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +17 -3
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +16 -0
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +10 -0
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +44 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +28 -0
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +25 -6
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +11 -2
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +10 -6
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +2 -2
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +3 -1
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +24 -3
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +12 -3
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +54 -41
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +42 -32
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +10 -0
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +6 -0
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +20 -11
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +10 -6
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +45 -24
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +41 -21
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +18 -1
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +17 -1
- package/dist/References.js.map +1 -1
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +2 -2
- package/dist/RequestResolver.d.ts +7 -17
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +3 -5
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +2 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +2 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +188 -6
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +84 -2
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +14 -11
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +11 -9
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +27 -3
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +21 -2
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +22 -19
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +14 -12
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +547 -130
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +409 -121
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +123 -65
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +90 -39
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +269 -234
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +245 -215
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +48 -46
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +34 -34
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +58 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +58 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +198 -96
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +107 -45
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +272 -203
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +249 -187
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +2 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +2 -0
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +18 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +12 -0
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +44 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +18 -0
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -3
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +3 -1
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +6 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +4 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +108 -0
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +54 -0
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +7 -3
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +2 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +416 -16
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +164 -8
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +14 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +6 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +371 -191
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +144 -77
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +7 -1
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +5 -1
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +2 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +2 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Tracer.d.ts +17 -27
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +8 -12
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +23 -9
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +13 -3
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +287 -144
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +135 -66
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +182 -93
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +68 -35
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +3 -4
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +163 -86
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +57 -30
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +24 -27
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +9 -6
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +2 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +36 -35
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +22 -21
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +77 -114
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +45 -62
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxRef.d.ts +4 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +2 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +66 -27
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +38 -15
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/Types.d.ts +202 -75
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +31 -29
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +27 -21
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +28 -0
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +2 -0
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +29 -35
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +11 -13
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +18 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/testing/TestClock.d.ts +17 -17
- package/dist/testing/TestClock.js +1 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +2 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +43 -55
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +43 -55
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +62 -11
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +58 -11
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +4 -4
- package/dist/unstable/ai/AnthropicStructuredOutput.js +4 -4
- package/dist/unstable/ai/Chat.d.ts +29 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +15 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +10 -0
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +8 -0
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +32 -46
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +5 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +84 -32
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +73 -28
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +8 -0
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +6 -0
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +9 -5
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +4 -0
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +62 -35
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +16 -15
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +40 -21
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +10 -0
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +8 -0
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +4 -0
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +30 -5
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +7 -1
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +6 -0
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +4 -0
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +68 -0
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +36 -0
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +12 -0
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +6 -0
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +14 -4
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +4 -0
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +6 -0
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +4 -0
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +123 -12
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +57 -4
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +31 -14
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +23 -10
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +10 -0
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +46 -5
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +10 -0
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +10 -0
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +47 -40
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +25 -20
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +1 -0
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +10 -2
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +3 -0
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +8 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +10 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +2 -0
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -0
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +8 -0
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +3 -4
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +24 -0
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +12 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +10 -4
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +6 -0
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +4 -0
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +10 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +8 -0
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +16 -0
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +10 -0
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -0
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -0
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +8 -0
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +8 -0
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +24 -0
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +18 -0
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +64 -20
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +8 -0
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +6 -6
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +4 -3
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +2 -0
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +2 -0
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +13 -2
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +13 -2
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +8 -8
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +8 -8
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +2 -0
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +2 -0
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +4 -0
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +4 -0
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +2 -0
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +2 -0
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +3 -2
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +3 -2
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +34 -2
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +14 -0
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +4 -0
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +2 -0
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +24 -0
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +18 -0
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +46 -2
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +30 -2
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +24 -17
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +20 -11
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +16 -0
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +4 -0
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +2 -0
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +20 -0
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +18 -0
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +22 -0
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +18 -0
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +10 -0
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +10 -0
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +4 -0
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +4 -0
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +34 -0
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -0
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +4 -0
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +4 -0
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +4 -0
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +60 -0
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +24 -0
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +32 -0
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +22 -0
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +44 -0
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +14 -0
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -0
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +2 -0
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -0
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +6 -0
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +4 -0
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +4 -0
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +2 -0
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +2 -0
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +54 -16
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +26 -1
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +35 -1
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +17 -1
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +17 -3
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +16 -0
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +30 -0
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +28 -0
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +8 -0
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +6 -0
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +96 -0
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +50 -0
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +12 -0
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +10 -0
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +49 -2
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +35 -2
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +14 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +4 -0
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +64 -0
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +28 -0
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +10 -4
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +4 -0
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +9 -4
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +5 -4
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +23 -14
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +6 -3
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +14 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +6 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +38 -15
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +4 -0
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +14 -3
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +10 -0
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +2 -0
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +2 -0
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -0
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +2 -0
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js +2 -0
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +2 -0
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +2 -0
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +4 -0
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +4 -0
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +8 -9
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +3 -3
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +8 -0
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +8 -0
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +3 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +3 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +6 -2
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +6 -2
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +10 -0
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +8 -0
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -0
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +2 -0
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +2 -0
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +2 -0
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +21 -6
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +10 -0
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +14 -0
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +14 -0
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +6 -3
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +4 -0
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +6 -0
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +4 -0
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +70 -19
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +10 -0
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +20 -4
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +105 -14
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +53 -8
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +4 -0
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +2 -0
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +8 -0
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +2 -0
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +32 -0
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +12 -0
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +8 -6
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +4 -3
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -0
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +4 -0
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +27 -3
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +15 -3
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +38 -2
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +12 -2
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +6 -0
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +6 -0
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +5 -3
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +5 -3
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +43 -12
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +41 -12
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +6 -4
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +6 -4
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +8 -4
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +3 -0
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +3 -0
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +42 -34
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +18 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +454 -0
- package/src/BigDecimal.ts +87 -33
- package/src/BigInt.ts +71 -14
- package/src/Boolean.ts +4 -0
- package/src/Brand.ts +16 -11
- package/src/Cache.ts +17 -1
- package/src/Cause.ts +95 -3
- package/src/Channel.ts +326 -0
- package/src/ChannelSchema.ts +24 -0
- package/src/Chunk.ts +59 -22
- package/src/Combiner.ts +75 -71
- package/src/Config.ts +167 -46
- package/src/ConfigProvider.ts +235 -158
- package/src/Console.ts +25 -99
- package/src/Context.ts +4 -4
- package/src/Cron.ts +42 -16
- package/src/Crypto.ts +6 -0
- package/src/Data.ts +132 -70
- package/src/DateTime.ts +227 -14
- package/src/Deferred.ts +94 -27
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +64 -6
- package/src/Effect.ts +909 -605
- package/src/Effectable.ts +3 -1
- package/src/Encoding.ts +16 -0
- package/src/Equal.ts +52 -40
- package/src/Equivalence.ts +190 -153
- package/src/ErrorReporter.ts +35 -14
- package/src/ExecutionPlan.ts +10 -3
- package/src/Exit.ts +212 -6
- package/src/Fiber.ts +8 -0
- package/src/FiberHandle.ts +46 -23
- package/src/FiberMap.ts +43 -4
- package/src/FiberSet.ts +21 -6
- package/src/FileSystem.ts +64 -0
- package/src/Filter.ts +53 -21
- package/src/Formatter.ts +21 -22
- package/src/Function.ts +67 -75
- package/src/Graph.ts +51 -13
- package/src/HKT.ts +22 -21
- package/src/Hash.ts +33 -10
- package/src/HashMap.ts +50 -9
- package/src/HashRing.ts +4 -0
- package/src/HashSet.ts +2 -0
- package/src/Inspectable.ts +15 -2
- package/src/Iterable.ts +104 -22
- package/src/JsonPatch.ts +61 -80
- package/src/JsonPointer.ts +16 -20
- package/src/JsonSchema.ts +123 -73
- package/src/Latch.ts +28 -2
- package/src/Layer.ts +781 -335
- package/src/LogLevel.ts +86 -13
- package/src/Logger.ts +71 -51
- package/src/ManagedRuntime.ts +12 -0
- package/src/Match.ts +83 -1
- package/src/Metric.ts +105 -12
- package/src/MutableHashMap.ts +18 -0
- package/src/MutableHashSet.ts +2 -0
- package/src/MutableList.ts +24 -6
- package/src/MutableRef.ts +2 -0
- package/src/Newtype.ts +69 -30
- package/src/NonEmptyIterable.ts +6 -0
- package/src/Number.ts +16 -30
- package/src/Optic.ts +90 -40
- package/src/Option.ts +121 -111
- package/src/Order.ts +169 -167
- package/src/Ordering.ts +4 -0
- package/src/PartitionedSemaphore.ts +7 -5
- package/src/Path.ts +8 -0
- package/src/Pipeable.ts +10 -0
- package/src/PlatformError.ts +12 -0
- package/src/Pool.ts +30 -16
- package/src/Predicate.ts +520 -352
- package/src/PrimaryKey.ts +4 -0
- package/src/PubSub.ts +23 -5
- package/src/Pull.ts +16 -0
- package/src/Queue.ts +44 -0
- package/src/Random.ts +25 -6
- package/src/RcMap.ts +10 -6
- package/src/RcRef.ts +3 -1
- package/src/Record.ts +24 -3
- package/src/Redactable.ts +54 -41
- package/src/Redacted.ts +10 -0
- package/src/Reducer.ts +20 -11
- package/src/Ref.ts +95 -58
- package/src/References.ts +18 -1
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +8 -22
- package/src/Resource.ts +2 -0
- package/src/Result.ts +192 -6
- package/src/Runtime.ts +14 -11
- package/src/Schedule.ts +35 -3
- package/src/Scheduler.ts +22 -19
- package/src/Schema.ts +547 -130
- package/src/SchemaAST.ts +123 -65
- package/src/SchemaGetter.ts +269 -234
- package/src/SchemaIssue.ts +48 -46
- package/src/SchemaParser.ts +58 -0
- package/src/SchemaRepresentation.ts +198 -96
- package/src/SchemaTransformation.ts +272 -203
- package/src/SchemaUtils.ts +2 -0
- package/src/Scope.ts +19 -1
- package/src/ScopedCache.ts +56 -0
- package/src/ScopedRef.ts +9 -3
- package/src/Semaphore.ts +6 -0
- package/src/Sink.ts +108 -0
- package/src/Stdio.ts +7 -3
- package/src/Stream.ts +464 -16
- package/src/String.ts +14 -0
- package/src/Struct.ts +371 -191
- package/src/SubscriptionRef.ts +7 -1
- package/src/SynchronizedRef.ts +2 -0
- package/src/Tracer.ts +17 -27
- package/src/Trie.ts +23 -9
- package/src/Tuple.ts +287 -144
- package/src/TxChunk.ts +182 -93
- package/src/TxDeferred.ts +3 -4
- package/src/TxHashMap.ts +171 -90
- package/src/TxHashSet.ts +36 -35
- package/src/TxPriorityQueue.ts +2 -0
- package/src/TxPubSub.ts +36 -35
- package/src/TxQueue.ts +77 -114
- package/src/TxRef.ts +4 -0
- package/src/TxSemaphore.ts +66 -27
- package/src/Types.ts +202 -75
- package/src/UndefinedOr.ts +31 -29
- package/src/Unify.ts +28 -0
- package/src/Utils.ts +29 -35
- package/src/index.ts +18 -7
- package/src/testing/TestClock.ts +16 -16
- package/src/testing/TestConsole.ts +2 -0
- package/src/testing/TestSchema.ts +43 -55
- package/src/unstable/ai/AiError.ts +62 -11
- package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -4
- package/src/unstable/ai/Chat.ts +29 -1
- package/src/unstable/ai/IdGenerator.ts +10 -0
- package/src/unstable/ai/LanguageModel.ts +32 -46
- package/src/unstable/ai/McpSchema.ts +84 -32
- package/src/unstable/ai/McpServer.ts +8 -0
- package/src/unstable/ai/Model.ts +9 -5
- package/src/unstable/ai/OpenAiStructuredOutput.ts +3 -2
- package/src/unstable/ai/Prompt.ts +62 -35
- package/src/unstable/ai/Response.ts +40 -21
- package/src/unstable/ai/ResponseIdTracker.ts +8 -0
- package/src/unstable/ai/Telemetry.ts +30 -5
- package/src/unstable/ai/Tokenizer.ts +6 -0
- package/src/unstable/ai/Tool.ts +68 -0
- package/src/unstable/ai/Toolkit.ts +12 -0
- package/src/unstable/cli/Argument.ts +14 -4
- package/src/unstable/cli/CliError.ts +6 -0
- package/src/unstable/cli/Command.ts +128 -12
- package/src/unstable/cli/Flag.ts +31 -14
- package/src/unstable/cli/Param.ts +96 -9
- package/src/unstable/cli/Primitive.ts +10 -0
- package/src/unstable/cli/Prompt.ts +47 -40
- package/src/unstable/cli/internal/command.ts +11 -2
- package/src/unstable/cli/internal/completions/descriptor.ts +3 -0
- package/src/unstable/cli/internal/parser.ts +8 -1
- package/src/unstable/cluster/ClusterCron.ts +10 -1
- package/src/unstable/cluster/ClusterSchema.ts +8 -0
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -0
- package/src/unstable/cluster/DeliverAt.ts +3 -4
- package/src/unstable/cluster/Entity.ts +24 -0
- package/src/unstable/cluster/EntityProxy.ts +10 -4
- package/src/unstable/cluster/EntityProxyServer.ts +6 -0
- package/src/unstable/cluster/EntityResource.ts +10 -0
- package/src/unstable/cluster/Envelope.ts +16 -0
- package/src/unstable/cluster/HttpRunner.ts +16 -0
- package/src/unstable/cluster/K8sHttpClient.ts +8 -0
- package/src/unstable/cluster/Message.ts +24 -0
- package/src/unstable/cluster/MessageStorage.ts +44 -10
- package/src/unstable/cluster/Reply.ts +6 -6
- package/src/unstable/cluster/Runner.ts +2 -0
- package/src/unstable/cluster/RunnerHealth.ts +13 -2
- package/src/unstable/cluster/RunnerServer.ts +8 -8
- package/src/unstable/cluster/RunnerStorage.ts +2 -0
- package/src/unstable/cluster/ShardId.ts +4 -0
- package/src/unstable/cluster/Snowflake.ts +2 -0
- package/src/unstable/cluster/TestRunner.ts +3 -2
- package/src/unstable/devtools/DevToolsSchema.ts +34 -2
- package/src/unstable/devtools/DevToolsServer.ts +4 -0
- package/src/unstable/encoding/Msgpack.ts +24 -0
- package/src/unstable/encoding/Ndjson.ts +46 -2
- package/src/unstable/encoding/Sse.ts +24 -17
- package/src/unstable/eventlog/Event.ts +16 -0
- package/src/unstable/eventlog/EventGroup.ts +4 -0
- package/src/unstable/eventlog/EventJournal.ts +20 -0
- package/src/unstable/eventlog/EventLog.ts +22 -0
- package/src/unstable/eventlog/EventLogMessage.ts +10 -0
- package/src/unstable/eventlog/EventLogRemote.ts +4 -0
- package/src/unstable/eventlog/EventLogServer.ts +4 -0
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +6 -0
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -0
- package/src/unstable/eventlog/EventLogSessionAuth.ts +11 -1
- package/src/unstable/eventlog/SqlEventJournal.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +2 -0
- package/src/unstable/http/Cookies.ts +34 -0
- package/src/unstable/http/Etag.ts +4 -0
- package/src/unstable/http/FetchHttpClient.ts +4 -0
- package/src/unstable/http/Headers.ts +88 -0
- package/src/unstable/http/HttpBody.ts +32 -0
- package/src/unstable/http/HttpClient.ts +44 -0
- package/src/unstable/http/HttpClientRequest.ts +2 -0
- package/src/unstable/http/HttpClientResponse.ts +6 -0
- package/src/unstable/http/HttpEffect.ts +4 -0
- package/src/unstable/http/HttpPlatform.ts +2 -0
- package/src/unstable/http/HttpRouter.ts +54 -16
- package/src/unstable/http/HttpServer.ts +35 -1
- package/src/unstable/http/HttpServerError.ts +17 -3
- package/src/unstable/http/HttpServerRequest.ts +30 -0
- package/src/unstable/http/HttpServerRespondable.ts +8 -0
- package/src/unstable/http/HttpServerResponse.ts +96 -0
- package/src/unstable/http/HttpTraceContext.ts +12 -0
- package/src/unstable/http/Multipart.ts +49 -2
- package/src/unstable/http/Template.ts +14 -0
- package/src/unstable/http/UrlParams.ts +64 -0
- package/src/unstable/httpapi/HttpApi.ts +10 -4
- package/src/unstable/httpapi/HttpApiBuilder.ts +9 -4
- package/src/unstable/httpapi/HttpApiEndpoint.ts +2 -0
- package/src/unstable/httpapi/HttpApiGroup.ts +23 -14
- package/src/unstable/httpapi/HttpApiMiddleware.ts +14 -0
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -15
- package/src/unstable/httpapi/HttpApiSchema.ts +14 -3
- package/src/unstable/httpapi/HttpApiSecurity.ts +17 -11
- package/src/unstable/httpapi/HttpApiSwagger.ts +2 -4
- package/src/unstable/httpapi/HttpApiTest.ts +2 -0
- package/src/unstable/httpapi/OpenApi.ts +2 -0
- package/src/unstable/observability/Otlp.ts +2 -0
- package/src/unstable/observability/OtlpExporter.ts +2 -0
- package/src/unstable/observability/OtlpLogger.ts +4 -0
- package/src/unstable/observability/OtlpMetrics.ts +8 -9
- package/src/unstable/observability/OtlpResource.ts +8 -0
- package/src/unstable/observability/OtlpTracer.ts +3 -2
- package/src/unstable/observability/PrometheusMetrics.ts +6 -2
- package/src/unstable/persistence/KeyValueStore.ts +10 -0
- package/src/unstable/persistence/Persistable.ts +2 -0
- package/src/unstable/persistence/PersistedCache.ts +2 -0
- package/src/unstable/persistence/PersistedQueue.ts +21 -6
- package/src/unstable/persistence/Persistence.ts +14 -0
- package/src/unstable/persistence/RateLimiter.ts +6 -3
- package/src/unstable/persistence/Redis.ts +6 -0
- package/src/unstable/process/ChildProcess.ts +70 -19
- package/src/unstable/process/ChildProcessSpawner.ts +20 -4
- package/src/unstable/reactivity/Atom.ts +119 -14
- package/src/unstable/reactivity/AtomHttpApi.ts +4 -0
- package/src/unstable/reactivity/AtomRef.ts +8 -0
- package/src/unstable/reactivity/AtomRegistry.ts +34 -0
- package/src/unstable/reactivity/AtomRpc.ts +8 -6
- package/src/unstable/reactivity/Hydration.ts +6 -0
- package/src/unstable/reactivity/Reactivity.ts +27 -3
- package/src/unstable/rpc/Rpc.ts +38 -2
- package/src/unstable/rpc/RpcSerialization.ts +6 -0
- package/src/unstable/rpc/RpcServer.ts +5 -3
- package/src/unstable/schema/Model.ts +43 -12
- package/src/unstable/sql/SqlClient.ts +1 -1
- package/src/unstable/sql/SqlResolver.ts +6 -4
- package/src/unstable/sql/Statement.ts +8 -4
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +3 -0
- package/src/unstable/workflow/Workflow.ts +42 -34
package/src/Stream.ts
CHANGED
|
@@ -116,6 +116,8 @@ export const TypeId: TypeId = "~effect/Stream"
|
|
|
116
116
|
* A `Stream<A, E, R>` describes a program that can emit many `A` values, fail
|
|
117
117
|
* with `E`, and require `R`.
|
|
118
118
|
*
|
|
119
|
+
* **Details**
|
|
120
|
+
*
|
|
119
121
|
* Streams are pull-based with backpressure and emit chunks to amortize effect
|
|
120
122
|
* evaluation. They support monadic composition and error handling similar to
|
|
121
123
|
* `Effect`, adapted for multiple values.
|
|
@@ -192,6 +194,8 @@ export interface StreamTypeLambda extends TypeLambda {
|
|
|
192
194
|
/**
|
|
193
195
|
* Type-level variance marker for `Stream`.
|
|
194
196
|
*
|
|
197
|
+
* **Details**
|
|
198
|
+
*
|
|
195
199
|
* The emitted value `A`, error `E`, and service requirement `R` type
|
|
196
200
|
* parameters are covariant.
|
|
197
201
|
*
|
|
@@ -206,6 +210,8 @@ export interface Variance<out A, out E, out R> {
|
|
|
206
210
|
* Structural encoding used by `Variance` to record each `Stream` type
|
|
207
211
|
* parameter's variance.
|
|
208
212
|
*
|
|
213
|
+
* **Details**
|
|
214
|
+
*
|
|
209
215
|
* `_A`, `_E`, and `_R` are covariant markers.
|
|
210
216
|
*
|
|
211
217
|
* @category models
|
|
@@ -595,6 +601,8 @@ export const tick = (interval: Duration.Input): Stream<void> =>
|
|
|
595
601
|
/**
|
|
596
602
|
* Creates a stream from a pull effect, such as one produced by `Stream.toPull`.
|
|
597
603
|
*
|
|
604
|
+
* **Details**
|
|
605
|
+
*
|
|
598
606
|
* A pull effect yields chunks on demand and completes when the upstream stream ends.
|
|
599
607
|
* See `Stream.toPull` for a matching producer.
|
|
600
608
|
*
|
|
@@ -665,6 +673,8 @@ export const transformPull = <A, E, R, B, E2, R2, EX, RX>(
|
|
|
665
673
|
/**
|
|
666
674
|
* Transforms a stream by effectfully transforming its pull effect.
|
|
667
675
|
*
|
|
676
|
+
* **Details**
|
|
677
|
+
*
|
|
668
678
|
* A forked scope is also provided to the transformation function, which is
|
|
669
679
|
* closed once the resulting stream has finished processing.
|
|
670
680
|
*
|
|
@@ -744,6 +754,8 @@ export const toChannel = <A, E, R>(
|
|
|
744
754
|
/**
|
|
745
755
|
* Creates a stream from a callback that can emit values into a queue.
|
|
746
756
|
*
|
|
757
|
+
* **When to use**
|
|
758
|
+
*
|
|
747
759
|
* You can use the `Queue` with the apis from the `Queue` module to emit
|
|
748
760
|
* values to the stream or to signal the stream ending.
|
|
749
761
|
*
|
|
@@ -857,6 +869,8 @@ export const make = <const As extends ReadonlyArray<any>>(...values: As): Stream
|
|
|
857
869
|
/**
|
|
858
870
|
* Creates a stream that synchronously evaluates a function and emits the result as a single value.
|
|
859
871
|
*
|
|
872
|
+
* **Details**
|
|
873
|
+
*
|
|
860
874
|
* The function is evaluated each time the stream is run.
|
|
861
875
|
*
|
|
862
876
|
* **Example** (Evaluating a value synchronously)
|
|
@@ -881,6 +895,8 @@ export const sync = <A>(evaluate: LazyArg<A>): Stream<A> => fromChannel(Channel.
|
|
|
881
895
|
/**
|
|
882
896
|
* Creates a lazily constructed stream.
|
|
883
897
|
*
|
|
898
|
+
* **Details**
|
|
899
|
+
*
|
|
884
900
|
* The stream factory is evaluated each time the stream is run.
|
|
885
901
|
*
|
|
886
902
|
* **Example** (Creating a lazily constructed stream)
|
|
@@ -1041,6 +1057,8 @@ export const failCauseSync = <E>(evaluate: LazyArg<Cause.Cause<E>>): Stream<neve
|
|
|
1041
1057
|
/**
|
|
1042
1058
|
* Creates a stream that consumes values from an iterator.
|
|
1043
1059
|
*
|
|
1060
|
+
* **Details**
|
|
1061
|
+
*
|
|
1044
1062
|
* The `maxChunkSize` parameter controls how many values are pulled per chunk.
|
|
1045
1063
|
*
|
|
1046
1064
|
* **Example** (Consuming values from an iterator)
|
|
@@ -1074,7 +1092,7 @@ export const fromIteratorSucceed = <A>(iterator: IterableIterator<A>, maxChunkSi
|
|
|
1074
1092
|
/**
|
|
1075
1093
|
* Creates a new `Stream` from an iterable collection of values.
|
|
1076
1094
|
*
|
|
1077
|
-
* **
|
|
1095
|
+
* **Details**
|
|
1078
1096
|
*
|
|
1079
1097
|
* - `chunkSize`: Maximum number of values emitted per chunk.
|
|
1080
1098
|
*
|
|
@@ -1250,6 +1268,8 @@ export const fromArrays = <Arr extends ReadonlyArray<ReadonlyArray<any>>>(
|
|
|
1250
1268
|
/**
|
|
1251
1269
|
* Creates a stream that pulls values from a `Queue.Dequeue`.
|
|
1252
1270
|
*
|
|
1271
|
+
* **Details**
|
|
1272
|
+
*
|
|
1253
1273
|
* The stream emits non-empty batches of queued values and ends when the queue
|
|
1254
1274
|
* fails with `Cause.Done`; other queue failures are propagated.
|
|
1255
1275
|
*
|
|
@@ -1317,6 +1337,8 @@ export const fromPubSub = <A>(pubsub: PubSub.PubSub<A>): Stream<A> => fromChanne
|
|
|
1317
1337
|
/**
|
|
1318
1338
|
* Creates a stream from a PubSub of `Take` values.
|
|
1319
1339
|
*
|
|
1340
|
+
* **Details**
|
|
1341
|
+
*
|
|
1320
1342
|
* `Take` values include end and failure signals.
|
|
1321
1343
|
*
|
|
1322
1344
|
* **Example** (Creating a stream from PubSub takes)
|
|
@@ -1350,6 +1372,8 @@ export const fromPubSubTake = <A, E>(pubsub: PubSub.PubSub<Take.Take<A, E>>): St
|
|
|
1350
1372
|
/**
|
|
1351
1373
|
* Creates a stream from a lazily supplied Web `ReadableStream`.
|
|
1352
1374
|
*
|
|
1375
|
+
* **Details**
|
|
1376
|
+
*
|
|
1353
1377
|
* The stream reads from a `ReadableStreamDefaultReader`, maps read failures
|
|
1354
1378
|
* with `onError`, and closes the reader when the stream finalizes. By default
|
|
1355
1379
|
* the reader is canceled; set `releaseLockOnEnd` to release the lock instead.
|
|
@@ -1479,6 +1503,8 @@ export const fromSchedule = <O, E, R>(schedule: Schedule.Schedule<O, unknown, E,
|
|
|
1479
1503
|
/**
|
|
1480
1504
|
* Creates a stream from a PubSub subscription.
|
|
1481
1505
|
*
|
|
1506
|
+
* **When to use**
|
|
1507
|
+
*
|
|
1482
1508
|
* Use `PubSub.subscribe` to create the subscription and `Stream.take` or
|
|
1483
1509
|
* cancellation to control how many values are consumed.
|
|
1484
1510
|
*
|
|
@@ -1592,6 +1618,8 @@ export const fromEventListener = <A = unknown>(
|
|
|
1592
1618
|
* Creates a stream by repeatedly applying an effectful step function to a
|
|
1593
1619
|
* state.
|
|
1594
1620
|
*
|
|
1621
|
+
* **Details**
|
|
1622
|
+
*
|
|
1595
1623
|
* Each `readonly [value, nextState]` result emits `value` and continues with
|
|
1596
1624
|
* `nextState`; returning `undefined` ends the stream.
|
|
1597
1625
|
*
|
|
@@ -1702,6 +1730,8 @@ export const iterate = <A>(value: A, next: (value: A) => A): Stream<A> =>
|
|
|
1702
1730
|
/**
|
|
1703
1731
|
* Constructs a stream from a range of integers, including both endpoints.
|
|
1704
1732
|
*
|
|
1733
|
+
* **Details**
|
|
1734
|
+
*
|
|
1705
1735
|
* If the provided `min` is greater than `max`, the stream will not emit any
|
|
1706
1736
|
* values.
|
|
1707
1737
|
*
|
|
@@ -1718,6 +1748,7 @@ export const iterate = <A>(value: A, next: (value: A) => A): Stream<A> =>
|
|
|
1718
1748
|
* Effect.runPromise(program)
|
|
1719
1749
|
* // Output: [ 1, 2, 3, 4, 5 ]
|
|
1720
1750
|
* ```
|
|
1751
|
+
*
|
|
1721
1752
|
* @category constructors
|
|
1722
1753
|
* @since 2.0.0
|
|
1723
1754
|
*/
|
|
@@ -2383,6 +2414,8 @@ export const mapArrayEffect: {
|
|
|
2383
2414
|
/**
|
|
2384
2415
|
* Lifts failures and successes into a `Result`, yielding a stream that cannot fail.
|
|
2385
2416
|
*
|
|
2417
|
+
* **Details**
|
|
2418
|
+
*
|
|
2386
2419
|
* The stream ends after the first failure, emitting a `Result.fail` value.
|
|
2387
2420
|
*
|
|
2388
2421
|
* **Example** (Converting failures to results)
|
|
@@ -2831,6 +2864,8 @@ export const tapSink: {
|
|
|
2831
2864
|
/**
|
|
2832
2865
|
* Maps each element to a stream and flattens the resulting streams.
|
|
2833
2866
|
*
|
|
2867
|
+
* **Details**
|
|
2868
|
+
*
|
|
2834
2869
|
* With the default sequential concurrency, inner streams are concatenated in
|
|
2835
2870
|
* input order. When `concurrency` is greater than `1` or `"unbounded"`,
|
|
2836
2871
|
* multiple inner streams may run at the same time and their outputs are merged
|
|
@@ -2860,6 +2895,8 @@ export const flatMap: {
|
|
|
2860
2895
|
/**
|
|
2861
2896
|
* Maps each element to a stream and flattens the resulting streams.
|
|
2862
2897
|
*
|
|
2898
|
+
* **Details**
|
|
2899
|
+
*
|
|
2863
2900
|
* With the default sequential concurrency, inner streams are concatenated in
|
|
2864
2901
|
* input order. When `concurrency` is greater than `1` or `"unbounded"`,
|
|
2865
2902
|
* multiple inner streams may run at the same time and their outputs are merged
|
|
@@ -2895,6 +2932,8 @@ export const flatMap: {
|
|
|
2895
2932
|
/**
|
|
2896
2933
|
* Maps each element to a stream and flattens the resulting streams.
|
|
2897
2934
|
*
|
|
2935
|
+
* **Details**
|
|
2936
|
+
*
|
|
2898
2937
|
* With the default sequential concurrency, inner streams are concatenated in
|
|
2899
2938
|
* input order. When `concurrency` is greater than `1` or `"unbounded"`,
|
|
2900
2939
|
* multiple inner streams may run at the same time and their outputs are merged
|
|
@@ -3047,6 +3086,8 @@ export const switchMap: {
|
|
|
3047
3086
|
/**
|
|
3048
3087
|
* Flattens a stream of streams into a single stream.
|
|
3049
3088
|
*
|
|
3089
|
+
* **Details**
|
|
3090
|
+
*
|
|
3050
3091
|
* With the default sequential concurrency, inner streams are concatenated in
|
|
3051
3092
|
* strict order. When `concurrency` is greater than `1` or `"unbounded"`,
|
|
3052
3093
|
* multiple inner streams may run at the same time and their outputs are merged
|
|
@@ -3512,6 +3553,8 @@ export const timeout: {
|
|
|
3512
3553
|
* Switches to a fallback stream if this stream does not emit a value within
|
|
3513
3554
|
* the specified duration.
|
|
3514
3555
|
*
|
|
3556
|
+
* **Details**
|
|
3557
|
+
*
|
|
3515
3558
|
* The timeout is checked for each pull. A zero duration uses `orElse`
|
|
3516
3559
|
* immediately, while an infinite duration leaves the original stream
|
|
3517
3560
|
* unchanged.
|
|
@@ -3524,6 +3567,8 @@ export const timeoutOrElse: {
|
|
|
3524
3567
|
* Switches to a fallback stream if this stream does not emit a value within
|
|
3525
3568
|
* the specified duration.
|
|
3526
3569
|
*
|
|
3570
|
+
* **Details**
|
|
3571
|
+
*
|
|
3527
3572
|
* The timeout is checked for each pull. A zero duration uses `orElse`
|
|
3528
3573
|
* immediately, while an infinite duration leaves the original stream
|
|
3529
3574
|
* unchanged.
|
|
@@ -3541,6 +3586,8 @@ export const timeoutOrElse: {
|
|
|
3541
3586
|
* Switches to a fallback stream if this stream does not emit a value within
|
|
3542
3587
|
* the specified duration.
|
|
3543
3588
|
*
|
|
3589
|
+
* **Details**
|
|
3590
|
+
*
|
|
3544
3591
|
* The timeout is checked for each pull. A zero duration uses `orElse`
|
|
3545
3592
|
* immediately, while an infinite duration leaves the original stream
|
|
3546
3593
|
* unchanged.
|
|
@@ -3985,6 +4032,8 @@ export const prepend: {
|
|
|
3985
4032
|
/**
|
|
3986
4033
|
* Merges two streams, emitting elements from both as they arrive.
|
|
3987
4034
|
*
|
|
4035
|
+
* **Details**
|
|
4036
|
+
*
|
|
3988
4037
|
* By default, the merged stream ends when both streams end. Use
|
|
3989
4038
|
* `haltStrategy` to change the termination behavior.
|
|
3990
4039
|
*
|
|
@@ -4012,6 +4061,8 @@ export const merge: {
|
|
|
4012
4061
|
/**
|
|
4013
4062
|
* Merges two streams, emitting elements from both as they arrive.
|
|
4014
4063
|
*
|
|
4064
|
+
* **Details**
|
|
4065
|
+
*
|
|
4015
4066
|
* By default, the merged stream ends when both streams end. Use
|
|
4016
4067
|
* `haltStrategy` to change the termination behavior.
|
|
4017
4068
|
*
|
|
@@ -4044,6 +4095,8 @@ export const merge: {
|
|
|
4044
4095
|
/**
|
|
4045
4096
|
* Merges two streams, emitting elements from both as they arrive.
|
|
4046
4097
|
*
|
|
4098
|
+
* **Details**
|
|
4099
|
+
*
|
|
4047
4100
|
* By default, the merged stream ends when both streams end. Use
|
|
4048
4101
|
* `haltStrategy` to change the termination behavior.
|
|
4049
4102
|
*
|
|
@@ -4088,6 +4141,8 @@ export const merge: {
|
|
|
4088
4141
|
/**
|
|
4089
4142
|
* Merges this stream with a background effect, keeping the stream's elements.
|
|
4090
4143
|
*
|
|
4144
|
+
* **Details**
|
|
4145
|
+
*
|
|
4091
4146
|
* The effect runs concurrently, fails the stream if it fails, and is interrupted
|
|
4092
4147
|
* when the stream completes.
|
|
4093
4148
|
*
|
|
@@ -4117,6 +4172,8 @@ export const mergeEffect: {
|
|
|
4117
4172
|
/**
|
|
4118
4173
|
* Merges this stream with a background effect, keeping the stream's elements.
|
|
4119
4174
|
*
|
|
4175
|
+
* **Details**
|
|
4176
|
+
*
|
|
4120
4177
|
* The effect runs concurrently, fails the stream if it fails, and is interrupted
|
|
4121
4178
|
* when the stream completes.
|
|
4122
4179
|
*
|
|
@@ -4146,6 +4203,8 @@ export const mergeEffect: {
|
|
|
4146
4203
|
/**
|
|
4147
4204
|
* Merges this stream with a background effect, keeping the stream's elements.
|
|
4148
4205
|
*
|
|
4206
|
+
* **Details**
|
|
4207
|
+
*
|
|
4149
4208
|
* The effect runs concurrently, fails the stream if it fails, and is interrupted
|
|
4150
4209
|
* when the stream completes.
|
|
4151
4210
|
*
|
|
@@ -4301,6 +4360,8 @@ export const mergeResult: {
|
|
|
4301
4360
|
/**
|
|
4302
4361
|
* Merges two streams while emitting only the values from the left stream.
|
|
4303
4362
|
*
|
|
4363
|
+
* **Details**
|
|
4364
|
+
*
|
|
4304
4365
|
* The right stream still runs for its effects, and any failures from the right
|
|
4305
4366
|
* stream are propagated. The merged stream completes when the left stream
|
|
4306
4367
|
* completes, interrupting the right stream.
|
|
@@ -4328,6 +4389,8 @@ export const mergeLeft: {
|
|
|
4328
4389
|
/**
|
|
4329
4390
|
* Merges two streams while emitting only the values from the left stream.
|
|
4330
4391
|
*
|
|
4392
|
+
* **Details**
|
|
4393
|
+
*
|
|
4331
4394
|
* The right stream still runs for its effects, and any failures from the right
|
|
4332
4395
|
* stream are propagated. The merged stream completes when the left stream
|
|
4333
4396
|
* completes, interrupting the right stream.
|
|
@@ -4355,6 +4418,8 @@ export const mergeLeft: {
|
|
|
4355
4418
|
/**
|
|
4356
4419
|
* Merges two streams while emitting only the values from the left stream.
|
|
4357
4420
|
*
|
|
4421
|
+
* **Details**
|
|
4422
|
+
*
|
|
4358
4423
|
* The right stream still runs for its effects, and any failures from the right
|
|
4359
4424
|
* stream are propagated. The merged stream completes when the left stream
|
|
4360
4425
|
* completes, interrupting the right stream.
|
|
@@ -4389,6 +4454,8 @@ export const mergeLeft: {
|
|
|
4389
4454
|
* Merges this stream and the specified stream together, emitting only the
|
|
4390
4455
|
* values from the right stream while the left stream runs for its effects.
|
|
4391
4456
|
*
|
|
4457
|
+
* **Details**
|
|
4458
|
+
*
|
|
4392
4459
|
* The merged stream ends when the right stream completes, interrupting the
|
|
4393
4460
|
* left stream. Failures from the left stream still fail the merged stream.
|
|
4394
4461
|
*
|
|
@@ -4421,6 +4488,8 @@ export const mergeRight: {
|
|
|
4421
4488
|
* Merges this stream and the specified stream together, emitting only the
|
|
4422
4489
|
* values from the right stream while the left stream runs for its effects.
|
|
4423
4490
|
*
|
|
4491
|
+
* **Details**
|
|
4492
|
+
*
|
|
4424
4493
|
* The merged stream ends when the right stream completes, interrupting the
|
|
4425
4494
|
* left stream. Failures from the left stream still fail the merged stream.
|
|
4426
4495
|
*
|
|
@@ -4453,6 +4522,8 @@ export const mergeRight: {
|
|
|
4453
4522
|
* Merges this stream and the specified stream together, emitting only the
|
|
4454
4523
|
* values from the right stream while the left stream runs for its effects.
|
|
4455
4524
|
*
|
|
4525
|
+
* **Details**
|
|
4526
|
+
*
|
|
4456
4527
|
* The merged stream ends when the right stream completes, interrupting the
|
|
4457
4528
|
* left stream. Failures from the left stream still fail the merged stream.
|
|
4458
4529
|
*
|
|
@@ -4594,6 +4665,8 @@ export const mergeAll: {
|
|
|
4594
4665
|
* Creates the cartesian product of two streams, running the `right` stream for
|
|
4595
4666
|
* each element in the `left` stream.
|
|
4596
4667
|
*
|
|
4668
|
+
* **Details**
|
|
4669
|
+
*
|
|
4597
4670
|
* See also `Stream.zip` for the more common point-wise variant.
|
|
4598
4671
|
*
|
|
4599
4672
|
* **Example** (Computing cartesian products)
|
|
@@ -4620,6 +4693,8 @@ export const cross: {
|
|
|
4620
4693
|
* Creates the cartesian product of two streams, running the `right` stream for
|
|
4621
4694
|
* each element in the `left` stream.
|
|
4622
4695
|
*
|
|
4696
|
+
* **Details**
|
|
4697
|
+
*
|
|
4623
4698
|
* See also `Stream.zip` for the more common point-wise variant.
|
|
4624
4699
|
*
|
|
4625
4700
|
* **Example** (Computing cartesian products)
|
|
@@ -4646,6 +4721,8 @@ export const cross: {
|
|
|
4646
4721
|
* Creates the cartesian product of two streams, running the `right` stream for
|
|
4647
4722
|
* each element in the `left` stream.
|
|
4648
4723
|
*
|
|
4724
|
+
* **Details**
|
|
4725
|
+
*
|
|
4649
4726
|
* See also `Stream.zip` for the more common point-wise variant.
|
|
4650
4727
|
*
|
|
4651
4728
|
* **Example** (Computing cartesian products)
|
|
@@ -4676,6 +4753,8 @@ export const cross: {
|
|
|
4676
4753
|
/**
|
|
4677
4754
|
* Creates a cartesian product of elements from two streams using a function.
|
|
4678
4755
|
*
|
|
4756
|
+
* **Details**
|
|
4757
|
+
*
|
|
4679
4758
|
* The `right` stream is rerun for every element in the `left` stream.
|
|
4680
4759
|
*
|
|
4681
4760
|
* See also `Stream.zipWith` for the more common point-wise variant.
|
|
@@ -4704,6 +4783,8 @@ export const crossWith: {
|
|
|
4704
4783
|
/**
|
|
4705
4784
|
* Creates a cartesian product of elements from two streams using a function.
|
|
4706
4785
|
*
|
|
4786
|
+
* **Details**
|
|
4787
|
+
*
|
|
4707
4788
|
* The `right` stream is rerun for every element in the `left` stream.
|
|
4708
4789
|
*
|
|
4709
4790
|
* See also `Stream.zipWith` for the more common point-wise variant.
|
|
@@ -4732,6 +4813,8 @@ export const crossWith: {
|
|
|
4732
4813
|
/**
|
|
4733
4814
|
* Creates a cartesian product of elements from two streams using a function.
|
|
4734
4815
|
*
|
|
4816
|
+
* **Details**
|
|
4817
|
+
*
|
|
4735
4818
|
* The `right` stream is rerun for every element in the `left` stream.
|
|
4736
4819
|
*
|
|
4737
4820
|
* See also `Stream.zipWith` for the more common point-wise variant.
|
|
@@ -4875,6 +4958,8 @@ const zipArrays = <AL, AR, A>(
|
|
|
4875
4958
|
/**
|
|
4876
4959
|
* Zips two streams by applying a function to non-empty arrays of elements.
|
|
4877
4960
|
*
|
|
4961
|
+
* **Details**
|
|
4962
|
+
*
|
|
4878
4963
|
* The function returns output plus leftover arrays that carry into the next pull.
|
|
4879
4964
|
*
|
|
4880
4965
|
* **Example** (Zipping stream chunks)
|
|
@@ -4908,6 +4993,8 @@ export const zipWithArray: {
|
|
|
4908
4993
|
/**
|
|
4909
4994
|
* Zips two streams by applying a function to non-empty arrays of elements.
|
|
4910
4995
|
*
|
|
4996
|
+
* **Details**
|
|
4997
|
+
*
|
|
4911
4998
|
* The function returns output plus leftover arrays that carry into the next pull.
|
|
4912
4999
|
*
|
|
4913
5000
|
* **Example** (Zipping stream chunks)
|
|
@@ -4951,6 +5038,8 @@ export const zipWithArray: {
|
|
|
4951
5038
|
/**
|
|
4952
5039
|
* Zips two streams by applying a function to non-empty arrays of elements.
|
|
4953
5040
|
*
|
|
5041
|
+
* **Details**
|
|
5042
|
+
*
|
|
4954
5043
|
* The function returns output plus leftover arrays that carry into the next pull.
|
|
4955
5044
|
*
|
|
4956
5045
|
* **Example** (Zipping stream chunks)
|
|
@@ -5139,6 +5228,8 @@ export const zip: {
|
|
|
5139
5228
|
* Zips this stream with another point-wise and keeps only the values from
|
|
5140
5229
|
* the left stream.
|
|
5141
5230
|
*
|
|
5231
|
+
* **Details**
|
|
5232
|
+
*
|
|
5142
5233
|
* The resulting stream ends when either side ends.
|
|
5143
5234
|
*
|
|
5144
5235
|
* **Example** (Zipping streams while keeping left values)
|
|
@@ -5166,6 +5257,8 @@ export const zipLeft: {
|
|
|
5166
5257
|
* Zips this stream with another point-wise and keeps only the values from
|
|
5167
5258
|
* the left stream.
|
|
5168
5259
|
*
|
|
5260
|
+
* **Details**
|
|
5261
|
+
*
|
|
5169
5262
|
* The resulting stream ends when either side ends.
|
|
5170
5263
|
*
|
|
5171
5264
|
* **Example** (Zipping streams while keeping left values)
|
|
@@ -5193,6 +5286,8 @@ export const zipLeft: {
|
|
|
5193
5286
|
* Zips this stream with another point-wise and keeps only the values from
|
|
5194
5287
|
* the left stream.
|
|
5195
5288
|
*
|
|
5289
|
+
* **Details**
|
|
5290
|
+
*
|
|
5196
5291
|
* The resulting stream ends when either side ends.
|
|
5197
5292
|
*
|
|
5198
5293
|
* **Example** (Zipping streams while keeping left values)
|
|
@@ -5324,6 +5419,8 @@ export const zipRight: {
|
|
|
5324
5419
|
* Zips this stream with another point-wise and emits tuples of elements from
|
|
5325
5420
|
* both streams, flattening the left tuple.
|
|
5326
5421
|
*
|
|
5422
|
+
* **Details**
|
|
5423
|
+
*
|
|
5327
5424
|
* The new stream will end when one of the sides ends.
|
|
5328
5425
|
*
|
|
5329
5426
|
* **Example** (Zipping and flattening tuples)
|
|
@@ -5355,6 +5452,8 @@ export const zipFlatten: {
|
|
|
5355
5452
|
* Zips this stream with another point-wise and emits tuples of elements from
|
|
5356
5453
|
* both streams, flattening the left tuple.
|
|
5357
5454
|
*
|
|
5455
|
+
* **Details**
|
|
5456
|
+
*
|
|
5358
5457
|
* The new stream will end when one of the sides ends.
|
|
5359
5458
|
*
|
|
5360
5459
|
* **Example** (Zipping and flattening tuples)
|
|
@@ -5386,6 +5485,8 @@ export const zipFlatten: {
|
|
|
5386
5485
|
* Zips this stream with another point-wise and emits tuples of elements from
|
|
5387
5486
|
* both streams, flattening the left tuple.
|
|
5388
5487
|
*
|
|
5488
|
+
* **Details**
|
|
5489
|
+
*
|
|
5389
5490
|
* The new stream will end when one of the sides ends.
|
|
5390
5491
|
*
|
|
5391
5492
|
* **Example** (Zipping and flattening tuples)
|
|
@@ -5588,6 +5689,8 @@ export const zipWithPreviousAndNext = <A, E, R>(
|
|
|
5588
5689
|
* Zips multiple streams so that when a value is emitted by any stream, it is
|
|
5589
5690
|
* combined with the latest values from the other streams to produce a result.
|
|
5590
5691
|
*
|
|
5692
|
+
* **Gotchas**
|
|
5693
|
+
*
|
|
5591
5694
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
5592
5695
|
* that emitted elements that are not the last value in arrays will never be
|
|
5593
5696
|
* used for zipping.
|
|
@@ -5657,6 +5760,8 @@ export const zipLatestAll = <T extends ReadonlyArray<Stream<any, any, any>>>(
|
|
|
5657
5760
|
/**
|
|
5658
5761
|
* Combines two streams by emitting each new element with the latest value from the other stream.
|
|
5659
5762
|
*
|
|
5763
|
+
* **Gotchas**
|
|
5764
|
+
*
|
|
5660
5765
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
5661
5766
|
* that emitted elements that are not the last value in arrays will never be
|
|
5662
5767
|
* used for zipping.
|
|
@@ -5684,6 +5789,8 @@ export const zipLatest: {
|
|
|
5684
5789
|
/**
|
|
5685
5790
|
* Combines two streams by emitting each new element with the latest value from the other stream.
|
|
5686
5791
|
*
|
|
5792
|
+
* **Gotchas**
|
|
5793
|
+
*
|
|
5687
5794
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
5688
5795
|
* that emitted elements that are not the last value in arrays will never be
|
|
5689
5796
|
* used for zipping.
|
|
@@ -5711,6 +5818,8 @@ export const zipLatest: {
|
|
|
5711
5818
|
/**
|
|
5712
5819
|
* Combines two streams by emitting each new element with the latest value from the other stream.
|
|
5713
5820
|
*
|
|
5821
|
+
* **Gotchas**
|
|
5822
|
+
*
|
|
5714
5823
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
5715
5824
|
* that emitted elements that are not the last value in arrays will never be
|
|
5716
5825
|
* used for zipping.
|
|
@@ -5747,6 +5856,8 @@ export const zipLatest: {
|
|
|
5747
5856
|
* Combines the latest values from both streams whenever either emits, using
|
|
5748
5857
|
* the provided function.
|
|
5749
5858
|
*
|
|
5859
|
+
* **Gotchas**
|
|
5860
|
+
*
|
|
5750
5861
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
5751
5862
|
* that emitted elements that are not the last value in arrays will never be
|
|
5752
5863
|
* used for zipping.
|
|
@@ -5779,6 +5890,8 @@ export const zipLatestWith: {
|
|
|
5779
5890
|
* Combines the latest values from both streams whenever either emits, using
|
|
5780
5891
|
* the provided function.
|
|
5781
5892
|
*
|
|
5893
|
+
* **Gotchas**
|
|
5894
|
+
*
|
|
5782
5895
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
5783
5896
|
* that emitted elements that are not the last value in arrays will never be
|
|
5784
5897
|
* used for zipping.
|
|
@@ -5811,6 +5924,8 @@ export const zipLatestWith: {
|
|
|
5811
5924
|
* Combines the latest values from both streams whenever either emits, using
|
|
5812
5925
|
* the provided function.
|
|
5813
5926
|
*
|
|
5927
|
+
* **Gotchas**
|
|
5928
|
+
*
|
|
5814
5929
|
* Note: tracking the latest value is done on a per-array basis. That means
|
|
5815
5930
|
* that emitted elements that are not the last value in arrays will never be
|
|
5816
5931
|
* used for zipping.
|
|
@@ -5856,13 +5971,12 @@ export const zipLatestWith: {
|
|
|
5856
5971
|
* Runs all streams concurrently until one stream emits its first value, then
|
|
5857
5972
|
* mirrors that winning stream and interrupts the rest.
|
|
5858
5973
|
*
|
|
5974
|
+
* **Details**
|
|
5975
|
+
*
|
|
5859
5976
|
* Failures or completion from losing streams before a winner is chosen are
|
|
5860
5977
|
* ignored unless every stream fails or completes before emitting. After a
|
|
5861
5978
|
* winner is chosen, that stream's later failures are propagated.
|
|
5862
5979
|
*
|
|
5863
|
-
* @category Racing
|
|
5864
|
-
* @since 3.5.0
|
|
5865
|
-
*
|
|
5866
5980
|
* **Example** (Racing multiple streams)
|
|
5867
5981
|
*
|
|
5868
5982
|
* ```ts
|
|
@@ -5879,6 +5993,9 @@ export const zipLatestWith: {
|
|
|
5879
5993
|
* Effect.runPromise(program)
|
|
5880
5994
|
* // Output: [ 0, 1, 2 ]
|
|
5881
5995
|
* ```
|
|
5996
|
+
*
|
|
5997
|
+
* @category Racing
|
|
5998
|
+
* @since 3.5.0
|
|
5882
5999
|
*/
|
|
5883
6000
|
export const raceAll = <S extends ReadonlyArray<Stream<any, any, any>>>(
|
|
5884
6001
|
...streams: S
|
|
@@ -5913,6 +6030,8 @@ export const raceAll = <S extends ReadonlyArray<Stream<any, any, any>>>(
|
|
|
5913
6030
|
* Runs both streams concurrently until one stream emits its first value, then
|
|
5914
6031
|
* mirrors that winning stream and interrupts the other.
|
|
5915
6032
|
*
|
|
6033
|
+
* **Details**
|
|
6034
|
+
*
|
|
5916
6035
|
* A failure or completion from one side before the other side emits does not
|
|
5917
6036
|
* win the race unless both sides fail or complete before emitting. After a
|
|
5918
6037
|
* winner is chosen, that stream's later failures are propagated.
|
|
@@ -5944,6 +6063,8 @@ export const race: {
|
|
|
5944
6063
|
* Runs both streams concurrently until one stream emits its first value, then
|
|
5945
6064
|
* mirrors that winning stream and interrupts the other.
|
|
5946
6065
|
*
|
|
6066
|
+
* **Details**
|
|
6067
|
+
*
|
|
5947
6068
|
* A failure or completion from one side before the other side emits does not
|
|
5948
6069
|
* win the race unless both sides fail or complete before emitting. After a
|
|
5949
6070
|
* winner is chosen, that stream's later failures are propagated.
|
|
@@ -5975,6 +6096,8 @@ export const race: {
|
|
|
5975
6096
|
* Runs both streams concurrently until one stream emits its first value, then
|
|
5976
6097
|
* mirrors that winning stream and interrupts the other.
|
|
5977
6098
|
*
|
|
6099
|
+
* **Details**
|
|
6100
|
+
*
|
|
5978
6101
|
* A failure or completion from one side before the other side emits does not
|
|
5979
6102
|
* win the race unless both sides fail or complete before emitting. After a
|
|
5980
6103
|
* winner is chosen, that stream's later failures are propagated.
|
|
@@ -6277,6 +6400,8 @@ export const filterMapEffect: {
|
|
|
6277
6400
|
* Partitions a stream using a `Filter` and exposes passing and failing values
|
|
6278
6401
|
* as scoped queues.
|
|
6279
6402
|
*
|
|
6403
|
+
* **Details**
|
|
6404
|
+
*
|
|
6280
6405
|
* The queues are backed by a fiber in the current scope and should be consumed
|
|
6281
6406
|
* while that scope remains open. Each queue fails with the stream error or
|
|
6282
6407
|
* `Cause.Done` when the source ends.
|
|
@@ -6311,6 +6436,8 @@ export const partitionQueue: {
|
|
|
6311
6436
|
* Partitions a stream using a `Filter` and exposes passing and failing values
|
|
6312
6437
|
* as scoped queues.
|
|
6313
6438
|
*
|
|
6439
|
+
* **Details**
|
|
6440
|
+
*
|
|
6314
6441
|
* The queues are backed by a fiber in the current scope and should be consumed
|
|
6315
6442
|
* while that scope remains open. Each queue fails with the stream error or
|
|
6316
6443
|
* `Cause.Done` when the source ends.
|
|
@@ -6357,6 +6484,8 @@ export const partitionQueue: {
|
|
|
6357
6484
|
* Partitions a stream using a `Filter` and exposes passing and failing values
|
|
6358
6485
|
* as scoped queues.
|
|
6359
6486
|
*
|
|
6487
|
+
* **Details**
|
|
6488
|
+
*
|
|
6360
6489
|
* The queues are backed by a fiber in the current scope and should be consumed
|
|
6361
6490
|
* while that scope remains open. Each queue fails with the stream error or
|
|
6362
6491
|
* `Cause.Done` when the source ends.
|
|
@@ -6424,6 +6553,8 @@ export const partitionQueue: {
|
|
|
6424
6553
|
* Partitions a stream using a `Filter` and exposes passing and failing values
|
|
6425
6554
|
* as scoped queues.
|
|
6426
6555
|
*
|
|
6556
|
+
* **Details**
|
|
6557
|
+
*
|
|
6427
6558
|
* The queues are backed by a fiber in the current scope and should be consumed
|
|
6428
6559
|
* while that scope remains open. Each queue fails with the stream error or
|
|
6429
6560
|
* `Cause.Done` when the source ends.
|
|
@@ -6457,6 +6588,8 @@ export const partitionQueue: {
|
|
|
6457
6588
|
* Partitions a stream using a `Filter` and exposes passing and failing values
|
|
6458
6589
|
* as scoped queues.
|
|
6459
6590
|
*
|
|
6591
|
+
* **Details**
|
|
6592
|
+
*
|
|
6460
6593
|
* The queues are backed by a fiber in the current scope and should be consumed
|
|
6461
6594
|
* while that scope remains open. Each queue fails with the stream error or
|
|
6462
6595
|
* `Cause.Done` when the source ends.
|
|
@@ -6491,6 +6624,8 @@ export const partitionQueue: {
|
|
|
6491
6624
|
* Partitions a stream using a `Filter` and exposes passing and failing values
|
|
6492
6625
|
* as scoped queues.
|
|
6493
6626
|
*
|
|
6627
|
+
* **Details**
|
|
6628
|
+
*
|
|
6494
6629
|
* The queues are backed by a fiber in the current scope and should be consumed
|
|
6495
6630
|
* while that scope remains open. Each queue fails with the stream error or
|
|
6496
6631
|
* `Cause.Done` when the source ends.
|
|
@@ -6524,6 +6659,8 @@ export const partitionQueue: {
|
|
|
6524
6659
|
* Partitions a stream using a `Filter` and exposes passing and failing values
|
|
6525
6660
|
* as scoped queues.
|
|
6526
6661
|
*
|
|
6662
|
+
* **Details**
|
|
6663
|
+
*
|
|
6527
6664
|
* The queues are backed by a fiber in the current scope and should be consumed
|
|
6528
6665
|
* while that scope remains open. Each queue fails with the stream error or
|
|
6529
6666
|
* `Cause.Done` when the source ends.
|
|
@@ -6601,6 +6738,8 @@ export const partitionQueue: {
|
|
|
6601
6738
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
6602
6739
|
* filter successes and failures.
|
|
6603
6740
|
*
|
|
6741
|
+
* **Details**
|
|
6742
|
+
*
|
|
6604
6743
|
* The returned streams are backed by queues in the current scope and should be
|
|
6605
6744
|
* consumed while that scope remains open. The first stream emits success values
|
|
6606
6745
|
* from the filter, and the second emits failure values.
|
|
@@ -6613,6 +6752,8 @@ export const partitionEffect: {
|
|
|
6613
6752
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
6614
6753
|
* filter successes and failures.
|
|
6615
6754
|
*
|
|
6755
|
+
* **Details**
|
|
6756
|
+
*
|
|
6616
6757
|
* The returned streams are backed by queues in the current scope and should be
|
|
6617
6758
|
* consumed while that scope remains open. The first stream emits success values
|
|
6618
6759
|
* from the filter, and the second emits failure values.
|
|
@@ -6638,6 +6779,8 @@ export const partitionEffect: {
|
|
|
6638
6779
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
6639
6780
|
* filter successes and failures.
|
|
6640
6781
|
*
|
|
6782
|
+
* **Details**
|
|
6783
|
+
*
|
|
6641
6784
|
* The returned streams are backed by queues in the current scope and should be
|
|
6642
6785
|
* consumed while that scope remains open. The first stream emits success values
|
|
6643
6786
|
* from the filter, and the second emits failure values.
|
|
@@ -6682,6 +6825,8 @@ export const partitionEffect: {
|
|
|
6682
6825
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
6683
6826
|
* filter successes and failures.
|
|
6684
6827
|
*
|
|
6828
|
+
* **Details**
|
|
6829
|
+
*
|
|
6685
6830
|
* The returned streams are backed by queues in the current scope and should be
|
|
6686
6831
|
* consumed while that scope remains open. The first stream emits success values
|
|
6687
6832
|
* from the filter, and the second emits failure values.
|
|
@@ -6693,6 +6838,8 @@ export const partitionEffect: {
|
|
|
6693
6838
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
6694
6839
|
* filter successes and failures.
|
|
6695
6840
|
*
|
|
6841
|
+
* **Details**
|
|
6842
|
+
*
|
|
6696
6843
|
* The returned streams are backed by queues in the current scope and should be
|
|
6697
6844
|
* consumed while that scope remains open. The first stream emits success values
|
|
6698
6845
|
* from the filter, and the second emits failure values.
|
|
@@ -6704,6 +6851,8 @@ export const partitionEffect: {
|
|
|
6704
6851
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
6705
6852
|
* filter successes and failures.
|
|
6706
6853
|
*
|
|
6854
|
+
* **Details**
|
|
6855
|
+
*
|
|
6707
6856
|
* The returned streams are backed by queues in the current scope and should be
|
|
6708
6857
|
* consumed while that scope remains open. The first stream emits success values
|
|
6709
6858
|
* from the filter, and the second emits failure values.
|
|
@@ -6715,6 +6864,8 @@ export const partitionEffect: {
|
|
|
6715
6864
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
6716
6865
|
* filter successes and failures.
|
|
6717
6866
|
*
|
|
6867
|
+
* **Details**
|
|
6868
|
+
*
|
|
6718
6869
|
* The returned streams are backed by queues in the current scope and should be
|
|
6719
6870
|
* consumed while that scope remains open. The first stream emits success values
|
|
6720
6871
|
* from the filter, and the second emits failure values.
|
|
@@ -6726,6 +6877,8 @@ export const partitionEffect: {
|
|
|
6726
6877
|
* Splits a stream with an effectful `Filter`, returning scoped streams for
|
|
6727
6878
|
* filter successes and failures.
|
|
6728
6879
|
*
|
|
6880
|
+
* **Details**
|
|
6881
|
+
*
|
|
6729
6882
|
* The returned streams are backed by queues in the current scope and should be
|
|
6730
6883
|
* consumed while that scope remains open. The first stream emits success values
|
|
6731
6884
|
* from the filter, and the second emits failure values.
|
|
@@ -6746,13 +6899,12 @@ export const partitionEffect: {
|
|
|
6746
6899
|
* Splits a stream into scoped excluded and satisfying substreams using a
|
|
6747
6900
|
* `Filter`.
|
|
6748
6901
|
*
|
|
6902
|
+
* **Details**
|
|
6903
|
+
*
|
|
6749
6904
|
* The returned streams are backed by queues in the current scope and should be
|
|
6750
6905
|
* consumed while that scope remains open. The faster stream may advance up to
|
|
6751
6906
|
* `bufferSize` elements ahead of the slower one.
|
|
6752
6907
|
*
|
|
6753
|
-
* @category filtering
|
|
6754
|
-
* @since 2.0.0
|
|
6755
|
-
*
|
|
6756
6908
|
* **Example** (Partitioning a stream)
|
|
6757
6909
|
*
|
|
6758
6910
|
* ```ts
|
|
@@ -6771,19 +6923,21 @@ export const partitionEffect: {
|
|
|
6771
6923
|
* // Output: [ 2, 4 ]
|
|
6772
6924
|
* })
|
|
6773
6925
|
* ```
|
|
6926
|
+
*
|
|
6927
|
+
* @category filtering
|
|
6928
|
+
* @since 2.0.0
|
|
6774
6929
|
*/
|
|
6775
6930
|
export const partition: {
|
|
6776
6931
|
/**
|
|
6777
6932
|
* Splits a stream into scoped excluded and satisfying substreams using a
|
|
6778
6933
|
* `Filter`.
|
|
6779
6934
|
*
|
|
6935
|
+
* **Details**
|
|
6936
|
+
*
|
|
6780
6937
|
* The returned streams are backed by queues in the current scope and should be
|
|
6781
6938
|
* consumed while that scope remains open. The faster stream may advance up to
|
|
6782
6939
|
* `bufferSize` elements ahead of the slower one.
|
|
6783
6940
|
*
|
|
6784
|
-
* @category filtering
|
|
6785
|
-
* @since 2.0.0
|
|
6786
|
-
*
|
|
6787
6941
|
* **Example** (Partitioning a stream)
|
|
6788
6942
|
*
|
|
6789
6943
|
* ```ts
|
|
@@ -6802,6 +6956,9 @@ export const partition: {
|
|
|
6802
6956
|
* // Output: [ 2, 4 ]
|
|
6803
6957
|
* })
|
|
6804
6958
|
* ```
|
|
6959
|
+
*
|
|
6960
|
+
* @category filtering
|
|
6961
|
+
* @since 2.0.0
|
|
6805
6962
|
*/
|
|
6806
6963
|
<A, Pass, Fail>(
|
|
6807
6964
|
filter: Filter.Filter<NoInfer<A>, Pass, Fail>,
|
|
@@ -6817,13 +6974,12 @@ export const partition: {
|
|
|
6817
6974
|
* Splits a stream into scoped excluded and satisfying substreams using a
|
|
6818
6975
|
* `Filter`.
|
|
6819
6976
|
*
|
|
6977
|
+
* **Details**
|
|
6978
|
+
*
|
|
6820
6979
|
* The returned streams are backed by queues in the current scope and should be
|
|
6821
6980
|
* consumed while that scope remains open. The faster stream may advance up to
|
|
6822
6981
|
* `bufferSize` elements ahead of the slower one.
|
|
6823
6982
|
*
|
|
6824
|
-
* @category filtering
|
|
6825
|
-
* @since 2.0.0
|
|
6826
|
-
*
|
|
6827
6983
|
* **Example** (Partitioning a stream)
|
|
6828
6984
|
*
|
|
6829
6985
|
* ```ts
|
|
@@ -6842,6 +6998,9 @@ export const partition: {
|
|
|
6842
6998
|
* // Output: [ 2, 4 ]
|
|
6843
6999
|
* })
|
|
6844
7000
|
* ```
|
|
7001
|
+
*
|
|
7002
|
+
* @category filtering
|
|
7003
|
+
* @since 2.0.0
|
|
6845
7004
|
*/
|
|
6846
7005
|
<A, E, R, Pass, Fail>(
|
|
6847
7006
|
self: Stream<A, E, R>,
|
|
@@ -6954,6 +7113,8 @@ export const when: {
|
|
|
6954
7113
|
* Runs a sink to peel off enough elements to produce a value and returns that
|
|
6955
7114
|
* value with the remaining stream in a scope.
|
|
6956
7115
|
*
|
|
7116
|
+
* **Details**
|
|
7117
|
+
*
|
|
6957
7118
|
* The returned stream is only valid within the scope.
|
|
6958
7119
|
*
|
|
6959
7120
|
* **Example** (Peeling a stream with a sink)
|
|
@@ -6984,6 +7145,8 @@ export const peel: {
|
|
|
6984
7145
|
* Runs a sink to peel off enough elements to produce a value and returns that
|
|
6985
7146
|
* value with the remaining stream in a scope.
|
|
6986
7147
|
*
|
|
7148
|
+
* **Details**
|
|
7149
|
+
*
|
|
6987
7150
|
* The returned stream is only valid within the scope.
|
|
6988
7151
|
*
|
|
6989
7152
|
* **Example** (Peeling a stream with a sink)
|
|
@@ -7014,6 +7177,8 @@ export const peel: {
|
|
|
7014
7177
|
* Runs a sink to peel off enough elements to produce a value and returns that
|
|
7015
7178
|
* value with the remaining stream in a scope.
|
|
7016
7179
|
*
|
|
7180
|
+
* **Details**
|
|
7181
|
+
*
|
|
7017
7182
|
* The returned stream is only valid within the scope.
|
|
7018
7183
|
*
|
|
7019
7184
|
* **Example** (Peeling a stream with a sink)
|
|
@@ -7069,6 +7234,8 @@ export const peel: {
|
|
|
7069
7234
|
* Buffers up to `capacity` elements so a faster producer can progress
|
|
7070
7235
|
* independently of a slower consumer.
|
|
7071
7236
|
*
|
|
7237
|
+
* **Details**
|
|
7238
|
+
*
|
|
7072
7239
|
* Finite buffers use the configured queue strategy: `"suspend"` applies
|
|
7073
7240
|
* backpressure, while `"dropping"` and `"sliding"` may discard elements when
|
|
7074
7241
|
* the buffer is full. This combinator destroys chunking; use `Stream.rechunk`
|
|
@@ -7099,6 +7266,8 @@ export const buffer: {
|
|
|
7099
7266
|
* Buffers up to `capacity` elements so a faster producer can progress
|
|
7100
7267
|
* independently of a slower consumer.
|
|
7101
7268
|
*
|
|
7269
|
+
* **Details**
|
|
7270
|
+
*
|
|
7102
7271
|
* Finite buffers use the configured queue strategy: `"suspend"` applies
|
|
7103
7272
|
* backpressure, while `"dropping"` and `"sliding"` may discard elements when
|
|
7104
7273
|
* the buffer is full. This combinator destroys chunking; use `Stream.rechunk`
|
|
@@ -7134,6 +7303,8 @@ export const buffer: {
|
|
|
7134
7303
|
* Buffers up to `capacity` elements so a faster producer can progress
|
|
7135
7304
|
* independently of a slower consumer.
|
|
7136
7305
|
*
|
|
7306
|
+
* **Details**
|
|
7307
|
+
*
|
|
7137
7308
|
* Finite buffers use the configured queue strategy: `"suspend"` applies
|
|
7138
7309
|
* backpressure, while `"dropping"` and `"sliding"` may discard elements when
|
|
7139
7310
|
* the buffer is full. This combinator destroys chunking; use `Stream.rechunk`
|
|
@@ -7178,6 +7349,8 @@ export const buffer: {
|
|
|
7178
7349
|
* Allows a faster producer to progress independently of a slower consumer by
|
|
7179
7350
|
* buffering up to `capacity` chunks in a queue.
|
|
7180
7351
|
*
|
|
7352
|
+
* **Details**
|
|
7353
|
+
*
|
|
7181
7354
|
* Finite buffers use the configured queue strategy: `"suspend"` applies
|
|
7182
7355
|
* backpressure, while `"dropping"` and `"sliding"` may discard chunks when the
|
|
7183
7356
|
* buffer is full. This combinator preserves chunking and is best with
|
|
@@ -7207,6 +7380,8 @@ export const bufferArray: {
|
|
|
7207
7380
|
* Allows a faster producer to progress independently of a slower consumer by
|
|
7208
7381
|
* buffering up to `capacity` chunks in a queue.
|
|
7209
7382
|
*
|
|
7383
|
+
* **Details**
|
|
7384
|
+
*
|
|
7210
7385
|
* Finite buffers use the configured queue strategy: `"suspend"` applies
|
|
7211
7386
|
* backpressure, while `"dropping"` and `"sliding"` may discard chunks when the
|
|
7212
7387
|
* buffer is full. This combinator preserves chunking and is best with
|
|
@@ -7241,6 +7416,8 @@ export const bufferArray: {
|
|
|
7241
7416
|
* Allows a faster producer to progress independently of a slower consumer by
|
|
7242
7417
|
* buffering up to `capacity` chunks in a queue.
|
|
7243
7418
|
*
|
|
7419
|
+
* **Details**
|
|
7420
|
+
*
|
|
7244
7421
|
* Finite buffers use the configured queue strategy: `"suspend"` applies
|
|
7245
7422
|
* backpressure, while `"dropping"` and `"sliding"` may discard chunks when the
|
|
7246
7423
|
* buffer is full. This combinator preserves chunking and is best with
|
|
@@ -7625,6 +7802,8 @@ export const tapError: {
|
|
|
7625
7802
|
/**
|
|
7626
7803
|
* Recovers from errors that match a predicate by switching to a recovery stream.
|
|
7627
7804
|
*
|
|
7805
|
+
* **Details**
|
|
7806
|
+
*
|
|
7628
7807
|
* When a failure matches the filter, the stream switches to the recovery
|
|
7629
7808
|
* stream. Non-matching failures propagate downstream, so the error type is
|
|
7630
7809
|
* preserved unless the filter narrows it.
|
|
@@ -7658,6 +7837,8 @@ export const catchIf: {
|
|
|
7658
7837
|
/**
|
|
7659
7838
|
* Recovers from errors that match a predicate by switching to a recovery stream.
|
|
7660
7839
|
*
|
|
7840
|
+
* **Details**
|
|
7841
|
+
*
|
|
7661
7842
|
* When a failure matches the filter, the stream switches to the recovery
|
|
7662
7843
|
* stream. Non-matching failures propagate downstream, so the error type is
|
|
7663
7844
|
* preserved unless the filter narrows it.
|
|
@@ -7695,6 +7876,8 @@ export const catchIf: {
|
|
|
7695
7876
|
/**
|
|
7696
7877
|
* Recovers from errors that match a predicate by switching to a recovery stream.
|
|
7697
7878
|
*
|
|
7879
|
+
* **Details**
|
|
7880
|
+
*
|
|
7698
7881
|
* When a failure matches the filter, the stream switches to the recovery
|
|
7699
7882
|
* stream. Non-matching failures propagate downstream, so the error type is
|
|
7700
7883
|
* preserved unless the filter narrows it.
|
|
@@ -7732,6 +7915,8 @@ export const catchIf: {
|
|
|
7732
7915
|
/**
|
|
7733
7916
|
* Recovers from errors that match a predicate by switching to a recovery stream.
|
|
7734
7917
|
*
|
|
7918
|
+
* **Details**
|
|
7919
|
+
*
|
|
7735
7920
|
* When a failure matches the filter, the stream switches to the recovery
|
|
7736
7921
|
* stream. Non-matching failures propagate downstream, so the error type is
|
|
7737
7922
|
* preserved unless the filter narrows it.
|
|
@@ -7770,6 +7955,8 @@ export const catchIf: {
|
|
|
7770
7955
|
/**
|
|
7771
7956
|
* Recovers from errors that match a predicate by switching to a recovery stream.
|
|
7772
7957
|
*
|
|
7958
|
+
* **Details**
|
|
7959
|
+
*
|
|
7773
7960
|
* When a failure matches the filter, the stream switches to the recovery
|
|
7774
7961
|
* stream. Non-matching failures propagate downstream, so the error type is
|
|
7775
7962
|
* preserved unless the filter narrows it.
|
|
@@ -7894,7 +8081,7 @@ export const catchFilter: {
|
|
|
7894
8081
|
* Recovers from failures whose `_tag` matches the provided value by switching to
|
|
7895
8082
|
* the stream returned by `f`.
|
|
7896
8083
|
*
|
|
7897
|
-
* **When to
|
|
8084
|
+
* **When to use**
|
|
7898
8085
|
*
|
|
7899
8086
|
* Use `catchTag` when your error type is a tagged union with a readonly `_tag`
|
|
7900
8087
|
* field and you want to handle a specific error case.
|
|
@@ -7929,7 +8116,7 @@ export const catchTag: {
|
|
|
7929
8116
|
* Recovers from failures whose `_tag` matches the provided value by switching to
|
|
7930
8117
|
* the stream returned by `f`.
|
|
7931
8118
|
*
|
|
7932
|
-
* **When to
|
|
8119
|
+
* **When to use**
|
|
7933
8120
|
*
|
|
7934
8121
|
* Use `catchTag` when your error type is a tagged union with a readonly `_tag`
|
|
7935
8122
|
* field and you want to handle a specific error case.
|
|
@@ -7983,7 +8170,7 @@ export const catchTag: {
|
|
|
7983
8170
|
* Recovers from failures whose `_tag` matches the provided value by switching to
|
|
7984
8171
|
* the stream returned by `f`.
|
|
7985
8172
|
*
|
|
7986
|
-
* **When to
|
|
8173
|
+
* **When to use**
|
|
7987
8174
|
*
|
|
7988
8175
|
* Use `catchTag` when your error type is a tagged union with a readonly `_tag`
|
|
7989
8176
|
* field and you want to handle a specific error case.
|
|
@@ -8249,6 +8436,8 @@ export const catchTags: {
|
|
|
8249
8436
|
/**
|
|
8250
8437
|
* Catches a specific reason within a tagged error.
|
|
8251
8438
|
*
|
|
8439
|
+
* **When to use**
|
|
8440
|
+
*
|
|
8252
8441
|
* Use this to handle nested error causes without removing the parent error
|
|
8253
8442
|
* from the error channel. The handler receives the unwrapped reason.
|
|
8254
8443
|
*
|
|
@@ -8294,6 +8483,8 @@ export const catchReason: {
|
|
|
8294
8483
|
/**
|
|
8295
8484
|
* Catches a specific reason within a tagged error.
|
|
8296
8485
|
*
|
|
8486
|
+
* **When to use**
|
|
8487
|
+
*
|
|
8297
8488
|
* Use this to handle nested error causes without removing the parent error
|
|
8298
8489
|
* from the error channel. The handler receives the unwrapped reason.
|
|
8299
8490
|
*
|
|
@@ -8364,6 +8555,8 @@ export const catchReason: {
|
|
|
8364
8555
|
/**
|
|
8365
8556
|
* Catches a specific reason within a tagged error.
|
|
8366
8557
|
*
|
|
8558
|
+
* **When to use**
|
|
8559
|
+
*
|
|
8367
8560
|
* Use this to handle nested error causes without removing the parent error
|
|
8368
8561
|
* from the error channel. The handler receives the unwrapped reason.
|
|
8369
8562
|
*
|
|
@@ -9111,6 +9304,8 @@ export const orDie = <A, E, R>(self: Stream<A, E, R>): Stream<A, never, R> => fr
|
|
|
9111
9304
|
/**
|
|
9112
9305
|
* Ignores failures and ends the stream on error.
|
|
9113
9306
|
*
|
|
9307
|
+
* **When to use**
|
|
9308
|
+
*
|
|
9114
9309
|
* Use the `log` option to emit the full {@link Cause} when the stream fails.
|
|
9115
9310
|
*
|
|
9116
9311
|
* **Example** (Ignoring stream failures)
|
|
@@ -9173,6 +9368,8 @@ export const ignore: <
|
|
|
9173
9368
|
/**
|
|
9174
9369
|
* Ignores the stream's failure cause, including defects, and ends the stream.
|
|
9175
9370
|
*
|
|
9371
|
+
* **When to use**
|
|
9372
|
+
*
|
|
9176
9373
|
* Use the `log` option to emit the full {@link Cause} when the stream fails.
|
|
9177
9374
|
*
|
|
9178
9375
|
* **Example** (Ignoring stream failure causes)
|
|
@@ -9216,6 +9413,8 @@ export const ignoreCause: <
|
|
|
9216
9413
|
/**
|
|
9217
9414
|
* When the stream fails, retry it according to the given schedule.
|
|
9218
9415
|
*
|
|
9416
|
+
* **Details**
|
|
9417
|
+
*
|
|
9219
9418
|
* This retries the entire stream, so will re-execute all of the stream's
|
|
9220
9419
|
* acquire operations.
|
|
9221
9420
|
*
|
|
@@ -9249,6 +9448,8 @@ export const retry: {
|
|
|
9249
9448
|
/**
|
|
9250
9449
|
* When the stream fails, retry it according to the given schedule.
|
|
9251
9450
|
*
|
|
9451
|
+
* **Details**
|
|
9452
|
+
*
|
|
9252
9453
|
* This retries the entire stream, so will re-execute all of the stream's
|
|
9253
9454
|
* acquire operations.
|
|
9254
9455
|
*
|
|
@@ -9288,6 +9489,8 @@ export const retry: {
|
|
|
9288
9489
|
/**
|
|
9289
9490
|
* When the stream fails, retry it according to the given schedule.
|
|
9290
9491
|
*
|
|
9492
|
+
* **Details**
|
|
9493
|
+
*
|
|
9291
9494
|
* This retries the entire stream, so will re-execute all of the stream's
|
|
9292
9495
|
* acquire operations.
|
|
9293
9496
|
*
|
|
@@ -9341,6 +9544,8 @@ export const retry: {
|
|
|
9341
9544
|
* Apply an `ExecutionPlan` to a stream, retrying with step-provided resources
|
|
9342
9545
|
* until it succeeds or the plan is exhausted.
|
|
9343
9546
|
*
|
|
9547
|
+
* **Details**
|
|
9548
|
+
*
|
|
9344
9549
|
* By default, a failing step can fallback even after emitting elements; set
|
|
9345
9550
|
* `preventFallbackOnPartialStream` to fail instead of mixing partial output with
|
|
9346
9551
|
* a later fallback.
|
|
@@ -9383,6 +9588,8 @@ export const withExecutionPlan: {
|
|
|
9383
9588
|
* Apply an `ExecutionPlan` to a stream, retrying with step-provided resources
|
|
9384
9589
|
* until it succeeds or the plan is exhausted.
|
|
9385
9590
|
*
|
|
9591
|
+
* **Details**
|
|
9592
|
+
*
|
|
9386
9593
|
* By default, a failing step can fallback even after emitting elements; set
|
|
9387
9594
|
* `preventFallbackOnPartialStream` to fail instead of mixing partial output with
|
|
9388
9595
|
* a later fallback.
|
|
@@ -9428,6 +9635,8 @@ export const withExecutionPlan: {
|
|
|
9428
9635
|
* Apply an `ExecutionPlan` to a stream, retrying with step-provided resources
|
|
9429
9636
|
* until it succeeds or the plan is exhausted.
|
|
9430
9637
|
*
|
|
9638
|
+
* **Details**
|
|
9639
|
+
*
|
|
9431
9640
|
* By default, a failing step can fallback even after emitting elements; set
|
|
9432
9641
|
* `preventFallbackOnPartialStream` to fail instead of mixing partial output with
|
|
9433
9642
|
* a later fallback.
|
|
@@ -9503,6 +9712,8 @@ export const withExecutionPlan: {
|
|
|
9503
9712
|
* Apply an `ExecutionPlan` to a stream, retrying with step-provided resources
|
|
9504
9713
|
* until it succeeds or the plan is exhausted.
|
|
9505
9714
|
*
|
|
9715
|
+
* **Details**
|
|
9716
|
+
*
|
|
9506
9717
|
* By default, a failing step can fallback even after emitting elements; set
|
|
9507
9718
|
* `preventFallbackOnPartialStream` to fail instead of mixing partial output with
|
|
9508
9719
|
* a later fallback.
|
|
@@ -9759,6 +9970,8 @@ export const takeRight: {
|
|
|
9759
9970
|
/**
|
|
9760
9971
|
* Takes elements until the predicate matches.
|
|
9761
9972
|
*
|
|
9973
|
+
* **Details**
|
|
9974
|
+
*
|
|
9762
9975
|
* When `excludeLast` is `true`, the matching element is dropped.
|
|
9763
9976
|
*
|
|
9764
9977
|
* **Example** (Taking until a predicate matches)
|
|
@@ -9792,6 +10005,8 @@ export const takeUntil: {
|
|
|
9792
10005
|
/**
|
|
9793
10006
|
* Takes elements until the predicate matches.
|
|
9794
10007
|
*
|
|
10008
|
+
* **Details**
|
|
10009
|
+
*
|
|
9795
10010
|
* When `excludeLast` is `true`, the matching element is dropped.
|
|
9796
10011
|
*
|
|
9797
10012
|
* **Example** (Taking until a predicate matches)
|
|
@@ -9830,6 +10045,8 @@ export const takeUntil: {
|
|
|
9830
10045
|
/**
|
|
9831
10046
|
* Takes elements until the predicate matches.
|
|
9832
10047
|
*
|
|
10048
|
+
* **Details**
|
|
10049
|
+
*
|
|
9833
10050
|
* When `excludeLast` is `true`, the matching element is dropped.
|
|
9834
10051
|
*
|
|
9835
10052
|
* **Example** (Taking until a predicate matches)
|
|
@@ -10156,6 +10373,8 @@ export const takeWhile: {
|
|
|
10156
10373
|
* Takes the longest initial prefix accepted by a `Filter` and emits the
|
|
10157
10374
|
* filter's success values.
|
|
10158
10375
|
*
|
|
10376
|
+
* **Details**
|
|
10377
|
+
*
|
|
10159
10378
|
* The stream stops at the first `Result.fail` returned by the filter.
|
|
10160
10379
|
*
|
|
10161
10380
|
* @category filtering
|
|
@@ -10166,6 +10385,8 @@ export const takeWhileFilter: {
|
|
|
10166
10385
|
* Takes the longest initial prefix accepted by a `Filter` and emits the
|
|
10167
10386
|
* filter's success values.
|
|
10168
10387
|
*
|
|
10388
|
+
* **Details**
|
|
10389
|
+
*
|
|
10169
10390
|
* The stream stops at the first `Result.fail` returned by the filter.
|
|
10170
10391
|
*
|
|
10171
10392
|
* @category filtering
|
|
@@ -10176,6 +10397,8 @@ export const takeWhileFilter: {
|
|
|
10176
10397
|
* Takes the longest initial prefix accepted by a `Filter` and emits the
|
|
10177
10398
|
* filter's success values.
|
|
10178
10399
|
*
|
|
10400
|
+
* **Details**
|
|
10401
|
+
*
|
|
10179
10402
|
* The stream stops at the first `Result.fail` returned by the filter.
|
|
10180
10403
|
*
|
|
10181
10404
|
* @category filtering
|
|
@@ -10463,6 +10686,8 @@ export const dropUntil: {
|
|
|
10463
10686
|
* Drops all elements of the stream until the specified effectful predicate
|
|
10464
10687
|
* evaluates to `true`.
|
|
10465
10688
|
*
|
|
10689
|
+
* **Details**
|
|
10690
|
+
*
|
|
10466
10691
|
* The first element that satisfies the predicate is also dropped.
|
|
10467
10692
|
*
|
|
10468
10693
|
* **Example** (Dropping until an effectful predicate matches)
|
|
@@ -10490,6 +10715,8 @@ export const dropUntilEffect: {
|
|
|
10490
10715
|
* Drops all elements of the stream until the specified effectful predicate
|
|
10491
10716
|
* evaluates to `true`.
|
|
10492
10717
|
*
|
|
10718
|
+
* **Details**
|
|
10719
|
+
*
|
|
10493
10720
|
* The first element that satisfies the predicate is also dropped.
|
|
10494
10721
|
*
|
|
10495
10722
|
* **Example** (Dropping until an effectful predicate matches)
|
|
@@ -10519,6 +10746,8 @@ export const dropUntilEffect: {
|
|
|
10519
10746
|
* Drops all elements of the stream until the specified effectful predicate
|
|
10520
10747
|
* evaluates to `true`.
|
|
10521
10748
|
*
|
|
10749
|
+
* **Details**
|
|
10750
|
+
*
|
|
10522
10751
|
* The first element that satisfies the predicate is also dropped.
|
|
10523
10752
|
*
|
|
10524
10753
|
* **Example** (Dropping until an effectful predicate matches)
|
|
@@ -10790,6 +11019,8 @@ export const dropWhileEffect: {
|
|
|
10790
11019
|
/**
|
|
10791
11020
|
* Drops the last specified number of elements from this stream.
|
|
10792
11021
|
*
|
|
11022
|
+
* **Details**
|
|
11023
|
+
*
|
|
10793
11024
|
* Keeps the last `n` elements in memory to drop them on completion.
|
|
10794
11025
|
*
|
|
10795
11026
|
* **Example** (Dropping values from the right)
|
|
@@ -10816,6 +11047,8 @@ export const dropRight: {
|
|
|
10816
11047
|
/**
|
|
10817
11048
|
* Drops the last specified number of elements from this stream.
|
|
10818
11049
|
*
|
|
11050
|
+
* **Details**
|
|
11051
|
+
*
|
|
10819
11052
|
* Keeps the last `n` elements in memory to drop them on completion.
|
|
10820
11053
|
*
|
|
10821
11054
|
* **Example** (Dropping values from the right)
|
|
@@ -10842,6 +11075,8 @@ export const dropRight: {
|
|
|
10842
11075
|
/**
|
|
10843
11076
|
* Drops the last specified number of elements from this stream.
|
|
10844
11077
|
*
|
|
11078
|
+
* **Details**
|
|
11079
|
+
*
|
|
10845
11080
|
* Keeps the last `n` elements in memory to drop them on completion.
|
|
10846
11081
|
*
|
|
10847
11082
|
* **Example** (Dropping values from the right)
|
|
@@ -10874,6 +11109,8 @@ export const dropRight: {
|
|
|
10874
11109
|
const list = MutableList.make</**
|
|
10875
11110
|
* Drops the last specified number of elements from this stream.
|
|
10876
11111
|
*
|
|
11112
|
+
* **Details**
|
|
11113
|
+
*
|
|
10877
11114
|
* Keeps the last `n` elements in memory to drop them on completion.
|
|
10878
11115
|
*
|
|
10879
11116
|
* **Example** (Dropping values from the right)
|
|
@@ -10941,6 +11178,8 @@ export const chunks = <A, E, R>(self: Stream<A, E, R>): Stream<Arr.NonEmptyReado
|
|
|
10941
11178
|
/**
|
|
10942
11179
|
* Re-chunks the stream into arrays of the specified size, preserving element order.
|
|
10943
11180
|
*
|
|
11181
|
+
* **Details**
|
|
11182
|
+
*
|
|
10944
11183
|
* The size is clamped to at least 1.
|
|
10945
11184
|
*
|
|
10946
11185
|
* **Example** (Rechunking stream elements)
|
|
@@ -10968,6 +11207,8 @@ export const rechunk: {
|
|
|
10968
11207
|
/**
|
|
10969
11208
|
* Re-chunks the stream into arrays of the specified size, preserving element order.
|
|
10970
11209
|
*
|
|
11210
|
+
* **Details**
|
|
11211
|
+
*
|
|
10971
11212
|
* The size is clamped to at least 1.
|
|
10972
11213
|
*
|
|
10973
11214
|
* **Example** (Rechunking stream elements)
|
|
@@ -10995,6 +11236,8 @@ export const rechunk: {
|
|
|
10995
11236
|
/**
|
|
10996
11237
|
* Re-chunks the stream into arrays of the specified size, preserving element order.
|
|
10997
11238
|
*
|
|
11239
|
+
* **Details**
|
|
11240
|
+
*
|
|
10998
11241
|
* The size is clamped to at least 1.
|
|
10999
11242
|
*
|
|
11000
11243
|
* **Example** (Rechunking stream elements)
|
|
@@ -11026,6 +11269,8 @@ export const rechunk: {
|
|
|
11026
11269
|
let chunk = Arr.empty</**
|
|
11027
11270
|
* Re-chunks the stream into arrays of the specified size, preserving element order.
|
|
11028
11271
|
*
|
|
11272
|
+
* **Details**
|
|
11273
|
+
*
|
|
11029
11274
|
* The size is clamped to at least 1.
|
|
11030
11275
|
*
|
|
11031
11276
|
* **Example** (Rechunking stream elements)
|
|
@@ -11307,6 +11552,8 @@ export const slidingSize: {
|
|
|
11307
11552
|
/**
|
|
11308
11553
|
* Splits the stream into non-empty groups whenever the predicate matches.
|
|
11309
11554
|
*
|
|
11555
|
+
* **Details**
|
|
11556
|
+
*
|
|
11310
11557
|
* Matching elements act as delimiters and are not included in the output.
|
|
11311
11558
|
*
|
|
11312
11559
|
* **Example** (Splitting on matching values)
|
|
@@ -11333,6 +11580,8 @@ export const split: {
|
|
|
11333
11580
|
/**
|
|
11334
11581
|
* Splits the stream into non-empty groups whenever the predicate matches.
|
|
11335
11582
|
*
|
|
11583
|
+
* **Details**
|
|
11584
|
+
*
|
|
11336
11585
|
* Matching elements act as delimiters and are not included in the output.
|
|
11337
11586
|
*
|
|
11338
11587
|
* **Example** (Splitting on matching values)
|
|
@@ -11359,6 +11608,8 @@ export const split: {
|
|
|
11359
11608
|
/**
|
|
11360
11609
|
* Splits the stream into non-empty groups whenever the predicate matches.
|
|
11361
11610
|
*
|
|
11611
|
+
* **Details**
|
|
11612
|
+
*
|
|
11362
11613
|
* Matching elements act as delimiters and are not included in the output.
|
|
11363
11614
|
*
|
|
11364
11615
|
* **Example** (Splitting on matching values)
|
|
@@ -11385,6 +11636,8 @@ export const split: {
|
|
|
11385
11636
|
/**
|
|
11386
11637
|
* Splits the stream into non-empty groups whenever the predicate matches.
|
|
11387
11638
|
*
|
|
11639
|
+
* **Details**
|
|
11640
|
+
*
|
|
11388
11641
|
* Matching elements act as delimiters and are not included in the output.
|
|
11389
11642
|
*
|
|
11390
11643
|
* **Example** (Splitting on matching values)
|
|
@@ -11411,6 +11664,8 @@ export const split: {
|
|
|
11411
11664
|
/**
|
|
11412
11665
|
* Splits the stream into non-empty groups whenever the predicate matches.
|
|
11413
11666
|
*
|
|
11667
|
+
* **Details**
|
|
11668
|
+
*
|
|
11414
11669
|
* Matching elements act as delimiters and are not included in the output.
|
|
11415
11670
|
*
|
|
11416
11671
|
* **Example** (Splitting on matching values)
|
|
@@ -11442,6 +11697,8 @@ export const split: {
|
|
|
11442
11697
|
const out = Arr.empty</**
|
|
11443
11698
|
* Splits the stream into non-empty groups whenever the predicate matches.
|
|
11444
11699
|
*
|
|
11700
|
+
* **Details**
|
|
11701
|
+
*
|
|
11445
11702
|
* Matching elements act as delimiters and are not included in the output.
|
|
11446
11703
|
*
|
|
11447
11704
|
* **Example** (Splitting on matching values)
|
|
@@ -11486,6 +11743,8 @@ export const split: {
|
|
|
11486
11743
|
* Combines elements from this stream and the specified stream by repeatedly
|
|
11487
11744
|
* applying a stateful function that can pull from either side.
|
|
11488
11745
|
*
|
|
11746
|
+
* **Details**
|
|
11747
|
+
*
|
|
11489
11748
|
* Where possible, prefer `Stream.combineArray` for a more efficient
|
|
11490
11749
|
* implementation.
|
|
11491
11750
|
*
|
|
@@ -11521,6 +11780,8 @@ export const combine: {
|
|
|
11521
11780
|
* Combines elements from this stream and the specified stream by repeatedly
|
|
11522
11781
|
* applying a stateful function that can pull from either side.
|
|
11523
11782
|
*
|
|
11783
|
+
* **Details**
|
|
11784
|
+
*
|
|
11524
11785
|
* Where possible, prefer `Stream.combineArray` for a more efficient
|
|
11525
11786
|
* implementation.
|
|
11526
11787
|
*
|
|
@@ -11564,6 +11825,8 @@ export const combine: {
|
|
|
11564
11825
|
* Combines elements from this stream and the specified stream by repeatedly
|
|
11565
11826
|
* applying a stateful function that can pull from either side.
|
|
11566
11827
|
*
|
|
11828
|
+
* **Details**
|
|
11829
|
+
*
|
|
11567
11830
|
* Where possible, prefer `Stream.combineArray` for a more efficient
|
|
11568
11831
|
* implementation.
|
|
11569
11832
|
*
|
|
@@ -11926,6 +12189,8 @@ export const mapAccum: {
|
|
|
11926
12189
|
/**
|
|
11927
12190
|
* Statefully maps over non-empty chunk arrays, emitting zero or more values per chunk.
|
|
11928
12191
|
*
|
|
12192
|
+
* **Details**
|
|
12193
|
+
*
|
|
11929
12194
|
* The mapping function runs once per chunk and the state is threaded across chunks.
|
|
11930
12195
|
*
|
|
11931
12196
|
* **Example** (Statefully mapping stream chunks)
|
|
@@ -11956,6 +12221,8 @@ export const mapAccumArray: {
|
|
|
11956
12221
|
/**
|
|
11957
12222
|
* Statefully maps over non-empty chunk arrays, emitting zero or more values per chunk.
|
|
11958
12223
|
*
|
|
12224
|
+
* **Details**
|
|
12225
|
+
*
|
|
11959
12226
|
* The mapping function runs once per chunk and the state is threaded across chunks.
|
|
11960
12227
|
*
|
|
11961
12228
|
* **Example** (Statefully mapping stream chunks)
|
|
@@ -11992,6 +12259,8 @@ export const mapAccumArray: {
|
|
|
11992
12259
|
/**
|
|
11993
12260
|
* Statefully maps over non-empty chunk arrays, emitting zero or more values per chunk.
|
|
11994
12261
|
*
|
|
12262
|
+
* **Details**
|
|
12263
|
+
*
|
|
11995
12264
|
* The mapping function runs once per chunk and the state is threaded across chunks.
|
|
11996
12265
|
*
|
|
11997
12266
|
* **Example** (Statefully mapping stream chunks)
|
|
@@ -12058,6 +12327,8 @@ const emptyArr = Arr.empty<never>()
|
|
|
12058
12327
|
* Statefully and effectfully maps each element, emitting zero or more output
|
|
12059
12328
|
* values per input.
|
|
12060
12329
|
*
|
|
12330
|
+
* **Details**
|
|
12331
|
+
*
|
|
12061
12332
|
* The mapping effect receives the current state and element, then returns the
|
|
12062
12333
|
* next state plus the values to emit. The state is threaded through the
|
|
12063
12334
|
* stream.
|
|
@@ -12090,6 +12361,8 @@ export const mapAccumEffect: {
|
|
|
12090
12361
|
* Statefully and effectfully maps each element, emitting zero or more output
|
|
12091
12362
|
* values per input.
|
|
12092
12363
|
*
|
|
12364
|
+
* **Details**
|
|
12365
|
+
*
|
|
12093
12366
|
* The mapping effect receives the current state and element, then returns the
|
|
12094
12367
|
* next state plus the values to emit. The state is threaded through the
|
|
12095
12368
|
* stream.
|
|
@@ -12128,6 +12401,8 @@ export const mapAccumEffect: {
|
|
|
12128
12401
|
* Statefully and effectfully maps each element, emitting zero or more output
|
|
12129
12402
|
* values per input.
|
|
12130
12403
|
*
|
|
12404
|
+
* **Details**
|
|
12405
|
+
*
|
|
12131
12406
|
* The mapping effect receives the current state and element, then returns the
|
|
12132
12407
|
* next state plus the values to emit. The state is threaded through the
|
|
12133
12408
|
* stream.
|
|
@@ -12184,6 +12459,8 @@ export const mapAccumEffect: {
|
|
|
12184
12459
|
* Statefully and effectfully maps each element, emitting zero or more output
|
|
12185
12460
|
* values per input.
|
|
12186
12461
|
*
|
|
12462
|
+
* **Details**
|
|
12463
|
+
*
|
|
12187
12464
|
* The mapping effect receives the current state and element, then returns the
|
|
12188
12465
|
* next state plus the values to emit. The state is threaded through the
|
|
12189
12466
|
* stream.
|
|
@@ -12230,6 +12507,8 @@ export const mapAccumEffect: {
|
|
|
12230
12507
|
* Statefully and effectfully maps each non-empty input chunk, emitting zero or
|
|
12231
12508
|
* more output values per chunk.
|
|
12232
12509
|
*
|
|
12510
|
+
* **Details**
|
|
12511
|
+
*
|
|
12233
12512
|
* The mapping effect receives the current state and chunk, then returns the
|
|
12234
12513
|
* next state plus the values to emit. The state is threaded across chunks.
|
|
12235
12514
|
*
|
|
@@ -12264,6 +12543,8 @@ export const mapAccumArrayEffect: {
|
|
|
12264
12543
|
* Statefully and effectfully maps each non-empty input chunk, emitting zero or
|
|
12265
12544
|
* more output values per chunk.
|
|
12266
12545
|
*
|
|
12546
|
+
* **Details**
|
|
12547
|
+
*
|
|
12267
12548
|
* The mapping effect receives the current state and chunk, then returns the
|
|
12268
12549
|
* next state plus the values to emit. The state is threaded across chunks.
|
|
12269
12550
|
*
|
|
@@ -12304,6 +12585,8 @@ export const mapAccumArrayEffect: {
|
|
|
12304
12585
|
* Statefully and effectfully maps each non-empty input chunk, emitting zero or
|
|
12305
12586
|
* more output values per chunk.
|
|
12306
12587
|
*
|
|
12588
|
+
* **Details**
|
|
12589
|
+
*
|
|
12307
12590
|
* The mapping effect receives the current state and chunk, then returns the
|
|
12308
12591
|
* next state plus the values to emit. The state is threaded across chunks.
|
|
12309
12592
|
*
|
|
@@ -12721,6 +13004,8 @@ export const debounce: {
|
|
|
12721
13004
|
* allowing the bucket to accumulate tokens up to a `units + burst` threshold.
|
|
12722
13005
|
* The weight of each array is determined by the effectful `cost` function.
|
|
12723
13006
|
*
|
|
13007
|
+
* **Details**
|
|
13008
|
+
*
|
|
12724
13009
|
* If using the "enforce" strategy, arrays that do not meet the bandwidth
|
|
12725
13010
|
* constraints are dropped. If using the "shape" strategy, arrays are delayed
|
|
12726
13011
|
* until they can be emitted without exceeding the bandwidth constraints.
|
|
@@ -12759,6 +13044,8 @@ export const throttleEffect: {
|
|
|
12759
13044
|
* allowing the bucket to accumulate tokens up to a `units + burst` threshold.
|
|
12760
13045
|
* The weight of each array is determined by the effectful `cost` function.
|
|
12761
13046
|
*
|
|
13047
|
+
* **Details**
|
|
13048
|
+
*
|
|
12762
13049
|
* If using the "enforce" strategy, arrays that do not meet the bandwidth
|
|
12763
13050
|
* constraints are dropped. If using the "shape" strategy, arrays are delayed
|
|
12764
13051
|
* until they can be emitted without exceeding the bandwidth constraints.
|
|
@@ -12805,6 +13092,8 @@ export const throttleEffect: {
|
|
|
12805
13092
|
* allowing the bucket to accumulate tokens up to a `units + burst` threshold.
|
|
12806
13093
|
* The weight of each array is determined by the effectful `cost` function.
|
|
12807
13094
|
*
|
|
13095
|
+
* **Details**
|
|
13096
|
+
*
|
|
12808
13097
|
* If using the "enforce" strategy, arrays that do not meet the bandwidth
|
|
12809
13098
|
* constraints are dropped. If using the "shape" strategy, arrays are delayed
|
|
12810
13099
|
* until they can be emitted without exceeding the bandwidth constraints.
|
|
@@ -12954,6 +13243,8 @@ const throttleShapeEffect = <A, E, R, E2, R2>(
|
|
|
12954
13243
|
* Allows bursts by letting the bucket accumulate up to a `units + burst`
|
|
12955
13244
|
* threshold. The weight of each array is determined by the `cost` function.
|
|
12956
13245
|
*
|
|
13246
|
+
* **Details**
|
|
13247
|
+
*
|
|
12957
13248
|
* If using the "enforce" strategy, arrays that do not meet the bandwidth
|
|
12958
13249
|
* constraints are dropped. If using the "shape" strategy, arrays are delayed
|
|
12959
13250
|
* until they can be emitted without exceeding the bandwidth constraints.
|
|
@@ -12991,6 +13282,8 @@ export const throttle: {
|
|
|
12991
13282
|
* Allows bursts by letting the bucket accumulate up to a `units + burst`
|
|
12992
13283
|
* threshold. The weight of each array is determined by the `cost` function.
|
|
12993
13284
|
*
|
|
13285
|
+
* **Details**
|
|
13286
|
+
*
|
|
12994
13287
|
* If using the "enforce" strategy, arrays that do not meet the bandwidth
|
|
12995
13288
|
* constraints are dropped. If using the "shape" strategy, arrays are delayed
|
|
12996
13289
|
* until they can be emitted without exceeding the bandwidth constraints.
|
|
@@ -13036,6 +13329,8 @@ export const throttle: {
|
|
|
13036
13329
|
* Allows bursts by letting the bucket accumulate up to a `units + burst`
|
|
13037
13330
|
* threshold. The weight of each array is determined by the `cost` function.
|
|
13038
13331
|
*
|
|
13332
|
+
* **Details**
|
|
13333
|
+
*
|
|
13039
13334
|
* If using the "enforce" strategy, arrays that do not meet the bandwidth
|
|
13040
13335
|
* constraints are dropped. If using the "shape" strategy, arrays are delayed
|
|
13041
13336
|
* until they can be emitted without exceeding the bandwidth constraints.
|
|
@@ -13098,6 +13393,8 @@ export const throttle: {
|
|
|
13098
13393
|
/**
|
|
13099
13394
|
* Partitions the stream into non-empty arrays of the specified size.
|
|
13100
13395
|
*
|
|
13396
|
+
* **Details**
|
|
13397
|
+
*
|
|
13101
13398
|
* The final array may be smaller if there are not enough elements to fill it.
|
|
13102
13399
|
*
|
|
13103
13400
|
* **Example** (Grouping elements by size)
|
|
@@ -13124,6 +13421,8 @@ export const grouped: {
|
|
|
13124
13421
|
/**
|
|
13125
13422
|
* Partitions the stream into non-empty arrays of the specified size.
|
|
13126
13423
|
*
|
|
13424
|
+
* **Details**
|
|
13425
|
+
*
|
|
13127
13426
|
* The final array may be smaller if there are not enough elements to fill it.
|
|
13128
13427
|
*
|
|
13129
13428
|
* **Example** (Grouping elements by size)
|
|
@@ -13150,6 +13449,8 @@ export const grouped: {
|
|
|
13150
13449
|
/**
|
|
13151
13450
|
* Partitions the stream into non-empty arrays of the specified size.
|
|
13152
13451
|
*
|
|
13452
|
+
* **Details**
|
|
13453
|
+
*
|
|
13153
13454
|
* The final array may be smaller if there are not enough elements to fill it.
|
|
13154
13455
|
*
|
|
13155
13456
|
* **Example** (Grouping elements by size)
|
|
@@ -13654,6 +13955,8 @@ const groupByImpl = <A, E, R, K, V, E2, R2>(
|
|
|
13654
13955
|
/**
|
|
13655
13956
|
* Groups consecutive elements that have equal keys into non-empty arrays.
|
|
13656
13957
|
*
|
|
13958
|
+
* **Details**
|
|
13959
|
+
*
|
|
13657
13960
|
* The key is computed with `f`; adjacent elements whose keys are equal by
|
|
13658
13961
|
* `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs
|
|
13659
13962
|
* with the same key are emitted separately.
|
|
@@ -13665,6 +13968,8 @@ export const groupAdjacentBy: {
|
|
|
13665
13968
|
/**
|
|
13666
13969
|
* Groups consecutive elements that have equal keys into non-empty arrays.
|
|
13667
13970
|
*
|
|
13971
|
+
* **Details**
|
|
13972
|
+
*
|
|
13668
13973
|
* The key is computed with `f`; adjacent elements whose keys are equal by
|
|
13669
13974
|
* `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs
|
|
13670
13975
|
* with the same key are emitted separately.
|
|
@@ -13676,6 +13981,8 @@ export const groupAdjacentBy: {
|
|
|
13676
13981
|
/**
|
|
13677
13982
|
* Groups consecutive elements that have equal keys into non-empty arrays.
|
|
13678
13983
|
*
|
|
13984
|
+
* **Details**
|
|
13985
|
+
*
|
|
13679
13986
|
* The key is computed with `f`; adjacent elements whose keys are equal by
|
|
13680
13987
|
* `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs
|
|
13681
13988
|
* with the same key are emitted separately.
|
|
@@ -13695,6 +14002,8 @@ export const groupAdjacentBy: {
|
|
|
13695
14002
|
let toEmit = Arr.empty</**
|
|
13696
14003
|
* Groups consecutive elements that have equal keys into non-empty arrays.
|
|
13697
14004
|
*
|
|
14005
|
+
* **Details**
|
|
14006
|
+
*
|
|
13698
14007
|
* The key is computed with `f`; adjacent elements whose keys are equal by
|
|
13699
14008
|
* `Equal.equals` are emitted as one `[key, group]`. Later non-adjacent runs
|
|
13700
14009
|
* with the same key are emitted separately.
|
|
@@ -13851,6 +14160,8 @@ export const transduce = dual<
|
|
|
13851
14160
|
/**
|
|
13852
14161
|
* Aggregates elements using the provided sink and emits each sink result as a stream element.
|
|
13853
14162
|
*
|
|
14163
|
+
* **Details**
|
|
14164
|
+
*
|
|
13854
14165
|
* The stream runs the upstream and downstream in separate fibers, so the sink can keep
|
|
13855
14166
|
* consuming input while downstream is busy processing the previous output.
|
|
13856
14167
|
*
|
|
@@ -13879,6 +14190,8 @@ export const aggregate: {
|
|
|
13879
14190
|
/**
|
|
13880
14191
|
* Aggregates elements using the provided sink and emits each sink result as a stream element.
|
|
13881
14192
|
*
|
|
14193
|
+
* **Details**
|
|
14194
|
+
*
|
|
13882
14195
|
* The stream runs the upstream and downstream in separate fibers, so the sink can keep
|
|
13883
14196
|
* consuming input while downstream is busy processing the previous output.
|
|
13884
14197
|
*
|
|
@@ -13907,6 +14220,8 @@ export const aggregate: {
|
|
|
13907
14220
|
/**
|
|
13908
14221
|
* Aggregates elements using the provided sink and emits each sink result as a stream element.
|
|
13909
14222
|
*
|
|
14223
|
+
* **Details**
|
|
14224
|
+
*
|
|
13910
14225
|
* The stream runs the upstream and downstream in separate fibers, so the sink can keep
|
|
13911
14226
|
* consuming input while downstream is busy processing the previous output.
|
|
13912
14227
|
*
|
|
@@ -13940,6 +14255,8 @@ export const aggregate: {
|
|
|
13940
14255
|
/**
|
|
13941
14256
|
* Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers.
|
|
13942
14257
|
*
|
|
14258
|
+
* **Details**
|
|
14259
|
+
*
|
|
13943
14260
|
* The schedule can flush the current aggregation even if the sink has not finished.
|
|
13944
14261
|
*
|
|
13945
14262
|
* **Example** (Aggregating with a sink and schedule)
|
|
@@ -13968,6 +14285,8 @@ export const aggregateWithin: {
|
|
|
13968
14285
|
/**
|
|
13969
14286
|
* Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers.
|
|
13970
14287
|
*
|
|
14288
|
+
* **Details**
|
|
14289
|
+
*
|
|
13971
14290
|
* The schedule can flush the current aggregation even if the sink has not finished.
|
|
13972
14291
|
*
|
|
13973
14292
|
* **Example** (Aggregating with a sink and schedule)
|
|
@@ -13999,6 +14318,8 @@ export const aggregateWithin: {
|
|
|
13999
14318
|
/**
|
|
14000
14319
|
* Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers.
|
|
14001
14320
|
*
|
|
14321
|
+
* **Details**
|
|
14322
|
+
*
|
|
14002
14323
|
* The schedule can flush the current aggregation even if the sink has not finished.
|
|
14003
14324
|
*
|
|
14004
14325
|
* **Example** (Aggregating with a sink and schedule)
|
|
@@ -14041,6 +14362,8 @@ export const aggregateWithin: {
|
|
|
14041
14362
|
const buffer = yield* Queue.make</**
|
|
14042
14363
|
* Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers.
|
|
14043
14364
|
*
|
|
14365
|
+
* **Details**
|
|
14366
|
+
*
|
|
14044
14367
|
* The schedule can flush the current aggregation even if the sink has not finished.
|
|
14045
14368
|
*
|
|
14046
14369
|
* **Example** (Aggregating with a sink and schedule)
|
|
@@ -14068,6 +14391,8 @@ export const aggregateWithin: {
|
|
|
14068
14391
|
Arr.NonEmptyReadonlyArray<A> | typeof scheduleStep, /**
|
|
14069
14392
|
* Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers.
|
|
14070
14393
|
*
|
|
14394
|
+
* **Details**
|
|
14395
|
+
*
|
|
14071
14396
|
* The schedule can flush the current aggregation even if the sink has not finished.
|
|
14072
14397
|
*
|
|
14073
14398
|
* **Example** (Aggregating with a sink and schedule)
|
|
@@ -14112,6 +14437,8 @@ export const aggregateWithin: {
|
|
|
14112
14437
|
let lastOutput = Option.none</**
|
|
14113
14438
|
* Aggregates elements with a sink, emitting each result when the sink completes or the schedule triggers.
|
|
14114
14439
|
*
|
|
14440
|
+
* **Details**
|
|
14441
|
+
*
|
|
14115
14442
|
* The schedule can flush the current aggregation even if the sink has not finished.
|
|
14116
14443
|
*
|
|
14117
14444
|
* **Example** (Aggregating with a sink and schedule)
|
|
@@ -14196,6 +14523,8 @@ export const aggregateWithin: {
|
|
|
14196
14523
|
* Fan out the stream, producing a fixed-size tuple of streams that each emit
|
|
14197
14524
|
* the same elements as the source stream.
|
|
14198
14525
|
*
|
|
14526
|
+
* **Details**
|
|
14527
|
+
*
|
|
14199
14528
|
* The source stream starts after all downstream streams have been subscribed.
|
|
14200
14529
|
* With the default suspend strategy, the source can only advance `capacity`
|
|
14201
14530
|
* chunks ahead of the slowest downstream stream. If a downstream stream is
|
|
@@ -14234,6 +14563,8 @@ export const broadcastN: {
|
|
|
14234
14563
|
* Fan out the stream, producing a fixed-size tuple of streams that each emit
|
|
14235
14564
|
* the same elements as the source stream.
|
|
14236
14565
|
*
|
|
14566
|
+
* **Details**
|
|
14567
|
+
*
|
|
14237
14568
|
* The source stream starts after all downstream streams have been subscribed.
|
|
14238
14569
|
* With the default suspend strategy, the source can only advance `capacity`
|
|
14239
14570
|
* chunks ahead of the slowest downstream stream. If a downstream stream is
|
|
@@ -14283,6 +14614,8 @@ export const broadcastN: {
|
|
|
14283
14614
|
* Fan out the stream, producing a fixed-size tuple of streams that each emit
|
|
14284
14615
|
* the same elements as the source stream.
|
|
14285
14616
|
*
|
|
14617
|
+
* **Details**
|
|
14618
|
+
*
|
|
14286
14619
|
* The source stream starts after all downstream streams have been subscribed.
|
|
14287
14620
|
* With the default suspend strategy, the source can only advance `capacity`
|
|
14288
14621
|
* chunks ahead of the slowest downstream stream. If a downstream stream is
|
|
@@ -14348,6 +14681,8 @@ export const broadcastN: {
|
|
|
14348
14681
|
* Fan out the stream, producing a fixed-size tuple of streams that each emit
|
|
14349
14682
|
* the same elements as the source stream.
|
|
14350
14683
|
*
|
|
14684
|
+
* **Details**
|
|
14685
|
+
*
|
|
14351
14686
|
* The source stream starts after all downstream streams have been subscribed.
|
|
14352
14687
|
* With the default suspend strategy, the source can only advance `capacity`
|
|
14353
14688
|
* chunks ahead of the slowest downstream stream. If a downstream stream is
|
|
@@ -14426,6 +14761,8 @@ const makePubSub = <A>(
|
|
|
14426
14761
|
/**
|
|
14427
14762
|
* Creates a PubSub-backed stream that multicasts the source to all subscribers.
|
|
14428
14763
|
*
|
|
14764
|
+
* **Details**
|
|
14765
|
+
*
|
|
14429
14766
|
* The returned stream is scoped and uses the provided PubSub capacity and replay settings.
|
|
14430
14767
|
*
|
|
14431
14768
|
* **Example** (Broadcasting a stream)
|
|
@@ -14460,6 +14797,8 @@ export const broadcast: {
|
|
|
14460
14797
|
/**
|
|
14461
14798
|
* Creates a PubSub-backed stream that multicasts the source to all subscribers.
|
|
14462
14799
|
*
|
|
14800
|
+
* **Details**
|
|
14801
|
+
*
|
|
14463
14802
|
* The returned stream is scoped and uses the provided PubSub capacity and replay settings.
|
|
14464
14803
|
*
|
|
14465
14804
|
* **Example** (Broadcasting a stream)
|
|
@@ -14503,6 +14842,8 @@ export const broadcast: {
|
|
|
14503
14842
|
/**
|
|
14504
14843
|
* Creates a PubSub-backed stream that multicasts the source to all subscribers.
|
|
14505
14844
|
*
|
|
14845
|
+
* **Details**
|
|
14846
|
+
*
|
|
14506
14847
|
* The returned stream is scoped and uses the provided PubSub capacity and replay settings.
|
|
14507
14848
|
*
|
|
14508
14849
|
* **Example** (Broadcasting a stream)
|
|
@@ -14559,6 +14900,8 @@ export const broadcast: {
|
|
|
14559
14900
|
/**
|
|
14560
14901
|
* Returns a new Stream that multicasts the original stream, subscribing when the first consumer starts.
|
|
14561
14902
|
*
|
|
14903
|
+
* **Details**
|
|
14904
|
+
*
|
|
14562
14905
|
* The upstream continues running while there is at least one consumer and is finalized after the last one exits.
|
|
14563
14906
|
* If `idleTimeToLive` is set, the upstream is kept alive for that duration so a later subscriber can continue from
|
|
14564
14907
|
* the next element instead of restarting.
|
|
@@ -14592,6 +14935,8 @@ export const share: {
|
|
|
14592
14935
|
/**
|
|
14593
14936
|
* Returns a new Stream that multicasts the original stream, subscribing when the first consumer starts.
|
|
14594
14937
|
*
|
|
14938
|
+
* **Details**
|
|
14939
|
+
*
|
|
14595
14940
|
* The upstream continues running while there is at least one consumer and is finalized after the last one exits.
|
|
14596
14941
|
* If `idleTimeToLive` is set, the upstream is kept alive for that duration so a later subscriber can continue from
|
|
14597
14942
|
* the next element instead of restarting.
|
|
@@ -14636,6 +14981,8 @@ export const share: {
|
|
|
14636
14981
|
/**
|
|
14637
14982
|
* Returns a new Stream that multicasts the original stream, subscribing when the first consumer starts.
|
|
14638
14983
|
*
|
|
14984
|
+
* **Details**
|
|
14985
|
+
*
|
|
14639
14986
|
* The upstream continues running while there is at least one consumer and is finalized after the last one exits.
|
|
14640
14987
|
* If `idleTimeToLive` is set, the upstream is kept alive for that duration so a later subscriber can continue from
|
|
14641
14988
|
* the next element instead of restarting.
|
|
@@ -14702,6 +15049,8 @@ export const share: {
|
|
|
14702
15049
|
/**
|
|
14703
15050
|
* Pipes this stream through a channel that consumes and emits chunked elements.
|
|
14704
15051
|
*
|
|
15052
|
+
* **Details**
|
|
15053
|
+
*
|
|
14705
15054
|
* The channel receives `NonEmptyReadonlyArray` chunks and can transform both the
|
|
14706
15055
|
* output elements and error type.
|
|
14707
15056
|
*
|
|
@@ -14736,6 +15085,8 @@ export const pipeThroughChannel: {
|
|
|
14736
15085
|
/**
|
|
14737
15086
|
* Pipes this stream through a channel that consumes and emits chunked elements.
|
|
14738
15087
|
*
|
|
15088
|
+
* **Details**
|
|
15089
|
+
*
|
|
14739
15090
|
* The channel receives `NonEmptyReadonlyArray` chunks and can transform both the
|
|
14740
15091
|
* output elements and error type.
|
|
14741
15092
|
*
|
|
@@ -14772,6 +15123,8 @@ export const pipeThroughChannel: {
|
|
|
14772
15123
|
/**
|
|
14773
15124
|
* Pipes this stream through a channel that consumes and emits chunked elements.
|
|
14774
15125
|
*
|
|
15126
|
+
* **Details**
|
|
15127
|
+
*
|
|
14775
15128
|
* The channel receives `NonEmptyReadonlyArray` chunks and can transform both the
|
|
14776
15129
|
* output elements and error type.
|
|
14777
15130
|
*
|
|
@@ -14815,6 +15168,8 @@ export const pipeThroughChannel: {
|
|
|
14815
15168
|
* Pipes values through the provided channel while preserving this stream's
|
|
14816
15169
|
* failures alongside any channel failures.
|
|
14817
15170
|
*
|
|
15171
|
+
* **Details**
|
|
15172
|
+
*
|
|
14818
15173
|
* Upstream failures are not passed to the channel, so the resulting stream can
|
|
14819
15174
|
* fail with either the original stream error or the channel error.
|
|
14820
15175
|
*
|
|
@@ -14849,6 +15204,8 @@ export const pipeThroughChannelOrFail: {
|
|
|
14849
15204
|
* Pipes values through the provided channel while preserving this stream's
|
|
14850
15205
|
* failures alongside any channel failures.
|
|
14851
15206
|
*
|
|
15207
|
+
* **Details**
|
|
15208
|
+
*
|
|
14852
15209
|
* Upstream failures are not passed to the channel, so the resulting stream can
|
|
14853
15210
|
* fail with either the original stream error or the channel error.
|
|
14854
15211
|
*
|
|
@@ -14885,6 +15242,8 @@ export const pipeThroughChannelOrFail: {
|
|
|
14885
15242
|
* Pipes values through the provided channel while preserving this stream's
|
|
14886
15243
|
* failures alongside any channel failures.
|
|
14887
15244
|
*
|
|
15245
|
+
* **Details**
|
|
15246
|
+
*
|
|
14888
15247
|
* Upstream failures are not passed to the channel, so the resulting stream can
|
|
14889
15248
|
* fail with either the original stream error or the channel error.
|
|
14890
15249
|
*
|
|
@@ -14926,6 +15285,8 @@ export const pipeThroughChannelOrFail: {
|
|
|
14926
15285
|
/**
|
|
14927
15286
|
* Pipes the stream through `Sink.toChannel`, emitting only the sink leftovers.
|
|
14928
15287
|
*
|
|
15288
|
+
* **Details**
|
|
15289
|
+
*
|
|
14929
15290
|
* If the sink completes mid-chunk, the remaining elements become the output stream.
|
|
14930
15291
|
*
|
|
14931
15292
|
* **Example** (Piping through a sink)
|
|
@@ -14953,6 +15314,8 @@ export const pipeThrough: {
|
|
|
14953
15314
|
/**
|
|
14954
15315
|
* Pipes the stream through `Sink.toChannel`, emitting only the sink leftovers.
|
|
14955
15316
|
*
|
|
15317
|
+
* **Details**
|
|
15318
|
+
*
|
|
14956
15319
|
* If the sink completes mid-chunk, the remaining elements become the output stream.
|
|
14957
15320
|
*
|
|
14958
15321
|
* **Example** (Piping through a sink)
|
|
@@ -14980,6 +15343,8 @@ export const pipeThrough: {
|
|
|
14980
15343
|
/**
|
|
14981
15344
|
* Pipes the stream through `Sink.toChannel`, emitting only the sink leftovers.
|
|
14982
15345
|
*
|
|
15346
|
+
* **Details**
|
|
15347
|
+
*
|
|
14983
15348
|
* If the sink completes mid-chunk, the remaining elements become the output stream.
|
|
14984
15349
|
*
|
|
14985
15350
|
* **Example** (Piping through a sink)
|
|
@@ -15200,6 +15565,8 @@ export const changesWith: {
|
|
|
15200
15565
|
/**
|
|
15201
15566
|
* Emits only elements that differ from the previous element, using an effectful equality check.
|
|
15202
15567
|
*
|
|
15568
|
+
* **Details**
|
|
15569
|
+
*
|
|
15203
15570
|
* The predicate runs for each element after the first; returning `true` treats it as equal and skips it.
|
|
15204
15571
|
*
|
|
15205
15572
|
* **Example** (Effectfully emitting changed values)
|
|
@@ -15226,6 +15593,8 @@ export const changesWithEffect: {
|
|
|
15226
15593
|
/**
|
|
15227
15594
|
* Emits only elements that differ from the previous element, using an effectful equality check.
|
|
15228
15595
|
*
|
|
15596
|
+
* **Details**
|
|
15597
|
+
*
|
|
15229
15598
|
* The predicate runs for each element after the first; returning `true` treats it as equal and skips it.
|
|
15230
15599
|
*
|
|
15231
15600
|
* **Example** (Effectfully emitting changed values)
|
|
@@ -15252,6 +15621,8 @@ export const changesWithEffect: {
|
|
|
15252
15621
|
/**
|
|
15253
15622
|
* Emits only elements that differ from the previous element, using an effectful equality check.
|
|
15254
15623
|
*
|
|
15624
|
+
* **Details**
|
|
15625
|
+
*
|
|
15255
15626
|
* The predicate runs for each element after the first; returning `true` treats it as equal and skips it.
|
|
15256
15627
|
*
|
|
15257
15628
|
* **Example** (Effectfully emitting changed values)
|
|
@@ -15502,6 +15873,8 @@ export const intersperse: {
|
|
|
15502
15873
|
/**
|
|
15503
15874
|
* Intersperse stream elements with a middle value, adding a start and end value.
|
|
15504
15875
|
*
|
|
15876
|
+
* **Details**
|
|
15877
|
+
*
|
|
15505
15878
|
* The start and end values are always emitted, even when the stream is empty.
|
|
15506
15879
|
*
|
|
15507
15880
|
* **Example** (Interspersing stream affixes)
|
|
@@ -15529,6 +15902,8 @@ export const intersperseAffixes: {
|
|
|
15529
15902
|
/**
|
|
15530
15903
|
* Intersperse stream elements with a middle value, adding a start and end value.
|
|
15531
15904
|
*
|
|
15905
|
+
* **Details**
|
|
15906
|
+
*
|
|
15532
15907
|
* The start and end values are always emitted, even when the stream is empty.
|
|
15533
15908
|
*
|
|
15534
15909
|
* **Example** (Interspersing stream affixes)
|
|
@@ -15556,6 +15931,8 @@ export const intersperseAffixes: {
|
|
|
15556
15931
|
/**
|
|
15557
15932
|
* Intersperse stream elements with a middle value, adding a start and end value.
|
|
15558
15933
|
*
|
|
15934
|
+
* **Details**
|
|
15935
|
+
*
|
|
15559
15936
|
* The start and end values are always emitted, even when the stream is empty.
|
|
15560
15937
|
*
|
|
15561
15938
|
* **Example** (Interspersing stream affixes)
|
|
@@ -15615,6 +15992,7 @@ export const intersperseAffixes: {
|
|
|
15615
15992
|
* Effect.runPromise(program)
|
|
15616
15993
|
* // [2, 5, 3, 6, 7]
|
|
15617
15994
|
* ```
|
|
15995
|
+
*
|
|
15618
15996
|
* @category Merging
|
|
15619
15997
|
* @since 2.0.0
|
|
15620
15998
|
*/
|
|
@@ -15642,6 +16020,7 @@ export const interleave: {
|
|
|
15642
16020
|
* Effect.runPromise(program)
|
|
15643
16021
|
* // [2, 5, 3, 6, 7]
|
|
15644
16022
|
* ```
|
|
16023
|
+
*
|
|
15645
16024
|
* @category Merging
|
|
15646
16025
|
* @since 2.0.0
|
|
15647
16026
|
*/
|
|
@@ -15669,6 +16048,7 @@ export const interleave: {
|
|
|
15669
16048
|
* Effect.runPromise(program)
|
|
15670
16049
|
* // [2, 5, 3, 6, 7]
|
|
15671
16050
|
* ```
|
|
16051
|
+
*
|
|
15672
16052
|
* @category Merging
|
|
15673
16053
|
* @since 2.0.0
|
|
15674
16054
|
*/
|
|
@@ -15686,6 +16066,8 @@ export const interleave: {
|
|
|
15686
16066
|
/**
|
|
15687
16067
|
* Interleaves two streams deterministically by following a boolean decider stream.
|
|
15688
16068
|
*
|
|
16069
|
+
* **Details**
|
|
16070
|
+
*
|
|
15689
16071
|
* The decider controls how many elements are pulled; if one side ends, pulls for
|
|
15690
16072
|
* that side are ignored.
|
|
15691
16073
|
*
|
|
@@ -15717,6 +16099,8 @@ export const interleaveWith: {
|
|
|
15717
16099
|
/**
|
|
15718
16100
|
* Interleaves two streams deterministically by following a boolean decider stream.
|
|
15719
16101
|
*
|
|
16102
|
+
* **Details**
|
|
16103
|
+
*
|
|
15720
16104
|
* The decider controls how many elements are pulled; if one side ends, pulls for
|
|
15721
16105
|
* that side are ignored.
|
|
15722
16106
|
*
|
|
@@ -15748,6 +16132,8 @@ export const interleaveWith: {
|
|
|
15748
16132
|
/**
|
|
15749
16133
|
* Interleaves two streams deterministically by following a boolean decider stream.
|
|
15750
16134
|
*
|
|
16135
|
+
* **Details**
|
|
16136
|
+
*
|
|
15751
16137
|
* The decider controls how many elements are pulled; if one side ends, pulls for
|
|
15752
16138
|
* that side are ignored.
|
|
15753
16139
|
*
|
|
@@ -15800,6 +16186,8 @@ export const interleaveWith: {
|
|
|
15800
16186
|
return Effect.succeed</**
|
|
15801
16187
|
* Interleaves two streams deterministically by following a boolean decider stream.
|
|
15802
16188
|
*
|
|
16189
|
+
* **Details**
|
|
16190
|
+
*
|
|
15803
16191
|
* The decider controls how many elements are pulled; if one side ends, pulls for
|
|
15804
16192
|
* that side are ignored.
|
|
15805
16193
|
*
|
|
@@ -15839,6 +16227,8 @@ export const interleaveWith: {
|
|
|
15839
16227
|
return Effect.succeed</**
|
|
15840
16228
|
* Interleaves two streams deterministically by following a boolean decider stream.
|
|
15841
16229
|
*
|
|
16230
|
+
* **Details**
|
|
16231
|
+
*
|
|
15842
16232
|
* The decider controls how many elements are pulled; if one side ends, pulls for
|
|
15843
16233
|
* that side are ignored.
|
|
15844
16234
|
*
|
|
@@ -15891,6 +16281,8 @@ export const interleaveWith: {
|
|
|
15891
16281
|
* success will be discarded. This combinator will also interrupt any
|
|
15892
16282
|
* in-progress element being pulled from upstream.
|
|
15893
16283
|
*
|
|
16284
|
+
* **Details**
|
|
16285
|
+
*
|
|
15894
16286
|
* If the effect completes with a failure before the stream completes, the
|
|
15895
16287
|
* returned stream will emit that failure.
|
|
15896
16288
|
*
|
|
@@ -15928,6 +16320,8 @@ export const interruptWhen: {
|
|
|
15928
16320
|
* success will be discarded. This combinator will also interrupt any
|
|
15929
16321
|
* in-progress element being pulled from upstream.
|
|
15930
16322
|
*
|
|
16323
|
+
* **Details**
|
|
16324
|
+
*
|
|
15931
16325
|
* If the effect completes with a failure before the stream completes, the
|
|
15932
16326
|
* returned stream will emit that failure.
|
|
15933
16327
|
*
|
|
@@ -15965,6 +16359,8 @@ export const interruptWhen: {
|
|
|
15965
16359
|
* success will be discarded. This combinator will also interrupt any
|
|
15966
16360
|
* in-progress element being pulled from upstream.
|
|
15967
16361
|
*
|
|
16362
|
+
* **Details**
|
|
16363
|
+
*
|
|
15968
16364
|
* If the effect completes with a failure before the stream completes, the
|
|
15969
16365
|
* returned stream will emit that failure.
|
|
15970
16366
|
*
|
|
@@ -16183,6 +16579,8 @@ export const onExit: {
|
|
|
16183
16579
|
/**
|
|
16184
16580
|
* Runs the provided effect when the stream fails, passing the failure cause.
|
|
16185
16581
|
*
|
|
16582
|
+
* **Gotchas**
|
|
16583
|
+
*
|
|
16186
16584
|
* Note: Unlike `Effect.onError` there is no guarantee that the provided
|
|
16187
16585
|
* effect will not be interrupted.
|
|
16188
16586
|
*
|
|
@@ -16212,6 +16610,8 @@ export const onError: {
|
|
|
16212
16610
|
/**
|
|
16213
16611
|
* Runs the provided effect when the stream fails, passing the failure cause.
|
|
16214
16612
|
*
|
|
16613
|
+
* **Gotchas**
|
|
16614
|
+
*
|
|
16215
16615
|
* Note: Unlike `Effect.onError` there is no guarantee that the provided
|
|
16216
16616
|
* effect will not be interrupted.
|
|
16217
16617
|
*
|
|
@@ -16241,6 +16641,8 @@ export const onError: {
|
|
|
16241
16641
|
/**
|
|
16242
16642
|
* Runs the provided effect when the stream fails, passing the failure cause.
|
|
16243
16643
|
*
|
|
16644
|
+
* **Gotchas**
|
|
16645
|
+
*
|
|
16244
16646
|
* Note: Unlike `Effect.onError` there is no guarantee that the provided
|
|
16245
16647
|
* effect will not be interrupted.
|
|
16246
16648
|
*
|
|
@@ -18425,6 +18827,8 @@ export const runDrain = <A, E, R>(self: Stream<A, E, R>): Effect.Effect<void, E,
|
|
|
18425
18827
|
/**
|
|
18426
18828
|
* Returns a scoped pull for manually consuming the stream's output chunks.
|
|
18427
18829
|
*
|
|
18830
|
+
* **Details**
|
|
18831
|
+
*
|
|
18428
18832
|
* The pull fails with `Cause.Done` when the stream ends and with the stream
|
|
18429
18833
|
* error on failure.
|
|
18430
18834
|
*
|
|
@@ -18537,6 +18941,8 @@ export const mkUint8Array = <E, R>(self: Stream<Uint8Array, E, R>): Effect.Effec
|
|
|
18537
18941
|
/**
|
|
18538
18942
|
* Converts the stream to a `ReadableStream` using the provided services.
|
|
18539
18943
|
*
|
|
18944
|
+
* **Details**
|
|
18945
|
+
*
|
|
18540
18946
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18541
18947
|
*
|
|
18542
18948
|
* **Example** (Converting to a ReadableStream with services)
|
|
@@ -18555,6 +18961,8 @@ export const toReadableStreamWith = dual<
|
|
|
18555
18961
|
/**
|
|
18556
18962
|
* Converts the stream to a `ReadableStream` using the provided services.
|
|
18557
18963
|
*
|
|
18964
|
+
* **Details**
|
|
18965
|
+
*
|
|
18558
18966
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18559
18967
|
*
|
|
18560
18968
|
* **Example** (Converting to a ReadableStream with services)
|
|
@@ -18576,6 +18984,8 @@ export const toReadableStreamWith = dual<
|
|
|
18576
18984
|
/**
|
|
18577
18985
|
* Converts the stream to a `ReadableStream` using the provided services.
|
|
18578
18986
|
*
|
|
18987
|
+
* **Details**
|
|
18988
|
+
*
|
|
18579
18989
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18580
18990
|
*
|
|
18581
18991
|
* **Example** (Converting to a ReadableStream with services)
|
|
@@ -18645,6 +19055,8 @@ export const toReadableStreamWith = dual<
|
|
|
18645
19055
|
/**
|
|
18646
19056
|
* Converts a stream to a `ReadableStream`.
|
|
18647
19057
|
*
|
|
19058
|
+
* **Details**
|
|
19059
|
+
*
|
|
18648
19060
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18649
19061
|
*
|
|
18650
19062
|
* **Example** (Converting a stream to a ReadableStream)
|
|
@@ -18663,6 +19075,8 @@ export const toReadableStream: {
|
|
|
18663
19075
|
/**
|
|
18664
19076
|
* Converts a stream to a `ReadableStream`.
|
|
18665
19077
|
*
|
|
19078
|
+
* **Details**
|
|
19079
|
+
*
|
|
18666
19080
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18667
19081
|
*
|
|
18668
19082
|
* **Example** (Converting a stream to a ReadableStream)
|
|
@@ -18683,6 +19097,8 @@ export const toReadableStream: {
|
|
|
18683
19097
|
/**
|
|
18684
19098
|
* Converts a stream to a `ReadableStream`.
|
|
18685
19099
|
*
|
|
19100
|
+
* **Details**
|
|
19101
|
+
*
|
|
18686
19102
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18687
19103
|
*
|
|
18688
19104
|
* **Example** (Converting a stream to a ReadableStream)
|
|
@@ -18712,6 +19128,8 @@ export const toReadableStream: {
|
|
|
18712
19128
|
/**
|
|
18713
19129
|
* Creates an Effect that builds a ReadableStream from the stream.
|
|
18714
19130
|
*
|
|
19131
|
+
* **Details**
|
|
19132
|
+
*
|
|
18715
19133
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18716
19134
|
*
|
|
18717
19135
|
* **Example** (Creating a ReadableStream effect)
|
|
@@ -18736,6 +19154,8 @@ export const toReadableStreamEffect: {
|
|
|
18736
19154
|
/**
|
|
18737
19155
|
* Creates an Effect that builds a ReadableStream from the stream.
|
|
18738
19156
|
*
|
|
19157
|
+
* **Details**
|
|
19158
|
+
*
|
|
18739
19159
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18740
19160
|
*
|
|
18741
19161
|
* **Example** (Creating a ReadableStream effect)
|
|
@@ -18762,6 +19182,8 @@ export const toReadableStreamEffect: {
|
|
|
18762
19182
|
/**
|
|
18763
19183
|
* Creates an Effect that builds a ReadableStream from the stream.
|
|
18764
19184
|
*
|
|
19185
|
+
* **Details**
|
|
19186
|
+
*
|
|
18765
19187
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18766
19188
|
*
|
|
18767
19189
|
* **Example** (Creating a ReadableStream effect)
|
|
@@ -18796,6 +19218,8 @@ export const toReadableStreamEffect: {
|
|
|
18796
19218
|
Effect.context</**
|
|
18797
19219
|
* Creates an Effect that builds a ReadableStream from the stream.
|
|
18798
19220
|
*
|
|
19221
|
+
* **Details**
|
|
19222
|
+
*
|
|
18799
19223
|
* See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
|
|
18800
19224
|
*
|
|
18801
19225
|
* **Example** (Creating a ReadableStream effect)
|
|
@@ -19009,6 +19433,8 @@ export const toAsyncIterable = <A, E>(self: Stream<A, E>): AsyncIterable<A> =>
|
|
|
19009
19433
|
/**
|
|
19010
19434
|
* Runs the stream, publishing elements into the provided PubSub.
|
|
19011
19435
|
*
|
|
19436
|
+
* **Details**
|
|
19437
|
+
*
|
|
19012
19438
|
* `shutdownOnEnd` controls whether the PubSub is shut down when the stream ends.
|
|
19013
19439
|
* It only shuts down when set to `true`.
|
|
19014
19440
|
*
|
|
@@ -19042,6 +19468,8 @@ export const runIntoPubSub: {
|
|
|
19042
19468
|
/**
|
|
19043
19469
|
* Runs the stream, publishing elements into the provided PubSub.
|
|
19044
19470
|
*
|
|
19471
|
+
* **Details**
|
|
19472
|
+
*
|
|
19045
19473
|
* `shutdownOnEnd` controls whether the PubSub is shut down when the stream ends.
|
|
19046
19474
|
* It only shuts down when set to `true`.
|
|
19047
19475
|
*
|
|
@@ -19080,6 +19508,8 @@ export const runIntoPubSub: {
|
|
|
19080
19508
|
/**
|
|
19081
19509
|
* Runs the stream, publishing elements into the provided PubSub.
|
|
19082
19510
|
*
|
|
19511
|
+
* **Details**
|
|
19512
|
+
*
|
|
19083
19513
|
* `shutdownOnEnd` controls whether the PubSub is shut down when the stream ends.
|
|
19084
19514
|
* It only shuts down when set to `true`.
|
|
19085
19515
|
*
|
|
@@ -19127,6 +19557,8 @@ export const runIntoPubSub: {
|
|
|
19127
19557
|
/**
|
|
19128
19558
|
* Converts a stream to a PubSub for concurrent consumption.
|
|
19129
19559
|
*
|
|
19560
|
+
* **Details**
|
|
19561
|
+
*
|
|
19130
19562
|
* `shutdownOnEnd` indicates whether the PubSub should be shut down when the
|
|
19131
19563
|
* stream ends. By default this is `true`.
|
|
19132
19564
|
*
|
|
@@ -19153,6 +19585,8 @@ export const toPubSub: {
|
|
|
19153
19585
|
/**
|
|
19154
19586
|
* Converts a stream to a PubSub for concurrent consumption.
|
|
19155
19587
|
*
|
|
19588
|
+
* **Details**
|
|
19589
|
+
*
|
|
19156
19590
|
* `shutdownOnEnd` indicates whether the PubSub should be shut down when the
|
|
19157
19591
|
* stream ends. By default this is `true`.
|
|
19158
19592
|
*
|
|
@@ -19190,6 +19624,8 @@ export const toPubSub: {
|
|
|
19190
19624
|
/**
|
|
19191
19625
|
* Converts a stream to a PubSub for concurrent consumption.
|
|
19192
19626
|
*
|
|
19627
|
+
* **Details**
|
|
19628
|
+
*
|
|
19193
19629
|
* `shutdownOnEnd` indicates whether the PubSub should be shut down when the
|
|
19194
19630
|
* stream ends. By default this is `true`.
|
|
19195
19631
|
*
|
|
@@ -19245,6 +19681,8 @@ export const toPubSub: {
|
|
|
19245
19681
|
/**
|
|
19246
19682
|
* Converts a stream to a PubSub for concurrent consumption.
|
|
19247
19683
|
*
|
|
19684
|
+
* **Details**
|
|
19685
|
+
*
|
|
19248
19686
|
* `Take` values include the stream's end and failure signals.
|
|
19249
19687
|
*
|
|
19250
19688
|
* **Example** (Converting to a PubSub of takes)
|
|
@@ -19272,6 +19710,8 @@ export const toPubSubTake: {
|
|
|
19272
19710
|
/**
|
|
19273
19711
|
* Converts a stream to a PubSub for concurrent consumption.
|
|
19274
19712
|
*
|
|
19713
|
+
* **Details**
|
|
19714
|
+
*
|
|
19275
19715
|
* `Take` values include the stream's end and failure signals.
|
|
19276
19716
|
*
|
|
19277
19717
|
* **Example** (Converting to a PubSub of takes)
|
|
@@ -19308,6 +19748,8 @@ export const toPubSubTake: {
|
|
|
19308
19748
|
/**
|
|
19309
19749
|
* Converts a stream to a PubSub for concurrent consumption.
|
|
19310
19750
|
*
|
|
19751
|
+
* **Details**
|
|
19752
|
+
*
|
|
19311
19753
|
* `Take` values include the stream's end and failure signals.
|
|
19312
19754
|
*
|
|
19313
19755
|
* **Example** (Converting to a PubSub of takes)
|
|
@@ -19362,6 +19804,8 @@ export const toPubSubTake: {
|
|
|
19362
19804
|
* Creates a scoped dequeue that is fed by the stream for concurrent
|
|
19363
19805
|
* consumption.
|
|
19364
19806
|
*
|
|
19807
|
+
* **Details**
|
|
19808
|
+
*
|
|
19365
19809
|
* Elements are offered to the queue as the stream runs. Stream completion is
|
|
19366
19810
|
* signaled with `Cause.Done`, stream failures fail the queue, and the queue is
|
|
19367
19811
|
* shut down when the surrounding scope closes.
|
|
@@ -19386,6 +19830,8 @@ export const toQueue: {
|
|
|
19386
19830
|
* Creates a scoped dequeue that is fed by the stream for concurrent
|
|
19387
19831
|
* consumption.
|
|
19388
19832
|
*
|
|
19833
|
+
* **Details**
|
|
19834
|
+
*
|
|
19389
19835
|
* Elements are offered to the queue as the stream runs. Stream completion is
|
|
19390
19836
|
* signaled with `Cause.Done`, stream failures fail the queue, and the queue is
|
|
19391
19837
|
* shut down when the surrounding scope closes.
|
|
@@ -19417,6 +19863,8 @@ export const toQueue: {
|
|
|
19417
19863
|
* Creates a scoped dequeue that is fed by the stream for concurrent
|
|
19418
19864
|
* consumption.
|
|
19419
19865
|
*
|
|
19866
|
+
* **Details**
|
|
19867
|
+
*
|
|
19420
19868
|
* Elements are offered to the queue as the stream runs. Stream completion is
|
|
19421
19869
|
* signaled with `Cause.Done`, stream failures fail the queue, and the queue is
|
|
19422
19870
|
* shut down when the surrounding scope closes.
|