effect 4.0.0-beta.71 → 4.0.0-beta.73
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 +65 -111
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +28 -44
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +66 -58
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +30 -26
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +21 -19
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +17 -15
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +15 -17
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +13 -13
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +2 -3
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +2 -3
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +9 -9
- package/dist/Cache.js +3 -3
- package/dist/Cause.d.ts +35 -39
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +31 -33
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +141 -99
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +56 -42
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +3 -3
- package/dist/ChannelSchema.js +1 -1
- package/dist/Chunk.d.ts +67 -54
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +33 -22
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +3 -3
- package/dist/Clock.js +1 -1
- package/dist/Combiner.d.ts +6 -10
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +6 -10
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +9 -10
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +7 -8
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +4 -4
- package/dist/ConfigProvider.js +4 -4
- package/dist/Console.d.ts +11 -7
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +11 -7
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +35 -35
- package/dist/Context.js +13 -13
- package/dist/Cron.d.ts +7 -6
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +7 -6
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +1 -1
- package/dist/Crypto.js +1 -1
- package/dist/Data.d.ts +26 -32
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +9 -8
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +164 -122
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +86 -66
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +6 -6
- package/dist/Deferred.js +4 -4
- package/dist/Duration.d.ts +39 -39
- package/dist/Duration.js +21 -21
- package/dist/Effect.d.ts +220 -309
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +115 -140
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +2 -2
- package/dist/Effectable.js +2 -2
- package/dist/Encoding.d.ts +13 -10
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +12 -9
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +3 -4
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +2 -3
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +5 -19
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +5 -14
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +14 -13
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +10 -9
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +7 -2
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +7 -2
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +25 -23
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +13 -13
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +4 -4
- package/dist/Fiber.js +2 -2
- package/dist/FiberHandle.d.ts +6 -6
- package/dist/FiberHandle.js +4 -4
- package/dist/FiberMap.d.ts +18 -18
- package/dist/FiberMap.js +8 -8
- package/dist/FiberSet.d.ts +21 -13
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -9
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +13 -9
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +11 -7
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +2 -2
- package/dist/Filter.js +2 -2
- package/dist/Formatter.d.ts +1 -3
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +1 -3
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +12 -12
- package/dist/Function.js +12 -12
- package/dist/Graph.d.ts +22 -22
- package/dist/Graph.js +12 -12
- package/dist/HKT.d.ts +5 -4
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +3 -3
- package/dist/Hash.js +3 -3
- package/dist/HashMap.d.ts +33 -35
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +11 -13
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +7 -9
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +3 -5
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +16 -16
- package/dist/HashSet.js +6 -6
- package/dist/Inspectable.d.ts +4 -4
- package/dist/Inspectable.js +4 -4
- package/dist/Iterable.d.ts +82 -56
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +28 -20
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +1 -1
- package/dist/JsonPatch.js +1 -1
- package/dist/JsonPointer.d.ts +3 -3
- package/dist/JsonPointer.js +3 -3
- package/dist/JsonSchema.d.ts +13 -23
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +13 -23
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +2 -2
- package/dist/Latch.js +2 -2
- package/dist/Layer.d.ts +47 -27
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +23 -15
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +1 -2
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +1 -2
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +3 -3
- package/dist/LogLevel.js +3 -3
- package/dist/Logger.d.ts +2 -2
- package/dist/Logger.js +2 -2
- package/dist/ManagedRuntime.d.ts +1 -1
- package/dist/ManagedRuntime.js +1 -1
- package/dist/Match.d.ts +32 -37
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +32 -37
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +35 -21
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +34 -20
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +13 -19
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +5 -7
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +4 -4
- package/dist/MutableHashSet.js +2 -2
- package/dist/MutableList.d.ts +16 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +15 -5
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +5 -4
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +3 -2
- package/dist/MutableRef.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +3 -3
- package/dist/NonEmptyIterable.js +1 -1
- package/dist/Number.d.ts +20 -18
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +16 -14
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +11 -18
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +7 -14
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +21 -24
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +9 -10
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +11 -38
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +11 -33
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +5 -5
- package/dist/Ordering.js +3 -3
- package/dist/PartitionedSemaphore.d.ts +4 -8
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +3 -7
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +4 -7
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +3 -6
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +2 -2
- package/dist/Pipeable.js +2 -2
- package/dist/PlatformError.d.ts +1 -1
- package/dist/PlatformError.js +1 -1
- package/dist/Predicate.d.ts +2 -81
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +2 -47
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +3 -3
- package/dist/PrimaryKey.js +1 -1
- package/dist/PubSub.d.ts +147 -46
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +93 -32
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +1 -1
- package/dist/Pull.js +1 -1
- package/dist/Queue.d.ts +40 -24
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +36 -20
- package/dist/Queue.js.map +1 -1
- package/dist/RcMap.d.ts +3 -3
- package/dist/RcMap.js +1 -1
- package/dist/Record.d.ts +79 -52
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +33 -22
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +7 -7
- package/dist/Redactable.js +7 -7
- package/dist/Reducer.d.ts +0 -2
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +0 -2
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +12 -12
- package/dist/Ref.js +10 -10
- package/dist/References.d.ts +20 -20
- package/dist/References.js +20 -20
- package/dist/RegExp.d.ts +2 -2
- package/dist/RegExp.js +2 -2
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +3 -3
- package/dist/RequestResolver.d.ts +11 -14
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +5 -6
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Result.d.ts +52 -34
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +44 -20
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +1 -1
- package/dist/Runtime.js +1 -1
- package/dist/Schedule.d.ts +20 -24
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +12 -12
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +3 -3
- package/dist/Scheduler.js +3 -3
- package/dist/Schema.d.ts +480 -210
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +410 -172
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +40 -32
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +40 -32
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +4 -6
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +4 -6
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +35 -47
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +31 -42
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +16 -12
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +16 -12
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +47 -62
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +44 -58
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +16 -18
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +13 -15
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/Scope.d.ts +51 -14
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +29 -8
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +12 -12
- package/dist/ScopedCache.js +4 -4
- package/dist/ScopedRef.d.ts +2 -2
- package/dist/ScopedRef.js +2 -2
- package/dist/Semaphore.d.ts +1 -1
- package/dist/Semaphore.js +1 -1
- package/dist/Sink.d.ts +36 -41
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +21 -24
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +5 -4
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +4 -3
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +264 -165
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +103 -62
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +48 -47
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +32 -29
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +35 -100
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +13 -38
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +268 -91
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +90 -31
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +1 -1
- package/dist/Symbol.js +1 -1
- package/dist/SynchronizedRef.d.ts +27 -27
- package/dist/SynchronizedRef.js +9 -9
- package/dist/Terminal.d.ts +8 -3
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +8 -3
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +25 -7
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +25 -7
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +21 -23
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +7 -7
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +26 -73
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +10 -31
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +2 -2
- package/dist/TxChunk.js +2 -2
- package/dist/TxHashMap.d.ts +20 -20
- package/dist/TxHashMap.js +8 -8
- package/dist/TxHashSet.d.ts +14 -14
- package/dist/TxHashSet.js +6 -6
- package/dist/TxPriorityQueue.d.ts +14 -6
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +12 -4
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +4 -4
- package/dist/TxPubSub.js +4 -4
- package/dist/TxQueue.d.ts +10 -10
- package/dist/TxQueue.js +10 -10
- package/dist/TxReentrantLock.d.ts +48 -12
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +38 -10
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +1 -1
- package/dist/TxRef.js +1 -1
- package/dist/TxSubscriptionRef.d.ts +1 -1
- package/dist/TxSubscriptionRef.js +1 -1
- package/dist/Types.d.ts +8 -7
- package/dist/Types.d.ts.map +1 -1
- package/dist/Unify.d.ts +19 -19
- package/dist/Utils.d.ts +1 -2
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +1 -2
- package/dist/Utils.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +3 -11
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +3 -11
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +10 -5
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +10 -5
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +20 -5
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +20 -5
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +5 -4
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +4 -3
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +7 -2
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +7 -2
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +10 -5
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +10 -5
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +291 -169
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +270 -147
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +49 -13
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +21 -9
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +1 -1
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Response.d.ts +1 -1
- package/dist/unstable/ai/Response.js +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +7 -2
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +7 -2
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +3 -3
- package/dist/unstable/ai/Tool.js +3 -3
- package/dist/unstable/cli/CliError.d.ts +3 -3
- package/dist/unstable/cli/CliError.js +3 -3
- package/dist/unstable/cli/CliOutput.d.ts +1 -1
- package/dist/unstable/cli/Command.d.ts +3 -3
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Flag.d.ts +9 -9
- package/dist/unstable/cli/Flag.js +3 -3
- package/dist/unstable/cli/GlobalFlag.d.ts +13 -6
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +13 -6
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +2 -2
- package/dist/unstable/cli/Param.js +2 -2
- package/dist/unstable/cli/Primitive.d.ts +1 -1
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -6
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +26 -9
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +5 -5
- package/dist/unstable/cluster/ClusterMetrics.js +5 -5
- package/dist/unstable/cluster/ClusterSchema.d.ts +11 -2
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +11 -2
- 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 +49 -10
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +6 -1
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js +6 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +15 -5
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +15 -5
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +6 -6
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +9 -8
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +11 -11
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +11 -11
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -8
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -8
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +10 -10
- package/dist/unstable/cluster/Message.js +10 -10
- package/dist/unstable/cluster/MessageStorage.d.ts +7 -7
- package/dist/unstable/cluster/MessageStorage.js +6 -6
- package/dist/unstable/cluster/Reply.d.ts +18 -8
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +18 -8
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +1 -1
- package/dist/unstable/cluster/Runner.js +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +7 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +7 -1
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +4 -4
- package/dist/unstable/cluster/RunnerHealth.js +4 -4
- package/dist/unstable/cluster/RunnerServer.d.ts +4 -3
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +4 -3
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +2 -2
- package/dist/unstable/cluster/ShardId.js +2 -2
- package/dist/unstable/cluster/Sharding.d.ts +8 -3
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +8 -3
- 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/ShardingRegistrationEvent.d.ts +1 -2
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +1 -2
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
- package/dist/unstable/cluster/SingleRunner.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +6 -5
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +6 -5
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +6 -1
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +6 -1
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +1 -1
- package/dist/unstable/cluster/TestRunner.js +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +2 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +2 -1
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +3 -3
- package/dist/unstable/encoding/Sse.js +3 -3
- package/dist/unstable/eventlog/EventGroup.d.ts +1 -1
- package/dist/unstable/eventlog/EventGroup.js +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
- package/dist/unstable/eventlog/EventJournal.js +5 -5
- package/dist/unstable/eventlog/EventLog.d.ts +11 -10
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +9 -8
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +8 -3
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +28 -28
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +27 -27
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +14 -4
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +14 -4
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +7 -2
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +7 -2
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +7 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +7 -2
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +37 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +37 -7
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +33 -7
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +33 -7
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +40 -39
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -17
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +6 -1
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +6 -1
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +8 -7
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +6 -5
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +6 -2
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +6 -2
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +29 -9
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +15 -5
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts +15 -14
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +12 -11
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +1 -1
- package/dist/unstable/http/HttpClientRequest.js +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +3 -3
- package/dist/unstable/http/HttpEffect.js +3 -3
- package/dist/unstable/http/HttpMethod.d.ts +16 -5
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +16 -5
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +18 -13
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +14 -9
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +4 -4
- package/dist/unstable/http/HttpServer.js +4 -4
- package/dist/unstable/http/HttpServerError.d.ts +9 -9
- package/dist/unstable/http/HttpServerError.js +7 -7
- package/dist/unstable/http/HttpServerRequest.d.ts +20 -5
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +20 -5
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +24 -24
- package/dist/unstable/http/HttpServerResponse.js +8 -8
- package/dist/unstable/http/HttpTraceContext.d.ts +4 -4
- package/dist/unstable/http/HttpTraceContext.js +4 -4
- package/dist/unstable/http/Multipart.d.ts +2 -2
- package/dist/unstable/http/Multipart.js +2 -2
- package/dist/unstable/http/Url.d.ts +14 -17
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +5 -6
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +10 -10
- package/dist/unstable/http/UrlParams.js +6 -6
- package/dist/unstable/httpapi/HttpApi.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApi.js +2 -2
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +3 -3
- package/dist/unstable/httpapi/HttpApiBuilder.js +4 -5
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApiError.js +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +4 -7
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +3 -6
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +27 -5
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +26 -3
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +7 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +9 -3
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +1 -1
- package/dist/unstable/observability/OtlpLogger.js +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +2 -2
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- 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 +6 -1
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +8 -3
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +8 -3
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +10 -5
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +9 -4
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +20 -10
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +19 -9
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +14 -14
- package/dist/unstable/process/ChildProcess.js +7 -7
- package/dist/unstable/process/ChildProcessSpawner.d.ts +2 -2
- package/dist/unstable/process/ChildProcessSpawner.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +36 -5
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +14 -3
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +45 -13
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +34 -10
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +7 -2
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +7 -2
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +6 -1
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +6 -1
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +6 -1
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +18 -14
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +15 -11
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts +27 -12
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +27 -12
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
- package/dist/unstable/rpc/RpcClientError.js +2 -2
- package/dist/unstable/rpc/RpcMessage.d.ts +5 -5
- package/dist/unstable/rpc/RpcMessage.js +4 -4
- package/dist/unstable/rpc/RpcSchema.d.ts +1 -1
- package/dist/unstable/rpc/RpcSchema.js +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +19 -12
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +19 -12
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +22 -17
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +22 -17
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +32 -33
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +25 -26
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +1 -1
- package/dist/unstable/schema/VariantSchema.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +8 -2
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +8 -2
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +2 -2
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +7 -2
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +7 -2
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/SqlError.d.ts +2 -2
- package/dist/unstable/sql/SqlError.js +2 -2
- package/dist/unstable/sql/SqlResolver.d.ts +3 -3
- package/dist/unstable/sql/SqlResolver.js +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +19 -4
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +19 -4
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +3 -6
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +3 -6
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workers/WorkerError.d.ts +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +2 -2
- package/dist/unstable/workflow/DurableClock.js +2 -2
- package/dist/unstable/workflow/DurableDeferred.d.ts +12 -12
- package/dist/unstable/workflow/DurableDeferred.js +7 -7
- package/dist/unstable/workflow/DurableQueue.d.ts +3 -3
- package/dist/unstable/workflow/DurableQueue.js +3 -3
- package/dist/unstable/workflow/Workflow.d.ts +22 -23
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +17 -18
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +26 -8
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +25 -7
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +65 -113
- package/src/BigDecimal.ts +66 -58
- package/src/BigInt.ts +21 -19
- package/src/Boolean.ts +15 -17
- package/src/Brand.ts +2 -3
- package/src/Cache.ts +9 -9
- package/src/Cause.ts +35 -39
- package/src/Channel.ts +149 -107
- package/src/ChannelSchema.ts +3 -3
- package/src/Chunk.ts +67 -54
- package/src/Clock.ts +3 -3
- package/src/Combiner.ts +6 -10
- package/src/Config.ts +9 -10
- package/src/ConfigProvider.ts +4 -4
- package/src/Console.ts +11 -7
- package/src/Context.ts +36 -36
- package/src/Cron.ts +7 -6
- package/src/Crypto.ts +1 -1
- package/src/Data.ts +26 -32
- package/src/DateTime.ts +164 -122
- package/src/Deferred.ts +6 -6
- package/src/Duration.ts +39 -39
- package/src/Effect.ts +220 -309
- package/src/Effectable.ts +2 -2
- package/src/Encoding.ts +13 -10
- package/src/Equal.ts +3 -4
- package/src/Equivalence.ts +5 -19
- package/src/ErrorReporter.ts +14 -13
- package/src/ExecutionPlan.ts +7 -2
- package/src/Exit.ts +25 -23
- package/src/Fiber.ts +4 -4
- package/src/FiberHandle.ts +6 -6
- package/src/FiberMap.ts +20 -20
- package/src/FiberSet.ts +21 -13
- package/src/FileSystem.ts +13 -9
- package/src/Filter.ts +2 -2
- package/src/Formatter.ts +1 -3
- package/src/Function.ts +12 -12
- package/src/Graph.ts +22 -22
- package/src/HKT.ts +5 -4
- package/src/Hash.ts +3 -3
- package/src/HashMap.ts +33 -35
- package/src/HashRing.ts +7 -9
- package/src/HashSet.ts +16 -16
- package/src/Inspectable.ts +4 -4
- package/src/Iterable.ts +82 -56
- package/src/JsonPatch.ts +1 -1
- package/src/JsonPointer.ts +3 -3
- package/src/JsonSchema.ts +13 -23
- package/src/Latch.ts +2 -2
- package/src/Layer.ts +47 -27
- package/src/LayerMap.ts +1 -2
- package/src/LogLevel.ts +3 -3
- package/src/Logger.ts +6 -6
- package/src/ManagedRuntime.ts +1 -1
- package/src/Match.ts +32 -37
- package/src/Metric.ts +35 -21
- package/src/MutableHashMap.ts +21 -31
- package/src/MutableHashSet.ts +4 -4
- package/src/MutableList.ts +16 -6
- package/src/MutableRef.ts +5 -4
- package/src/NonEmptyIterable.ts +3 -3
- package/src/Number.ts +20 -18
- package/src/Optic.ts +11 -18
- package/src/Option.ts +21 -24
- package/src/Order.ts +11 -38
- package/src/Ordering.ts +5 -5
- package/src/PartitionedSemaphore.ts +4 -8
- package/src/Path.ts +4 -7
- package/src/Pipeable.ts +2 -2
- package/src/PlatformError.ts +1 -1
- package/src/Predicate.ts +2 -81
- package/src/PrimaryKey.ts +3 -3
- package/src/PubSub.ts +147 -46
- package/src/Pull.ts +1 -1
- package/src/Queue.ts +40 -24
- package/src/RcMap.ts +3 -3
- package/src/Record.ts +79 -52
- package/src/Redactable.ts +7 -7
- package/src/Reducer.ts +0 -2
- package/src/Ref.ts +32 -32
- package/src/References.ts +20 -20
- package/src/RegExp.ts +2 -2
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +11 -14
- package/src/Result.ts +52 -34
- package/src/Runtime.ts +1 -1
- package/src/Schedule.ts +28 -36
- package/src/Scheduler.ts +3 -3
- package/src/Schema.ts +480 -210
- package/src/SchemaAST.ts +40 -32
- package/src/SchemaGetter.ts +4 -6
- package/src/SchemaIssue.ts +35 -47
- package/src/SchemaParser.ts +16 -12
- package/src/SchemaRepresentation.ts +47 -62
- package/src/SchemaTransformation.ts +16 -18
- package/src/Scope.ts +51 -14
- package/src/ScopedCache.ts +14 -14
- package/src/ScopedRef.ts +2 -2
- package/src/Semaphore.ts +1 -1
- package/src/Sink.ts +36 -41
- package/src/Stdio.ts +5 -4
- package/src/Stream.ts +275 -176
- package/src/String.ts +50 -49
- package/src/Struct.ts +35 -100
- package/src/SubscriptionRef.ts +268 -91
- package/src/Symbol.ts +1 -1
- package/src/SynchronizedRef.ts +27 -27
- package/src/Terminal.ts +8 -3
- package/src/Tracer.ts +25 -7
- package/src/Trie.ts +21 -23
- package/src/Tuple.ts +26 -73
- package/src/TxChunk.ts +2 -2
- package/src/TxHashMap.ts +22 -22
- package/src/TxHashSet.ts +22 -22
- package/src/TxPriorityQueue.ts +14 -6
- package/src/TxPubSub.ts +4 -4
- package/src/TxQueue.ts +10 -10
- package/src/TxReentrantLock.ts +48 -12
- package/src/TxRef.ts +1 -1
- package/src/TxSubscriptionRef.ts +1 -1
- package/src/Types.ts +8 -7
- package/src/Unify.ts +19 -19
- package/src/Utils.ts +1 -2
- package/src/testing/TestSchema.ts +3 -11
- package/src/unstable/ai/AiError.ts +10 -5
- package/src/unstable/ai/Chat.ts +20 -5
- package/src/unstable/ai/EmbeddingModel.ts +5 -4
- package/src/unstable/ai/IdGenerator.ts +7 -2
- package/src/unstable/ai/LanguageModel.ts +10 -5
- package/src/unstable/ai/McpSchema.ts +291 -169
- package/src/unstable/ai/McpServer.ts +49 -13
- package/src/unstable/ai/Prompt.ts +1 -1
- package/src/unstable/ai/Response.ts +1 -1
- package/src/unstable/ai/Tokenizer.ts +7 -2
- package/src/unstable/ai/Tool.ts +3 -3
- package/src/unstable/cli/CliError.ts +3 -3
- package/src/unstable/cli/CliOutput.ts +1 -1
- package/src/unstable/cli/Command.ts +3 -3
- package/src/unstable/cli/Flag.ts +9 -9
- package/src/unstable/cli/GlobalFlag.ts +13 -6
- package/src/unstable/cli/Param.ts +2 -2
- package/src/unstable/cli/Primitive.ts +1 -1
- package/src/unstable/cli/Prompt.ts +37 -13
- package/src/unstable/cli/internal/parser.ts +1 -1
- package/src/unstable/cluster/ClusterMetrics.ts +5 -5
- package/src/unstable/cluster/ClusterSchema.ts +11 -2
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +63 -11
- package/src/unstable/cluster/DeliverAt.ts +6 -1
- package/src/unstable/cluster/Entity.ts +15 -5
- package/src/unstable/cluster/EntityResource.ts +13 -10
- package/src/unstable/cluster/Envelope.ts +11 -11
- package/src/unstable/cluster/HttpRunner.ts +16 -8
- package/src/unstable/cluster/Message.ts +10 -10
- package/src/unstable/cluster/MessageStorage.ts +7 -7
- package/src/unstable/cluster/Reply.ts +18 -8
- package/src/unstable/cluster/Runner.ts +1 -1
- package/src/unstable/cluster/RunnerAddress.ts +7 -1
- package/src/unstable/cluster/RunnerHealth.ts +4 -4
- package/src/unstable/cluster/RunnerServer.ts +4 -3
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/ShardId.ts +2 -2
- package/src/unstable/cluster/Sharding.ts +8 -3
- package/src/unstable/cluster/ShardingConfig.ts +3 -3
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +1 -2
- package/src/unstable/cluster/SingleRunner.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +6 -5
- package/src/unstable/cluster/SocketRunner.ts +6 -1
- package/src/unstable/cluster/TestRunner.ts +1 -1
- package/src/unstable/encoding/Msgpack.ts +2 -1
- package/src/unstable/encoding/Sse.ts +3 -3
- package/src/unstable/eventlog/EventGroup.ts +1 -1
- package/src/unstable/eventlog/EventJournal.ts +7 -7
- package/src/unstable/eventlog/EventLog.ts +11 -10
- package/src/unstable/eventlog/EventLogEncryption.ts +8 -3
- package/src/unstable/eventlog/EventLogMessage.ts +28 -28
- package/src/unstable/eventlog/EventLogRemote.ts +14 -4
- package/src/unstable/eventlog/EventLogServer.ts +7 -2
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +7 -2
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +37 -7
- package/src/unstable/eventlog/EventLogSessionAuth.ts +33 -7
- package/src/unstable/http/Cookies.ts +40 -39
- package/src/unstable/http/FetchHttpClient.ts +6 -1
- package/src/unstable/http/Headers.ts +10 -9
- package/src/unstable/http/HttpBody.ts +6 -2
- package/src/unstable/http/HttpClient.ts +29 -9
- package/src/unstable/http/HttpClientError.ts +15 -14
- package/src/unstable/http/HttpClientRequest.ts +1 -1
- package/src/unstable/http/HttpEffect.ts +3 -3
- package/src/unstable/http/HttpMethod.ts +16 -5
- package/src/unstable/http/HttpRouter.ts +18 -13
- package/src/unstable/http/HttpServer.ts +4 -4
- package/src/unstable/http/HttpServerError.ts +9 -9
- package/src/unstable/http/HttpServerRequest.ts +20 -5
- package/src/unstable/http/HttpServerResponse.ts +24 -24
- package/src/unstable/http/HttpTraceContext.ts +4 -4
- package/src/unstable/http/Multipart.ts +2 -2
- package/src/unstable/http/Url.ts +14 -17
- package/src/unstable/http/UrlParams.ts +10 -10
- package/src/unstable/httpapi/HttpApi.ts +2 -2
- package/src/unstable/httpapi/HttpApiBuilder.ts +5 -6
- package/src/unstable/httpapi/HttpApiError.ts +2 -2
- package/src/unstable/httpapi/HttpApiSchema.ts +4 -7
- package/src/unstable/httpapi/HttpApiSecurity.ts +36 -8
- package/src/unstable/httpapi/HttpApiTest.ts +1 -1
- package/src/unstable/httpapi/OpenApi.ts +9 -3
- package/src/unstable/observability/OtlpLogger.ts +1 -1
- package/src/unstable/observability/PrometheusMetrics.ts +2 -2
- package/src/unstable/persistence/KeyValueStore.ts +8 -3
- package/src/unstable/persistence/Persistable.ts +8 -3
- package/src/unstable/persistence/PersistedQueue.ts +10 -5
- package/src/unstable/persistence/RateLimiter.ts +20 -10
- package/src/unstable/process/ChildProcess.ts +14 -14
- package/src/unstable/process/ChildProcessSpawner.ts +2 -2
- package/src/unstable/reactivity/AsyncResult.ts +58 -7
- package/src/unstable/reactivity/Atom.ts +53 -13
- package/src/unstable/reactivity/AtomRegistry.ts +7 -2
- package/src/unstable/reactivity/Hydration.ts +6 -1
- package/src/unstable/reactivity/Reactivity.ts +6 -1
- package/src/unstable/rpc/Rpc.ts +18 -14
- package/src/unstable/rpc/RpcClient.ts +27 -12
- package/src/unstable/rpc/RpcClientError.ts +2 -2
- package/src/unstable/rpc/RpcMessage.ts +5 -5
- package/src/unstable/rpc/RpcSchema.ts +1 -1
- package/src/unstable/rpc/RpcSerialization.ts +19 -12
- package/src/unstable/rpc/RpcServer.ts +22 -17
- package/src/unstable/schema/Model.ts +32 -33
- package/src/unstable/schema/VariantSchema.ts +1 -1
- package/src/unstable/socket/Socket.ts +8 -2
- package/src/unstable/socket/SocketServer.ts +2 -2
- package/src/unstable/sql/SqlClient.ts +7 -2
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/SqlError.ts +2 -2
- package/src/unstable/sql/SqlResolver.ts +3 -3
- package/src/unstable/sql/SqlSchema.ts +19 -4
- package/src/unstable/workers/Transferable.ts +3 -6
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workers/WorkerError.ts +1 -1
- package/src/unstable/workflow/DurableClock.ts +2 -2
- package/src/unstable/workflow/DurableDeferred.ts +12 -12
- package/src/unstable/workflow/DurableQueue.ts +3 -3
- package/src/unstable/workflow/Workflow.ts +22 -23
- package/src/unstable/workflow/WorkflowEngine.ts +26 -8
package/dist/Exit.d.ts
CHANGED
|
@@ -134,8 +134,9 @@ export declare namespace Exit {
|
|
|
134
134
|
*
|
|
135
135
|
* **When to use**
|
|
136
136
|
*
|
|
137
|
-
* Use when
|
|
138
|
-
*
|
|
137
|
+
* Use when working with the successful branch of an `Exit` after narrowing
|
|
138
|
+
* with {@link isSuccess}. Access the value via the `value` property after
|
|
139
|
+
* narrowing.
|
|
139
140
|
*
|
|
140
141
|
* **Example** (Accessing the success value)
|
|
141
142
|
*
|
|
@@ -165,8 +166,9 @@ export interface Success<out A, out E = never> extends Exit.Proto<A, E> {
|
|
|
165
166
|
*
|
|
166
167
|
* **When to use**
|
|
167
168
|
*
|
|
168
|
-
* Use when
|
|
169
|
-
*
|
|
169
|
+
* Use when working with the failed branch of an `Exit` after narrowing with
|
|
170
|
+
* {@link isFailure}. Access the cause via the `cause` property after
|
|
171
|
+
* narrowing.
|
|
170
172
|
*
|
|
171
173
|
* **Details**
|
|
172
174
|
*
|
|
@@ -196,7 +198,7 @@ export interface Failure<out A, out E> extends Exit.Proto<A, E> {
|
|
|
196
198
|
readonly cause: Cause.Cause<E>;
|
|
197
199
|
}
|
|
198
200
|
/**
|
|
199
|
-
*
|
|
201
|
+
* Checks whether an unknown value is an Exit.
|
|
200
202
|
*
|
|
201
203
|
* **When to use**
|
|
202
204
|
*
|
|
@@ -376,7 +378,7 @@ export declare const interrupt: (fiberId?: number | undefined) => Exit<never>;
|
|
|
376
378
|
declare const void_: Exit<void>;
|
|
377
379
|
export {
|
|
378
380
|
/**
|
|
379
|
-
*
|
|
381
|
+
* Provides a pre-allocated successful Exit with a `void` value.
|
|
380
382
|
*
|
|
381
383
|
* **When to use**
|
|
382
384
|
*
|
|
@@ -404,7 +406,7 @@ export {
|
|
|
404
406
|
*/
|
|
405
407
|
void_ as void };
|
|
406
408
|
/**
|
|
407
|
-
*
|
|
409
|
+
* Checks whether an Exit is a Success.
|
|
408
410
|
*
|
|
409
411
|
* **When to use**
|
|
410
412
|
*
|
|
@@ -431,7 +433,7 @@ void_ as void };
|
|
|
431
433
|
*/
|
|
432
434
|
export declare const isSuccess: <A, E>(self: Exit<A, E>) => self is Success<A, E>;
|
|
433
435
|
/**
|
|
434
|
-
*
|
|
436
|
+
* Checks whether an Exit is a Failure.
|
|
435
437
|
*
|
|
436
438
|
* **When to use**
|
|
437
439
|
*
|
|
@@ -458,7 +460,7 @@ export declare const isSuccess: <A, E>(self: Exit<A, E>) => self is Success<A, E
|
|
|
458
460
|
*/
|
|
459
461
|
export declare const isFailure: <A, E>(self: Exit<A, E>) => self is Failure<A, E>;
|
|
460
462
|
/**
|
|
461
|
-
*
|
|
463
|
+
* Checks whether a failed Exit contains typed errors (Fail reasons).
|
|
462
464
|
*
|
|
463
465
|
* **When to use**
|
|
464
466
|
*
|
|
@@ -489,7 +491,7 @@ export declare const isFailure: <A, E>(self: Exit<A, E>) => self is Failure<A, E
|
|
|
489
491
|
*/
|
|
490
492
|
export declare const hasFails: <A, E>(self: Exit<A, E>) => self is Failure<A, E>;
|
|
491
493
|
/**
|
|
492
|
-
*
|
|
494
|
+
* Checks whether a failed Exit contains defects (Die reasons).
|
|
493
495
|
*
|
|
494
496
|
* **When to use**
|
|
495
497
|
*
|
|
@@ -520,7 +522,7 @@ export declare const hasFails: <A, E>(self: Exit<A, E>) => self is Failure<A, E>
|
|
|
520
522
|
*/
|
|
521
523
|
export declare const hasDies: <A, E>(self: Exit<A, E>) => self is Failure<A, E>;
|
|
522
524
|
/**
|
|
523
|
-
*
|
|
525
|
+
* Checks whether a failed Exit contains interruptions (Interrupt reasons).
|
|
524
526
|
*
|
|
525
527
|
* **When to use**
|
|
526
528
|
*
|
|
@@ -556,7 +558,7 @@ export declare const hasInterrupts: <A, E>(self: Exit<A, E>) => self is Failure<
|
|
|
556
558
|
* **When to use**
|
|
557
559
|
*
|
|
558
560
|
* Use when composing Exit checks with `Filter` or other `Result`-based
|
|
559
|
-
* filtering APIs.
|
|
561
|
+
* filtering APIs and you want the full Success wrapper.
|
|
560
562
|
*
|
|
561
563
|
* **Details**
|
|
562
564
|
*
|
|
@@ -629,7 +631,7 @@ export declare const filterValue: <A, E>(self: Exit<A, E>) => Result.Result<A, F
|
|
|
629
631
|
* **When to use**
|
|
630
632
|
*
|
|
631
633
|
* Use when composing Exit checks with `Filter` or other `Result`-based
|
|
632
|
-
* filtering APIs.
|
|
634
|
+
* filtering APIs and you want the full Failure wrapper.
|
|
633
635
|
*
|
|
634
636
|
* **Details**
|
|
635
637
|
*
|
|
@@ -893,7 +895,7 @@ export declare const match: {
|
|
|
893
895
|
*
|
|
894
896
|
* - Has no effect on failures, which pass through unchanged
|
|
895
897
|
*
|
|
896
|
-
* Allocates a new Exit if successful.
|
|
898
|
+
* Allocates a new Exit if successful.
|
|
897
899
|
* Supports both curried and direct call styles.
|
|
898
900
|
*
|
|
899
901
|
* **Example** (Mapping over a success)
|
|
@@ -924,7 +926,7 @@ export declare const map: {
|
|
|
924
926
|
*
|
|
925
927
|
* - Has no effect on failures, which pass through unchanged
|
|
926
928
|
*
|
|
927
|
-
* Allocates a new Exit if successful.
|
|
929
|
+
* Allocates a new Exit if successful.
|
|
928
930
|
* Supports both curried and direct call styles.
|
|
929
931
|
*
|
|
930
932
|
* **Example** (Mapping over a success)
|
|
@@ -955,7 +957,7 @@ export declare const map: {
|
|
|
955
957
|
*
|
|
956
958
|
* - Has no effect on failures, which pass through unchanged
|
|
957
959
|
*
|
|
958
|
-
* Allocates a new Exit if successful.
|
|
960
|
+
* Allocates a new Exit if successful.
|
|
959
961
|
* Supports both curried and direct call styles.
|
|
960
962
|
*
|
|
961
963
|
* **Example** (Mapping over a success)
|
|
@@ -987,7 +989,7 @@ export declare const map: {
|
|
|
987
989
|
*
|
|
988
990
|
* - Has no effect on successes, which pass through unchanged
|
|
989
991
|
*
|
|
990
|
-
* Allocates a new Exit if the error is transformed.
|
|
992
|
+
* Allocates a new Exit if the error is transformed.
|
|
991
993
|
* Supports both curried and direct call styles.
|
|
992
994
|
*
|
|
993
995
|
* **Gotchas**
|
|
@@ -1025,7 +1027,7 @@ export declare const mapError: {
|
|
|
1025
1027
|
*
|
|
1026
1028
|
* - Has no effect on successes, which pass through unchanged
|
|
1027
1029
|
*
|
|
1028
|
-
* Allocates a new Exit if the error is transformed.
|
|
1030
|
+
* Allocates a new Exit if the error is transformed.
|
|
1029
1031
|
* Supports both curried and direct call styles.
|
|
1030
1032
|
*
|
|
1031
1033
|
* **Gotchas**
|
|
@@ -1063,7 +1065,7 @@ export declare const mapError: {
|
|
|
1063
1065
|
*
|
|
1064
1066
|
* - Has no effect on successes, which pass through unchanged
|
|
1065
1067
|
*
|
|
1066
|
-
* Allocates a new Exit if the error is transformed.
|
|
1068
|
+
* Allocates a new Exit if the error is transformed.
|
|
1067
1069
|
* Supports both curried and direct call styles.
|
|
1068
1070
|
*
|
|
1069
1071
|
* **Gotchas**
|
|
@@ -1103,7 +1105,7 @@ export declare const mapError: {
|
|
|
1103
1105
|
* - `onSuccess` transforms the value if the Exit is a Success
|
|
1104
1106
|
* - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason
|
|
1105
1107
|
*
|
|
1106
|
-
* Allocates a new Exit.
|
|
1108
|
+
* Allocates a new Exit.
|
|
1107
1109
|
* Supports both curried and direct call styles.
|
|
1108
1110
|
*
|
|
1109
1111
|
* **Gotchas**
|
|
@@ -1145,7 +1147,7 @@ export declare const mapBoth: {
|
|
|
1145
1147
|
* - `onSuccess` transforms the value if the Exit is a Success
|
|
1146
1148
|
* - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason
|
|
1147
1149
|
*
|
|
1148
|
-
* Allocates a new Exit.
|
|
1150
|
+
* Allocates a new Exit.
|
|
1149
1151
|
* Supports both curried and direct call styles.
|
|
1150
1152
|
*
|
|
1151
1153
|
* **Gotchas**
|
|
@@ -1190,7 +1192,7 @@ export declare const mapBoth: {
|
|
|
1190
1192
|
* - `onSuccess` transforms the value if the Exit is a Success
|
|
1191
1193
|
* - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason
|
|
1192
1194
|
*
|
|
1193
|
-
* Allocates a new Exit.
|
|
1195
|
+
* Allocates a new Exit.
|
|
1194
1196
|
* Supports both curried and direct call styles.
|
|
1195
1197
|
*
|
|
1196
1198
|
* **Gotchas**
|
|
@@ -1235,7 +1237,7 @@ export declare const mapBoth: {
|
|
|
1235
1237
|
*
|
|
1236
1238
|
* - Failures pass through unchanged
|
|
1237
1239
|
*
|
|
1238
|
-
* Allocates a new Exit if successful.
|
|
1240
|
+
* Allocates a new Exit if successful.
|
|
1239
1241
|
*
|
|
1240
1242
|
* **Example** (Discarding the success value)
|
|
1241
1243
|
*
|
package/dist/Exit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exit.d.ts","sourceRoot":"","sources":["../src/Exit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAA;AACxC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAG1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,QAAA,MAAM,MAAM,gBAAkB,CAAA;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAE9D;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B;;;;;;;;;;;;;OAaG;IACH,UAAiB,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,KAAK,CAAE,SAAQ,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;QACtE,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,MAAM,C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SAAS,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EACzD,KAAK,EAAE,CAAC,KACL,IAAI,CAAC,IAAI,EAAE,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,CAAwB,CAAA;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAyB,CAAA;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAuB,CAAA;AAE/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAA8B,CAAA"}
|
package/dist/Exit.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as core from "./internal/core.js";
|
|
|
2
2
|
import * as effect from "./internal/effect.js";
|
|
3
3
|
const TypeId = core.ExitTypeId;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Checks whether an unknown value is an Exit.
|
|
6
6
|
*
|
|
7
7
|
* **When to use**
|
|
8
8
|
*
|
|
@@ -182,7 +182,7 @@ export const interrupt = effect.exitInterrupt;
|
|
|
182
182
|
const void_ = effect.exitVoid;
|
|
183
183
|
export {
|
|
184
184
|
/**
|
|
185
|
-
*
|
|
185
|
+
* Provides a pre-allocated successful Exit with a `void` value.
|
|
186
186
|
*
|
|
187
187
|
* **When to use**
|
|
188
188
|
*
|
|
@@ -210,7 +210,7 @@ export {
|
|
|
210
210
|
*/
|
|
211
211
|
void_ as void };
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
213
|
+
* Checks whether an Exit is a Success.
|
|
214
214
|
*
|
|
215
215
|
* **When to use**
|
|
216
216
|
*
|
|
@@ -237,7 +237,7 @@ void_ as void };
|
|
|
237
237
|
*/
|
|
238
238
|
export const isSuccess = effect.exitIsSuccess;
|
|
239
239
|
/**
|
|
240
|
-
*
|
|
240
|
+
* Checks whether an Exit is a Failure.
|
|
241
241
|
*
|
|
242
242
|
* **When to use**
|
|
243
243
|
*
|
|
@@ -264,7 +264,7 @@ export const isSuccess = effect.exitIsSuccess;
|
|
|
264
264
|
*/
|
|
265
265
|
export const isFailure = effect.exitIsFailure;
|
|
266
266
|
/**
|
|
267
|
-
*
|
|
267
|
+
* Checks whether a failed Exit contains typed errors (Fail reasons).
|
|
268
268
|
*
|
|
269
269
|
* **When to use**
|
|
270
270
|
*
|
|
@@ -295,7 +295,7 @@ export const isFailure = effect.exitIsFailure;
|
|
|
295
295
|
*/
|
|
296
296
|
export const hasFails = effect.exitHasFails;
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
298
|
+
* Checks whether a failed Exit contains defects (Die reasons).
|
|
299
299
|
*
|
|
300
300
|
* **When to use**
|
|
301
301
|
*
|
|
@@ -326,7 +326,7 @@ export const hasFails = effect.exitHasFails;
|
|
|
326
326
|
*/
|
|
327
327
|
export const hasDies = effect.exitHasDies;
|
|
328
328
|
/**
|
|
329
|
-
*
|
|
329
|
+
* Checks whether a failed Exit contains interruptions (Interrupt reasons).
|
|
330
330
|
*
|
|
331
331
|
* **When to use**
|
|
332
332
|
*
|
|
@@ -362,7 +362,7 @@ export const hasInterrupts = effect.exitHasInterrupts;
|
|
|
362
362
|
* **When to use**
|
|
363
363
|
*
|
|
364
364
|
* Use when composing Exit checks with `Filter` or other `Result`-based
|
|
365
|
-
* filtering APIs.
|
|
365
|
+
* filtering APIs and you want the full Success wrapper.
|
|
366
366
|
*
|
|
367
367
|
* **Details**
|
|
368
368
|
*
|
|
@@ -435,7 +435,7 @@ export const filterValue = effect.exitFilterValue;
|
|
|
435
435
|
* **When to use**
|
|
436
436
|
*
|
|
437
437
|
* Use when composing Exit checks with `Filter` or other `Result`-based
|
|
438
|
-
* filtering APIs.
|
|
438
|
+
* filtering APIs and you want the full Failure wrapper.
|
|
439
439
|
*
|
|
440
440
|
* **Details**
|
|
441
441
|
*
|
|
@@ -624,7 +624,7 @@ export const match = effect.exitMatch;
|
|
|
624
624
|
*
|
|
625
625
|
* - Has no effect on failures, which pass through unchanged
|
|
626
626
|
*
|
|
627
|
-
* Allocates a new Exit if successful.
|
|
627
|
+
* Allocates a new Exit if successful.
|
|
628
628
|
* Supports both curried and direct call styles.
|
|
629
629
|
*
|
|
630
630
|
* **Example** (Mapping over a success)
|
|
@@ -655,7 +655,7 @@ export const map = effect.exitMap;
|
|
|
655
655
|
*
|
|
656
656
|
* - Has no effect on successes, which pass through unchanged
|
|
657
657
|
*
|
|
658
|
-
* Allocates a new Exit if the error is transformed.
|
|
658
|
+
* Allocates a new Exit if the error is transformed.
|
|
659
659
|
* Supports both curried and direct call styles.
|
|
660
660
|
*
|
|
661
661
|
* **Gotchas**
|
|
@@ -694,7 +694,7 @@ export const mapError = effect.exitMapError;
|
|
|
694
694
|
* - `onSuccess` transforms the value if the Exit is a Success
|
|
695
695
|
* - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason
|
|
696
696
|
*
|
|
697
|
-
* Allocates a new Exit.
|
|
697
|
+
* Allocates a new Exit.
|
|
698
698
|
* Supports both curried and direct call styles.
|
|
699
699
|
*
|
|
700
700
|
* **Gotchas**
|
|
@@ -735,7 +735,7 @@ export const mapBoth = effect.exitMapBoth;
|
|
|
735
735
|
*
|
|
736
736
|
* - Failures pass through unchanged
|
|
737
737
|
*
|
|
738
|
-
* Allocates a new Exit if successful.
|
|
738
|
+
* Allocates a new Exit if successful.
|
|
739
739
|
*
|
|
740
740
|
* **Example** (Discarding the success value)
|
|
741
741
|
*
|
package/dist/Exit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exit.js","names":["core","effect","TypeId","ExitTypeId","isExit","succeed","exitSucceed","failCause","exitFailCause","fail","exitFail","die","exitDie","interrupt","exitInterrupt","void_","exitVoid","void","isSuccess","exitIsSuccess","isFailure","exitIsFailure","hasFails","exitHasFails","hasDies","exitHasDies","hasInterrupts","exitHasInterrupts","filterSuccess","exitFilterSuccess","filterValue","exitFilterValue","filterFailure","exitFilterFailure","filterCause","exitFilterCause","findError","exitFindError","findDefect","exitFindDefect","match","exitMatch","map","exitMap","mapError","exitMapError","mapBoth","exitMapBoth","asVoid","exitAsVoid","asVoidAll","exitAsVoidAll","getSuccess","exitGetSuccess","getCause","exitGetCause","findErrorOption","exitFindErrorOption"],"sources":["../src/Exit.ts"],"sourcesContent":[null],"mappings":"AA4DA,OAAO,KAAKA,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAK9C,MAAMC,MAAM,GAAGF,IAAI,CAACG,UAAU;
|
|
1
|
+
{"version":3,"file":"Exit.js","names":["core","effect","TypeId","ExitTypeId","isExit","succeed","exitSucceed","failCause","exitFailCause","fail","exitFail","die","exitDie","interrupt","exitInterrupt","void_","exitVoid","void","isSuccess","exitIsSuccess","isFailure","exitIsFailure","hasFails","exitHasFails","hasDies","exitHasDies","hasInterrupts","exitHasInterrupts","filterSuccess","exitFilterSuccess","filterValue","exitFilterValue","filterFailure","exitFilterFailure","filterCause","exitFilterCause","findError","exitFindError","findDefect","exitFindDefect","match","exitMatch","map","exitMap","mapError","exitMapError","mapBoth","exitMapBoth","asVoid","exitAsVoid","asVoidAll","exitAsVoidAll","getSuccess","exitGetSuccess","getCause","exitGetCause","findErrorOption","exitFindErrorOption"],"sources":["../src/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AU;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,OAAO,MAAMC,SAAS,GAEuDjD,MAAM,CAACkD,aAAa;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,UAAU,GAA0CnD,MAAM,CAACoD,cAAc;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,QAAQ,GAAuDrD,MAAM,CAACsD,YAAY;AAE/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,OAAO,MAAMC,eAAe,GAA0CvD,MAAM,CAACwD,mBAAmB","ignoreList":[]}
|
package/dist/Fiber.d.ts
CHANGED
|
@@ -722,7 +722,7 @@ export declare const interruptAllAs: {
|
|
|
722
722
|
<A extends Iterable<Fiber<any, any>>>(fibers: A, fiberId: number): Effect<void>;
|
|
723
723
|
};
|
|
724
724
|
/**
|
|
725
|
-
*
|
|
725
|
+
* Checks whether a value is a Fiber. This is a type guard that can be used to
|
|
726
726
|
* determine if an unknown value is a Fiber instance.
|
|
727
727
|
*
|
|
728
728
|
* **When to use**
|
|
@@ -795,7 +795,7 @@ export declare const isFiber: (u: unknown) => u is Fiber<unknown, unknown>;
|
|
|
795
795
|
*/
|
|
796
796
|
export declare const getCurrent: () => Fiber<any, any> | undefined;
|
|
797
797
|
/**
|
|
798
|
-
*
|
|
798
|
+
* Adds a fiber to a `Scope` and returns the same fiber.
|
|
799
799
|
*
|
|
800
800
|
* **When to use**
|
|
801
801
|
*
|
|
@@ -818,7 +818,7 @@ export declare const getCurrent: () => Fiber<any, any> | undefined;
|
|
|
818
818
|
*/
|
|
819
819
|
export declare const runIn: {
|
|
820
820
|
/**
|
|
821
|
-
*
|
|
821
|
+
* Adds a fiber to a `Scope` and returns the same fiber.
|
|
822
822
|
*
|
|
823
823
|
* **When to use**
|
|
824
824
|
*
|
|
@@ -841,7 +841,7 @@ export declare const runIn: {
|
|
|
841
841
|
*/
|
|
842
842
|
(scope: Scope): <A, E>(self: Fiber<A, E>) => Fiber<A, E>;
|
|
843
843
|
/**
|
|
844
|
-
*
|
|
844
|
+
* Adds a fiber to a `Scope` and returns the same fiber.
|
|
845
845
|
*
|
|
846
846
|
* **When to use**
|
|
847
847
|
*
|
package/dist/Fiber.js
CHANGED
|
@@ -332,7 +332,7 @@ export const interruptAll = effect.fiberInterruptAll;
|
|
|
332
332
|
*/
|
|
333
333
|
export const interruptAllAs = effect.fiberInterruptAllAs;
|
|
334
334
|
/**
|
|
335
|
-
*
|
|
335
|
+
* Checks whether a value is a Fiber. This is a type guard that can be used to
|
|
336
336
|
* determine if an unknown value is a Fiber instance.
|
|
337
337
|
*
|
|
338
338
|
* **When to use**
|
|
@@ -405,7 +405,7 @@ export const isFiber = u => hasProperty(u, effect.FiberTypeId);
|
|
|
405
405
|
*/
|
|
406
406
|
export const getCurrent = effect.getCurrentFiber;
|
|
407
407
|
/**
|
|
408
|
-
*
|
|
408
|
+
* Adds a fiber to a `Scope` and returns the same fiber.
|
|
409
409
|
*
|
|
410
410
|
* **When to use**
|
|
411
411
|
*
|
package/dist/FiberHandle.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export declare const makeRuntimePromise: <R = never, A = unknown, E = unknown>()
|
|
|
166
166
|
readonly propagateInterruption?: boolean | undefined;
|
|
167
167
|
} | undefined) => Promise<XA>), never, Scope.Scope | R>;
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* Sets the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle.
|
|
170
170
|
* If a fiber is already running, it will be interrupted unless `options.onlyIfMissing` is set.
|
|
171
171
|
*
|
|
172
172
|
* **Example** (Setting a fiber unsafely)
|
|
@@ -192,7 +192,7 @@ export declare const makeRuntimePromise: <R = never, A = unknown, E = unknown>()
|
|
|
192
192
|
*/
|
|
193
193
|
export declare const setUnsafe: {
|
|
194
194
|
/**
|
|
195
|
-
*
|
|
195
|
+
* Sets the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle.
|
|
196
196
|
* If a fiber is already running, it will be interrupted unless `options.onlyIfMissing` is set.
|
|
197
197
|
*
|
|
198
198
|
* **Example** (Setting a fiber unsafely)
|
|
@@ -221,7 +221,7 @@ export declare const setUnsafe: {
|
|
|
221
221
|
readonly propagateInterruption?: boolean | undefined;
|
|
222
222
|
}): (self: FiberHandle<A, E>) => void;
|
|
223
223
|
/**
|
|
224
|
-
*
|
|
224
|
+
* Sets the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle.
|
|
225
225
|
* If a fiber is already running, it will be interrupted unless `options.onlyIfMissing` is set.
|
|
226
226
|
*
|
|
227
227
|
* **Example** (Setting a fiber unsafely)
|
|
@@ -351,7 +351,7 @@ export declare const set: {
|
|
|
351
351
|
}): Effect.Effect<void>;
|
|
352
352
|
};
|
|
353
353
|
/**
|
|
354
|
-
*
|
|
354
|
+
* Retrieves the fiber from the FiberHandle synchronously.
|
|
355
355
|
*
|
|
356
356
|
* **Example** (Reading the current fiber unsafely)
|
|
357
357
|
*
|
|
@@ -377,7 +377,7 @@ export declare const set: {
|
|
|
377
377
|
*/
|
|
378
378
|
export declare function getUnsafe<A, E>(self: FiberHandle<A, E>): Option.Option<Fiber.Fiber<A, E>>;
|
|
379
379
|
/**
|
|
380
|
-
*
|
|
380
|
+
* Retrieves the fiber from the FiberHandle effectfully.
|
|
381
381
|
*
|
|
382
382
|
* **Example** (Reading the current fiber)
|
|
383
383
|
*
|
|
@@ -647,7 +647,7 @@ export declare const runtimePromise: <A, E>(self: FiberHandle<A, E>) => <R = nev
|
|
|
647
647
|
*/
|
|
648
648
|
export declare const join: <A, E>(self: FiberHandle<A, E>) => Effect.Effect<void, E>;
|
|
649
649
|
/**
|
|
650
|
-
*
|
|
650
|
+
* Waits for the fiber in the FiberHandle to complete.
|
|
651
651
|
*
|
|
652
652
|
* **Example** (Waiting for a fiber to complete)
|
|
653
653
|
*
|
package/dist/FiberHandle.js
CHANGED
|
@@ -194,7 +194,7 @@ export const makeRuntimePromise = () => Effect.flatMap(make(), self => runtimePr
|
|
|
194
194
|
const internalFiberId = -1;
|
|
195
195
|
const isInternalInterruption = /*#__PURE__*/Filter.toPredicate(/*#__PURE__*/Filter.compose(Cause.filterInterruptors, /*#__PURE__*/Filter.has(internalFiberId)));
|
|
196
196
|
/**
|
|
197
|
-
*
|
|
197
|
+
* Sets the fiber in a FiberHandle. When the fiber completes, it will be removed from the FiberHandle.
|
|
198
198
|
* If a fiber is already running, it will be interrupted unless `options.onlyIfMissing` is set.
|
|
199
199
|
*
|
|
200
200
|
* **Example** (Setting a fiber unsafely)
|
|
@@ -277,7 +277,7 @@ export const set = /*#__PURE__*/dual(args => isFiberHandle(args[0]), (self, fibe
|
|
|
277
277
|
propagateInterruption: options?.propagateInterruption
|
|
278
278
|
})));
|
|
279
279
|
/**
|
|
280
|
-
*
|
|
280
|
+
* Retrieves the fiber from the FiberHandle synchronously.
|
|
281
281
|
*
|
|
282
282
|
* **Example** (Reading the current fiber unsafely)
|
|
283
283
|
*
|
|
@@ -305,7 +305,7 @@ export function getUnsafe(self) {
|
|
|
305
305
|
return self.state._tag === "Closed" ? Option.none() : Option.fromUndefinedOr(self.state.fiber);
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
308
|
-
*
|
|
308
|
+
* Retrieves the fiber from the FiberHandle effectfully.
|
|
309
309
|
*
|
|
310
310
|
* **Example** (Reading the current fiber)
|
|
311
311
|
*
|
|
@@ -545,7 +545,7 @@ export const runtimePromise = self => () => Effect.map(runtime(self)(), runFork
|
|
|
545
545
|
*/
|
|
546
546
|
export const join = self => Deferred.await(self.deferred);
|
|
547
547
|
/**
|
|
548
|
-
*
|
|
548
|
+
* Waits for the fiber in the FiberHandle to complete.
|
|
549
549
|
*
|
|
550
550
|
* **Example** (Waiting for a fiber to complete)
|
|
551
551
|
*
|
package/dist/FiberMap.d.ts
CHANGED
|
@@ -402,7 +402,7 @@ export declare const set: {
|
|
|
402
402
|
} | undefined): Effect.Effect<void>;
|
|
403
403
|
};
|
|
404
404
|
/**
|
|
405
|
-
*
|
|
405
|
+
* Retrieves a fiber from the FiberMap synchronously.
|
|
406
406
|
*
|
|
407
407
|
* **Example** (Retrieving a fiber unsafely)
|
|
408
408
|
*
|
|
@@ -433,7 +433,7 @@ export declare const set: {
|
|
|
433
433
|
*/
|
|
434
434
|
export declare const getUnsafe: {
|
|
435
435
|
/**
|
|
436
|
-
*
|
|
436
|
+
* Retrieves a fiber from the FiberMap synchronously.
|
|
437
437
|
*
|
|
438
438
|
* **Example** (Retrieving a fiber unsafely)
|
|
439
439
|
*
|
|
@@ -464,7 +464,7 @@ export declare const getUnsafe: {
|
|
|
464
464
|
*/
|
|
465
465
|
<K>(key: K): <A, E>(self: FiberMap<K, A, E>) => Option.Option<Fiber.Fiber<A, E>>;
|
|
466
466
|
/**
|
|
467
|
-
*
|
|
467
|
+
* Retrieves a fiber from the FiberMap synchronously.
|
|
468
468
|
*
|
|
469
469
|
* **Example** (Retrieving a fiber unsafely)
|
|
470
470
|
*
|
|
@@ -496,7 +496,7 @@ export declare const getUnsafe: {
|
|
|
496
496
|
<K, A, E>(self: FiberMap<K, A, E>, key: K): Option.Option<Fiber.Fiber<A, E>>;
|
|
497
497
|
};
|
|
498
498
|
/**
|
|
499
|
-
*
|
|
499
|
+
* Retrieves a fiber from the FiberMap effectfully.
|
|
500
500
|
*
|
|
501
501
|
* **Details**
|
|
502
502
|
*
|
|
@@ -531,7 +531,7 @@ export declare const getUnsafe: {
|
|
|
531
531
|
*/
|
|
532
532
|
export declare const get: {
|
|
533
533
|
/**
|
|
534
|
-
*
|
|
534
|
+
* Retrieves a fiber from the FiberMap effectfully.
|
|
535
535
|
*
|
|
536
536
|
* **Details**
|
|
537
537
|
*
|
|
@@ -566,7 +566,7 @@ export declare const get: {
|
|
|
566
566
|
*/
|
|
567
567
|
<K>(key: K): <A, E>(self: FiberMap<K, A, E>) => Effect.Effect<Option.Option<Fiber.Fiber<A, E>>>;
|
|
568
568
|
/**
|
|
569
|
-
*
|
|
569
|
+
* Retrieves a fiber from the FiberMap effectfully.
|
|
570
570
|
*
|
|
571
571
|
* **Details**
|
|
572
572
|
*
|
|
@@ -602,7 +602,7 @@ export declare const get: {
|
|
|
602
602
|
<K, A, E>(self: FiberMap<K, A, E>, key: K): Effect.Effect<Option.Option<Fiber.Fiber<A, E>>>;
|
|
603
603
|
};
|
|
604
604
|
/**
|
|
605
|
-
*
|
|
605
|
+
* Checks whether a key exists in the FiberMap.
|
|
606
606
|
*
|
|
607
607
|
* **Example** (Checking if a key exists unsafely)
|
|
608
608
|
*
|
|
@@ -626,7 +626,7 @@ export declare const get: {
|
|
|
626
626
|
*/
|
|
627
627
|
export declare const hasUnsafe: {
|
|
628
628
|
/**
|
|
629
|
-
*
|
|
629
|
+
* Checks whether a key exists in the FiberMap.
|
|
630
630
|
*
|
|
631
631
|
* **Example** (Checking if a key exists unsafely)
|
|
632
632
|
*
|
|
@@ -650,7 +650,7 @@ export declare const hasUnsafe: {
|
|
|
650
650
|
*/
|
|
651
651
|
<K>(key: K): <A, E>(self: FiberMap<K, A, E>) => boolean;
|
|
652
652
|
/**
|
|
653
|
-
*
|
|
653
|
+
* Checks whether a key exists in the FiberMap.
|
|
654
654
|
*
|
|
655
655
|
* **Example** (Checking if a key exists unsafely)
|
|
656
656
|
*
|
|
@@ -675,7 +675,7 @@ export declare const hasUnsafe: {
|
|
|
675
675
|
<K, A, E>(self: FiberMap<K, A, E>, key: K): boolean;
|
|
676
676
|
};
|
|
677
677
|
/**
|
|
678
|
-
*
|
|
678
|
+
* Checks whether a key exists in the FiberMap.
|
|
679
679
|
* This is the Effect-wrapped version of `hasUnsafe`.
|
|
680
680
|
*
|
|
681
681
|
* **Example** (Checking if a key exists)
|
|
@@ -703,7 +703,7 @@ export declare const hasUnsafe: {
|
|
|
703
703
|
*/
|
|
704
704
|
export declare const has: {
|
|
705
705
|
/**
|
|
706
|
-
*
|
|
706
|
+
* Checks whether a key exists in the FiberMap.
|
|
707
707
|
* This is the Effect-wrapped version of `hasUnsafe`.
|
|
708
708
|
*
|
|
709
709
|
* **Example** (Checking if a key exists)
|
|
@@ -731,7 +731,7 @@ export declare const has: {
|
|
|
731
731
|
*/
|
|
732
732
|
<K>(key: K): <A, E>(self: FiberMap<K, A, E>) => Effect.Effect<boolean>;
|
|
733
733
|
/**
|
|
734
|
-
*
|
|
734
|
+
* Checks whether a key exists in the FiberMap.
|
|
735
735
|
* This is the Effect-wrapped version of `hasUnsafe`.
|
|
736
736
|
*
|
|
737
737
|
* **Example** (Checking if a key exists)
|
|
@@ -760,7 +760,7 @@ export declare const has: {
|
|
|
760
760
|
<K, A, E>(self: FiberMap<K, A, E>, key: K): Effect.Effect<boolean>;
|
|
761
761
|
};
|
|
762
762
|
/**
|
|
763
|
-
*
|
|
763
|
+
* Removes a fiber from the FiberMap, interrupting it if it exists.
|
|
764
764
|
*
|
|
765
765
|
* **Example** (Removing a fiber)
|
|
766
766
|
*
|
|
@@ -788,7 +788,7 @@ export declare const has: {
|
|
|
788
788
|
*/
|
|
789
789
|
export declare const remove: {
|
|
790
790
|
/**
|
|
791
|
-
*
|
|
791
|
+
* Removes a fiber from the FiberMap, interrupting it if it exists.
|
|
792
792
|
*
|
|
793
793
|
* **Example** (Removing a fiber)
|
|
794
794
|
*
|
|
@@ -816,7 +816,7 @@ export declare const remove: {
|
|
|
816
816
|
*/
|
|
817
817
|
<K>(key: K): <A, E>(self: FiberMap<K, A, E>) => Effect.Effect<void>;
|
|
818
818
|
/**
|
|
819
|
-
*
|
|
819
|
+
* Removes a fiber from the FiberMap, interrupting it if it exists.
|
|
820
820
|
*
|
|
821
821
|
* **Example** (Removing a fiber)
|
|
822
822
|
*
|
|
@@ -845,7 +845,7 @@ export declare const remove: {
|
|
|
845
845
|
<K, A, E>(self: FiberMap<K, A, E>, key: K): Effect.Effect<void>;
|
|
846
846
|
};
|
|
847
847
|
/**
|
|
848
|
-
*
|
|
848
|
+
* Removes all fibers from the FiberMap, interrupting them.
|
|
849
849
|
*
|
|
850
850
|
* **Example** (Clearing all fibers)
|
|
851
851
|
*
|
|
@@ -1061,7 +1061,7 @@ export declare const runtimePromise: <K, A, E>(self: FiberMap<K, A, E>) => <R =
|
|
|
1061
1061
|
readonly propagateInterruption?: boolean | undefined;
|
|
1062
1062
|
}) | undefined) => Promise<XA>), never, R>;
|
|
1063
1063
|
/**
|
|
1064
|
-
*
|
|
1064
|
+
* Gets the number of fibers currently in the FiberMap.
|
|
1065
1065
|
*
|
|
1066
1066
|
* **Example** (Checking the map size)
|
|
1067
1067
|
*
|
|
@@ -1114,7 +1114,7 @@ export declare const size: <K, A, E>(self: FiberMap<K, A, E>) => Effect.Effect<n
|
|
|
1114
1114
|
*/
|
|
1115
1115
|
export declare const join: <K, A, E>(self: FiberMap<K, A, E>) => Effect.Effect<void, E>;
|
|
1116
1116
|
/**
|
|
1117
|
-
*
|
|
1117
|
+
* Waits for the FiberMap to be empty.
|
|
1118
1118
|
* This will wait for all currently running fibers to complete.
|
|
1119
1119
|
*
|
|
1120
1120
|
* **Example** (Waiting for an empty map)
|