effect 4.0.0-beta.102 → 4.0.0-beta.103
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 +971 -1037
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +381 -407
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +433 -756
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +200 -325
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +207 -267
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +107 -135
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +146 -188
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +64 -84
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +405 -254
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +166 -101
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +167 -277
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +122 -176
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +729 -768
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +514 -440
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +1 -1
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +834 -1173
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +326 -439
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +180 -49
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js +96 -31
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +20 -33
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +18 -30
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +225 -173
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +336 -265
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +194 -68
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +115 -80
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +233 -33
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +232 -32
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +151 -274
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js +171 -214
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +68 -77
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +57 -66
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +13 -15
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +9 -10
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +60 -80
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +16 -23
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +562 -660
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +307 -362
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +253 -256
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +104 -96
- package/dist/Deferred.js.map +1 -1
- package/dist/Duration.d.ts +216 -308
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +132 -186
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +2841 -3247
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +1322 -1546
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +22 -40
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +22 -40
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +33 -37
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +29 -21
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +103 -105
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +77 -79
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +51 -27
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +50 -26
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +13 -55
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +7 -28
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +116 -192
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +82 -130
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +82 -146
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +48 -87
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +152 -105
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +106 -73
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +213 -168
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +114 -89
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +123 -81
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +85 -59
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +153 -264
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +42 -147
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +61 -33
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +26 -15
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +25 -33
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +48 -49
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +76 -145
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +40 -57
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +360 -714
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +168 -297
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +12 -6
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +47 -83
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +46 -68
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +319 -411
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +122 -166
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +1 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +177 -284
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +68 -109
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +12 -12
- package/dist/Inspectable.js +8 -8
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +620 -786
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +228 -306
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +11 -13
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +44 -102
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +8 -8
- package/dist/JsonPointer.js +8 -8
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +98 -44
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +297 -234
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +23 -35
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +16 -28
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +359 -260
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +195 -175
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +42 -29
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +31 -21
- package/dist/LayerMap.js.map +1 -1
- package/dist/LayerRef.d.ts +6 -2
- package/dist/LayerRef.d.ts.map +1 -1
- package/dist/LayerRef.js +6 -2
- package/dist/LayerRef.js.map +1 -1
- package/dist/LogLevel.d.ts +114 -214
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +41 -76
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +218 -467
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +204 -450
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +7 -5
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +7 -5
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +217 -252
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +150 -183
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +442 -993
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +198 -642
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +144 -173
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +68 -79
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +84 -89
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +44 -47
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +71 -370
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +59 -284
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +420 -243
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +209 -120
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +21 -14
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +15 -13
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +7 -137
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +5 -93
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +196 -233
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +90 -109
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +97 -189
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +187 -290
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +447 -812
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +211 -392
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +109 -109
- package/dist/Order.js +91 -91
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +20 -23
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +8 -9
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +38 -41
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +3 -4
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +6 -5
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +2 -2
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +4 -4
- package/dist/PlatformError.js +3 -3
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +4 -2
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +4 -2
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +200 -181
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +100 -108
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +7 -7
- package/dist/PrimaryKey.js +5 -5
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +425 -494
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +373 -362
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +24 -18
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +11 -9
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +200 -159
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +162 -132
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +49 -74
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +35 -54
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +121 -63
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +42 -21
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +24 -13
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js +15 -9
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +291 -488
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +111 -202
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +6 -2
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +7 -2
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +25 -25
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +19 -20
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +8 -15
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +6 -12
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +95 -165
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +75 -122
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +102 -168
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +102 -168
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts +10 -14
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +10 -14
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +31 -21
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js +16 -13
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +201 -90
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +87 -41
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +302 -470
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +133 -217
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +50 -75
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +39 -60
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +290 -1636
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +162 -803
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +5 -5
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +18 -6
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +644 -642
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +491 -527
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +27 -50
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +366 -279
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaError.d.ts +7 -6
- package/dist/SchemaError.d.ts.map +1 -1
- package/dist/SchemaError.js +7 -6
- package/dist/SchemaError.js.map +1 -1
- package/dist/SchemaGetter.d.ts +217 -174
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +218 -185
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +62 -190
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +73 -265
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +2 -2
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +123 -75
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +22 -36
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +20 -26
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +114 -74
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +120 -85
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Scope.d.ts +123 -151
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +72 -92
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +3 -3
- package/dist/ScopedRef.js +2 -2
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +96 -10
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +78 -39
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +117 -107
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +107 -100
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +1 -1
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +2415 -2949
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +1078 -1381
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +262 -308
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +184 -215
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +109 -114
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +41 -50
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +282 -250
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +104 -92
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +3 -3
- package/dist/Symbol.js +3 -3
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +2 -2
- package/dist/Terminal.js +1 -1
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +100 -54
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +41 -24
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +287 -679
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +109 -251
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +92 -127
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +42 -57
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +201 -121
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +85 -56
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +62 -46
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +30 -22
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +631 -779
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +268 -330
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +297 -236
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +130 -100
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +126 -95
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +74 -56
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +101 -88
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +87 -66
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +200 -180
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +160 -136
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +97 -66
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +67 -45
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +51 -32
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +23 -15
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +129 -95
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +85 -70
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +97 -70
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +44 -34
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +126 -67
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +45 -65
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +6 -9
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +23 -16
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +3 -7
- package/dist/Utils.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/array.js.map +1 -1
- package/dist/internal/core.js +1 -1
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/dateTime.js +4 -0
- package/dist/internal/dateTime.js.map +1 -1
- package/dist/internal/doNotation.js.map +1 -1
- package/dist/internal/effect.js +77 -40
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/equal.js.map +1 -1
- package/dist/internal/errors.js.map +1 -1
- package/dist/internal/executionPlan.js.map +1 -1
- package/dist/internal/hashMap.js.map +1 -1
- package/dist/internal/hashSet.js.map +1 -1
- package/dist/internal/layer.js.map +1 -1
- package/dist/internal/matcher.js.map +1 -1
- package/dist/internal/metric.js.map +1 -1
- package/dist/internal/option.js.map +1 -1
- package/dist/internal/persistence.d.ts +2 -0
- package/dist/internal/persistence.d.ts.map +1 -0
- package/dist/internal/persistence.js +3 -0
- package/dist/internal/persistence.js.map +1 -0
- package/dist/internal/random.js.map +1 -1
- package/dist/internal/rcRef.js.map +1 -1
- package/dist/internal/record.js.map +1 -1
- package/dist/internal/redacted.js.map +1 -1
- package/dist/internal/references.js +3 -0
- package/dist/internal/references.js.map +1 -1
- package/dist/internal/request.js.map +1 -1
- package/dist/internal/result.js.map +1 -1
- package/dist/internal/schedule.js.map +1 -1
- package/dist/internal/schema/annotations.js.map +1 -1
- package/dist/internal/schema/cause.js.map +1 -1
- package/dist/internal/schema/fromJsonSchemaDocument.js +13 -11
- package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/fromRepresentation.js +8 -15
- package/dist/internal/schema/fromRepresentation.js.map +1 -1
- package/dist/internal/schema/parser.d.ts +14 -0
- package/dist/internal/schema/parser.d.ts.map +1 -0
- package/dist/internal/schema/parser.js +13 -0
- package/dist/internal/schema/parser.js.map +1 -0
- package/dist/internal/schema/schema.js.map +1 -1
- package/dist/internal/schema/toArbitrary.js.map +1 -1
- package/dist/internal/schema/toCodeDocument.js.map +1 -1
- package/dist/internal/schema/toEquivalence.js.map +1 -1
- package/dist/internal/schema/toJsonSchemaDocument.js +48 -6
- package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/toRepresentation.js +87 -107
- package/dist/internal/schema/toRepresentation.js.map +1 -1
- package/dist/internal/stackTraceLimit.js.map +1 -1
- package/dist/internal/stream.js.map +1 -1
- package/dist/internal/tracer.js.map +1 -1
- package/dist/internal/trie.js +13 -9
- package/dist/internal/trie.js.map +1 -1
- package/dist/testing/FastCheck.d.ts +8 -7
- package/dist/testing/FastCheck.d.ts.map +1 -1
- package/dist/testing/FastCheck.js +8 -7
- package/dist/testing/FastCheck.js.map +1 -1
- package/dist/testing/TestClock.d.ts +57 -28
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +50 -18
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +32 -31
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +24 -22
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +29 -29
- package/dist/testing/TestSchema.js +25 -25
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +95 -118
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +94 -117
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +132 -97
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +55 -51
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +32 -28
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +26 -21
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +107 -67
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +104 -64
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpProtocol.d.ts +30 -0
- package/dist/unstable/ai/McpProtocol.d.ts.map +1 -0
- package/dist/unstable/ai/McpProtocol.js +20 -0
- package/dist/unstable/ai/McpProtocol.js.map +1 -0
- package/dist/unstable/ai/McpSchema.d.ts +141 -75
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +58 -50
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +68 -59
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +694 -241
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +8 -19
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +9 -20
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +112 -38
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +53 -17
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +28 -14
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +9 -4
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +46 -13
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +18 -7
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +14 -3
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +10 -2
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +59 -44
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +48 -39
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +26 -8
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +18 -4
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/index.d.ts +4 -0
- package/dist/unstable/ai/index.d.ts.map +1 -1
- package/dist/unstable/ai/index.js +4 -0
- package/dist/unstable/ai/index.js.map +1 -1
- package/dist/unstable/ai/internal/codec-transformer.js.map +1 -1
- package/dist/unstable/ai/internal/mcpProtocol.d.ts +21 -0
- package/dist/unstable/ai/internal/mcpProtocol.d.ts.map +1 -0
- package/dist/unstable/ai/internal/mcpProtocol.js +22 -0
- package/dist/unstable/ai/internal/mcpProtocol.js.map +1 -0
- package/dist/unstable/ai/internal/mcpProtocolRegistry.d.ts +2 -0
- package/dist/unstable/ai/internal/mcpProtocolRegistry.d.ts.map +1 -0
- package/dist/unstable/ai/internal/mcpProtocolRegistry.js +32 -0
- package/dist/unstable/ai/internal/mcpProtocolRegistry.js.map +1 -0
- package/dist/unstable/ai/internal/structured-output.js +14 -15
- package/dist/unstable/ai/internal/structured-output.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +273 -69
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +111 -33
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliConfig.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +69 -76
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +57 -61
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts +35 -54
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +26 -42
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +705 -107
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +238 -42
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +418 -138
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +197 -71
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +1 -1
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +12 -4
- package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
- package/dist/unstable/cli/Param.d.ts +292 -78
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +128 -46
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +370 -149
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +344 -136
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +23 -14
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +23 -14
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/index.js.map +1 -1
- package/dist/unstable/cli/internal/ansi.js.map +1 -1
- package/dist/unstable/cli/internal/auto-suggest.js.map +1 -1
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/bash.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/completions/fish.js.map +1 -1
- package/dist/unstable/cli/internal/completions/zsh.js.map +1 -1
- package/dist/unstable/cli/internal/config.js.map +1 -1
- package/dist/unstable/cli/internal/help.js.map +1 -1
- package/dist/unstable/cli/internal/lexer.js +17 -7
- package/dist/unstable/cli/internal/lexer.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +2 -2
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cli/internal/wizard.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -8
- package/dist/unstable/cluster/ClusterSchema.js +8 -8
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +5 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +10 -10
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +8 -8
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +4 -2
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +4 -2
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +2 -2
- package/dist/unstable/cluster/EntityResource.js +2 -2
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +3 -3
- package/dist/unstable/cluster/Envelope.js +3 -3
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +6 -4
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +9 -9
- package/dist/unstable/cluster/Message.js +6 -6
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +15 -15
- package/dist/unstable/cluster/MessageStorage.js +5 -5
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +4 -4
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +1 -1
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +2 -1
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +16 -16
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +2 -2
- package/dist/unstable/cluster/RunnerStorage.js +1 -1
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +6 -6
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +19 -10
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +3 -2
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +3 -3
- package/dist/unstable/cluster/ShardingConfig.js +3 -3
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +8 -8
- package/dist/unstable/cluster/Snowflake.js +8 -8
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +20 -5
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/index.js.map +1 -1
- package/dist/unstable/cluster/internal/entityManager.js +5 -5
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/cluster/internal/entityReaper.js.map +1 -1
- package/dist/unstable/cluster/internal/hash.js.map +1 -1
- package/dist/unstable/cluster/internal/interruptors.js.map +1 -1
- package/dist/unstable/cluster/internal/resourceMap.js.map +1 -1
- package/dist/unstable/cluster/internal/resourceRef.js.map +1 -1
- package/dist/unstable/cluster/internal/shardLock.js.map +1 -1
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/devtools/index.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +6 -8
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +72 -8
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +58 -8
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +20 -20
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +4 -4
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +15 -15
- package/dist/unstable/eventlog/EventJournal.js +13 -13
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +3 -3
- package/dist/unstable/eventlog/EventLog.js +3 -3
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +2 -2
- package/dist/unstable/eventlog/EventLogMessage.js +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +15 -15
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +11 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +45 -21
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +4 -4
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +13 -5
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +5 -5
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +14 -6
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/index.js.map +1 -1
- package/dist/unstable/eventlog/internal/identityRootSecretDerivation.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +2 -2
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +30 -18
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +2 -2
- package/dist/unstable/http/Headers.js +2 -2
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +5 -3
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +11 -5
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +51 -44
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +46 -17
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- 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 +4 -4
- package/dist/unstable/http/HttpClientResponse.js +2 -2
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +6 -6
- package/dist/unstable/http/HttpEffect.js +3 -3
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +6 -9
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +6 -9
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +75 -9
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +164 -39
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +76 -0
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +32 -0
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +88 -89
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +78 -79
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +13 -13
- package/dist/unstable/http/HttpServer.js +6 -6
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +2 -2
- package/dist/unstable/http/HttpServerError.js +2 -2
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +4 -4
- package/dist/unstable/http/HttpServerRequest.js +4 -4
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +22 -0
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +10 -0
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +35 -7
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +35 -7
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +6 -6
- package/dist/unstable/http/Multipart.js +5 -5
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +33 -63
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +14 -28
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +10 -18
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +9 -17
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/http/internal/compression.d.ts +2 -0
- package/dist/unstable/http/internal/compression.d.ts.map +1 -0
- package/dist/unstable/http/internal/compression.js +155 -0
- package/dist/unstable/http/internal/compression.js.map +1 -0
- package/dist/unstable/http/internal/preResponseHandler.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +10 -11
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts +4 -5
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +11 -13
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +42 -42
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +15 -15
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +71 -24
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +57 -10
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +0 -12
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +6 -6
- package/dist/unstable/httpapi/HttpApiSchema.js +4 -4
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +13 -13
- package/dist/unstable/httpapi/OpenApi.js +13 -13
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/httpapi/index.js.map +1 -1
- package/dist/unstable/httpapi/internal/html.js.map +1 -1
- package/dist/unstable/httpapi/internal/httpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/internal/httpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/internal/mediaType.js.map +1 -1
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +12 -14
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +17 -4
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +4 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +16 -7
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +21 -12
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +13 -4
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +10 -3
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/observability/index.js.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.js +1 -1
- package/dist/unstable/observability/internal/otlpEnv.js.map +1 -1
- package/dist/unstable/observability/internal/otlpProtobuf.js.map +1 -1
- package/dist/unstable/observability/internal/protobuf.js +3 -0
- package/dist/unstable/observability/internal/protobuf.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +8 -3
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +22 -13
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +8 -8
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +6 -6
- package/dist/unstable/persistence/PersistedQueue.js +6 -6
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +3 -3
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +91 -15
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +26 -15
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +24 -13
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +2 -2
- package/dist/unstable/persistence/Redis.js +1 -1
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/persistence/index.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +64 -21
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +14 -5
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +21 -10
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/process/index.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +8 -8
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +10 -10
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +25 -22
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +14 -13
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +4 -1
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +24 -3
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +4 -1
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +1 -1
- package/dist/unstable/reactivity/Hydration.js +1 -1
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/reactivity/index.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +35 -33
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +4 -2
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +12 -12
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +12 -11
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +8 -8
- package/dist/unstable/rpc/RpcGroup.js +1 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +31 -30
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +6 -6
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +10 -10
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +4 -4
- package/dist/unstable/rpc/RpcSchema.js +3 -3
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +58 -7
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +175 -96
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +13 -13
- package/dist/unstable/rpc/RpcServer.js +17 -13
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +5 -5
- package/dist/unstable/rpc/RpcWorker.js +4 -4
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/rpc/index.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +52 -50
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +35 -33
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +5 -5
- package/dist/unstable/schema/VariantSchema.js +2 -2
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/schema/index.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +11 -3
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +9 -4
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.js.map +1 -1
- package/dist/unstable/socket/index.js.map +1 -1
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.js.map +1 -1
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +2 -2
- package/dist/unstable/sql/SqlModel.js +2 -2
- package/dist/unstable/sql/SqlModel.js.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +5 -5
- package/dist/unstable/sql/SqlResolver.js +2 -2
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +6 -6
- package/dist/unstable/sql/Statement.js +15 -15
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/sql/index.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +2 -2
- package/dist/unstable/workers/Worker.js +2 -2
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +7 -7
- package/dist/unstable/workers/WorkerError.js +6 -6
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +1 -1
- package/dist/unstable/workers/WorkerRunner.js +1 -1
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workers/index.js.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +2 -2
- package/dist/unstable/workflow/Activity.js +2 -2
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +1 -1
- package/dist/unstable/workflow/DurableClock.js +1 -1
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +10 -10
- package/dist/unstable/workflow/DurableDeferred.js +5 -5
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +22 -20
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +22 -20
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +21 -21
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +13 -14
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.d.ts +4 -2
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js +4 -2
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
- package/dist/unstable/workflow/index.js.map +1 -1
- package/dist/unstable/workflow/internal/crypto.js.map +1 -1
- package/package.json +5 -6
- package/src/Array.ts +982 -1045
- package/src/BigDecimal.ts +433 -756
- package/src/BigInt.ts +213 -269
- package/src/Boolean.ts +146 -188
- package/src/Cache.ts +409 -255
- package/src/Cause.ts +167 -277
- package/src/Channel.ts +891 -816
- package/src/ChannelSchema.ts +1 -1
- package/src/Chunk.ts +841 -1181
- package/src/Clock.ts +181 -49
- package/src/Combiner.ts +20 -33
- package/src/Config.ts +615 -332
- package/src/ConfigProvider.ts +214 -120
- package/src/Console.ts +289 -39
- package/src/Context.ts +319 -378
- package/src/Cron.ts +68 -77
- package/src/Crypto.ts +13 -15
- package/src/Data.ts +60 -80
- package/src/DateTime.ts +564 -660
- package/src/Deferred.ts +253 -256
- package/src/Duration.ts +216 -308
- package/src/Effect.ts +2893 -3279
- package/src/Encoding.ts +22 -40
- package/src/Equal.ts +49 -39
- package/src/Equivalence.ts +103 -105
- package/src/ErrorReporter.ts +51 -27
- package/src/ExecutionPlan.ts +13 -55
- package/src/Exit.ts +116 -192
- package/src/Fiber.ts +81 -148
- package/src/FiberHandle.ts +152 -105
- package/src/FiberMap.ts +225 -174
- package/src/FiberSet.ts +124 -82
- package/src/FileSystem.ts +155 -263
- package/src/Filter.ts +61 -33
- package/src/Formatter.ts +54 -56
- package/src/Function.ts +76 -145
- package/src/Graph.ts +416 -770
- package/src/HKT.ts +12 -6
- package/src/Hash.ts +52 -83
- package/src/HashMap.ts +319 -411
- package/src/HashRing.ts +1 -0
- package/src/HashSet.ts +177 -284
- package/src/Inspectable.ts +12 -12
- package/src/Iterable.ts +620 -786
- package/src/JsonPatch.ts +58 -112
- package/src/JsonPointer.ts +8 -8
- package/src/JsonSchema.ts +402 -244
- package/src/Latch.ts +23 -35
- package/src/Layer.ts +359 -260
- package/src/LayerMap.ts +49 -29
- package/src/LayerRef.ts +6 -2
- package/src/LogLevel.ts +114 -214
- package/src/Logger.ts +344 -697
- package/src/ManagedRuntime.ts +7 -5
- package/src/Match.ts +217 -252
- package/src/Metric.ts +516 -1089
- package/src/MutableHashMap.ts +218 -255
- package/src/MutableHashSet.ts +84 -89
- package/src/MutableList.ts +73 -370
- package/src/MutableRef.ts +420 -243
- package/src/Newtype.ts +21 -14
- package/src/NonEmptyIterable.ts +7 -137
- package/src/Number.ts +196 -233
- package/src/Optic.ts +243 -383
- package/src/Option.ts +447 -812
- package/src/Order.ts +109 -109
- package/src/Ordering.ts +20 -23
- package/src/Path.ts +38 -41
- package/src/Pipeable.ts +6 -5
- package/src/PlatformError.ts +4 -4
- package/src/Pool.ts +4 -2
- package/src/Predicate.ts +200 -181
- package/src/PrimaryKey.ts +7 -7
- package/src/PubSub.ts +526 -552
- package/src/Pull.ts +24 -18
- package/src/Queue.ts +200 -159
- package/src/Random.ts +49 -74
- package/src/RcMap.ts +121 -63
- package/src/RcRef.ts +24 -13
- package/src/Record.ts +291 -488
- package/src/Redactable.ts +10 -3
- package/src/Redacted.ts +25 -25
- package/src/Reducer.ts +8 -15
- package/src/Ref.ts +221 -361
- package/src/References.ts +102 -168
- package/src/RegExp.ts +10 -14
- package/src/Request.ts +31 -21
- package/src/RequestResolver.ts +202 -91
- package/src/Result.ts +312 -484
- package/src/Runtime.ts +50 -75
- package/src/Schedule.ts +308 -1734
- package/src/Scheduler.ts +20 -7
- package/src/Schema.ts +716 -745
- package/src/SchemaAST.ts +466 -358
- package/src/SchemaError.ts +7 -6
- package/src/SchemaGetter.ts +242 -190
- package/src/SchemaIssue.ts +89 -275
- package/src/SchemaParser.ts +180 -93
- package/src/SchemaRepresentation.ts +22 -40
- package/src/SchemaTransformation.ts +129 -88
- package/src/Scope.ts +123 -151
- package/src/ScopedRef.ts +4 -4
- package/src/Semaphore.ts +152 -51
- package/src/Sink.ts +128 -113
- package/src/Stdio.ts +1 -1
- package/src/Stream.ts +2602 -3123
- package/src/String.ts +275 -312
- package/src/Struct.ts +109 -114
- package/src/SubscriptionRef.ts +284 -252
- package/src/Symbol.ts +3 -3
- package/src/Terminal.ts +2 -2
- package/src/Tracer.ts +102 -55
- package/src/Trie.ts +287 -679
- package/src/Tuple.ts +92 -127
- package/src/TxChunk.ts +201 -121
- package/src/TxDeferred.ts +62 -46
- package/src/TxHashMap.ts +645 -799
- package/src/TxHashSet.ts +443 -356
- package/src/TxPriorityQueue.ts +130 -98
- package/src/TxPubSub.ts +107 -80
- package/src/TxQueue.ts +214 -183
- package/src/TxReentrantLock.ts +97 -66
- package/src/TxRef.ts +51 -32
- package/src/TxSemaphore.ts +129 -95
- package/src/TxSubscriptionRef.ts +97 -70
- package/src/Types.ts +126 -67
- package/src/Unify.ts +45 -65
- package/src/Utils.ts +23 -16
- package/src/internal/core.ts +2 -2
- package/src/internal/dateTime.ts +6 -0
- package/src/internal/effect.ts +93 -48
- package/src/internal/persistence.ts +2 -0
- package/src/internal/references.ts +3 -2
- package/src/internal/schema/fromJsonSchemaDocument.ts +15 -13
- package/src/internal/schema/fromRepresentation.ts +10 -16
- package/src/internal/schema/parser.ts +22 -0
- package/src/internal/schema/toJsonSchemaDocument.ts +60 -6
- package/src/internal/schema/toRepresentation.ts +104 -119
- package/src/internal/trie.ts +10 -11
- package/src/testing/FastCheck.ts +8 -7
- package/src/testing/TestClock.ts +72 -30
- package/src/testing/TestConsole.ts +32 -31
- package/src/testing/TestSchema.ts +29 -29
- package/src/unstable/ai/AiError.ts +95 -118
- package/src/unstable/ai/AnthropicStructuredOutput.ts +1 -1
- package/src/unstable/ai/Chat.ts +132 -97
- package/src/unstable/ai/IdGenerator.ts +32 -28
- package/src/unstable/ai/LanguageModel.ts +107 -67
- package/src/unstable/ai/McpProtocol.ts +48 -0
- package/src/unstable/ai/McpSchema.ts +60 -50
- package/src/unstable/ai/McpServer.ts +930 -304
- package/src/unstable/ai/Model.ts +9 -20
- package/src/unstable/ai/OpenAiStructuredOutput.ts +1 -1
- package/src/unstable/ai/Prompt.ts +145 -43
- package/src/unstable/ai/Response.ts +28 -14
- package/src/unstable/ai/Telemetry.ts +46 -13
- package/src/unstable/ai/Tokenizer.ts +14 -3
- package/src/unstable/ai/Tool.ts +59 -44
- package/src/unstable/ai/Toolkit.ts +26 -8
- package/src/unstable/ai/index.ts +5 -0
- package/src/unstable/ai/internal/mcpProtocol.ts +85 -0
- package/src/unstable/ai/internal/mcpProtocolRegistry.ts +70 -0
- package/src/unstable/ai/internal/structured-output.ts +13 -18
- package/src/unstable/cli/Argument.ts +273 -69
- package/src/unstable/cli/CliError.ts +69 -76
- package/src/unstable/cli/CliOutput.ts +44 -58
- package/src/unstable/cli/Command.ts +705 -107
- package/src/unstable/cli/Flag.ts +418 -138
- package/src/unstable/cli/GlobalFlag.ts +1 -1
- package/src/unstable/cli/HelpDoc.ts +12 -4
- package/src/unstable/cli/Param.ts +292 -78
- package/src/unstable/cli/Primitive.ts +370 -149
- package/src/unstable/cli/Prompt.ts +28 -14
- package/src/unstable/cli/internal/lexer.ts +8 -2
- package/src/unstable/cli/internal/parser.ts +2 -2
- package/src/unstable/cluster/ClusterSchema.ts +8 -8
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +5 -1
- package/src/unstable/cluster/Entity.ts +15 -16
- package/src/unstable/cluster/EntityProxy.ts +4 -2
- package/src/unstable/cluster/EntityResource.ts +2 -2
- package/src/unstable/cluster/Envelope.ts +3 -3
- package/src/unstable/cluster/HttpRunner.ts +6 -4
- package/src/unstable/cluster/Message.ts +9 -9
- package/src/unstable/cluster/MessageStorage.ts +15 -15
- package/src/unstable/cluster/Reply.ts +4 -6
- package/src/unstable/cluster/RunnerHealth.ts +1 -1
- package/src/unstable/cluster/RunnerServer.ts +41 -8
- package/src/unstable/cluster/RunnerStorage.ts +2 -2
- package/src/unstable/cluster/Runners.ts +23 -12
- package/src/unstable/cluster/Sharding.ts +7 -8
- package/src/unstable/cluster/ShardingConfig.ts +3 -3
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +8 -8
- package/src/unstable/cluster/SqlMessageStorage.ts +1 -1
- package/src/unstable/cluster/SqlRunnerStorage.ts +21 -5
- package/src/unstable/cluster/internal/entityManager.ts +11 -15
- package/src/unstable/encoding/Msgpack.ts +6 -8
- package/src/unstable/encoding/Sse.ts +98 -16
- package/src/unstable/eventlog/Event.ts +20 -20
- package/src/unstable/eventlog/EventGroup.ts +4 -4
- package/src/unstable/eventlog/EventJournal.ts +15 -15
- package/src/unstable/eventlog/EventLog.ts +3 -3
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogMessage.ts +2 -2
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServer.ts +41 -7
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +13 -5
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +14 -6
- package/src/unstable/eventlog/EventLogSessionAuth.ts +1 -1
- package/src/unstable/http/Cookies.ts +35 -21
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +3 -1
- package/src/unstable/http/Headers.ts +2 -2
- package/src/unstable/http/HttpBody.ts +20 -5
- package/src/unstable/http/HttpClient.ts +83 -55
- package/src/unstable/http/HttpClientRequest.ts +2 -0
- package/src/unstable/http/HttpClientResponse.ts +4 -4
- package/src/unstable/http/HttpEffect.ts +8 -8
- package/src/unstable/http/HttpMethod.ts +6 -9
- package/src/unstable/http/HttpMiddleware.ts +202 -39
- package/src/unstable/http/HttpPlatform.ts +95 -0
- package/src/unstable/http/HttpRouter.ts +102 -98
- package/src/unstable/http/HttpServer.ts +13 -13
- package/src/unstable/http/HttpServerError.ts +2 -2
- package/src/unstable/http/HttpServerRequest.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +30 -0
- package/src/unstable/http/HttpStaticServer.ts +35 -7
- package/src/unstable/http/Multipart.ts +6 -6
- package/src/unstable/http/Url.ts +33 -63
- package/src/unstable/http/UrlParams.ts +10 -18
- package/src/unstable/http/internal/compression.ts +196 -0
- package/src/unstable/httpapi/HttpApiBuilder.ts +10 -9
- package/src/unstable/httpapi/HttpApiClient.ts +14 -14
- package/src/unstable/httpapi/HttpApiEndpoint.ts +42 -42
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/httpapi/HttpApiGroup.ts +15 -15
- package/src/unstable/httpapi/HttpApiMiddleware.ts +71 -24
- package/src/unstable/httpapi/HttpApiScalar.ts +0 -12
- package/src/unstable/httpapi/HttpApiSchema.ts +6 -6
- package/src/unstable/httpapi/OpenApi.ts +13 -13
- package/src/unstable/observability/OtlpExporter.ts +31 -19
- package/src/unstable/observability/OtlpMetrics.ts +4 -1
- package/src/unstable/observability/OtlpResource.ts +26 -17
- package/src/unstable/observability/PrometheusMetrics.ts +13 -4
- package/src/unstable/observability/internal/otlpEnv.ts +1 -1
- package/src/unstable/observability/internal/protobuf.ts +3 -0
- package/src/unstable/persistence/KeyValueStore.ts +72 -49
- package/src/unstable/persistence/Persistable.ts +8 -8
- package/src/unstable/persistence/PersistedQueue.ts +6 -6
- package/src/unstable/persistence/Persistence.ts +126 -19
- package/src/unstable/persistence/RateLimiter.ts +26 -15
- package/src/unstable/persistence/Redis.ts +2 -2
- package/src/unstable/process/ChildProcess.ts +64 -21
- package/src/unstable/process/ChildProcessSpawner.ts +21 -10
- package/src/unstable/reactivity/AsyncResult.ts +12 -13
- package/src/unstable/reactivity/Atom.ts +28 -25
- package/src/unstable/reactivity/AtomHttpApi.ts +5 -4
- package/src/unstable/reactivity/AtomRegistry.ts +24 -3
- package/src/unstable/reactivity/AtomRpc.ts +5 -4
- package/src/unstable/reactivity/Hydration.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +35 -33
- package/src/unstable/rpc/RpcClient.ts +16 -15
- package/src/unstable/rpc/RpcGroup.ts +8 -8
- package/src/unstable/rpc/RpcMessage.ts +31 -30
- package/src/unstable/rpc/RpcMiddleware.ts +10 -10
- package/src/unstable/rpc/RpcSchema.ts +4 -4
- package/src/unstable/rpc/RpcSerialization.ts +167 -68
- package/src/unstable/rpc/RpcServer.ts +18 -15
- package/src/unstable/rpc/RpcWorker.ts +5 -5
- package/src/unstable/schema/Model.ts +52 -50
- package/src/unstable/schema/VariantSchema.ts +5 -5
- package/src/unstable/socket/Socket.ts +17 -4
- package/src/unstable/sql/SqlClient.ts +5 -6
- package/src/unstable/sql/SqlModel.ts +2 -2
- package/src/unstable/sql/SqlResolver.ts +5 -5
- package/src/unstable/sql/Statement.ts +24 -23
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +2 -2
- package/src/unstable/workers/WorkerError.ts +7 -7
- package/src/unstable/workers/WorkerRunner.ts +1 -1
- package/src/unstable/workflow/Activity.ts +2 -2
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +10 -10
- package/src/unstable/workflow/DurableQueue.ts +22 -20
- package/src/unstable/workflow/Workflow.ts +23 -23
- package/src/unstable/workflow/WorkflowEngine.ts +1 -1
- package/src/unstable/workflow/WorkflowProxy.ts +4 -2
- package/dist/internal/version.d.ts +0 -3
- package/dist/internal/version.d.ts.map +0 -1
- package/dist/internal/version.js +0 -2
- package/dist/internal/version.js.map +0 -1
- package/src/internal/version.ts +0 -2
package/dist/Queue.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export declare const asDequeue: <A, E>(self: Queue<A, E>) => Dequeue<A, E>;
|
|
|
124
124
|
*
|
|
125
125
|
* **Example** (Offering through enqueue handles)
|
|
126
126
|
*
|
|
127
|
-
* ```ts
|
|
127
|
+
* ```ts import.meta.vitest
|
|
128
128
|
* import { Effect, Queue } from "effect"
|
|
129
129
|
*
|
|
130
130
|
* // Function that only needs write access to a queue
|
|
@@ -137,7 +137,10 @@ export declare const asDequeue: <A, E>(self: Queue<A, E>) => Dequeue<A, E>;
|
|
|
137
137
|
* const program = Effect.gen(function*() {
|
|
138
138
|
* const queue = yield* Queue.bounded<string>(10)
|
|
139
139
|
* yield* producer(queue)
|
|
140
|
+
* return yield* Queue.takeAll(queue)
|
|
140
141
|
* })
|
|
142
|
+
*
|
|
143
|
+
* await Effect.runPromise(program) // => ["hello", "world", "!"]
|
|
141
144
|
* ```
|
|
142
145
|
*
|
|
143
146
|
* @category models
|
|
@@ -186,7 +189,7 @@ export declare namespace Enqueue {
|
|
|
186
189
|
*
|
|
187
190
|
* **Example** (Taking through dequeue handles)
|
|
188
191
|
*
|
|
189
|
-
* ```ts
|
|
192
|
+
* ```ts import.meta.vitest
|
|
190
193
|
* import { Effect, Queue } from "effect"
|
|
191
194
|
*
|
|
192
195
|
* const program = Effect.gen(function*() {
|
|
@@ -200,8 +203,10 @@ export declare namespace Enqueue {
|
|
|
200
203
|
*
|
|
201
204
|
* // Take elements using dequeue interface
|
|
202
205
|
* const item = yield* Queue.take(dequeue)
|
|
203
|
-
*
|
|
206
|
+
* return item
|
|
204
207
|
* })
|
|
208
|
+
*
|
|
209
|
+
* await Effect.runPromise(program) // => "a"
|
|
205
210
|
* ```
|
|
206
211
|
*
|
|
207
212
|
* @category models
|
|
@@ -248,7 +253,7 @@ export declare namespace Dequeue {
|
|
|
248
253
|
*
|
|
249
254
|
* **Example** (Offering and taking queue values)
|
|
250
255
|
*
|
|
251
|
-
* ```ts
|
|
256
|
+
* ```ts import.meta.vitest
|
|
252
257
|
* import { Effect, Queue } from "effect"
|
|
253
258
|
*
|
|
254
259
|
* const program = Effect.gen(function*() {
|
|
@@ -264,8 +269,10 @@ export declare namespace Dequeue {
|
|
|
264
269
|
* const item2 = yield* Queue.take(queue)
|
|
265
270
|
* const item3 = yield* Queue.take(queue)
|
|
266
271
|
*
|
|
267
|
-
*
|
|
272
|
+
* return [item1, item2, item3]
|
|
268
273
|
* })
|
|
274
|
+
*
|
|
275
|
+
* await Effect.runPromise(program) // => ["hello", "world", "!"]
|
|
269
276
|
* ```
|
|
270
277
|
*
|
|
271
278
|
* @category models
|
|
@@ -359,10 +366,10 @@ export declare namespace Queue {
|
|
|
359
366
|
*
|
|
360
367
|
* **Example** (Creating queues)
|
|
361
368
|
*
|
|
362
|
-
* ```ts
|
|
369
|
+
* ```ts import.meta.vitest
|
|
363
370
|
* import { Cause, Effect, Queue } from "effect"
|
|
364
371
|
*
|
|
365
|
-
* Effect.gen(function*() {
|
|
372
|
+
* const program = Effect.gen(function*() {
|
|
366
373
|
* const queue = yield* Queue.make<number, string | Cause.Done>()
|
|
367
374
|
*
|
|
368
375
|
* // add messages to the queue
|
|
@@ -372,18 +379,18 @@ export declare namespace Queue {
|
|
|
372
379
|
*
|
|
373
380
|
* // take messages from the queue
|
|
374
381
|
* const messages = yield* Queue.takeAll(queue)
|
|
375
|
-
* console.log(messages) // [1, 2, 3, 4, 5]
|
|
376
382
|
*
|
|
377
383
|
* // signal that the queue is done
|
|
378
384
|
* yield* Queue.end(queue)
|
|
379
385
|
* const done = yield* Effect.flip(Queue.take(queue))
|
|
380
|
-
* console.log(Cause.isDone(done)) // true
|
|
381
386
|
*
|
|
382
387
|
* // signal that another queue has failed
|
|
383
388
|
* const failedQueue = yield* Queue.make<number, string>()
|
|
384
389
|
* const failed = yield* Queue.fail(failedQueue, "boom")
|
|
385
|
-
*
|
|
390
|
+
* return { messages, done, failed }
|
|
386
391
|
* })
|
|
392
|
+
*
|
|
393
|
+
* await Effect.runPromise(program) // => { messages: [1, 2, 3, 4, 5], done: Cause.Done(), failed: true }
|
|
387
394
|
* ```
|
|
388
395
|
*
|
|
389
396
|
* @category constructors
|
|
@@ -403,7 +410,7 @@ export declare const make: <A, E = never>(options?: {
|
|
|
403
410
|
*
|
|
404
411
|
* **Example** (Creating bounded queues)
|
|
405
412
|
*
|
|
406
|
-
* ```ts
|
|
413
|
+
* ```ts import.meta.vitest
|
|
407
414
|
* import { Effect, Queue } from "effect"
|
|
408
415
|
*
|
|
409
416
|
* const program = Effect.gen(function*() {
|
|
@@ -414,8 +421,10 @@ export declare const make: <A, E = never>(options?: {
|
|
|
414
421
|
* yield* Queue.offer(queue, "second")
|
|
415
422
|
*
|
|
416
423
|
* const size = yield* Queue.size(queue)
|
|
417
|
-
*
|
|
424
|
+
* return size
|
|
418
425
|
* })
|
|
426
|
+
*
|
|
427
|
+
* await Effect.runPromise(program) // => 2
|
|
419
428
|
* ```
|
|
420
429
|
*
|
|
421
430
|
* @category constructors
|
|
@@ -433,7 +442,7 @@ export declare const bounded: <A, E = never>(capacity: number) => Effect<Queue<A
|
|
|
433
442
|
*
|
|
434
443
|
* **Example** (Creating sliding queues)
|
|
435
444
|
*
|
|
436
|
-
* ```ts
|
|
445
|
+
* ```ts import.meta.vitest
|
|
437
446
|
* import { Effect, Queue } from "effect"
|
|
438
447
|
*
|
|
439
448
|
* const program = Effect.gen(function*() {
|
|
@@ -448,8 +457,10 @@ export declare const bounded: <A, E = never>(capacity: number) => Effect<Queue<A
|
|
|
448
457
|
* yield* Queue.offer(queue, 4)
|
|
449
458
|
*
|
|
450
459
|
* const all = yield* Queue.takeAll(queue)
|
|
451
|
-
*
|
|
460
|
+
* return all
|
|
452
461
|
* })
|
|
462
|
+
*
|
|
463
|
+
* await Effect.runPromise(program) // => [2, 3, 4]
|
|
453
464
|
* ```
|
|
454
465
|
*
|
|
455
466
|
* @category constructors
|
|
@@ -467,7 +478,7 @@ export declare const sliding: <A, E = never>(capacity: number) => Effect<Queue<A
|
|
|
467
478
|
*
|
|
468
479
|
* **Example** (Creating dropping queues)
|
|
469
480
|
*
|
|
470
|
-
* ```ts
|
|
481
|
+
* ```ts import.meta.vitest
|
|
471
482
|
* import { Effect, Queue } from "effect"
|
|
472
483
|
*
|
|
473
484
|
* const program = Effect.gen(function*() {
|
|
@@ -476,15 +487,15 @@ export declare const sliding: <A, E = never>(capacity: number) => Effect<Queue<A
|
|
|
476
487
|
* // Fill the queue to capacity
|
|
477
488
|
* const success1 = yield* Queue.offer(queue, 1)
|
|
478
489
|
* const success2 = yield* Queue.offer(queue, 2)
|
|
479
|
-
* console.log(success1, success2) // true, true
|
|
480
490
|
*
|
|
481
491
|
* // This will be dropped
|
|
482
492
|
* const success3 = yield* Queue.offer(queue, 3)
|
|
483
|
-
* console.log(success3) // false
|
|
484
493
|
*
|
|
485
494
|
* const all = yield* Queue.takeAll(queue)
|
|
486
|
-
*
|
|
495
|
+
* return [success1, success2, success3, all]
|
|
487
496
|
* })
|
|
497
|
+
*
|
|
498
|
+
* await Effect.runPromise(program) // => [true, true, false, [1, 2]]
|
|
488
499
|
* ```
|
|
489
500
|
*
|
|
490
501
|
* @category constructors
|
|
@@ -501,7 +512,7 @@ export declare const dropping: <A, E = never>(capacity: number) => Effect<Queue<
|
|
|
501
512
|
*
|
|
502
513
|
* **Example** (Creating unbounded queues)
|
|
503
514
|
*
|
|
504
|
-
* ```ts
|
|
515
|
+
* ```ts import.meta.vitest
|
|
505
516
|
* import { Effect, Queue } from "effect"
|
|
506
517
|
*
|
|
507
518
|
* const program = Effect.gen(function*() {
|
|
@@ -514,12 +525,13 @@ export declare const dropping: <A, E = never>(capacity: number) => Effect<Queue<
|
|
|
514
525
|
*
|
|
515
526
|
* // Check current size
|
|
516
527
|
* const size = yield* Queue.size(queue)
|
|
517
|
-
* console.log(size) // 5
|
|
518
528
|
*
|
|
519
529
|
* // Take all messages
|
|
520
530
|
* const messages = yield* Queue.takeAll(queue)
|
|
521
|
-
*
|
|
531
|
+
* return { size, messages }
|
|
522
532
|
* })
|
|
533
|
+
*
|
|
534
|
+
* await Effect.runPromise(program) // => { size: 5, messages: ["message1", "message2", "message3", "message4", "message5"] }
|
|
523
535
|
* ```
|
|
524
536
|
*
|
|
525
537
|
* @category constructors
|
|
@@ -537,7 +549,7 @@ export declare const unbounded: <A, E = never>() => Effect<Queue<A, E>>;
|
|
|
537
549
|
*
|
|
538
550
|
* **Example** (Offering a value)
|
|
539
551
|
*
|
|
540
|
-
* ```ts
|
|
552
|
+
* ```ts import.meta.vitest
|
|
541
553
|
* import { Effect, Queue } from "effect"
|
|
542
554
|
*
|
|
543
555
|
* const program = Effect.gen(function*() {
|
|
@@ -546,15 +558,16 @@ export declare const unbounded: <A, E = never>() => Effect<Queue<A, E>>;
|
|
|
546
558
|
* // Successfully add messages to queue
|
|
547
559
|
* const success1 = yield* Queue.offer(queue, 1)
|
|
548
560
|
* const success2 = yield* Queue.offer(queue, 2)
|
|
549
|
-
* console.log(success1, success2) // true, true
|
|
550
561
|
*
|
|
551
562
|
* // Queue state
|
|
552
563
|
* const size = yield* Queue.size(queue)
|
|
553
|
-
*
|
|
564
|
+
* return { offered: [success1, success2], size }
|
|
554
565
|
* })
|
|
566
|
+
*
|
|
567
|
+
* await Effect.runPromise(program) // => { offered: [true, true], size: 2 }
|
|
555
568
|
* ```
|
|
556
569
|
*
|
|
557
|
-
* @category
|
|
570
|
+
* @category offering
|
|
558
571
|
* @since 2.0.0
|
|
559
572
|
*/
|
|
560
573
|
export declare const offer: <A, E>(self: Enqueue<A, E>, message: Types.NoInfer<A>) => Effect<boolean>;
|
|
@@ -573,8 +586,8 @@ export declare const offer: <A, E>(self: Enqueue<A, E>, message: Types.NoInfer<A
|
|
|
573
586
|
*
|
|
574
587
|
* **Example** (Offering a value synchronously)
|
|
575
588
|
*
|
|
576
|
-
* ```ts
|
|
577
|
-
* import {
|
|
589
|
+
* ```ts import.meta.vitest
|
|
590
|
+
* import { Effect, Queue } from "effect"
|
|
578
591
|
*
|
|
579
592
|
* // Create a queue effect and extract the queue for unsafe operations
|
|
580
593
|
* const program = Effect.gen(function*() {
|
|
@@ -583,15 +596,16 @@ export declare const offer: <A, E>(self: Enqueue<A, E>, message: Types.NoInfer<A
|
|
|
583
596
|
* // Add messages synchronously using unsafe API
|
|
584
597
|
* const success1 = Queue.offerUnsafe(queue, 1)
|
|
585
598
|
* const success2 = Queue.offerUnsafe(queue, 2)
|
|
586
|
-
* console.log(success1, success2) // true, true
|
|
587
599
|
*
|
|
588
600
|
* // Check current size
|
|
589
601
|
* const size = Queue.sizeUnsafe(queue)
|
|
590
|
-
*
|
|
602
|
+
* return { offered: [success1, success2], size }
|
|
591
603
|
* })
|
|
604
|
+
*
|
|
605
|
+
* await Effect.runPromise(program) // => { offered: [true, true], size: 2 }
|
|
592
606
|
* ```
|
|
593
607
|
*
|
|
594
|
-
* @category
|
|
608
|
+
* @category offering
|
|
595
609
|
* @since 4.0.0
|
|
596
610
|
*/
|
|
597
611
|
export declare const offerUnsafe: <A, E>(self: Enqueue<A, E>, message: Types.NoInfer<A>) => boolean;
|
|
@@ -612,7 +626,7 @@ export declare const offerUnsafe: <A, E>(self: Enqueue<A, E>, message: Types.NoI
|
|
|
612
626
|
*
|
|
613
627
|
* **Example** (Offering multiple values)
|
|
614
628
|
*
|
|
615
|
-
* ```ts
|
|
629
|
+
* ```ts import.meta.vitest
|
|
616
630
|
* import { Effect, Queue } from "effect"
|
|
617
631
|
*
|
|
618
632
|
* const program = Effect.gen(function*() {
|
|
@@ -620,11 +634,13 @@ export declare const offerUnsafe: <A, E>(self: Enqueue<A, E>, message: Types.NoI
|
|
|
620
634
|
*
|
|
621
635
|
* // Try to add more messages than capacity without suspending
|
|
622
636
|
* const remaining1 = yield* Queue.offerAll(queue, [1, 2, 3, 4, 5])
|
|
623
|
-
*
|
|
637
|
+
* return remaining1
|
|
624
638
|
* })
|
|
639
|
+
*
|
|
640
|
+
* await Effect.runPromise(program) // => [4, 5]
|
|
625
641
|
* ```
|
|
626
642
|
*
|
|
627
|
-
* @category
|
|
643
|
+
* @category offering
|
|
628
644
|
* @since 2.0.0
|
|
629
645
|
*/
|
|
630
646
|
export declare const offerAll: <A, E>(self: Enqueue<A, E>, messages: Iterable<A>) => Effect<Array<A>>;
|
|
@@ -643,8 +659,8 @@ export declare const offerAll: <A, E>(self: Enqueue<A, E>, messages: Iterable<A>
|
|
|
643
659
|
*
|
|
644
660
|
* **Example** (Offering multiple values synchronously)
|
|
645
661
|
*
|
|
646
|
-
* ```ts
|
|
647
|
-
* import {
|
|
662
|
+
* ```ts import.meta.vitest
|
|
663
|
+
* import { Effect, Queue } from "effect"
|
|
648
664
|
*
|
|
649
665
|
* // Create a bounded queue and use unsafe API
|
|
650
666
|
* const program = Effect.gen(function*() {
|
|
@@ -652,15 +668,16 @@ export declare const offerAll: <A, E>(self: Enqueue<A, E>, messages: Iterable<A>
|
|
|
652
668
|
*
|
|
653
669
|
* // Try to add 5 messages to capacity-3 queue using unsafe API
|
|
654
670
|
* const remaining = Queue.offerAllUnsafe(queue, [1, 2, 3, 4, 5])
|
|
655
|
-
* console.log(remaining) // [4, 5] - couldn't fit the last 2
|
|
656
671
|
*
|
|
657
672
|
* // Check what's in the queue
|
|
658
673
|
* const size = Queue.sizeUnsafe(queue)
|
|
659
|
-
*
|
|
674
|
+
* return { remaining, size }
|
|
660
675
|
* })
|
|
676
|
+
*
|
|
677
|
+
* await Effect.runPromise(program) // => { remaining: [4, 5], size: 3 }
|
|
661
678
|
* ```
|
|
662
679
|
*
|
|
663
|
-
* @category
|
|
680
|
+
* @category offering
|
|
664
681
|
* @since 4.0.0
|
|
665
682
|
*/
|
|
666
683
|
export declare const offerAllUnsafe: <A, E>(self: Enqueue<A, E>, messages: Iterable<A>) => Array<A>;
|
|
@@ -670,20 +687,21 @@ export declare const offerAllUnsafe: <A, E>(self: Enqueue<A, E>, messages: Itera
|
|
|
670
687
|
*
|
|
671
688
|
* **Example** (Failing queues with an error)
|
|
672
689
|
*
|
|
673
|
-
* ```ts
|
|
674
|
-
* import { Effect, Queue } from "effect"
|
|
690
|
+
* ```ts import.meta.vitest
|
|
691
|
+
* import { Effect, Exit, Queue } from "effect"
|
|
675
692
|
*
|
|
676
693
|
* const program = Effect.gen(function*() {
|
|
677
694
|
* const queue = yield* Queue.bounded<number, string>(10)
|
|
678
695
|
*
|
|
679
696
|
* // Fail the queue with an error
|
|
680
697
|
* const failed = yield* Queue.fail(queue, "Something went wrong")
|
|
681
|
-
* console.log(failed) // true
|
|
682
698
|
*
|
|
683
699
|
* // Taking from the failed queue fails with the error
|
|
684
|
-
* const
|
|
685
|
-
*
|
|
700
|
+
* const exit = yield* Effect.exit(Queue.take(queue))
|
|
701
|
+
* return [failed, exit]
|
|
686
702
|
* })
|
|
703
|
+
*
|
|
704
|
+
* await Effect.runPromise(program) // => [true, Exit.fail("Something went wrong")]
|
|
687
705
|
* ```
|
|
688
706
|
*
|
|
689
707
|
* @category completion
|
|
@@ -696,8 +714,8 @@ export declare const fail: <A, E>(self: Enqueue<A, E>, error: E) => Effect<boole
|
|
|
696
714
|
*
|
|
697
715
|
* **Example** (Failing queues with a cause)
|
|
698
716
|
*
|
|
699
|
-
* ```ts
|
|
700
|
-
* import { Cause, Effect, Queue } from "effect"
|
|
717
|
+
* ```ts import.meta.vitest
|
|
718
|
+
* import { Cause, Effect, Exit, Queue } from "effect"
|
|
701
719
|
*
|
|
702
720
|
* const program = Effect.gen(function*() {
|
|
703
721
|
* const queue = yield* Queue.bounded<number, string>(10)
|
|
@@ -705,11 +723,13 @@ export declare const fail: <A, E>(self: Enqueue<A, E>, error: E) => Effect<boole
|
|
|
705
723
|
* // Create a cause and fail the queue
|
|
706
724
|
* const cause = Cause.fail("Queue processing failed")
|
|
707
725
|
* const failed = yield* Queue.failCause(queue, cause)
|
|
708
|
-
* console.log(failed) // true
|
|
709
726
|
*
|
|
710
727
|
* // The queue is now done with the specified failure cause
|
|
711
|
-
*
|
|
728
|
+
* const exit = yield* Effect.exit(Queue.take(queue))
|
|
729
|
+
* return [failed, exit]
|
|
712
730
|
* })
|
|
731
|
+
*
|
|
732
|
+
* await Effect.runPromise(program) // => [true, Exit.failCause(Cause.fail("Queue processing failed"))]
|
|
713
733
|
* ```
|
|
714
734
|
*
|
|
715
735
|
* @category completion
|
|
@@ -722,8 +742,8 @@ export declare const failCause: {
|
|
|
722
742
|
*
|
|
723
743
|
* **Example** (Failing queues with a cause)
|
|
724
744
|
*
|
|
725
|
-
* ```ts
|
|
726
|
-
* import { Cause, Effect, Queue } from "effect"
|
|
745
|
+
* ```ts import.meta.vitest
|
|
746
|
+
* import { Cause, Effect, Exit, Queue } from "effect"
|
|
727
747
|
*
|
|
728
748
|
* const program = Effect.gen(function*() {
|
|
729
749
|
* const queue = yield* Queue.bounded<number, string>(10)
|
|
@@ -731,11 +751,13 @@ export declare const failCause: {
|
|
|
731
751
|
* // Create a cause and fail the queue
|
|
732
752
|
* const cause = Cause.fail("Queue processing failed")
|
|
733
753
|
* const failed = yield* Queue.failCause(queue, cause)
|
|
734
|
-
* console.log(failed) // true
|
|
735
754
|
*
|
|
736
755
|
* // The queue is now done with the specified failure cause
|
|
737
|
-
*
|
|
756
|
+
* const exit = yield* Effect.exit(Queue.take(queue))
|
|
757
|
+
* return [failed, exit]
|
|
738
758
|
* })
|
|
759
|
+
*
|
|
760
|
+
* await Effect.runPromise(program) // => [true, Exit.failCause(Cause.fail("Queue processing failed"))]
|
|
739
761
|
* ```
|
|
740
762
|
*
|
|
741
763
|
* @category completion
|
|
@@ -748,8 +770,8 @@ export declare const failCause: {
|
|
|
748
770
|
*
|
|
749
771
|
* **Example** (Failing queues with a cause)
|
|
750
772
|
*
|
|
751
|
-
* ```ts
|
|
752
|
-
* import { Cause, Effect, Queue } from "effect"
|
|
773
|
+
* ```ts import.meta.vitest
|
|
774
|
+
* import { Cause, Effect, Exit, Queue } from "effect"
|
|
753
775
|
*
|
|
754
776
|
* const program = Effect.gen(function*() {
|
|
755
777
|
* const queue = yield* Queue.bounded<number, string>(10)
|
|
@@ -757,11 +779,13 @@ export declare const failCause: {
|
|
|
757
779
|
* // Create a cause and fail the queue
|
|
758
780
|
* const cause = Cause.fail("Queue processing failed")
|
|
759
781
|
* const failed = yield* Queue.failCause(queue, cause)
|
|
760
|
-
* console.log(failed) // true
|
|
761
782
|
*
|
|
762
783
|
* // The queue is now done with the specified failure cause
|
|
763
|
-
*
|
|
784
|
+
* const exit = yield* Effect.exit(Queue.take(queue))
|
|
785
|
+
* return [failed, exit]
|
|
764
786
|
* })
|
|
787
|
+
*
|
|
788
|
+
* await Effect.runPromise(program) // => [true, Exit.failCause(Cause.fail("Queue processing failed"))]
|
|
765
789
|
* ```
|
|
766
790
|
*
|
|
767
791
|
* @category completion
|
|
@@ -784,8 +808,8 @@ export declare const failCause: {
|
|
|
784
808
|
*
|
|
785
809
|
* **Example** (Failing queues with a cause synchronously)
|
|
786
810
|
*
|
|
787
|
-
* ```ts
|
|
788
|
-
* import { Cause, Effect, Queue } from "effect"
|
|
811
|
+
* ```ts import.meta.vitest
|
|
812
|
+
* import { Cause, Effect, Exit, Queue } from "effect"
|
|
789
813
|
*
|
|
790
814
|
* const program = Effect.gen(function*() {
|
|
791
815
|
* const queue = yield* Queue.bounded<number, string>(10)
|
|
@@ -793,11 +817,13 @@ export declare const failCause: {
|
|
|
793
817
|
* // Create a cause and fail the queue synchronously
|
|
794
818
|
* const cause = Cause.fail("Processing error")
|
|
795
819
|
* const failed = Queue.failCauseUnsafe(queue, cause)
|
|
796
|
-
* console.log(failed) // true
|
|
797
820
|
*
|
|
798
821
|
* // The queue is now done with the specified failure cause
|
|
799
|
-
*
|
|
822
|
+
* const exit = Queue.takeUnsafe(queue)
|
|
823
|
+
* return [failed, exit]
|
|
800
824
|
* })
|
|
825
|
+
*
|
|
826
|
+
* await Effect.runPromise(program) // => [true, Exit.failCause(Cause.fail("Processing error"))]
|
|
801
827
|
* ```
|
|
802
828
|
*
|
|
803
829
|
* @category completion
|
|
@@ -818,7 +844,7 @@ export declare const failCauseUnsafe: <A, E>(self: Enqueue<A, E>, cause: Cause<E
|
|
|
818
844
|
*
|
|
819
845
|
* **Example** (Ending queues)
|
|
820
846
|
*
|
|
821
|
-
* ```ts
|
|
847
|
+
* ```ts import.meta.vitest
|
|
822
848
|
* import { Cause, Effect, Queue } from "effect"
|
|
823
849
|
*
|
|
824
850
|
* const program = Effect.gen(function*() {
|
|
@@ -830,16 +856,16 @@ export declare const failCauseUnsafe: <A, E>(self: Enqueue<A, E>, cause: Cause<E
|
|
|
830
856
|
*
|
|
831
857
|
* // Signal completion - no more messages will be accepted
|
|
832
858
|
* const ended = yield* Queue.end(queue)
|
|
833
|
-
* console.log(ended) // true
|
|
834
859
|
*
|
|
835
860
|
* // Trying to offer more messages will return false
|
|
836
861
|
* const offerResult = yield* Queue.offer(queue, 3)
|
|
837
|
-
* console.log(offerResult) // false
|
|
838
862
|
*
|
|
839
863
|
* // But we can still take existing messages
|
|
840
864
|
* const message = yield* Queue.take(queue)
|
|
841
|
-
*
|
|
865
|
+
* return [ended, offerResult, message]
|
|
842
866
|
* })
|
|
867
|
+
*
|
|
868
|
+
* await Effect.runPromise(program) // => [true, false, 1]
|
|
843
869
|
* ```
|
|
844
870
|
*
|
|
845
871
|
* @category completion
|
|
@@ -864,7 +890,7 @@ export declare const end: <A, E>(self: Enqueue<A, E | Done>) => Effect<boolean>;
|
|
|
864
890
|
*
|
|
865
891
|
* **Example** (Ending queues synchronously)
|
|
866
892
|
*
|
|
867
|
-
* ```ts
|
|
893
|
+
* ```ts import.meta.vitest
|
|
868
894
|
* import { Cause, Effect, Queue } from "effect"
|
|
869
895
|
*
|
|
870
896
|
* // Create a queue and use unsafe operations
|
|
@@ -877,17 +903,19 @@ export declare const end: <A, E>(self: Enqueue<A, E | Done>) => Effect<boolean>;
|
|
|
877
903
|
*
|
|
878
904
|
* // End the queue synchronously
|
|
879
905
|
* const ended = Queue.endUnsafe(queue)
|
|
880
|
-
* console.log(ended) // true
|
|
881
906
|
*
|
|
882
907
|
* // Existing messages can still be consumed while the queue is closing
|
|
883
|
-
*
|
|
908
|
+
* const states = [queue.state._tag]
|
|
884
909
|
*
|
|
885
910
|
* Queue.takeUnsafe(queue)
|
|
886
911
|
* Queue.takeUnsafe(queue)
|
|
887
912
|
*
|
|
888
913
|
* // After buffered messages are consumed, the queue is done
|
|
889
|
-
*
|
|
914
|
+
* states.push(queue.state._tag)
|
|
915
|
+
* return { ended, states }
|
|
890
916
|
* })
|
|
917
|
+
*
|
|
918
|
+
* await Effect.runPromise(program) // => { ended: true, states: ["Closing", "Done"] }
|
|
891
919
|
* ```
|
|
892
920
|
*
|
|
893
921
|
* @category completion
|
|
@@ -904,7 +932,7 @@ export declare const endUnsafe: <A, E>(self: Enqueue<A, E | Done>) => boolean;
|
|
|
904
932
|
*
|
|
905
933
|
* **Example** (Interrupting queues gracefully)
|
|
906
934
|
*
|
|
907
|
-
* ```ts
|
|
935
|
+
* ```ts import.meta.vitest
|
|
908
936
|
* import { Cause, Effect, Queue } from "effect"
|
|
909
937
|
*
|
|
910
938
|
* const program = Effect.gen(function*() {
|
|
@@ -916,23 +944,21 @@ export declare const endUnsafe: <A, E>(self: Enqueue<A, E | Done>) => boolean;
|
|
|
916
944
|
*
|
|
917
945
|
* // Interrupt gracefully - no more offers accepted, but messages can be consumed
|
|
918
946
|
* const interrupted = yield* Queue.interrupt(queue)
|
|
919
|
-
* console.log(interrupted) // true
|
|
920
947
|
*
|
|
921
948
|
* // Trying to offer more messages will return false
|
|
922
949
|
* const offerResult = yield* Queue.offer(queue, 3)
|
|
923
|
-
* console.log(offerResult) // false
|
|
924
950
|
*
|
|
925
951
|
* // But we can still take existing messages
|
|
926
952
|
* const message1 = yield* Queue.take(queue)
|
|
927
|
-
* console.log(message1) // 1
|
|
928
953
|
*
|
|
929
954
|
* const message2 = yield* Queue.take(queue)
|
|
930
|
-
* console.log(message2) // 2
|
|
931
955
|
*
|
|
932
956
|
* // After all messages are consumed, queue is done
|
|
933
957
|
* const isDone = queue.state._tag === "Done"
|
|
934
|
-
*
|
|
958
|
+
* return { interrupted, offerResult, messages: [message1, message2], isDone }
|
|
935
959
|
* })
|
|
960
|
+
*
|
|
961
|
+
* await Effect.runPromise(program) // => { interrupted: true, offerResult: false, messages: [1, 2], isDone: true }
|
|
936
962
|
* ```
|
|
937
963
|
*
|
|
938
964
|
* @category completion
|
|
@@ -950,7 +976,7 @@ export declare const interrupt: <A, E>(self: Enqueue<A, E>) => Effect<boolean>;
|
|
|
950
976
|
*
|
|
951
977
|
* **Example** (Shutting down queues)
|
|
952
978
|
*
|
|
953
|
-
* ```ts
|
|
979
|
+
* ```ts import.meta.vitest
|
|
954
980
|
* import { Effect, Queue } from "effect"
|
|
955
981
|
*
|
|
956
982
|
* const program = Effect.gen(function*() {
|
|
@@ -962,12 +988,13 @@ export declare const interrupt: <A, E>(self: Enqueue<A, E>) => Effect<boolean>;
|
|
|
962
988
|
*
|
|
963
989
|
* // Shutdown clears buffered messages and prevents further offers
|
|
964
990
|
* const wasShutdown = yield* Queue.shutdown(queue)
|
|
965
|
-
* console.log(wasShutdown) // true
|
|
966
991
|
*
|
|
967
992
|
* // Queue is now done and cleared
|
|
968
993
|
* const size = yield* Queue.size(queue)
|
|
969
|
-
*
|
|
994
|
+
* return { wasShutdown, size }
|
|
970
995
|
* })
|
|
996
|
+
*
|
|
997
|
+
* await Effect.runPromise(program) // => { wasShutdown: true, size: 0 }
|
|
971
998
|
* ```
|
|
972
999
|
*
|
|
973
1000
|
* @category completion
|
|
@@ -984,8 +1011,8 @@ export declare const shutdown: <A, E>(self: Enqueue<A, E>) => Effect<boolean>;
|
|
|
984
1011
|
*
|
|
985
1012
|
* **Example** (Clearing queued values)
|
|
986
1013
|
*
|
|
987
|
-
* ```ts
|
|
988
|
-
* import {
|
|
1014
|
+
* ```ts import.meta.vitest
|
|
1015
|
+
* import { Effect, Queue } from "effect"
|
|
989
1016
|
*
|
|
990
1017
|
* const program = Effect.gen(function*() {
|
|
991
1018
|
* const queue = yield* Queue.bounded<number>(10)
|
|
@@ -995,16 +1022,16 @@ export declare const shutdown: <A, E>(self: Enqueue<A, E>) => Effect<boolean>;
|
|
|
995
1022
|
*
|
|
996
1023
|
* // Clear all messages from the queue
|
|
997
1024
|
* const messages = yield* Queue.clear(queue)
|
|
998
|
-
* console.log(messages) // [1, 2, 3, 4, 5]
|
|
999
1025
|
*
|
|
1000
1026
|
* // Queue is now empty
|
|
1001
1027
|
* const size = yield* Queue.size(queue)
|
|
1002
|
-
* console.log(size) // 0
|
|
1003
1028
|
*
|
|
1004
1029
|
* // Clearing empty queue returns empty array
|
|
1005
1030
|
* const empty = yield* Queue.clear(queue)
|
|
1006
|
-
*
|
|
1031
|
+
* return { messages, size, empty }
|
|
1007
1032
|
* })
|
|
1033
|
+
*
|
|
1034
|
+
* await Effect.runPromise(program) // => { messages: [1, 2, 3, 4, 5], size: 0, empty: [] }
|
|
1008
1035
|
* ```
|
|
1009
1036
|
*
|
|
1010
1037
|
* @category taking
|
|
@@ -1027,7 +1054,7 @@ export declare const clear: <A, E>(self: Dequeue<A, E>) => Effect<Array<A>, Pull
|
|
|
1027
1054
|
*
|
|
1028
1055
|
* **Example** (Taking all available values)
|
|
1029
1056
|
*
|
|
1030
|
-
* ```ts
|
|
1057
|
+
* ```ts import.meta.vitest
|
|
1031
1058
|
* import { Cause, Effect, Queue } from "effect"
|
|
1032
1059
|
*
|
|
1033
1060
|
* const program = Effect.gen(function*() {
|
|
@@ -1038,8 +1065,10 @@ export declare const clear: <A, E>(self: Dequeue<A, E>) => Effect<Array<A>, Pull
|
|
|
1038
1065
|
*
|
|
1039
1066
|
* // Take all available messages
|
|
1040
1067
|
* const messages1 = yield* Queue.takeAll(queue)
|
|
1041
|
-
*
|
|
1068
|
+
* return messages1
|
|
1042
1069
|
* })
|
|
1070
|
+
*
|
|
1071
|
+
* await Effect.runPromise(program) // => [1, 2, 3, 4, 5]
|
|
1043
1072
|
* ```
|
|
1044
1073
|
*
|
|
1045
1074
|
* @category taking
|
|
@@ -1051,7 +1080,7 @@ export declare const takeAll: <A, E>(self: Dequeue<A, E>) => Effect<Arr.NonEmpty
|
|
|
1051
1080
|
*
|
|
1052
1081
|
* **Example** (Collecting values until completion)
|
|
1053
1082
|
*
|
|
1054
|
-
* ```ts
|
|
1083
|
+
* ```ts import.meta.vitest
|
|
1055
1084
|
* import { Cause, Effect, Queue } from "effect"
|
|
1056
1085
|
*
|
|
1057
1086
|
* const program = Effect.gen(function*() {
|
|
@@ -1059,13 +1088,13 @@ export declare const takeAll: <A, E>(self: Dequeue<A, E>) => Effect<Arr.NonEmpty
|
|
|
1059
1088
|
*
|
|
1060
1089
|
* // Add several messages
|
|
1061
1090
|
* yield* Queue.offerAll(queue, [1, 2, 3, 4, 5])
|
|
1062
|
-
*
|
|
1063
|
-
* yield* Effect.forkChild(Queue.end(queue))
|
|
1091
|
+
* yield* Queue.end(queue)
|
|
1064
1092
|
*
|
|
1065
1093
|
* // Collect all available messages
|
|
1066
|
-
*
|
|
1067
|
-
* console.log(messages) // [1, 2, 3, 4, 5]
|
|
1094
|
+
* return yield* Queue.collect(queue)
|
|
1068
1095
|
* })
|
|
1096
|
+
*
|
|
1097
|
+
* await Effect.runPromise(program) // => [1, 2, 3, 4, 5]
|
|
1069
1098
|
* ```
|
|
1070
1099
|
*
|
|
1071
1100
|
* @category taking
|
|
@@ -1084,7 +1113,7 @@ export declare const collect: <A, E>(self: Dequeue<A, E | Done>) => Effect<Array
|
|
|
1084
1113
|
*
|
|
1085
1114
|
* **Example** (Taking a fixed number of values)
|
|
1086
1115
|
*
|
|
1087
|
-
* ```ts
|
|
1116
|
+
* ```ts import.meta.vitest
|
|
1088
1117
|
* import { Cause, Effect, Queue } from "effect"
|
|
1089
1118
|
*
|
|
1090
1119
|
* const program = Effect.gen(function*() {
|
|
@@ -1095,16 +1124,16 @@ export declare const collect: <A, E>(self: Dequeue<A, E | Done>) => Effect<Array
|
|
|
1095
1124
|
*
|
|
1096
1125
|
* // Take exactly 3 messages
|
|
1097
1126
|
* const first3 = yield* Queue.takeN(queue, 3)
|
|
1098
|
-
* console.log(first3) // [1, 2, 3]
|
|
1099
1127
|
*
|
|
1100
1128
|
* // Take exactly 2 more messages
|
|
1101
1129
|
* const next2 = yield* Queue.takeN(queue, 2)
|
|
1102
|
-
* console.log(next2) // [4, 5]
|
|
1103
1130
|
*
|
|
1104
1131
|
* // Take remaining messages
|
|
1105
1132
|
* const remaining = yield* Queue.takeN(queue, 2)
|
|
1106
|
-
*
|
|
1133
|
+
* return [first3, next2, remaining]
|
|
1107
1134
|
* })
|
|
1135
|
+
*
|
|
1136
|
+
* await Effect.runPromise(program) // => [[1, 2, 3], [4, 5], [6, 7]]
|
|
1108
1137
|
* ```
|
|
1109
1138
|
*
|
|
1110
1139
|
* @category taking
|
|
@@ -1123,7 +1152,7 @@ export declare const takeN: <A, E>(self: Dequeue<A, E>, n: number) => Effect<Arr
|
|
|
1123
1152
|
*
|
|
1124
1153
|
* **Example** (Taking a bounded batch of values)
|
|
1125
1154
|
*
|
|
1126
|
-
* ```ts
|
|
1155
|
+
* ```ts import.meta.vitest
|
|
1127
1156
|
* import { Cause, Effect, Queue } from "effect"
|
|
1128
1157
|
*
|
|
1129
1158
|
* const program = Effect.gen(function*() {
|
|
@@ -1134,15 +1163,16 @@ export declare const takeN: <A, E>(self: Dequeue<A, E>, n: number) => Effect<Arr
|
|
|
1134
1163
|
*
|
|
1135
1164
|
* // Take between 2 and 5 messages
|
|
1136
1165
|
* const batch1 = yield* Queue.takeBetween(queue, 2, 5)
|
|
1137
|
-
* console.log(batch1) // [1, 2, 3, 4, 5] - took 5 (up to max)
|
|
1138
1166
|
*
|
|
1139
1167
|
* // Take between 1 and 10 messages (but only 3 remain)
|
|
1140
1168
|
* const batch2 = yield* Queue.takeBetween(queue, 1, 10)
|
|
1141
|
-
* console.log(batch2) // [6, 7, 8] - took 3 (all remaining)
|
|
1142
1169
|
*
|
|
1143
1170
|
* // No more messages available, will wait or return done
|
|
1144
1171
|
* // const batch3 = yield* Queue.takeBetween(queue, 1, 3)
|
|
1172
|
+
* return [batch1, batch2]
|
|
1145
1173
|
* })
|
|
1174
|
+
*
|
|
1175
|
+
* await Effect.runPromise(program) // => [[1, 2, 3, 4, 5], [6, 7, 8]]
|
|
1146
1176
|
* ```
|
|
1147
1177
|
*
|
|
1148
1178
|
* @category taking
|
|
@@ -1160,8 +1190,8 @@ export declare const takeBetween: <A, E>(self: Dequeue<A, E>, min: number, max:
|
|
|
1160
1190
|
*
|
|
1161
1191
|
* **Example** (Taking one value)
|
|
1162
1192
|
*
|
|
1163
|
-
* ```ts
|
|
1164
|
-
* import { Cause, Effect, Queue } from "effect"
|
|
1193
|
+
* ```ts import.meta.vitest
|
|
1194
|
+
* import { Cause, Effect, Exit, Queue } from "effect"
|
|
1165
1195
|
*
|
|
1166
1196
|
* const program = Effect.gen(function*() {
|
|
1167
1197
|
* const queue = yield* Queue.bounded<string, Cause.Done>(3)
|
|
@@ -1173,18 +1203,16 @@ export declare const takeBetween: <A, E>(self: Dequeue<A, E>, min: number, max:
|
|
|
1173
1203
|
* // Take messages one by one
|
|
1174
1204
|
* const msg1 = yield* Queue.take(queue)
|
|
1175
1205
|
* const msg2 = yield* Queue.take(queue)
|
|
1176
|
-
* console.log(msg1, msg2) // "first", "second"
|
|
1177
1206
|
*
|
|
1178
1207
|
* // End the queue
|
|
1179
1208
|
* yield* Queue.end(queue)
|
|
1180
1209
|
*
|
|
1181
1210
|
* // Taking from an ended queue fails with Done
|
|
1182
|
-
* const result = yield* Effect.
|
|
1183
|
-
*
|
|
1184
|
-
* onSuccess: (value: string) => false
|
|
1185
|
-
* })
|
|
1186
|
-
* console.log("Queue ended:", result) // true
|
|
1211
|
+
* const result = yield* Effect.exit(Queue.take(queue))
|
|
1212
|
+
* return [[msg1, msg2], result]
|
|
1187
1213
|
* })
|
|
1214
|
+
*
|
|
1215
|
+
* await Effect.runPromise(program) // => [["first", "second"], Exit.fail(Cause.Done())]
|
|
1188
1216
|
* ```
|
|
1189
1217
|
*
|
|
1190
1218
|
* @category taking
|
|
@@ -1202,7 +1230,7 @@ export declare const take: <A, E>(self: Dequeue<A, E>) => Effect<A, E>;
|
|
|
1202
1230
|
*
|
|
1203
1231
|
* **Example** (Polling without blocking)
|
|
1204
1232
|
*
|
|
1205
|
-
* ```ts
|
|
1233
|
+
* ```ts import.meta.vitest
|
|
1206
1234
|
* import { Effect, Option, Queue } from "effect"
|
|
1207
1235
|
*
|
|
1208
1236
|
* const program = Effect.gen(function*() {
|
|
@@ -1210,15 +1238,16 @@ export declare const take: <A, E>(self: Dequeue<A, E>) => Effect<A, E>;
|
|
|
1210
1238
|
*
|
|
1211
1239
|
* // Poll returns Option.none if empty
|
|
1212
1240
|
* const maybe1 = yield* Queue.poll(queue)
|
|
1213
|
-
* console.log(Option.isNone(maybe1)) // true
|
|
1214
1241
|
*
|
|
1215
1242
|
* // Add an item
|
|
1216
1243
|
* yield* Queue.offer(queue, 42)
|
|
1217
1244
|
*
|
|
1218
1245
|
* // Poll returns Option.some with the item
|
|
1219
1246
|
* const maybe2 = yield* Queue.poll(queue)
|
|
1220
|
-
*
|
|
1247
|
+
* return [maybe1, maybe2]
|
|
1221
1248
|
* })
|
|
1249
|
+
*
|
|
1250
|
+
* await Effect.runPromise(program) // => [Option.none(), Option.some(42)]
|
|
1222
1251
|
* ```
|
|
1223
1252
|
*
|
|
1224
1253
|
* @category taking
|
|
@@ -1234,7 +1263,7 @@ export declare const poll: <A, E>(self: Dequeue<A, E>) => Effect<Option.Option<A
|
|
|
1234
1263
|
*
|
|
1235
1264
|
* **Example** (Peeking at the next value)
|
|
1236
1265
|
*
|
|
1237
|
-
* ```ts
|
|
1266
|
+
* ```ts import.meta.vitest
|
|
1238
1267
|
* import { Cause, Effect, Queue } from "effect"
|
|
1239
1268
|
*
|
|
1240
1269
|
* const program = Effect.gen(function*() {
|
|
@@ -1243,8 +1272,10 @@ export declare const poll: <A, E>(self: Dequeue<A, E>) => Effect<Option.Option<A
|
|
|
1243
1272
|
*
|
|
1244
1273
|
* // Peek at the next item without removing it
|
|
1245
1274
|
* const item = yield* Queue.peek(queue)
|
|
1246
|
-
*
|
|
1275
|
+
* return item
|
|
1247
1276
|
* })
|
|
1277
|
+
*
|
|
1278
|
+
* await Effect.runPromise(program) // => 42
|
|
1248
1279
|
* ```
|
|
1249
1280
|
*
|
|
1250
1281
|
* @category taking
|
|
@@ -1267,8 +1298,8 @@ export declare const peek: <A, E>(self: Dequeue<A, E>) => Effect<A, E>;
|
|
|
1267
1298
|
*
|
|
1268
1299
|
* **Example** (Taking one value synchronously)
|
|
1269
1300
|
*
|
|
1270
|
-
* ```ts
|
|
1271
|
-
* import { Effect, Queue } from "effect"
|
|
1301
|
+
* ```ts import.meta.vitest
|
|
1302
|
+
* import { Effect, Exit, Queue } from "effect"
|
|
1272
1303
|
*
|
|
1273
1304
|
* // Create a queue and use unsafe operations
|
|
1274
1305
|
* const program = Effect.gen(function*() {
|
|
@@ -1280,15 +1311,15 @@ export declare const peek: <A, E>(self: Dequeue<A, E>) => Effect<A, E>;
|
|
|
1280
1311
|
*
|
|
1281
1312
|
* // Take a message synchronously
|
|
1282
1313
|
* const result1 = Queue.takeUnsafe(queue)
|
|
1283
|
-
* console.log(result1) // Success(1) or Exit containing value 1
|
|
1284
1314
|
*
|
|
1285
1315
|
* const result2 = Queue.takeUnsafe(queue)
|
|
1286
|
-
* console.log(result2) // Success(2)
|
|
1287
1316
|
*
|
|
1288
1317
|
* // No more messages - returns undefined
|
|
1289
1318
|
* const result3 = Queue.takeUnsafe(queue)
|
|
1290
|
-
*
|
|
1319
|
+
* return [result1, result2, result3]
|
|
1291
1320
|
* })
|
|
1321
|
+
*
|
|
1322
|
+
* await Effect.runPromise(program) // => [Exit.succeed(1), Exit.succeed(2), undefined]
|
|
1292
1323
|
* ```
|
|
1293
1324
|
*
|
|
1294
1325
|
* @category taking
|
|
@@ -1331,34 +1362,36 @@ await_ as await };
|
|
|
1331
1362
|
*
|
|
1332
1363
|
* **Details**
|
|
1333
1364
|
*
|
|
1334
|
-
*
|
|
1365
|
+
* After `end`, a queue remains `Closing` while buffered messages are drained,
|
|
1366
|
+
* and its size continues to include those messages. A `Done` queue reports a
|
|
1367
|
+
* size of `0`.
|
|
1335
1368
|
*
|
|
1336
1369
|
* **Example** (Checking queue size)
|
|
1337
1370
|
*
|
|
1338
|
-
* ```ts
|
|
1339
|
-
* import { Cause, Effect,
|
|
1371
|
+
* ```ts import.meta.vitest
|
|
1372
|
+
* import { Cause, Effect, Queue } from "effect"
|
|
1340
1373
|
*
|
|
1341
1374
|
* const program = Effect.gen(function*() {
|
|
1342
1375
|
* const queue = yield* Queue.bounded<number, Cause.Done>(10)
|
|
1343
1376
|
*
|
|
1344
1377
|
* // Check size of empty queue
|
|
1345
1378
|
* const size1 = yield* Queue.size(queue)
|
|
1346
|
-
* console.log(size1) // 0
|
|
1347
1379
|
*
|
|
1348
1380
|
* // Add some messages
|
|
1349
1381
|
* yield* Queue.offerAll(queue, [1, 2, 3, 4, 5])
|
|
1350
1382
|
*
|
|
1351
1383
|
* // Check size after adding messages
|
|
1352
1384
|
* const size2 = yield* Queue.size(queue)
|
|
1353
|
-
* console.log(size2) // 5
|
|
1354
1385
|
*
|
|
1355
1386
|
* // End the queue
|
|
1356
1387
|
* yield* Queue.end(queue)
|
|
1357
1388
|
*
|
|
1358
|
-
* //
|
|
1389
|
+
* // Ending retains the buffered size while the queue is Closing
|
|
1359
1390
|
* const size3 = yield* Queue.size(queue)
|
|
1360
|
-
*
|
|
1391
|
+
* return [size1, size2, size3]
|
|
1361
1392
|
* })
|
|
1393
|
+
*
|
|
1394
|
+
* await Effect.runPromise(program) // => [0, 5, 5]
|
|
1362
1395
|
* ```
|
|
1363
1396
|
*
|
|
1364
1397
|
* @category sizes
|
|
@@ -1370,22 +1403,25 @@ export declare const size: <A, E>(self: Dequeue<A, E>) => Effect<number>;
|
|
|
1370
1403
|
*
|
|
1371
1404
|
* **Example** (Checking if queues are full)
|
|
1372
1405
|
*
|
|
1373
|
-
* ```ts
|
|
1374
|
-
* import { Cause, Effect,
|
|
1406
|
+
* ```ts import.meta.vitest
|
|
1407
|
+
* import { Cause, Effect, Queue } from "effect"
|
|
1375
1408
|
*
|
|
1376
1409
|
* const program = Effect.gen(function*() {
|
|
1377
1410
|
* const queue = yield* Queue.bounded<number, Cause.Done>(3)
|
|
1378
1411
|
*
|
|
1379
|
-
*
|
|
1412
|
+
* const before = yield* Queue.isFull(queue)
|
|
1380
1413
|
*
|
|
1381
1414
|
* // Add some messages
|
|
1382
1415
|
* yield* Queue.offerAll(queue, [1, 2, 3])
|
|
1383
1416
|
*
|
|
1384
|
-
*
|
|
1417
|
+
* const after = yield* Queue.isFull(queue)
|
|
1418
|
+
* return [before, after]
|
|
1385
1419
|
* })
|
|
1420
|
+
*
|
|
1421
|
+
* await Effect.runPromise(program) // => [false, true]
|
|
1386
1422
|
* ```
|
|
1387
1423
|
*
|
|
1388
|
-
* @category
|
|
1424
|
+
* @category predicates
|
|
1389
1425
|
* @since 2.0.0
|
|
1390
1426
|
*/
|
|
1391
1427
|
export declare const isFull: <A, E>(self: Dequeue<A, E>) => Effect<boolean>;
|
|
@@ -1399,20 +1435,21 @@ export declare const isFull: <A, E>(self: Dequeue<A, E>) => Effect<boolean>;
|
|
|
1399
1435
|
*
|
|
1400
1436
|
* **Details**
|
|
1401
1437
|
*
|
|
1402
|
-
*
|
|
1403
|
-
*
|
|
1438
|
+
* After `endUnsafe`, a queue remains `Closing` while buffered messages are
|
|
1439
|
+
* drained, and its size continues to include those messages. A `Done` queue
|
|
1440
|
+
* reports a size of `0`. This unsafe operation reads the queue state directly
|
|
1441
|
+
* without Effect wrapping.
|
|
1404
1442
|
*
|
|
1405
1443
|
* **Example** (Checking queue size synchronously)
|
|
1406
1444
|
*
|
|
1407
|
-
* ```ts
|
|
1408
|
-
* import { Cause, Effect,
|
|
1445
|
+
* ```ts import.meta.vitest
|
|
1446
|
+
* import { Cause, Effect, Queue } from "effect"
|
|
1409
1447
|
*
|
|
1410
1448
|
* const program = Effect.gen(function*() {
|
|
1411
1449
|
* const queue = yield* Queue.bounded<number, Cause.Done>(10)
|
|
1412
1450
|
*
|
|
1413
1451
|
* // Check size of empty queue
|
|
1414
1452
|
* const size1 = Queue.sizeUnsafe(queue)
|
|
1415
|
-
* console.log(size1) // 0
|
|
1416
1453
|
*
|
|
1417
1454
|
* // Add some messages
|
|
1418
1455
|
* Queue.offerUnsafe(queue, 1)
|
|
@@ -1421,15 +1458,16 @@ export declare const isFull: <A, E>(self: Dequeue<A, E>) => Effect<boolean>;
|
|
|
1421
1458
|
*
|
|
1422
1459
|
* // Check size after adding messages
|
|
1423
1460
|
* const size2 = Queue.sizeUnsafe(queue)
|
|
1424
|
-
* console.log(size2) // 3
|
|
1425
1461
|
*
|
|
1426
1462
|
* // End the queue
|
|
1427
1463
|
* Queue.endUnsafe(queue)
|
|
1428
1464
|
*
|
|
1429
|
-
* //
|
|
1465
|
+
* // Ending retains the buffered size while the queue is Closing
|
|
1430
1466
|
* const size3 = Queue.sizeUnsafe(queue)
|
|
1431
|
-
*
|
|
1467
|
+
* return [size1, size2, size3]
|
|
1432
1468
|
* })
|
|
1469
|
+
*
|
|
1470
|
+
* await Effect.runPromise(program) // => [0, 3, 3]
|
|
1433
1471
|
* ```
|
|
1434
1472
|
*
|
|
1435
1473
|
* @category sizes
|
|
@@ -1446,22 +1484,25 @@ export declare const sizeUnsafe: <A, E>(self: Dequeue<A, E>) => number;
|
|
|
1446
1484
|
*
|
|
1447
1485
|
* **Example** (Checking fullness synchronously)
|
|
1448
1486
|
*
|
|
1449
|
-
* ```ts
|
|
1450
|
-
* import { Cause, Effect,
|
|
1487
|
+
* ```ts import.meta.vitest
|
|
1488
|
+
* import { Cause, Effect, Queue } from "effect"
|
|
1451
1489
|
*
|
|
1452
1490
|
* const program = Effect.gen(function*() {
|
|
1453
1491
|
* const queue = yield* Queue.bounded<number, Cause.Done>(3)
|
|
1454
1492
|
*
|
|
1455
|
-
*
|
|
1493
|
+
* const before = Queue.isFullUnsafe(queue)
|
|
1456
1494
|
*
|
|
1457
1495
|
* // Add some messages
|
|
1458
1496
|
* yield* Queue.offerAll(queue, [1, 2, 3])
|
|
1459
1497
|
*
|
|
1460
|
-
*
|
|
1498
|
+
* const after = Queue.isFullUnsafe(queue)
|
|
1499
|
+
* return [before, after]
|
|
1461
1500
|
* })
|
|
1501
|
+
*
|
|
1502
|
+
* await Effect.runPromise(program) // => [false, true]
|
|
1462
1503
|
* ```
|
|
1463
1504
|
*
|
|
1464
|
-
* @category
|
|
1505
|
+
* @category predicates
|
|
1465
1506
|
* @since 4.0.0
|
|
1466
1507
|
*/
|
|
1467
1508
|
export declare const isFullUnsafe: <A, E>(self: Dequeue<A, E>) => boolean;
|
|
@@ -1471,15 +1512,15 @@ export declare const isFullUnsafe: <A, E>(self: Dequeue<A, E>) => boolean;
|
|
|
1471
1512
|
*
|
|
1472
1513
|
* **Example** (Running effects into queues)
|
|
1473
1514
|
*
|
|
1474
|
-
* ```ts
|
|
1475
|
-
* import { Cause, Effect, Queue } from "effect"
|
|
1515
|
+
* ```ts import.meta.vitest
|
|
1516
|
+
* import { Cause, Effect, Exit, Queue } from "effect"
|
|
1476
1517
|
*
|
|
1477
1518
|
* const program = Effect.gen(function*() {
|
|
1478
1519
|
* const queue = yield* Queue.bounded<number, Cause.Done>(10)
|
|
1479
1520
|
*
|
|
1480
1521
|
* // Create an effect that succeeds
|
|
1481
1522
|
* const dataProcessing = Effect.gen(function*() {
|
|
1482
|
-
* yield* Effect.
|
|
1523
|
+
* yield* Effect.yieldNow
|
|
1483
1524
|
* return "Processing completed successfully"
|
|
1484
1525
|
* })
|
|
1485
1526
|
*
|
|
@@ -1489,11 +1530,11 @@ export declare const isFullUnsafe: <A, E>(self: Dequeue<A, E>) => boolean;
|
|
|
1489
1530
|
* const effectIntoQueue = Queue.into(queue)(dataProcessing)
|
|
1490
1531
|
*
|
|
1491
1532
|
* const wasCompleted = yield* effectIntoQueue
|
|
1492
|
-
*
|
|
1493
|
-
*
|
|
1494
|
-
* // Queue state now reflects the effect's outcome
|
|
1495
|
-
* console.log("Queue state:", queue.state._tag) // "Done"
|
|
1533
|
+
* const exit = yield* Effect.exit(Queue.take(queue))
|
|
1534
|
+
* return [wasCompleted, exit]
|
|
1496
1535
|
* })
|
|
1536
|
+
*
|
|
1537
|
+
* await Effect.runPromise(program) // => [true, Exit.fail(Cause.Done())]
|
|
1497
1538
|
* ```
|
|
1498
1539
|
*
|
|
1499
1540
|
* @category completion
|
|
@@ -1506,15 +1547,15 @@ export declare const into: {
|
|
|
1506
1547
|
*
|
|
1507
1548
|
* **Example** (Running effects into queues)
|
|
1508
1549
|
*
|
|
1509
|
-
* ```ts
|
|
1510
|
-
* import { Cause, Effect, Queue } from "effect"
|
|
1550
|
+
* ```ts import.meta.vitest
|
|
1551
|
+
* import { Cause, Effect, Exit, Queue } from "effect"
|
|
1511
1552
|
*
|
|
1512
1553
|
* const program = Effect.gen(function*() {
|
|
1513
1554
|
* const queue = yield* Queue.bounded<number, Cause.Done>(10)
|
|
1514
1555
|
*
|
|
1515
1556
|
* // Create an effect that succeeds
|
|
1516
1557
|
* const dataProcessing = Effect.gen(function*() {
|
|
1517
|
-
* yield* Effect.
|
|
1558
|
+
* yield* Effect.yieldNow
|
|
1518
1559
|
* return "Processing completed successfully"
|
|
1519
1560
|
* })
|
|
1520
1561
|
*
|
|
@@ -1524,11 +1565,11 @@ export declare const into: {
|
|
|
1524
1565
|
* const effectIntoQueue = Queue.into(queue)(dataProcessing)
|
|
1525
1566
|
*
|
|
1526
1567
|
* const wasCompleted = yield* effectIntoQueue
|
|
1527
|
-
*
|
|
1528
|
-
*
|
|
1529
|
-
* // Queue state now reflects the effect's outcome
|
|
1530
|
-
* console.log("Queue state:", queue.state._tag) // "Done"
|
|
1568
|
+
* const exit = yield* Effect.exit(Queue.take(queue))
|
|
1569
|
+
* return [wasCompleted, exit]
|
|
1531
1570
|
* })
|
|
1571
|
+
*
|
|
1572
|
+
* await Effect.runPromise(program) // => [true, Exit.fail(Cause.Done())]
|
|
1532
1573
|
* ```
|
|
1533
1574
|
*
|
|
1534
1575
|
* @category completion
|
|
@@ -1541,15 +1582,15 @@ export declare const into: {
|
|
|
1541
1582
|
*
|
|
1542
1583
|
* **Example** (Running effects into queues)
|
|
1543
1584
|
*
|
|
1544
|
-
* ```ts
|
|
1545
|
-
* import { Cause, Effect, Queue } from "effect"
|
|
1585
|
+
* ```ts import.meta.vitest
|
|
1586
|
+
* import { Cause, Effect, Exit, Queue } from "effect"
|
|
1546
1587
|
*
|
|
1547
1588
|
* const program = Effect.gen(function*() {
|
|
1548
1589
|
* const queue = yield* Queue.bounded<number, Cause.Done>(10)
|
|
1549
1590
|
*
|
|
1550
1591
|
* // Create an effect that succeeds
|
|
1551
1592
|
* const dataProcessing = Effect.gen(function*() {
|
|
1552
|
-
* yield* Effect.
|
|
1593
|
+
* yield* Effect.yieldNow
|
|
1553
1594
|
* return "Processing completed successfully"
|
|
1554
1595
|
* })
|
|
1555
1596
|
*
|
|
@@ -1559,11 +1600,11 @@ export declare const into: {
|
|
|
1559
1600
|
* const effectIntoQueue = Queue.into(queue)(dataProcessing)
|
|
1560
1601
|
*
|
|
1561
1602
|
* const wasCompleted = yield* effectIntoQueue
|
|
1562
|
-
*
|
|
1563
|
-
*
|
|
1564
|
-
* // Queue state now reflects the effect's outcome
|
|
1565
|
-
* console.log("Queue state:", queue.state._tag) // "Done"
|
|
1603
|
+
* const exit = yield* Effect.exit(Queue.take(queue))
|
|
1604
|
+
* return [wasCompleted, exit]
|
|
1566
1605
|
* })
|
|
1606
|
+
*
|
|
1607
|
+
* await Effect.runPromise(program) // => [true, Exit.fail(Cause.Done())]
|
|
1567
1608
|
* ```
|
|
1568
1609
|
*
|
|
1569
1610
|
* @category completion
|