effect 2.0.0-next.37 → 2.0.0-next.39
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/Bigint/dist/effect-Bigint.cjs.dev.js +5 -5
- package/Bigint/dist/effect-Bigint.cjs.prod.js +5 -5
- package/Bigint/dist/effect-Bigint.esm.js +346 -5
- package/Boolean/dist/effect-Boolean.cjs.dev.js +5 -5
- package/Boolean/dist/effect-Boolean.cjs.prod.js +5 -5
- package/Boolean/dist/effect-Boolean.esm.js +230 -5
- package/Brand/dist/effect-Brand.cjs.dev.js +20 -20
- package/Brand/dist/effect-Brand.cjs.prod.js +20 -20
- package/Brand/dist/effect-Brand.esm.js +204 -20
- package/Cache/dist/effect-Cache.cjs.dev.js +72 -72
- package/Cache/dist/effect-Cache.cjs.prod.js +72 -72
- package/Cache/dist/effect-Cache.esm.js +111 -74
- package/Cause/dist/effect-Cause.cjs.dev.js +32 -32
- package/Cause/dist/effect-Cause.cjs.prod.js +32 -32
- package/Cause/dist/effect-Cause.esm.js +668 -33
- package/Channel/dist/effect-Channel.cjs.dev.js +105 -105
- package/Channel/dist/effect-Channel.cjs.prod.js +105 -105
- package/Channel/dist/effect-Channel.esm.js +1001 -107
- package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.dev.js +3 -3
- package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.prod.js +3 -3
- package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.esm.js +112 -3
- package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.dev.js +3 -3
- package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.prod.js +3 -3
- package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.esm.js +60 -3
- package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.dev.js +3 -3
- package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.prod.js +3 -3
- package/ChannelMergeState/dist/effect-ChannelMergeState.esm.js +101 -3
- package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.dev.js +3 -3
- package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.prod.js +3 -3
- package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.esm.js +84 -3
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +89 -89
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +89 -89
- package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.esm.js +47 -91
- package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.dev.js +3 -3
- package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.prod.js +3 -3
- package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.esm.js +84 -3
- package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.dev.js +3 -3
- package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.prod.js +3 -3
- package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.esm.js +83 -3
- package/Chunk/dist/effect-Chunk.cjs.dev.js +20 -20
- package/Chunk/dist/effect-Chunk.cjs.prod.js +20 -20
- package/Chunk/dist/effect-Chunk.esm.js +1084 -20
- package/Clock/dist/effect-Clock.cjs.dev.js +40 -40
- package/Clock/dist/effect-Clock.cjs.prod.js +40 -40
- package/Clock/dist/effect-Clock.esm.js +78 -42
- package/Config/dist/effect-Config.cjs.dev.js +36 -36
- package/Config/dist/effect-Config.cjs.prod.js +36 -36
- package/Config/dist/effect-Config.esm.js +321 -37
- package/ConfigError/dist/effect-ConfigError.cjs.dev.js +21 -21
- package/ConfigError/dist/effect-ConfigError.cjs.prod.js +21 -21
- package/ConfigError/dist/effect-ConfigError.esm.js +185 -21
- package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +38 -38
- package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +38 -38
- package/ConfigProvider/dist/effect-ConfigProvider.esm.js +198 -39
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +24 -24
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +24 -24
- package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.esm.js +70 -24
- package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +22 -22
- package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +22 -22
- package/ConfigSecret/dist/effect-ConfigSecret.esm.js +63 -22
- package/Console/dist/effect-Console.cjs.dev.js +81 -81
- package/Console/dist/effect-Console.cjs.prod.js +81 -81
- package/Console/dist/effect-Console.esm.js +154 -83
- package/Context/dist/effect-Context.cjs.dev.js +17 -17
- package/Context/dist/effect-Context.cjs.prod.js +17 -17
- package/Context/dist/effect-Context.esm.js +295 -17
- package/Data/dist/effect-Data.cjs.dev.js +7 -7
- package/Data/dist/effect-Data.cjs.prod.js +7 -7
- package/Data/dist/effect-Data.esm.js +163 -7
- package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +40 -40
- package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +40 -40
- package/DefaultServices/dist/effect-DefaultServices.esm.js +24 -42
- package/Deferred/dist/effect-Deferred.cjs.dev.js +32 -32
- package/Deferred/dist/effect-Deferred.cjs.prod.js +32 -32
- package/Deferred/dist/effect-Deferred.esm.js +206 -33
- package/Differ/dist/effect-Differ.cjs.dev.js +25 -25
- package/Differ/dist/effect-Differ.cjs.prod.js +25 -25
- package/Differ/dist/effect-Differ.esm.js +137 -26
- package/Duration/dist/effect-Duration.cjs.dev.js +17 -16
- package/Duration/dist/effect-Duration.cjs.mjs +1 -0
- package/Duration/dist/effect-Duration.cjs.prod.js +17 -16
- package/Duration/dist/effect-Duration.esm.js +438 -16
- package/Effect/dist/effect-Effect.cjs.dev.js +87 -87
- package/Effect/dist/effect-Effect.cjs.prod.js +87 -87
- package/Effect/dist/effect-Effect.esm.js +3093 -89
- package/Effectable/dist/effect-Effectable.cjs.dev.js +10 -10
- package/Effectable/dist/effect-Effectable.cjs.prod.js +10 -10
- package/Effectable/dist/effect-Effectable.esm.js +77 -10
- package/Either/dist/effect-Either.cjs.dev.js +13 -13
- package/Either/dist/effect-Either.cjs.prod.js +13 -13
- package/Either/dist/effect-Either.esm.js +442 -13
- package/Encoding/dist/effect-Encoding.cjs.dev.js +14 -14
- package/Encoding/dist/effect-Encoding.cjs.prod.js +14 -14
- package/Encoding/dist/effect-Encoding.esm.js +123 -14
- package/Equal/dist/effect-Equal.cjs.dev.js +6 -6
- package/Equal/dist/effect-Equal.cjs.prod.js +6 -6
- package/Equal/dist/effect-Equal.esm.js +57 -6
- package/Equivalence/dist/effect-Equivalence.cjs.dev.js +2 -2
- package/Equivalence/dist/effect-Equivalence.cjs.prod.js +2 -2
- package/Equivalence/dist/effect-Equivalence.esm.js +196 -2
- package/Error/dist/effect-Error.cjs.dev.js +89 -89
- package/Error/dist/effect-Error.cjs.prod.js +89 -89
- package/Error/dist/effect-Error.esm.js +47 -91
- package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.dev.js +2 -2
- package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.prod.js +2 -2
- package/ExecutionStrategy/dist/effect-ExecutionStrategy.esm.js +99 -2
- package/Exit/dist/effect-Exit.cjs.dev.js +32 -32
- package/Exit/dist/effect-Exit.cjs.prod.js +32 -32
- package/Exit/dist/effect-Exit.esm.js +332 -33
- package/Fiber/dist/effect-Fiber.cjs.dev.js +75 -75
- package/Fiber/dist/effect-Fiber.cjs.prod.js +75 -75
- package/Fiber/dist/effect-Fiber.esm.js +423 -77
- package/FiberId/dist/effect-FiberId.cjs.dev.js +19 -19
- package/FiberId/dist/effect-FiberId.cjs.prod.js +19 -19
- package/FiberId/dist/effect-FiberId.esm.js +161 -20
- package/FiberRef/dist/effect-FiberRef.cjs.dev.js +73 -73
- package/FiberRef/dist/effect-FiberRef.cjs.prod.js +73 -73
- package/FiberRef/dist/effect-FiberRef.esm.js +289 -75
- package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +33 -33
- package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +33 -33
- package/FiberRefs/dist/effect-FiberRefs.esm.js +107 -34
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +34 -34
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +34 -34
- package/FiberRefsPatch/dist/effect-FiberRefsPatch.esm.js +76 -35
- package/FiberStatus/dist/effect-FiberStatus.cjs.dev.js +7 -7
- package/FiberStatus/dist/effect-FiberStatus.cjs.prod.js +7 -7
- package/FiberStatus/dist/effect-FiberStatus.esm.js +89 -7
- package/Function/dist/effect-Function.cjs.dev.js +1 -1
- package/Function/dist/effect-Function.cjs.prod.js +1 -1
- package/Function/dist/effect-Function.esm.js +492 -1
- package/GlobalValue/dist/effect-GlobalValue.cjs.dev.js +1 -1
- package/GlobalValue/dist/effect-GlobalValue.cjs.prod.js +1 -1
- package/GlobalValue/dist/effect-GlobalValue.esm.js +20 -1
- package/GroupBy/dist/effect-GroupBy.cjs.dev.js +106 -106
- package/GroupBy/dist/effect-GroupBy.cjs.prod.js +106 -106
- package/GroupBy/dist/effect-GroupBy.esm.js +63 -108
- package/Hash/dist/effect-Hash.cjs.dev.js +5 -5
- package/Hash/dist/effect-Hash.cjs.prod.js +5 -5
- package/Hash/dist/effect-Hash.esm.js +164 -5
- package/HashMap/dist/effect-HashMap.cjs.dev.js +17 -17
- package/HashMap/dist/effect-HashMap.cjs.prod.js +17 -17
- package/HashMap/dist/effect-HashMap.esm.js +287 -18
- package/HashSet/dist/effect-HashSet.cjs.dev.js +17 -17
- package/HashSet/dist/effect-HashSet.cjs.prod.js +17 -17
- package/HashSet/dist/effect-HashSet.esm.js +227 -18
- package/Hub/dist/effect-Hub.cjs.dev.js +72 -72
- package/Hub/dist/effect-Hub.cjs.prod.js +72 -72
- package/Hub/dist/effect-Hub.esm.js +148 -74
- package/Inspectable/dist/effect-Inspectable.cjs.dev.js +1 -1
- package/Inspectable/dist/effect-Inspectable.cjs.prod.js +1 -1
- package/Inspectable/dist/effect-Inspectable.esm.js +38 -1
- package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +73 -73
- package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +73 -73
- package/KeyedPool/dist/effect-KeyedPool.esm.js +104 -75
- package/Layer/dist/effect-Layer.cjs.dev.js +81 -81
- package/Layer/dist/effect-Layer.cjs.prod.js +81 -81
- package/Layer/dist/effect-Layer.esm.js +557 -83
- package/List/dist/effect-List.cjs.dev.js +21 -21
- package/List/dist/effect-List.cjs.prod.js +21 -21
- package/List/dist/effect-List.esm.js +816 -21
- package/LogLevel/dist/effect-LogLevel.cjs.dev.js +32 -32
- package/LogLevel/dist/effect-LogLevel.cjs.prod.js +32 -32
- package/LogLevel/dist/effect-LogLevel.esm.js +202 -33
- package/LogSpan/dist/effect-LogSpan.cjs.dev.js +1 -1
- package/LogSpan/dist/effect-LogSpan.cjs.prod.js +1 -1
- package/LogSpan/dist/effect-LogSpan.esm.js +24 -1
- package/Logger/dist/effect-Logger.cjs.dev.js +83 -83
- package/Logger/dist/effect-Logger.cjs.prod.js +83 -83
- package/Logger/dist/effect-Logger.esm.js +198 -85
- package/Metric/dist/effect-Metric.cjs.dev.js +69 -69
- package/Metric/dist/effect-Metric.cjs.prod.js +69 -69
- package/Metric/dist/effect-Metric.esm.js +395 -71
- package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +22 -22
- package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +22 -22
- package/MetricBoundaries/dist/effect-MetricBoundaries.esm.js +52 -22
- package/MetricHook/dist/effect-MetricHook.cjs.dev.js +26 -26
- package/MetricHook/dist/effect-MetricHook.cjs.prod.js +26 -26
- package/MetricHook/dist/effect-MetricHook.esm.js +68 -27
- package/MetricKey/dist/effect-MetricKey.cjs.dev.js +22 -22
- package/MetricKey/dist/effect-MetricKey.cjs.prod.js +22 -22
- package/MetricKey/dist/effect-MetricKey.esm.js +104 -23
- package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +18 -18
- package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +18 -18
- package/MetricKeyType/dist/effect-MetricKeyType.esm.js +147 -18
- package/MetricLabel/dist/effect-MetricLabel.cjs.dev.js +9 -9
- package/MetricLabel/dist/effect-MetricLabel.cjs.prod.js +9 -9
- package/MetricLabel/dist/effect-MetricLabel.esm.js +41 -9
- package/MetricPair/dist/effect-MetricPair.cjs.dev.js +3 -3
- package/MetricPair/dist/effect-MetricPair.cjs.prod.js +3 -3
- package/MetricPair/dist/effect-MetricPair.esm.js +38 -3
- package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +75 -75
- package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +75 -75
- package/MetricPolling/dist/effect-MetricPolling.esm.js +84 -77
- package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +32 -32
- package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +32 -32
- package/MetricRegistry/dist/effect-MetricRegistry.esm.js +28 -33
- package/MetricState/dist/effect-MetricState.cjs.dev.js +9 -9
- package/MetricState/dist/effect-MetricState.cjs.prod.js +9 -9
- package/MetricState/dist/effect-MetricState.esm.js +151 -9
- package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +19 -19
- package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +19 -19
- package/MutableHashMap/dist/effect-MutableHashMap.esm.js +128 -20
- package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +20 -20
- package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +20 -20
- package/MutableHashSet/dist/effect-MutableHashSet.esm.js +90 -21
- package/MutableList/dist/effect-MutableList.cjs.dev.js +4 -4
- package/MutableList/dist/effect-MutableList.cjs.prod.js +4 -4
- package/MutableList/dist/effect-MutableList.esm.js +264 -4
- package/MutableQueue/dist/effect-MutableQueue.cjs.dev.js +22 -22
- package/MutableQueue/dist/effect-MutableQueue.cjs.prod.js +22 -22
- package/MutableQueue/dist/effect-MutableQueue.esm.js +187 -22
- package/MutableRef/dist/effect-MutableRef.cjs.dev.js +9 -9
- package/MutableRef/dist/effect-MutableRef.cjs.prod.js +9 -9
- package/MutableRef/dist/effect-MutableRef.esm.js +156 -9
- package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.dev.js +1 -1
- package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.prod.js +1 -1
- package/NonEmptyIterable/dist/effect-NonEmptyIterable.esm.js +28 -1
- package/Number/dist/effect-Number.cjs.dev.js +5 -5
- package/Number/dist/effect-Number.cjs.prod.js +5 -5
- package/Number/dist/effect-Number.esm.js +369 -5
- package/Option/dist/effect-Option.cjs.dev.js +15 -15
- package/Option/dist/effect-Option.cjs.prod.js +15 -15
- package/Option/dist/effect-Option.esm.js +1071 -15
- package/Order/dist/effect-Order.cjs.dev.js +2 -2
- package/Order/dist/effect-Order.cjs.prod.js +2 -2
- package/Order/dist/effect-Order.esm.js +263 -2
- package/Ordering/dist/effect-Ordering.cjs.dev.js +2 -2
- package/Ordering/dist/effect-Ordering.cjs.prod.js +2 -2
- package/Ordering/dist/effect-Ordering.esm.js +88 -2
- package/Pipeable/dist/effect-Pipeable.cjs.dev.js +1 -1
- package/Pipeable/dist/effect-Pipeable.cjs.prod.js +1 -1
- package/Pipeable/dist/effect-Pipeable.esm.js +44 -1
- package/Pool/dist/effect-Pool.cjs.dev.js +73 -73
- package/Pool/dist/effect-Pool.cjs.prod.js +73 -73
- package/Pool/dist/effect-Pool.esm.js +104 -75
- package/Predicate/dist/effect-Predicate.cjs.dev.js +2 -2
- package/Predicate/dist/effect-Predicate.cjs.prod.js +2 -2
- package/Predicate/dist/effect-Predicate.esm.js +634 -2
- package/Queue/dist/effect-Queue.cjs.dev.js +72 -72
- package/Queue/dist/effect-Queue.cjs.prod.js +72 -72
- package/Queue/dist/effect-Queue.esm.js +328 -74
- package/Random/dist/effect-Random.cjs.dev.js +40 -40
- package/Random/dist/effect-Random.cjs.prod.js +40 -40
- package/Random/dist/effect-Random.esm.js +83 -42
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +19 -19
- package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +19 -19
- package/ReadonlyArray/dist/effect-ReadonlyArray.esm.js +1445 -19
- package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js +17 -17
- package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js +17 -17
- package/ReadonlyRecord/dist/effect-ReadonlyRecord.esm.js +518 -17
- package/RedBlackTree/dist/effect-RedBlackTree.cjs.dev.js +21 -21
- package/RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js +21 -21
- package/RedBlackTree/dist/effect-RedBlackTree.esm.js +314 -22
- package/Ref/dist/effect-Ref.cjs.dev.js +32 -32
- package/Ref/dist/effect-Ref.cjs.prod.js +32 -32
- package/Ref/dist/effect-Ref.esm.js +111 -33
- package/Reloadable/dist/effect-Reloadable.cjs.dev.js +82 -82
- package/Reloadable/dist/effect-Reloadable.cjs.prod.js +82 -82
- package/Reloadable/dist/effect-Reloadable.esm.js +88 -84
- package/Request/dist/effect-Request.cjs.dev.js +72 -72
- package/Request/dist/effect-Request.cjs.prod.js +72 -72
- package/Request/dist/effect-Request.esm.js +160 -74
- package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +89 -89
- package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +89 -89
- package/RequestBlock/dist/effect-RequestBlock.esm.js +103 -91
- package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +89 -89
- package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +89 -89
- package/RequestResolver/dist/effect-RequestResolver.esm.js +191 -91
- package/Resource/dist/effect-Resource.cjs.dev.js +77 -77
- package/Resource/dist/effect-Resource.cjs.prod.js +77 -77
- package/Resource/dist/effect-Resource.esm.js +70 -79
- package/Runtime/dist/effect-Runtime.cjs.dev.js +77 -77
- package/Runtime/dist/effect-Runtime.cjs.prod.js +77 -77
- package/Runtime/dist/effect-Runtime.esm.js +157 -79
- package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +83 -83
- package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +83 -83
- package/RuntimeFlags/dist/effect-RuntimeFlags.esm.js +305 -85
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +26 -26
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +26 -26
- package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js +158 -27
- package/STM/dist/effect-STM.cjs.dev.js +110 -110
- package/STM/dist/effect-STM.cjs.prod.js +110 -110
- package/STM/dist/effect-STM.esm.js +1193 -112
- package/Schedule/dist/effect-Schedule.cjs.dev.js +55 -55
- package/Schedule/dist/effect-Schedule.cjs.prod.js +55 -55
- package/Schedule/dist/effect-Schedule.esm.js +957 -57
- package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +24 -24
- package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +24 -24
- package/ScheduleDecision/dist/effect-ScheduleDecision.esm.js +48 -24
- package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +17 -17
- package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +17 -17
- package/ScheduleInterval/dist/effect-ScheduleInterval.esm.js +130 -17
- package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +23 -23
- package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +23 -23
- package/ScheduleIntervals/dist/effect-ScheduleIntervals.esm.js +105 -23
- package/Scheduler/dist/effect-Scheduler.cjs.dev.js +32 -32
- package/Scheduler/dist/effect-Scheduler.cjs.prod.js +32 -32
- package/Scheduler/dist/effect-Scheduler.esm.js +326 -34
- package/Scope/dist/effect-Scope.cjs.dev.js +69 -69
- package/Scope/dist/effect-Scope.cjs.prod.js +69 -69
- package/Scope/dist/effect-Scope.esm.js +117 -71
- package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +73 -73
- package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +73 -73
- package/ScopedCache/dist/effect-ScopedCache.esm.js +52 -75
- package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +77 -77
- package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +77 -77
- package/ScopedRef/dist/effect-ScopedRef.esm.js +71 -79
- package/Sink/dist/effect-Sink.cjs.dev.js +99 -99
- package/Sink/dist/effect-Sink.cjs.prod.js +99 -99
- package/Sink/dist/effect-Sink.esm.js +997 -101
- package/SortedMap/dist/effect-SortedMap.cjs.dev.js +22 -22
- package/SortedMap/dist/effect-SortedMap.cjs.prod.js +22 -22
- package/SortedMap/dist/effect-SortedMap.esm.js +168 -23
- package/SortedSet/dist/effect-SortedSet.cjs.dev.js +22 -22
- package/SortedSet/dist/effect-SortedSet.cjs.prod.js +22 -22
- package/SortedSet/dist/effect-SortedSet.esm.js +263 -23
- package/Stream/dist/effect-Stream.cjs.dev.js +106 -106
- package/Stream/dist/effect-Stream.cjs.prod.js +106 -106
- package/Stream/dist/effect-Stream.esm.js +2879 -108
- package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.dev.js +2 -2
- package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.prod.js +2 -2
- package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.esm.js +97 -2
- package/String/dist/effect-String.cjs.dev.js +17 -17
- package/String/dist/effect-String.cjs.prod.js +17 -17
- package/String/dist/effect-String.esm.js +600 -17
- package/Struct/dist/effect-Struct.cjs.dev.js +4 -4
- package/Struct/dist/effect-Struct.cjs.prod.js +4 -4
- package/Struct/dist/effect-Struct.esm.js +125 -4
- package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +106 -106
- package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +106 -106
- package/SubscriptionRef/dist/effect-SubscriptionRef.esm.js +160 -108
- package/Supervisor/dist/effect-Supervisor.cjs.dev.js +83 -83
- package/Supervisor/dist/effect-Supervisor.cjs.prod.js +83 -83
- package/Supervisor/dist/effect-Supervisor.esm.js +148 -85
- package/Symbol/dist/effect-Symbol.cjs.dev.js +4 -4
- package/Symbol/dist/effect-Symbol.cjs.prod.js +4 -4
- package/Symbol/dist/effect-Symbol.esm.js +30 -4
- package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +76 -76
- package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +76 -76
- package/SynchronizedRef/dist/effect-SynchronizedRef.esm.js +160 -78
- package/TArray/dist/effect-TArray.cjs.dev.js +112 -112
- package/TArray/dist/effect-TArray.cjs.prod.js +112 -112
- package/TArray/dist/effect-TArray.esm.js +367 -114
- package/TDeferred/dist/effect-TDeferred.cjs.dev.js +111 -111
- package/TDeferred/dist/effect-TDeferred.cjs.prod.js +111 -111
- package/TDeferred/dist/effect-TDeferred.esm.js +63 -113
- package/THub/dist/effect-THub.cjs.dev.js +113 -113
- package/THub/dist/effect-THub.cjs.prod.js +113 -113
- package/THub/dist/effect-THub.esm.js +157 -115
- package/TMap/dist/effect-TMap.cjs.dev.js +114 -114
- package/TMap/dist/effect-TMap.cjs.prod.js +114 -114
- package/TMap/dist/effect-TMap.esm.js +373 -116
- package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +111 -111
- package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +111 -111
- package/TPriorityQueue/dist/effect-TPriorityQueue.esm.js +184 -113
- package/TQueue/dist/effect-TQueue.cjs.dev.js +113 -113
- package/TQueue/dist/effect-TQueue.cjs.prod.js +113 -113
- package/TQueue/dist/effect-TQueue.esm.js +293 -115
- package/TRandom/dist/effect-TRandom.cjs.dev.js +112 -112
- package/TRandom/dist/effect-TRandom.cjs.prod.js +112 -112
- package/TRandom/dist/effect-TRandom.esm.js +93 -114
- package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +110 -110
- package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +110 -110
- package/TReentrantLock/dist/effect-TReentrantLock.esm.js +199 -112
- package/TRef/dist/effect-TRef.cjs.dev.js +110 -110
- package/TRef/dist/effect-TRef.cjs.prod.js +110 -110
- package/TRef/dist/effect-TRef.esm.js +116 -112
- package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +112 -112
- package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +112 -112
- package/TSemaphore/dist/effect-TSemaphore.esm.js +97 -114
- package/TSet/dist/effect-TSet.cjs.dev.js +114 -114
- package/TSet/dist/effect-TSet.cjs.prod.js +114 -114
- package/TSet/dist/effect-TSet.esm.js +268 -116
- package/Take/dist/effect-Take.cjs.dev.js +89 -89
- package/Take/dist/effect-Take.cjs.prod.js +89 -89
- package/Take/dist/effect-Take.esm.js +190 -91
- package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +25 -25
- package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +25 -25
- package/TestAnnotation/dist/effect-TestAnnotation.esm.js +111 -26
- package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.dev.js +2 -2
- package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.prod.js +2 -2
- package/TestAnnotationMap/dist/effect-TestAnnotationMap.esm.js +101 -2
- package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +57 -57
- package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +57 -57
- package/TestAnnotations/dist/effect-TestAnnotations.esm.js +83 -59
- package/TestClock/dist/effect-TestClock.cjs.dev.js +85 -85
- package/TestClock/dist/effect-TestClock.cjs.prod.js +85 -85
- package/TestClock/dist/effect-TestClock.esm.js +411 -87
- package/TestConfig/dist/effect-TestConfig.cjs.dev.js +18 -18
- package/TestConfig/dist/effect-TestConfig.cjs.prod.js +18 -18
- package/TestConfig/dist/effect-TestConfig.esm.js +27 -18
- package/TestContext/dist/effect-TestContext.cjs.dev.js +96 -96
- package/TestContext/dist/effect-TestContext.cjs.prod.js +96 -96
- package/TestContext/dist/effect-TestContext.esm.js +29 -98
- package/TestLive/dist/effect-TestLive.cjs.dev.js +40 -40
- package/TestLive/dist/effect-TestLive.cjs.prod.js +40 -40
- package/TestLive/dist/effect-TestLive.esm.js +48 -42
- package/TestServices/dist/effect-TestServices.cjs.dev.js +94 -94
- package/TestServices/dist/effect-TestServices.cjs.prod.js +94 -94
- package/TestServices/dist/effect-TestServices.esm.js +269 -96
- package/TestSized/dist/effect-TestSized.cjs.dev.js +32 -32
- package/TestSized/dist/effect-TestSized.cjs.prod.js +32 -32
- package/TestSized/dist/effect-TestSized.esm.js +50 -33
- package/Tracer/dist/effect-Tracer.cjs.dev.js +40 -40
- package/Tracer/dist/effect-Tracer.cjs.prod.js +40 -40
- package/Tracer/dist/effect-Tracer.esm.js +68 -42
- package/Tuple/dist/effect-Tuple.cjs.dev.js +4 -4
- package/Tuple/dist/effect-Tuple.cjs.prod.js +4 -4
- package/Tuple/dist/effect-Tuple.esm.js +173 -4
- package/Unify/dist/effect-Unify.cjs.dev.js +2 -2
- package/Unify/dist/effect-Unify.cjs.prod.js +2 -2
- package/Unify/dist/effect-Unify.esm.js +40 -2
- package/Utils/dist/effect-Utils.cjs.dev.js +3 -3
- package/Utils/dist/effect-Utils.cjs.prod.js +3 -3
- package/Utils/dist/effect-Utils.esm.js +352 -3
- package/dist/Bigint-0ebd807c.cjs.dev.js +392 -0
- package/dist/Bigint-912c77f3.cjs.prod.js +392 -0
- package/dist/Boolean-97839b78.cjs.prod.js +264 -0
- package/dist/Boolean-f0bc3abf.cjs.dev.js +264 -0
- package/dist/Brand-93578f43.cjs.prod.js +224 -0
- package/dist/Brand-b238487d.cjs.dev.js +224 -0
- package/dist/Cache-1688e584.cjs.dev.js +127 -0
- package/dist/Cache-8f2f2b55.cjs.prod.js +127 -0
- package/dist/Cause-384e2165.cjs.prod.js +791 -0
- package/dist/Cause-96c29074.cjs.dev.js +791 -0
- package/dist/Channel-2ce019f1.cjs.prod.js +1217 -0
- package/dist/Channel-544108d2.cjs.dev.js +1217 -0
- package/dist/ChannelChildExecutorDecision-168278f6.cjs.prod.js +136 -0
- package/dist/ChannelChildExecutorDecision-b0e715de.cjs.dev.js +136 -0
- package/dist/ChannelMergeDecision-9c266aeb.cjs.prod.js +78 -0
- package/dist/ChannelMergeDecision-eeaf4779.cjs.dev.js +78 -0
- package/dist/ChannelMergeState-4366d090.cjs.prod.js +125 -0
- package/dist/ChannelMergeState-abce1d88.cjs.dev.js +125 -0
- package/dist/ChannelMergeStrategy-6193b8e0.cjs.prod.js +104 -0
- package/dist/ChannelMergeStrategy-e7ddbb7a.cjs.dev.js +104 -0
- package/dist/ChannelSingleProducerAsyncInput-62f4749c.cjs.dev.js +55 -0
- package/dist/ChannelSingleProducerAsyncInput-6e0084c3.cjs.prod.js +55 -0
- package/dist/ChannelUpstreamPullRequest-1ca7d2bd.cjs.dev.js +104 -0
- package/dist/ChannelUpstreamPullRequest-208751c3.cjs.prod.js +104 -0
- package/dist/ChannelUpstreamPullStrategy-266b5a77.cjs.prod.js +103 -0
- package/dist/ChannelUpstreamPullStrategy-ec57dc70.cjs.dev.js +103 -0
- package/dist/Chunk-6cf5a8e6.cjs.prod.js +1248 -0
- package/dist/Chunk-bd290b8e.cjs.dev.js +1248 -0
- package/dist/Clock-09ecce0a.cjs.prod.js +97 -0
- package/dist/Clock-bec722c1.cjs.dev.js +97 -0
- package/dist/Config-85ae6286.cjs.prod.js +393 -0
- package/dist/Config-dc58cf69.cjs.dev.js +393 -0
- package/dist/ConfigError-c1f762d2.cjs.dev.js +225 -0
- package/dist/ConfigError-cee682fa.cjs.prod.js +225 -0
- package/dist/ConfigProvider-8341a5f5.cjs.prod.js +240 -0
- package/dist/ConfigProvider-de45b085.cjs.dev.js +240 -0
- package/dist/ConfigProviderPathPatch-52422b32.cjs.prod.js +86 -0
- package/dist/ConfigProviderPathPatch-d22442e3.cjs.dev.js +86 -0
- package/dist/ConfigSecret-c76717e8.cjs.dev.js +83 -0
- package/dist/ConfigSecret-ebab2ae7.cjs.prod.js +83 -0
- package/dist/Console-150b7b40.cjs.prod.js +271 -0
- package/dist/Console-4825ee9f.cjs.dev.js +271 -0
- package/dist/Context-25a49952.cjs.prod.js +327 -0
- package/dist/Context-3c9e986b.cjs.dev.js +327 -0
- package/dist/Context-96739709.cjs.dev.js +222 -0
- package/dist/Context-f958cabc.cjs.prod.js +222 -0
- package/dist/Data-07dc27f1.cjs.prod.js +237 -0
- package/dist/Data-85559fb3.cjs.dev.js +237 -0
- package/dist/DefaultServices-d5740d37.cjs.dev.js +34 -0
- package/dist/DefaultServices-df7495bb.cjs.prod.js +34 -0
- package/dist/Deferred-5d5c886c.cjs.dev.js +253 -0
- package/dist/Deferred-9d825b3b.cjs.prod.js +253 -0
- package/dist/Differ-0122f60e.cjs.dev.js +992 -0
- package/dist/Differ-0bd34066.cjs.prod.js +992 -0
- package/dist/Duration-0bc08d03.cjs.prod.js +508 -0
- package/dist/Duration-604874d1.cjs.dev.js +508 -0
- package/dist/Effect-1442090f.cjs.prod.js +3740 -0
- package/dist/Effect-6e9780e6.cjs.dev.js +3740 -0
- package/dist/Effectable-04f3cd30.cjs.dev.js +99 -0
- package/dist/Effectable-8997112d.cjs.prod.js +99 -0
- package/dist/Effectable-a6403e5f.cjs.dev.js +181 -0
- package/dist/Effectable-f867d1cb.cjs.prod.js +181 -0
- package/dist/Either-3fab3796.cjs.prod.js +502 -0
- package/dist/Either-9c349424.cjs.dev.js +178 -0
- package/dist/Either-a806809d.cjs.dev.js +502 -0
- package/dist/Either-d03d5f05.cjs.prod.js +178 -0
- package/dist/Encoding-0cab52d5.cjs.prod.js +309 -0
- package/dist/Encoding-d993b1b0.cjs.dev.js +309 -0
- package/dist/Equal-281b6ca8.cjs.dev.js +71 -0
- package/dist/Equal-ce9977a8.cjs.prod.js +71 -0
- package/dist/Equivalence-0bc84518.cjs.prod.js +238 -0
- package/dist/Equivalence-de7a0d51.cjs.dev.js +238 -0
- package/dist/Error-5ab157f2.cjs.dev.js +57 -0
- package/dist/Error-e9d25c53.cjs.prod.js +57 -0
- package/dist/ExecutionStrategy-89fbe735.cjs.dev.js +180 -0
- package/dist/ExecutionStrategy-dc778180.cjs.prod.js +180 -0
- package/dist/Exit-5691142c.cjs.prod.js +408 -0
- package/dist/Exit-a23874e1.cjs.dev.js +408 -0
- package/dist/Fiber-6432d5f7.cjs.dev.js +521 -0
- package/dist/Fiber-e61b3c65.cjs.prod.js +521 -0
- package/dist/FiberId-929dcce4.cjs.dev.js +443 -0
- package/dist/FiberId-b79e8047.cjs.prod.js +443 -0
- package/dist/FiberRef-1db44a9b.cjs.dev.js +385 -0
- package/dist/FiberRef-efb4a3ac.cjs.prod.js +385 -0
- package/dist/FiberRefs-43bfd8b9.cjs.dev.js +135 -0
- package/dist/FiberRefs-4cb171f7.cjs.prod.js +135 -0
- package/dist/FiberRefsPatch-5236f61e.cjs.dev.js +90 -0
- package/dist/FiberRefsPatch-cb847553.cjs.prod.js +90 -0
- package/dist/FiberStatus-b82dad24.cjs.prod.js +197 -0
- package/dist/FiberStatus-bac7d58d.cjs.dev.js +197 -0
- package/dist/Function-2e6b0cda.cjs.prod.js +538 -0
- package/dist/Function-41ce433d.cjs.dev.js +538 -0
- package/dist/GlobalValue-81ab6908.cjs.dev.js +28 -0
- package/dist/GlobalValue-cb645c99.cjs.prod.js +28 -0
- package/dist/GroupBy-8a8149b4.cjs.dev.js +79 -0
- package/dist/GroupBy-b74084af.cjs.prod.js +79 -0
- package/dist/Hash-1bd73210.cjs.prod.js +192 -0
- package/dist/Hash-bd154268.cjs.dev.js +192 -0
- package/dist/HashMap-12668911.cjs.prod.js +361 -0
- package/dist/HashMap-68e290b6.cjs.dev.js +361 -0
- package/dist/HashSet-6978c08e.cjs.dev.js +283 -0
- package/dist/HashSet-6fe62df2.cjs.prod.js +965 -0
- package/dist/HashSet-c40a52b1.cjs.prod.js +283 -0
- package/dist/HashSet-ece2cfe8.cjs.dev.js +965 -0
- package/dist/Hub-6e64debd.cjs.prod.js +1280 -0
- package/dist/Hub-74834668.cjs.dev.js +1280 -0
- package/dist/Inspectable-3c4a0f5d.cjs.prod.js +50 -0
- package/dist/Inspectable-ac929af4.cjs.dev.js +50 -0
- package/dist/KeyedPool-b05481e9.cjs.dev.js +282 -0
- package/dist/KeyedPool-cd8abf95.cjs.prod.js +282 -0
- package/dist/Layer-297269fd.cjs.prod.js +687 -0
- package/dist/Layer-c69f3fdc.cjs.dev.js +687 -0
- package/dist/List-c6ea7efe.cjs.dev.js +912 -0
- package/dist/List-d9775087.cjs.prod.js +912 -0
- package/dist/LogLevel-99f64f82.cjs.dev.js +240 -0
- package/dist/LogLevel-e9848e15.cjs.prod.js +240 -0
- package/dist/LogSpan-c905a192.cjs.prod.js +46 -0
- package/dist/LogSpan-e345ba58.cjs.dev.js +46 -0
- package/dist/Logger-680763c7.cjs.dev.js +275 -0
- package/dist/Logger-7a664cc3.cjs.prod.js +275 -0
- package/dist/Metric-09d012ff.cjs.dev.js +488 -0
- package/dist/Metric-b7563a68.cjs.prod.js +488 -0
- package/dist/MetricBoundaries-cf5df220.cjs.prod.js +68 -0
- package/dist/MetricBoundaries-f5f5aae1.cjs.dev.js +68 -0
- package/dist/MetricHook-3104e93b.cjs.dev.js +90 -0
- package/dist/MetricHook-efd05d72.cjs.prod.js +90 -0
- package/dist/MetricKey-9cfcaec8.cjs.prod.js +130 -0
- package/dist/MetricKey-c3ba437e.cjs.dev.js +130 -0
- package/dist/MetricKeyType-6d2d9036.cjs.prod.js +187 -0
- package/dist/MetricKeyType-c1d7ebe8.cjs.dev.js +187 -0
- package/dist/MetricLabel-6a1886c6.cjs.dev.js +53 -0
- package/dist/MetricLabel-7e1d569e.cjs.prod.js +53 -0
- package/dist/MetricPair-658ab13d.cjs.dev.js +50 -0
- package/dist/MetricPair-aec13967.cjs.prod.js +50 -0
- package/dist/MetricPolling-5af0ff67.cjs.dev.js +177 -0
- package/dist/MetricPolling-a0a4e798.cjs.prod.js +177 -0
- package/dist/MetricRegistry-e4af936b.cjs.dev.js +38 -0
- package/dist/MetricRegistry-ff6df283.cjs.prod.js +38 -0
- package/dist/MetricState-b65340a4.cjs.dev.js +191 -0
- package/dist/MetricState-bd6a5001.cjs.prod.js +191 -0
- package/dist/MutableHashMap-74e83e84.cjs.dev.js +154 -0
- package/dist/MutableHashMap-95493edb.cjs.prod.js +154 -0
- package/dist/MutableHashSet-780dfd63.cjs.prod.js +110 -0
- package/dist/MutableHashSet-ec8d7cc4.cjs.dev.js +110 -0
- package/dist/MutableList-58124ef2.cjs.dev.js +296 -0
- package/dist/MutableList-732af09a.cjs.prod.js +296 -0
- package/dist/MutableQueue-0e9f2466.cjs.dev.js +215 -0
- package/dist/MutableQueue-f8aba856.cjs.prod.js +215 -0
- package/dist/MutableRef-4a2f1f23.cjs.prod.js +194 -0
- package/dist/MutableRef-724c4082.cjs.dev.js +194 -0
- package/dist/NonEmptyIterable-418cef14.cjs.prod.js +36 -0
- package/dist/NonEmptyIterable-bb452f41.cjs.dev.js +36 -0
- package/dist/Number-588f6483.cjs.dev.js +417 -0
- package/dist/Number-cb2ba2e8.cjs.prod.js +417 -0
- package/dist/Option-02025c86.cjs.prod.js +1198 -0
- package/dist/Option-03997d77.cjs.dev.js +1198 -0
- package/dist/Order-28bdebd2.cjs.dev.js +321 -0
- package/dist/Order-8a112bfb.cjs.prod.js +321 -0
- package/dist/Ordering-60bf9127.cjs.prod.js +104 -0
- package/dist/Ordering-b955b746.cjs.dev.js +104 -0
- package/dist/Pipeable-4698db72.cjs.dev.js +52 -0
- package/dist/Pipeable-d3ec6711.cjs.prod.js +52 -0
- package/dist/Pool-54389592.cjs.prod.js +122 -0
- package/dist/Pool-fe1b506a.cjs.dev.js +122 -0
- package/dist/Predicate-9e859c9c.cjs.dev.js +718 -0
- package/dist/Predicate-daa86e61.cjs.prod.js +718 -0
- package/dist/Queue-5f954287.cjs.prod.js +394 -0
- package/dist/Queue-8d082fe4.cjs.dev.js +394 -0
- package/dist/Random-35304046.cjs.dev.js +104 -0
- package/dist/Random-b4709b6a.cjs.prod.js +104 -0
- package/dist/ReadonlyArray-48949ee7.cjs.dev.js +1721 -0
- package/dist/ReadonlyArray-8157f697.cjs.prod.js +1721 -0
- package/dist/ReadonlyArray-9a1474f6.cjs.dev.js +10 -0
- package/dist/ReadonlyArray-f9ed7a05.cjs.prod.js +10 -0
- package/dist/ReadonlyRecord-605a625b.cjs.dev.js +568 -0
- package/dist/ReadonlyRecord-8db8bada.cjs.prod.js +568 -0
- package/dist/RedBlackTree-e6bd147c.cjs.dev.js +1669 -0
- package/dist/RedBlackTree-eb41ea8a.cjs.prod.js +1669 -0
- package/dist/Ref-30e5ee58.cjs.prod.js +282 -0
- package/dist/Ref-af783b72.cjs.dev.js +282 -0
- package/dist/Reloadable-2b8ba75d.cjs.prod.js +169 -0
- package/dist/Reloadable-b01c9297.cjs.dev.js +169 -0
- package/dist/Request-53592fe4.cjs.prod.js +190 -0
- package/dist/Request-d3b63af6.cjs.dev.js +190 -0
- package/dist/RequestBlock-1aa4c3bd.cjs.dev.js +124 -0
- package/dist/RequestBlock-8c3b51d1.cjs.prod.js +124 -0
- package/dist/RequestResolver-133197d5.cjs.prod.js +233 -0
- package/dist/RequestResolver-86c21b80.cjs.dev.js +233 -0
- package/dist/Resource-2530fe45.cjs.prod.js +118 -0
- package/dist/Resource-e50b4b25.cjs.dev.js +118 -0
- package/dist/Runtime-0d643f0c.cjs.prod.js +191 -0
- package/dist/Runtime-c4b887ff.cjs.dev.js +191 -0
- package/dist/RuntimeFlags-9d8fac5a.cjs.prod.js +381 -0
- package/dist/RuntimeFlags-f67e3984.cjs.dev.js +381 -0
- package/dist/RuntimeFlagsPatch-130e990c.cjs.dev.js +411 -0
- package/dist/RuntimeFlagsPatch-5570758d.cjs.prod.js +411 -0
- package/dist/STM-23270be2.cjs.prod.js +1447 -0
- package/dist/STM-5a4c9921.cjs.dev.js +1447 -0
- package/dist/Schedule-0444792d.cjs.prod.js +1159 -0
- package/dist/Schedule-b6c7b49a.cjs.dev.js +1159 -0
- package/dist/ScheduleDecision-369f2d2b.cjs.prod.js +106 -0
- package/dist/ScheduleDecision-ba8d0e87.cjs.dev.js +106 -0
- package/dist/ScheduleInterval-51f42533.cjs.dev.js +244 -0
- package/dist/ScheduleInterval-78037484.cjs.prod.js +244 -0
- package/dist/ScheduleIntervals-b0bfcf3b.cjs.dev.js +265 -0
- package/dist/ScheduleIntervals-db13140c.cjs.prod.js +265 -0
- package/dist/Scheduler-819ee02a.cjs.prod.js +358 -0
- package/dist/Scheduler-d080442d.cjs.dev.js +358 -0
- package/dist/Scope-311c7eb9.cjs.prod.js +143 -0
- package/dist/Scope-6ba9ec6d.cjs.dev.js +143 -0
- package/dist/ScopedCache-3f58b125.cjs.dev.js +467 -0
- package/dist/ScopedCache-8f99505c.cjs.prod.js +467 -0
- package/dist/ScopedRef-7946d287.cjs.prod.js +87 -0
- package/dist/ScopedRef-b92e1633.cjs.dev.js +87 -0
- package/dist/Sink-9f13da17.cjs.dev.js +1215 -0
- package/dist/Sink-9f82fc3b.cjs.prod.js +1215 -0
- package/dist/SortedMap-bb3311c3.cjs.prod.js +210 -0
- package/dist/SortedMap-f452cc44.cjs.dev.js +210 -0
- package/dist/SortedSet-424670fe.cjs.prod.js +311 -0
- package/dist/SortedSet-f90b14a2.cjs.dev.js +311 -0
- package/dist/Stream-14325ecb.cjs.dev.js +3469 -0
- package/dist/Stream-cf262c16.cjs.prod.js +3469 -0
- package/dist/StreamHaltStrategy-07f544a6.cjs.prod.js +214 -0
- package/dist/StreamHaltStrategy-66a53f66.cjs.dev.js +214 -0
- package/dist/String-23b18ca9.cjs.prod.js +694 -0
- package/dist/String-830aaa3e.cjs.dev.js +694 -0
- package/dist/Struct-14648d76.cjs.dev.js +141 -0
- package/dist/Struct-c6b00f29.cjs.prod.js +141 -0
- package/dist/SubscriptionRef-aa7bdc5f.cjs.prod.js +269 -0
- package/dist/SubscriptionRef-d3c1aa07.cjs.dev.js +269 -0
- package/dist/Supervisor-21087253.cjs.prod.js +170 -0
- package/dist/Supervisor-40dd7ce5.cjs.dev.js +170 -0
- package/dist/Symbol-55d0b3d8.cjs.prod.js +40 -0
- package/dist/Symbol-5d74a5f2.cjs.dev.js +40 -0
- package/dist/SynchronizedRef-3181eb0a.cjs.dev.js +212 -0
- package/dist/SynchronizedRef-c6e0884b.cjs.prod.js +212 -0
- package/dist/TArray-6767b4bd.cjs.prod.js +455 -0
- package/dist/TArray-a0a4c6e6.cjs.dev.js +455 -0
- package/dist/TDeferred-a9839479.cjs.prod.js +129 -0
- package/dist/TDeferred-ac2c4025.cjs.dev.js +129 -0
- package/dist/THub-25b77864.cjs.prod.js +570 -0
- package/dist/THub-38053ae1.cjs.dev.js +570 -0
- package/dist/TMap-91505efa.cjs.prod.js +463 -0
- package/dist/TMap-de8ac080.cjs.dev.js +463 -0
- package/dist/TPriorityQueue-00b65d1a.cjs.prod.js +381 -0
- package/dist/TPriorityQueue-96ff0e15.cjs.dev.js +381 -0
- package/dist/TQueue-5e242ca2.cjs.prod.js +353 -0
- package/dist/TQueue-707762bf.cjs.dev.js +353 -0
- package/dist/TRandom-5eb21d23.cjs.dev.js +203 -0
- package/dist/TRandom-ec9c7bf7.cjs.prod.js +203 -0
- package/dist/TReentrantLock-1b77d76f.cjs.dev.js +456 -0
- package/dist/TReentrantLock-c5a8401e.cjs.prod.js +456 -0
- package/dist/TRef-b87580d7.cjs.prod.js +152 -0
- package/dist/TRef-cf2e8ad7.cjs.dev.js +152 -0
- package/dist/TSemaphore-29503416.cjs.prod.js +197 -0
- package/dist/TSemaphore-50edec08.cjs.dev.js +197 -0
- package/dist/TSet-3c2568e9.cjs.prod.js +444 -0
- package/dist/TSet-bb4775ca.cjs.dev.js +444 -0
- package/dist/Take-684c9901.cjs.dev.js +236 -0
- package/dist/Take-b4c91438.cjs.prod.js +236 -0
- package/dist/TestAnnotation-73be7a68.cjs.dev.js +135 -0
- package/dist/TestAnnotation-b9b93d03.cjs.prod.js +135 -0
- package/dist/TestAnnotationMap-80c87410.cjs.dev.js +125 -0
- package/dist/TestAnnotationMap-e946bab5.cjs.prod.js +125 -0
- package/dist/TestAnnotations-5db95828.cjs.prod.js +97 -0
- package/dist/TestAnnotations-733b39ef.cjs.dev.js +97 -0
- package/dist/TestClock-89a36b89.cjs.prod.js +581 -0
- package/dist/TestClock-e2773846.cjs.dev.js +581 -0
- package/dist/TestConfig-1a73e844.cjs.prod.js +37 -0
- package/dist/TestConfig-e5ffa946.cjs.dev.js +37 -0
- package/dist/TestContext-3328163e.cjs.dev.js +41 -0
- package/dist/TestContext-917bf305.cjs.prod.js +41 -0
- package/dist/TestLive-465ad3ef.cjs.dev.js +60 -0
- package/dist/TestLive-f3232ac4.cjs.prod.js +60 -0
- package/dist/TestServices-605f726e.cjs.prod.js +341 -0
- package/dist/TestServices-921e5c42.cjs.dev.js +341 -0
- package/dist/TestSized-6c1abc21.cjs.dev.js +64 -0
- package/dist/TestSized-a9a87d64.cjs.prod.js +64 -0
- package/dist/Tracer-d06d0b61.cjs.prod.js +81 -0
- package/dist/Tracer-da182c8c.cjs.dev.js +81 -0
- package/dist/Tuple-27ecf3a1.cjs.prod.js +199 -0
- package/dist/Tuple-75d2a389.cjs.dev.js +199 -0
- package/dist/Unify-99be0499.cjs.dev.js +48 -0
- package/dist/Unify-e86fd412.cjs.prod.js +48 -0
- package/dist/Utils-864e1d48.cjs.prod.js +370 -0
- package/dist/Utils-b0c14d1b.cjs.dev.js +370 -0
- package/dist/boundaries-03c7494a.cjs.dev.js +54 -0
- package/dist/boundaries-5d1a46e1.cjs.prod.js +54 -0
- package/dist/cache-6cdc31f7.cjs.dev.js +523 -0
- package/dist/cache-ab7bbfbd.cjs.prod.js +523 -0
- package/dist/childExecutorDecision-2b30946c.cjs.prod.js +98 -0
- package/dist/childExecutorDecision-ad3db696.cjs.dev.js +98 -0
- package/dist/circular-4cb0b79d.cjs.dev.js +341 -0
- package/dist/circular-5b3558d9.cjs.prod.js +341 -0
- package/dist/circular-78011d6b.cjs.dev.js +107 -0
- package/dist/circular-81b4c556.cjs.prod.js +107 -0
- package/dist/config-10f2a1d1.cjs.dev.js +474 -0
- package/dist/config-78feb1ac.cjs.prod.js +474 -0
- package/dist/configError-1686533e.cjs.dev.js +323 -0
- package/dist/configError-6a3652f8.cjs.prod.js +323 -0
- package/dist/configProvider-2b177eac.cjs.prod.js +447 -0
- package/dist/configProvider-e2eb112d.cjs.dev.js +447 -0
- package/dist/configSecret-5812fa69.cjs.dev.js +74 -0
- package/dist/configSecret-ecb6c5b3.cjs.prod.js +74 -0
- package/dist/core-4ced6e17.cjs.prod.js +1072 -0
- package/dist/core-ac668be0.cjs.dev.js +3502 -0
- package/dist/core-c2eb171a.cjs.prod.js +3502 -0
- package/dist/core-d9eea905.cjs.dev.js +1072 -0
- package/dist/core-effect-a9b8ee08.cjs.dev.js +1030 -0
- package/dist/core-effect-bf806dd9.cjs.prod.js +1030 -0
- package/dist/dataSource-abccc876.cjs.prod.js +74 -0
- package/dist/dataSource-d5f79f4e.cjs.dev.js +74 -0
- package/dist/declarations/src/Bigint.d.ts +22 -22
- package/dist/declarations/src/Boolean.d.ts +15 -15
- package/dist/declarations/src/Brand.d.ts +20 -20
- package/dist/declarations/src/Cache.d.ts +14 -14
- package/dist/declarations/src/Cause.d.ts +81 -81
- package/dist/declarations/src/Channel.d.ts +117 -117
- package/dist/declarations/src/ChannelChildExecutorDecision.d.ts +16 -16
- package/dist/declarations/src/ChannelMergeDecision.d.ts +11 -11
- package/dist/declarations/src/ChannelMergeState.d.ts +17 -17
- package/dist/declarations/src/ChannelMergeStrategy.d.ts +13 -13
- package/dist/declarations/src/ChannelSingleProducerAsyncInput.d.ts +5 -5
- package/dist/declarations/src/ChannelUpstreamPullRequest.d.ts +13 -13
- package/dist/declarations/src/ChannelUpstreamPullStrategy.d.ts +13 -13
- package/dist/declarations/src/Chunk.d.ts +84 -84
- package/dist/declarations/src/Clock.d.ts +13 -13
- package/dist/declarations/src/Config.d.ts +40 -40
- package/dist/declarations/src/ConfigError.d.ts +31 -31
- package/dist/declarations/src/ConfigProvider.d.ts +27 -27
- package/dist/declarations/src/ConfigProviderPathPatch.d.ts +11 -11
- package/dist/declarations/src/ConfigSecret.d.ts +12 -12
- package/dist/declarations/src/Console.d.ts +26 -26
- package/dist/declarations/src/Context.d.ts +24 -24
- package/dist/declarations/src/Data.d.ts +22 -22
- package/dist/declarations/src/DefaultServices.d.ts +4 -4
- package/dist/declarations/src/Deferred.d.ts +26 -26
- package/dist/declarations/src/Differ.d.ts +34 -34
- package/dist/declarations/src/Duration.d.ts +42 -37
- package/dist/declarations/src/Duration.d.ts.map +1 -1
- package/dist/declarations/src/Effect.d.ts +351 -351
- package/dist/declarations/src/Effectable.d.ts +16 -16
- package/dist/declarations/src/Either.d.ts +35 -35
- package/dist/declarations/src/Encoding.d.ts +15 -15
- package/dist/declarations/src/Equal.d.ts +6 -6
- package/dist/declarations/src/Equivalence.d.ts +20 -20
- package/dist/declarations/src/Error.d.ts +4 -4
- package/dist/declarations/src/ExecutionStrategy.d.ts +12 -12
- package/dist/declarations/src/Exit.d.ts +41 -41
- package/dist/declarations/src/Fiber.d.ts +57 -57
- package/dist/declarations/src/FiberId.d.ts +23 -23
- package/dist/declarations/src/FiberRef.d.ts +49 -49
- package/dist/declarations/src/FiberRefs.d.ts +14 -14
- package/dist/declarations/src/FiberRefsPatch.d.ts +11 -11
- package/dist/declarations/src/FiberStatus.d.ts +14 -14
- package/dist/declarations/src/Function.d.ts +24 -24
- package/dist/declarations/src/GlobalValue.d.ts +1 -1
- package/dist/declarations/src/GroupBy.d.ts +9 -9
- package/dist/declarations/src/HKT.d.ts +5 -5
- package/dist/declarations/src/Hash.d.ts +12 -12
- package/dist/declarations/src/HashMap.d.ts +37 -37
- package/dist/declarations/src/HashSet.d.ts +28 -28
- package/dist/declarations/src/Hub.d.ts +16 -16
- package/dist/declarations/src/Inspectable.d.ts +6 -6
- package/dist/declarations/src/KeyedPool.d.ts +12 -12
- package/dist/declarations/src/Layer.d.ts +70 -70
- package/dist/declarations/src/List.d.ts +50 -50
- package/dist/declarations/src/LogLevel.d.ts +27 -27
- package/dist/declarations/src/LogSpan.d.ts +3 -3
- package/dist/declarations/src/Logger.d.ts +33 -33
- package/dist/declarations/src/Metric.d.ts +55 -55
- package/dist/declarations/src/MetricBoundaries.d.ts +8 -8
- package/dist/declarations/src/MetricHook.d.ts +20 -20
- package/dist/declarations/src/MetricKey.d.ts +21 -21
- package/dist/declarations/src/MetricKeyType.d.ts +35 -35
- package/dist/declarations/src/MetricLabel.d.ts +6 -6
- package/dist/declarations/src/MetricPair.d.ts +8 -8
- package/dist/declarations/src/MetricPolling.d.ts +11 -11
- package/dist/declarations/src/MetricRegistry.d.ts +5 -5
- package/dist/declarations/src/MetricState.d.ts +33 -33
- package/dist/declarations/src/MutableHashMap.d.ts +12 -12
- package/dist/declarations/src/MutableHashSet.d.ts +9 -9
- package/dist/declarations/src/MutableList.d.ts +13 -13
- package/dist/declarations/src/MutableQueue.d.ts +16 -16
- package/dist/declarations/src/MutableRef.d.ts +18 -18
- package/dist/declarations/src/NonEmptyIterable.d.ts +4 -4
- package/dist/declarations/src/Number.d.ts +22 -22
- package/dist/declarations/src/Option.d.ts +69 -69
- package/dist/declarations/src/Order.d.ts +28 -28
- package/dist/declarations/src/Ordering.d.ts +7 -7
- package/dist/declarations/src/Pipeable.d.ts +3 -3
- package/dist/declarations/src/Pool.d.ts +11 -11
- package/dist/declarations/src/Predicate.d.ts +42 -42
- package/dist/declarations/src/Queue.d.ts +44 -44
- package/dist/declarations/src/Random.d.ts +11 -11
- package/dist/declarations/src/ReadonlyArray.d.ts +139 -139
- package/dist/declarations/src/ReadonlyRecord.d.ts +25 -25
- package/dist/declarations/src/RedBlackTree.d.ts +40 -40
- package/dist/declarations/src/Ref.d.ts +20 -20
- package/dist/declarations/src/Reloadable.d.ts +13 -13
- package/dist/declarations/src/Request.d.ts +29 -29
- package/dist/declarations/src/RequestBlock.d.ts +16 -16
- package/dist/declarations/src/RequestResolver.d.ts +23 -23
- package/dist/declarations/src/Resource.d.ts +10 -10
- package/dist/declarations/src/Runtime.d.ts +22 -22
- package/dist/declarations/src/RuntimeFlags.d.ts +38 -38
- package/dist/declarations/src/RuntimeFlagsPatch.d.ts +18 -18
- package/dist/declarations/src/STM.d.ts +140 -140
- package/dist/declarations/src/Schedule.d.ts +106 -106
- package/dist/declarations/src/ScheduleDecision.d.ts +8 -8
- package/dist/declarations/src/ScheduleInterval.d.ts +16 -16
- package/dist/declarations/src/ScheduleIntervals.d.ts +14 -14
- package/dist/declarations/src/Scheduler.d.ts +34 -34
- package/dist/declarations/src/Scope.d.ts +18 -18
- package/dist/declarations/src/ScopedCache.d.ts +9 -9
- package/dist/declarations/src/ScopedRef.d.ts +10 -10
- package/dist/declarations/src/Sink.d.ts +115 -115
- package/dist/declarations/src/SortedMap.d.ts +21 -21
- package/dist/declarations/src/SortedSet.d.ts +24 -24
- package/dist/declarations/src/Stream.d.ts +303 -303
- package/dist/declarations/src/StreamEmit.d.ts +3 -3
- package/dist/declarations/src/StreamHaltStrategy.d.ts +16 -16
- package/dist/declarations/src/String.d.ts +50 -50
- package/dist/declarations/src/Struct.d.ts +6 -6
- package/dist/declarations/src/SubscriptionRef.d.ts +27 -27
- package/dist/declarations/src/Supervisor.d.ts +23 -23
- package/dist/declarations/src/Symbol.d.ts +3 -3
- package/dist/declarations/src/SynchronizedRef.d.ts +28 -28
- package/dist/declarations/src/TArray.d.ts +46 -46
- package/dist/declarations/src/TDeferred.d.ts +12 -12
- package/dist/declarations/src/THub.d.ts +18 -18
- package/dist/declarations/src/TMap.d.ts +46 -46
- package/dist/declarations/src/TPriorityQueue.d.ts +23 -23
- package/dist/declarations/src/TQueue.d.ts +36 -36
- package/dist/declarations/src/TRandom.d.ts +12 -12
- package/dist/declarations/src/TReentrantLock.d.ts +24 -24
- package/dist/declarations/src/TRef.d.ts +19 -19
- package/dist/declarations/src/TSemaphore.d.ts +17 -17
- package/dist/declarations/src/TSet.d.ts +35 -35
- package/dist/declarations/src/Take.d.ts +25 -25
- package/dist/declarations/src/TestAnnotation.d.ts +12 -12
- package/dist/declarations/src/TestAnnotationMap.d.ts +11 -11
- package/dist/declarations/src/TestAnnotations.d.ts +7 -7
- package/dist/declarations/src/TestClock.d.ts +16 -16
- package/dist/declarations/src/TestConfig.d.ts +4 -4
- package/dist/declarations/src/TestContext.d.ts +3 -3
- package/dist/declarations/src/TestLive.d.ts +6 -6
- package/dist/declarations/src/TestServices.d.ts +35 -35
- package/dist/declarations/src/TestSized.d.ts +7 -7
- package/dist/declarations/src/Tracer.d.ts +13 -13
- package/dist/declarations/src/Tuple.d.ts +12 -12
- package/dist/declarations/src/Types.d.ts +10 -10
- package/dist/declarations/src/Unify.d.ts +9 -9
- package/dist/declarations/src/Utils.d.ts +29 -29
- package/dist/declarations/src/index.d.ts +169 -141
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/defaultServices-4112c0c9.cjs.prod.js +388 -0
- package/dist/defaultServices-60c753dc.cjs.dev.js +388 -0
- package/dist/effect.cjs.dev.js +199 -193
- package/dist/effect.cjs.mjs +7 -1
- package/dist/effect.cjs.prod.js +199 -193
- package/dist/effect.esm.js +283 -197
- package/dist/fiber-90ffaf8c.cjs.prod.js +411 -0
- package/dist/fiber-da1a207c.cjs.dev.js +411 -0
- package/dist/fiberRefs-64c35250.cjs.prod.js +181 -0
- package/dist/fiberRefs-a7e00f7e.cjs.dev.js +181 -0
- package/dist/fiberRuntime-1c369a47.cjs.prod.js +3012 -0
- package/dist/fiberRuntime-e9680313.cjs.dev.js +3012 -0
- package/dist/groupBy-0cc85afb.cjs.prod.js +216 -0
- package/dist/groupBy-b204a881.cjs.dev.js +216 -0
- package/dist/hook-6c7550dc.cjs.prod.js +371 -0
- package/dist/hook-822704ea.cjs.dev.js +371 -0
- package/dist/key-330b98b1.cjs.prod.js +79 -0
- package/dist/key-a474fc0d.cjs.dev.js +79 -0
- package/dist/keyType-1e916ae2.cjs.dev.js +236 -0
- package/dist/keyType-8460e792.cjs.prod.js +236 -0
- package/dist/label-246fb11d.cjs.dev.js +44 -0
- package/dist/label-3e143765.cjs.prod.js +44 -0
- package/dist/layer-ae8eefad.cjs.dev.js +658 -0
- package/dist/layer-ffacc2c5.cjs.prod.js +658 -0
- package/dist/mergeDecision-e457a76b.cjs.dev.js +86 -0
- package/dist/mergeDecision-e483c280.cjs.prod.js +86 -0
- package/dist/mergeState-83204f38.cjs.dev.js +109 -0
- package/dist/mergeState-dba66248.cjs.prod.js +109 -0
- package/dist/mergeStrategy-845a1279.cjs.prod.js +72 -0
- package/dist/mergeStrategy-b19dc19a.cjs.dev.js +72 -0
- package/dist/pair-08a8685e.cjs.dev.js +42 -0
- package/dist/pair-e5443c93.cjs.prod.js +42 -0
- package/dist/patch-4671ab7f.cjs.dev.js +132 -0
- package/dist/patch-f27e9f08.cjs.prod.js +132 -0
- package/dist/pathPatch-ded405f6.cjs.prod.js +90 -0
- package/dist/pathPatch-e46d4168.cjs.dev.js +90 -0
- package/dist/pool-3f16af61.cjs.dev.js +278 -0
- package/dist/pool-59a31f55.cjs.prod.js +278 -0
- package/dist/query-193d0a89.cjs.dev.js +104 -0
- package/dist/query-fe4a82d6.cjs.prod.js +104 -0
- package/dist/queue-04ae7ec7.cjs.dev.js +538 -0
- package/dist/queue-b81aee38.cjs.prod.js +538 -0
- package/dist/registry-29905dcc.cjs.prod.js +114 -0
- package/dist/registry-c883cf52.cjs.dev.js +114 -0
- package/dist/runtime-3ae98f19.cjs.dev.js +288 -0
- package/dist/runtime-8c3f1bd3.cjs.prod.js +288 -0
- package/dist/schedule-479d8fcc.cjs.dev.js +956 -0
- package/dist/schedule-7e30db2d.cjs.prod.js +956 -0
- package/dist/scopedRef-16d9d192.cjs.dev.js +55 -0
- package/dist/scopedRef-40b5bb82.cjs.prod.js +55 -0
- package/dist/singleProducerAsyncInput-552122e6.cjs.dev.js +193 -0
- package/dist/singleProducerAsyncInput-c5ff73b7.cjs.prod.js +193 -0
- package/dist/sink-16a1a901.cjs.dev.js +3094 -0
- package/dist/sink-c9ae7558.cjs.prod.js +3094 -0
- package/dist/state-0d29362f.cjs.prod.js +227 -0
- package/dist/state-8a8a647c.cjs.dev.js +227 -0
- package/dist/stm-44f045e5.cjs.dev.js +678 -0
- package/dist/stm-59af7e62.cjs.prod.js +678 -0
- package/dist/stream-84a13e23.cjs.dev.js +3645 -0
- package/dist/stream-8acbee57.cjs.prod.js +3645 -0
- package/dist/synchronizedRef-58a64ffe.cjs.dev.js +62 -0
- package/dist/synchronizedRef-6cfe9354.cjs.prod.js +62 -0
- package/dist/tArray-a690480d.cjs.prod.js +330 -0
- package/dist/tArray-c0a3d1e2.cjs.dev.js +330 -0
- package/dist/tMap-1c1b10c4.cjs.dev.js +535 -0
- package/dist/tMap-8dfc92f5.cjs.prod.js +535 -0
- package/dist/tQueue-48a29f8b.cjs.prod.js +367 -0
- package/dist/tQueue-aaec000f.cjs.dev.js +367 -0
- package/dist/tRef-1df89632.cjs.dev.js +133 -0
- package/dist/tRef-cc473a9f.cjs.prod.js +133 -0
- package/dist/take-906e6ef4.cjs.prod.js +152 -0
- package/dist/take-e1c6b82a.cjs.dev.js +152 -0
- package/dist/upstreamPullRequest-705e868d.cjs.prod.js +79 -0
- package/dist/upstreamPullRequest-c08f06a4.cjs.dev.js +79 -0
- package/dist/upstreamPullStrategy-0ccf2960.cjs.dev.js +81 -0
- package/dist/upstreamPullStrategy-34452db1.cjs.prod.js +81 -0
- package/internal/Context.esm.js +208 -0
- package/internal/Data.esm.js +49 -0
- package/internal/Differ/ChunkPatch.esm.js +131 -0
- package/internal/Differ/ContextPatch.esm.js +158 -0
- package/internal/Differ/HashMapPatch.esm.js +133 -0
- package/internal/Differ/HashSetPatch.esm.js +107 -0
- package/internal/Differ/OrPatch.esm.js +196 -0
- package/internal/Differ.esm.js +130 -0
- package/internal/Effectable.esm.js +89 -0
- package/internal/Either.esm.js +95 -0
- package/internal/Encoding/Base64.esm.js +74 -0
- package/internal/Encoding/Base64Url.esm.js +24 -0
- package/internal/Encoding/Common.esm.js +21 -0
- package/internal/Encoding/Hex.esm.js +55 -0
- package/internal/HashMap/array.esm.js +51 -0
- package/internal/HashMap/bitwise.esm.js +34 -0
- package/internal/HashMap/config.esm.js +16 -0
- package/internal/HashMap/keySet.esm.js +8 -0
- package/internal/HashMap/node.esm.js +253 -0
- package/internal/HashMap.esm.js +366 -0
- package/internal/HashSet.esm.js +211 -0
- package/internal/Option.esm.js +75 -0
- package/internal/ReadonlyArray.esm.js +8 -0
- package/internal/RedBlackTree/iterator.esm.js +204 -0
- package/internal/RedBlackTree/node.esm.js +43 -0
- package/internal/RedBlackTree.esm.js +1042 -0
- package/internal/Stack.esm.js +9 -0
- package/internal/blockedRequests.esm.js +365 -0
- package/internal/cache.esm.js +514 -0
- package/internal/cause.esm.js +1067 -0
- package/internal/channel/channelExecutor.esm.js +692 -0
- package/internal/channel/channelState.esm.js +78 -0
- package/internal/channel/childExecutorDecision.esm.js +71 -0
- package/internal/channel/continuation.esm.js +58 -0
- package/internal/channel/mergeDecision.esm.js +69 -0
- package/internal/channel/mergeState.esm.js +82 -0
- package/internal/channel/mergeStrategy.esm.js +55 -0
- package/internal/channel/singleProducerAsyncInput.esm.js +191 -0
- package/internal/channel/subexecutor.esm.js +153 -0
- package/internal/channel/upstreamPullRequest.esm.js +62 -0
- package/internal/channel/upstreamPullStrategy.esm.js +62 -0
- package/internal/channel.esm.js +648 -0
- package/internal/clock.esm.js +82 -0
- package/internal/completedRequestMap.esm.js +7 -0
- package/internal/concurrency.esm.js +47 -0
- package/internal/config.esm.js +374 -0
- package/internal/configError.esm.js +276 -0
- package/internal/configProvider/pathPatch.esm.js +83 -0
- package/internal/configProvider.esm.js +365 -0
- package/internal/configSecret.esm.js +66 -0
- package/internal/console.esm.js +72 -0
- package/internal/core-effect.esm.js +875 -0
- package/internal/core-stream.esm.js +293 -0
- package/internal/core.esm.js +1745 -0
- package/internal/dataSource.esm.js +61 -0
- package/internal/defaultServices/console.esm.js +96 -0
- package/internal/defaultServices.esm.js +84 -0
- package/internal/deferred.esm.js +37 -0
- package/internal/effect/circular.esm.js +314 -0
- package/internal/executionStrategy.esm.js +61 -0
- package/internal/fiber.esm.js +257 -0
- package/internal/fiberId.esm.js +243 -0
- package/internal/fiberMessage.esm.js +54 -0
- package/internal/fiberRefs/patch.esm.js +127 -0
- package/internal/fiberRefs.esm.js +169 -0
- package/internal/fiberRuntime.esm.js +2003 -0
- package/internal/fiberScope.esm.js +58 -0
- package/internal/fiberStatus.esm.js +89 -0
- package/internal/groupBy.esm.js +208 -0
- package/internal/hub.esm.js +1102 -0
- package/internal/keyedPool.esm.js +161 -0
- package/internal/layer/circular.esm.js +84 -0
- package/internal/layer.esm.js +552 -0
- package/internal/logSpan.esm.js +15 -0
- package/internal/logger-circular.esm.js +21 -0
- package/internal/logger.esm.js +213 -0
- package/internal/metric/boundaries.esm.js +48 -0
- package/internal/metric/hook.esm.js +362 -0
- package/internal/metric/key.esm.js +68 -0
- package/internal/metric/keyType.esm.js +218 -0
- package/internal/metric/label.esm.js +40 -0
- package/internal/metric/pair.esm.js +38 -0
- package/internal/metric/polling.esm.js +74 -0
- package/internal/metric/registry.esm.js +111 -0
- package/internal/metric/state.esm.js +209 -0
- package/internal/metric.esm.js +204 -0
- package/internal/opCodes/cause.esm.js +31 -0
- package/internal/opCodes/channel.esm.js +71 -0
- package/internal/opCodes/channelChildExecutorDecision.esm.js +16 -0
- package/internal/opCodes/channelMergeDecision.esm.js +11 -0
- package/internal/opCodes/channelMergeState.esm.js +16 -0
- package/internal/opCodes/channelMergeStrategy.esm.js +11 -0
- package/internal/opCodes/channelState.esm.js +21 -0
- package/internal/opCodes/channelUpstreamPullRequest.esm.js +11 -0
- package/internal/opCodes/channelUpstreamPullStrategy.esm.js +11 -0
- package/internal/opCodes/config.esm.js +56 -0
- package/internal/opCodes/configError.esm.js +31 -0
- package/internal/opCodes/continuation.esm.js +11 -0
- package/internal/opCodes/deferred.esm.js +11 -0
- package/internal/opCodes/effect.esm.js +71 -0
- package/internal/opCodes/layer.esm.js +46 -0
- package/internal/opCodes/streamHaltStrategy.esm.js +21 -0
- package/internal/pool.esm.js +271 -0
- package/internal/query.esm.js +100 -0
- package/internal/queue.esm.js +505 -0
- package/internal/random.esm.js +58 -0
- package/internal/ref.esm.js +121 -0
- package/internal/reloadable.esm.js +62 -0
- package/internal/request.esm.js +81 -0
- package/internal/resource.esm.js +35 -0
- package/internal/ringBuffer.esm.js +56 -0
- package/internal/runtime.esm.js +268 -0
- package/internal/runtimeFlags.esm.js +137 -0
- package/internal/runtimeFlagsPatch.esm.js +57 -0
- package/internal/schedule/decision.esm.js +45 -0
- package/internal/schedule/interval.esm.js +85 -0
- package/internal/schedule/intervals.esm.js +135 -0
- package/internal/schedule.esm.js +844 -0
- package/internal/scopedCache.esm.js +406 -0
- package/internal/scopedRef.esm.js +49 -0
- package/internal/singleShotGen.esm.js +30 -0
- package/internal/sink.esm.js +918 -0
- package/internal/stm/core.esm.js +553 -0
- package/internal/stm/opCodes/stm.esm.js +56 -0
- package/internal/stm/opCodes/stmState.esm.js +16 -0
- package/internal/stm/opCodes/strategy.esm.js +16 -0
- package/internal/stm/opCodes/tExit.esm.js +26 -0
- package/internal/stm/opCodes/tryCommit.esm.js +11 -0
- package/internal/stm/stm/entry.esm.js +47 -0
- package/internal/stm/stm/journal.esm.js +96 -0
- package/internal/stm/stm/stmState.esm.js +104 -0
- package/internal/stm/stm/tExit.esm.js +113 -0
- package/internal/stm/stm/tryCommit.esm.js +25 -0
- package/internal/stm/stm/txnId.esm.js +15 -0
- package/internal/stm/stm/versioned.esm.js +8 -0
- package/internal/stm/stm.esm.js +584 -0
- package/internal/stm/tArray.esm.js +287 -0
- package/internal/stm/tDeferred.esm.js +49 -0
- package/internal/stm/tHub.esm.js +381 -0
- package/internal/stm/tMap.esm.js +492 -0
- package/internal/stm/tPriorityQueue.esm.js +156 -0
- package/internal/stm/tQueue.esm.js +317 -0
- package/internal/stm/tRandom.esm.js +89 -0
- package/internal/stm/tReentrantLock.esm.js +216 -0
- package/internal/stm/tRef.esm.js +117 -0
- package/internal/stm/tSemaphore.esm.js +73 -0
- package/internal/stm/tSet.esm.js +113 -0
- package/internal/stream/debounceState.esm.js +39 -0
- package/internal/stream/emit.esm.js +51 -0
- package/internal/stream/haltStrategy.esm.js +74 -0
- package/internal/stream/handoff.esm.js +79 -0
- package/internal/stream/handoffSignal.esm.js +40 -0
- package/internal/stream/pull.esm.js +10 -0
- package/internal/stream/sinkEndReason.esm.js +27 -0
- package/internal/stream/zipAllState.esm.js +65 -0
- package/internal/stream/zipChunksState.esm.js +41 -0
- package/internal/stream.esm.js +2984 -0
- package/internal/string-utils.esm.js +66 -0
- package/internal/subscriptionRef.esm.js +65 -0
- package/internal/supervisor/patch.esm.js +156 -0
- package/internal/supervisor.esm.js +204 -0
- package/internal/synchronizedRef.esm.js +53 -0
- package/internal/take.esm.js +130 -0
- package/internal/testing/suspendedWarningData.esm.js +66 -0
- package/internal/testing/warningData.esm.js +75 -0
- package/internal/timeout.esm.js +22 -0
- package/internal/tracer.esm.js +61 -0
- package/package.json +700 -554
- package/dist/Bigint-1c684209.esm.js +0 -370
- package/dist/Bigint-504df838.cjs.dev.js +0 -392
- package/dist/Bigint-d1a7e44e.cjs.prod.js +0 -392
- package/dist/Boolean-7513c999.cjs.prod.js +0 -264
- package/dist/Boolean-9427fc24.cjs.dev.js +0 -264
- package/dist/Boolean-f564d31a.esm.js +0 -248
- package/dist/Brand-c3918667.cjs.dev.js +0 -224
- package/dist/Brand-fa4e9f22.esm.js +0 -215
- package/dist/Brand-ff4af468.cjs.prod.js +0 -224
- package/dist/Cache-447337f2.esm.js +0 -120
- package/dist/Cache-4b4ea2b3.cjs.prod.js +0 -127
- package/dist/Cache-62ebdae3.cjs.dev.js +0 -127
- package/dist/Cause-8be0b9a6.esm.js +0 -730
- package/dist/Cause-b769f517.cjs.prod.js +0 -791
- package/dist/Cause-d77e20dc.cjs.dev.js +0 -791
- package/dist/Channel-2039c280.cjs.dev.js +0 -1217
- package/dist/Channel-806a0a5a.esm.js +0 -1109
- package/dist/Channel-dcff73a4.cjs.prod.js +0 -1217
- package/dist/ChannelChildExecutorDecision-2d3c20b1.esm.js +0 -125
- package/dist/ChannelChildExecutorDecision-adce4b58.cjs.dev.js +0 -136
- package/dist/ChannelChildExecutorDecision-fc90c987.cjs.prod.js +0 -136
- package/dist/ChannelMergeDecision-39e12893.cjs.prod.js +0 -78
- package/dist/ChannelMergeDecision-4488ba22.esm.js +0 -70
- package/dist/ChannelMergeDecision-f05da806.cjs.dev.js +0 -78
- package/dist/ChannelMergeState-65723a71.cjs.dev.js +0 -125
- package/dist/ChannelMergeState-937282d2.esm.js +0 -114
- package/dist/ChannelMergeState-ab626a77.cjs.prod.js +0 -125
- package/dist/ChannelMergeStrategy-c2f956a9.esm.js +0 -95
- package/dist/ChannelMergeStrategy-d5bdc89d.cjs.prod.js +0 -104
- package/dist/ChannelMergeStrategy-d956e3fa.cjs.dev.js +0 -104
- package/dist/ChannelSingleProducerAsyncInput-00708a29.esm.js +0 -52
- package/dist/ChannelSingleProducerAsyncInput-90f3b171.cjs.prod.js +0 -55
- package/dist/ChannelSingleProducerAsyncInput-ecc79242.cjs.dev.js +0 -55
- package/dist/ChannelUpstreamPullRequest-011526e6.esm.js +0 -95
- package/dist/ChannelUpstreamPullRequest-6a610523.cjs.dev.js +0 -104
- package/dist/ChannelUpstreamPullRequest-d7413c53.cjs.prod.js +0 -104
- package/dist/ChannelUpstreamPullStrategy-0af49b72.esm.js +0 -94
- package/dist/ChannelUpstreamPullStrategy-6e0a338e.cjs.prod.js +0 -103
- package/dist/ChannelUpstreamPullStrategy-90ec240c.cjs.dev.js +0 -103
- package/dist/Chunk-937f4423.cjs.dev.js +0 -1248
- package/dist/Chunk-98371336.esm.js +0 -1167
- package/dist/Chunk-f001938d.cjs.prod.js +0 -1248
- package/dist/Clock-27c1110d.cjs.prod.js +0 -97
- package/dist/Clock-589e9dc5.cjs.dev.js +0 -97
- package/dist/Clock-ab907687.esm.js +0 -88
- package/dist/Config-50e56bbd.cjs.prod.js +0 -393
- package/dist/Config-7e7f7335.cjs.dev.js +0 -393
- package/dist/Config-a3a06665.esm.js +0 -358
- package/dist/ConfigError-5801d561.esm.js +0 -206
- package/dist/ConfigError-684b6267.cjs.dev.js +0 -225
- package/dist/ConfigError-f5303a19.cjs.prod.js +0 -225
- package/dist/ConfigProvider-0aeb6513.esm.js +0 -220
- package/dist/ConfigProvider-b47b08f3.cjs.dev.js +0 -240
- package/dist/ConfigProvider-e278c5f7.cjs.prod.js +0 -240
- package/dist/ConfigProviderPathPatch-78826e8c.cjs.dev.js +0 -86
- package/dist/ConfigProviderPathPatch-97b52760.esm.js +0 -79
- package/dist/ConfigProviderPathPatch-bb5f5228.cjs.prod.js +0 -86
- package/dist/ConfigSecret-2db4c372.cjs.prod.js +0 -83
- package/dist/ConfigSecret-646df696.esm.js +0 -74
- package/dist/ConfigSecret-a10a12aa.cjs.dev.js +0 -83
- package/dist/Console-b92ceaf0.esm.js +0 -247
- package/dist/Console-d4590f3a.cjs.prod.js +0 -271
- package/dist/Console-f063615c.cjs.dev.js +0 -271
- package/dist/Context-119d62eb.cjs.prod.js +0 -327
- package/dist/Context-231e9c1b.cjs.prod.js +0 -222
- package/dist/Context-48179faa.esm.js +0 -312
- package/dist/Context-5099940c.cjs.dev.js +0 -222
- package/dist/Context-fcee7bba.esm.js +0 -208
- package/dist/Context-fdaa5c44.cjs.dev.js +0 -327
- package/dist/Data-3389525f.cjs.dev.js +0 -237
- package/dist/Data-815a1868.cjs.prod.js +0 -237
- package/dist/Data-bad1ffeb.esm.js +0 -224
- package/dist/DefaultServices-848d6929.cjs.dev.js +0 -34
- package/dist/DefaultServices-8c298120.esm.js +0 -30
- package/dist/DefaultServices-9ea98d30.cjs.prod.js +0 -34
- package/dist/Deferred-143efa7b.cjs.dev.js +0 -253
- package/dist/Deferred-554d3588.esm.js +0 -230
- package/dist/Deferred-77579e00.cjs.prod.js +0 -253
- package/dist/Differ-0069a8c0.cjs.dev.js +0 -992
- package/dist/Differ-3be1df41.esm.js +0 -975
- package/dist/Differ-cbfa45cb.cjs.prod.js +0 -992
- package/dist/Duration-205d0b80.cjs.prod.js +0 -500
- package/dist/Duration-5e9f2327.esm.js +0 -467
- package/dist/Duration-8b174e0b.cjs.dev.js +0 -500
- package/dist/Effect-6713972b.cjs.prod.js +0 -3740
- package/dist/Effect-d362f43a.cjs.dev.js +0 -3740
- package/dist/Effect-d5910dae.esm.js +0 -3417
- package/dist/Effectable-2c8e8441.cjs.prod.js +0 -99
- package/dist/Effectable-954172fc.cjs.prod.js +0 -181
- package/dist/Effectable-a76b6aa1.esm.js +0 -158
- package/dist/Effectable-bc017f96.cjs.dev.js +0 -99
- package/dist/Effectable-e85a1847.cjs.dev.js +0 -181
- package/dist/Effectable-ec9e4204.esm.js +0 -89
- package/dist/Either-09270bbc.esm.js +0 -473
- package/dist/Either-34ce9059.cjs.dev.js +0 -178
- package/dist/Either-41cb7522.cjs.prod.js +0 -178
- package/dist/Either-ae722a9e.cjs.dev.js +0 -502
- package/dist/Either-be9c40b9.esm.js +0 -163
- package/dist/Either-d995ebb4.cjs.prod.js +0 -502
- package/dist/Encoding-0d990bbf.esm.js +0 -295
- package/dist/Encoding-39f7d9a8.cjs.dev.js +0 -309
- package/dist/Encoding-82d009b9.cjs.prod.js +0 -309
- package/dist/Equal-7d4ae7e7.esm.js +0 -65
- package/dist/Equal-8654b1af.cjs.dev.js +0 -71
- package/dist/Equal-ed1e8c3c.cjs.prod.js +0 -71
- package/dist/Equivalence-87295c78.cjs.prod.js +0 -238
- package/dist/Equivalence-a4b5f56d.cjs.dev.js +0 -238
- package/dist/Equivalence-e5c9cba4.esm.js +0 -218
- package/dist/Error-7e84d828.esm.js +0 -53
- package/dist/Error-be89adc9.cjs.prod.js +0 -57
- package/dist/Error-e1ceeea7.cjs.dev.js +0 -57
- package/dist/ExecutionStrategy-080f0b2b.cjs.prod.js +0 -180
- package/dist/ExecutionStrategy-c6f7c490.esm.js +0 -168
- package/dist/ExecutionStrategy-cd9204b4.cjs.dev.js +0 -180
- package/dist/Exit-7a385294.cjs.dev.js +0 -408
- package/dist/Exit-e31718e3.esm.js +0 -371
- package/dist/Exit-eb04f98e.cjs.prod.js +0 -408
- package/dist/Fiber-1a996e3f.cjs.dev.js +0 -521
- package/dist/Fiber-38517971.esm.js +0 -473
- package/dist/Fiber-a7306b77.cjs.prod.js +0 -521
- package/dist/FiberId-3b23bc04.cjs.dev.js +0 -443
- package/dist/FiberId-556ab9ef.esm.js +0 -422
- package/dist/FiberId-95c92b7e.cjs.prod.js +0 -443
- package/dist/FiberRef-6f63843b.cjs.prod.js +0 -385
- package/dist/FiberRef-912b6248.cjs.dev.js +0 -385
- package/dist/FiberRef-b81d5a7e.esm.js +0 -338
- package/dist/FiberRefs-1a6a1b5f.cjs.prod.js +0 -135
- package/dist/FiberRefs-44fda74a.cjs.dev.js +0 -135
- package/dist/FiberRefs-a6ab4b8d.esm.js +0 -122
- package/dist/FiberRefsPatch-549967e3.cjs.prod.js +0 -90
- package/dist/FiberRefsPatch-56f10acc.cjs.dev.js +0 -90
- package/dist/FiberRefsPatch-f84453c3.esm.js +0 -84
- package/dist/FiberStatus-90291b8c.esm.js +0 -187
- package/dist/FiberStatus-db497d70.cjs.dev.js +0 -197
- package/dist/FiberStatus-ff18b445.cjs.prod.js +0 -197
- package/dist/Function-52fb7d21.esm.js +0 -516
- package/dist/Function-8336aeeb.cjs.prod.js +0 -538
- package/dist/Function-fd10bde3.cjs.dev.js +0 -538
- package/dist/GlobalValue-00457222.cjs.dev.js +0 -28
- package/dist/GlobalValue-c5f1e8e5.esm.js +0 -25
- package/dist/GlobalValue-f65cc41d.cjs.prod.js +0 -28
- package/dist/GroupBy-cabfa667.cjs.dev.js +0 -79
- package/dist/GroupBy-d0ad2148.cjs.prod.js +0 -79
- package/dist/GroupBy-eef333fa.esm.js +0 -72
- package/dist/HKT-1990744d.esm.js +0 -5
- package/dist/Hash-039222d1.esm.js +0 -179
- package/dist/Hash-2171bcec.cjs.prod.js +0 -192
- package/dist/Hash-9d5502e5.cjs.dev.js +0 -192
- package/dist/HashMap-2604a8b0.cjs.prod.js +0 -361
- package/dist/HashMap-e644e23b.esm.js +0 -327
- package/dist/HashMap-ee35ace5.cjs.dev.js +0 -361
- package/dist/HashSet-206ea53b.cjs.dev.js +0 -965
- package/dist/HashSet-286fb998.cjs.prod.js +0 -965
- package/dist/HashSet-43b520e9.cjs.dev.js +0 -283
- package/dist/HashSet-99f1529e.cjs.prod.js +0 -283
- package/dist/HashSet-d051e0ea.esm.js +0 -907
- package/dist/HashSet-dff2542b.esm.js +0 -256
- package/dist/Hub-4223bb07.cjs.prod.js +0 -1280
- package/dist/Hub-9f3d5c5d.esm.js +0 -1264
- package/dist/Hub-dd9d70e7.cjs.dev.js +0 -1280
- package/dist/Inspectable-46a7668e.cjs.prod.js +0 -50
- package/dist/Inspectable-654412c2.cjs.dev.js +0 -50
- package/dist/Inspectable-bda84223.esm.js +0 -45
- package/dist/KeyedPool-0b5851a2.cjs.prod.js +0 -282
- package/dist/KeyedPool-50b8f75b.esm.js +0 -273
- package/dist/KeyedPool-8b979aac.cjs.dev.js +0 -282
- package/dist/Layer-11122c64.cjs.dev.js +0 -687
- package/dist/Layer-79fa5f4a.cjs.prod.js +0 -687
- package/dist/Layer-f7be72db.esm.js +0 -623
- package/dist/List-48f2b78f.cjs.prod.js +0 -912
- package/dist/List-95e1e081.cjs.dev.js +0 -912
- package/dist/List-c066a506.esm.js +0 -865
- package/dist/LogLevel-2e6b00c7.esm.js +0 -222
- package/dist/LogLevel-a609dd63.cjs.prod.js +0 -240
- package/dist/LogLevel-c14e29fb.cjs.dev.js +0 -240
- package/dist/LogSpan-c216a78b.cjs.prod.js +0 -46
- package/dist/LogSpan-cd4b8f34.cjs.dev.js +0 -46
- package/dist/LogSpan-e5cf11a5.esm.js +0 -42
- package/dist/Logger-029fccab.cjs.prod.js +0 -275
- package/dist/Logger-28d5e7ff.cjs.dev.js +0 -275
- package/dist/Logger-52ffeafa.esm.js +0 -246
- package/dist/Metric-2b4867b2.cjs.dev.js +0 -488
- package/dist/Metric-cd4dfaba.cjs.prod.js +0 -488
- package/dist/Metric-f2c8888b.esm.js +0 -442
- package/dist/MetricBoundaries-8ef331f0.cjs.dev.js +0 -68
- package/dist/MetricBoundaries-9707829f.esm.js +0 -61
- package/dist/MetricBoundaries-fc377a5e.cjs.prod.js +0 -68
- package/dist/MetricHook-74ebef65.esm.js +0 -80
- package/dist/MetricHook-9d1ff9f5.cjs.prod.js +0 -90
- package/dist/MetricHook-ebd34eea.cjs.dev.js +0 -90
- package/dist/MetricKey-7536999c.cjs.dev.js +0 -130
- package/dist/MetricKey-d96ef128.cjs.prod.js +0 -130
- package/dist/MetricKey-fb261d1b.esm.js +0 -118
- package/dist/MetricKeyType-637f6694.cjs.prod.js +0 -187
- package/dist/MetricKeyType-6a10f955.esm.js +0 -168
- package/dist/MetricKeyType-ed70a508.cjs.dev.js +0 -187
- package/dist/MetricLabel-30df73d1.esm.js +0 -48
- package/dist/MetricLabel-b6a3c628.cjs.prod.js +0 -53
- package/dist/MetricLabel-e6d1cb96.cjs.dev.js +0 -53
- package/dist/MetricPair-5f5f6f1b.esm.js +0 -45
- package/dist/MetricPair-a1551790.cjs.prod.js +0 -50
- package/dist/MetricPair-f1f0edbd.cjs.dev.js +0 -50
- package/dist/MetricPolling-258af71e.esm.js +0 -167
- package/dist/MetricPolling-b2accbbd.cjs.dev.js +0 -177
- package/dist/MetricPolling-c6caba9d.cjs.prod.js +0 -177
- package/dist/MetricRegistry-2ae45fdf.cjs.dev.js +0 -38
- package/dist/MetricRegistry-44d3af51.esm.js +0 -34
- package/dist/MetricRegistry-d61eb47d.cjs.prod.js +0 -38
- package/dist/MetricState-a3499d98.cjs.prod.js +0 -191
- package/dist/MetricState-cd7a1775.cjs.dev.js +0 -191
- package/dist/MetricState-d4fcb7d0.esm.js +0 -172
- package/dist/MutableHashMap-b3ab7261.esm.js +0 -142
- package/dist/MutableHashMap-d6cb38d9.cjs.prod.js +0 -154
- package/dist/MutableHashMap-f08d01f5.cjs.dev.js +0 -154
- package/dist/MutableHashSet-9e2ea672.cjs.dev.js +0 -110
- package/dist/MutableHashSet-ec9f7a0b.esm.js +0 -101
- package/dist/MutableHashSet-fa860611.cjs.prod.js +0 -110
- package/dist/MutableList-4ef847b7.cjs.prod.js +0 -296
- package/dist/MutableList-85cf4e37.cjs.dev.js +0 -296
- package/dist/MutableList-8c671944.esm.js +0 -281
- package/dist/MutableQueue-3dfd5fea.cjs.dev.js +0 -215
- package/dist/MutableQueue-416dfcd9.cjs.prod.js +0 -215
- package/dist/MutableQueue-54a4b584.esm.js +0 -202
- package/dist/MutableRef-82c6fe46.cjs.prod.js +0 -194
- package/dist/MutableRef-cb4d2fc0.esm.js +0 -176
- package/dist/MutableRef-ef31c15d.cjs.dev.js +0 -194
- package/dist/NonEmptyIterable-26ed16e4.cjs.prod.js +0 -36
- package/dist/NonEmptyIterable-7ef320e0.esm.js +0 -33
- package/dist/NonEmptyIterable-b064c1af.cjs.dev.js +0 -36
- package/dist/Number-d021c8f9.cjs.prod.js +0 -417
- package/dist/Number-dc454336.esm.js +0 -394
- package/dist/Number-dddf713e.cjs.dev.js +0 -417
- package/dist/Option-1d073850.esm.js +0 -1135
- package/dist/Option-837ae0da.cjs.dev.js +0 -1198
- package/dist/Option-b07f2b1d.cjs.prod.js +0 -1198
- package/dist/Order-2f11aa24.esm.js +0 -293
- package/dist/Order-2f785421.cjs.prod.js +0 -321
- package/dist/Order-cbf22e18.cjs.dev.js +0 -321
- package/dist/Ordering-9892085c.esm.js +0 -97
- package/dist/Ordering-e20427cc.cjs.dev.js +0 -104
- package/dist/Ordering-f3e378ef.cjs.prod.js +0 -104
- package/dist/Pipeable-856ddd7c.cjs.prod.js +0 -52
- package/dist/Pipeable-ef202667.cjs.dev.js +0 -52
- package/dist/Pipeable-fe51dc02.esm.js +0 -49
- package/dist/Pool-68590a64.cjs.dev.js +0 -122
- package/dist/Pool-718f79ff.cjs.prod.js +0 -122
- package/dist/Pool-cdfcfabe.esm.js +0 -114
- package/dist/Predicate-52271838.esm.js +0 -677
- package/dist/Predicate-54d8c8de.cjs.dev.js +0 -718
- package/dist/Predicate-a3fd4088.cjs.prod.js +0 -718
- package/dist/Queue-48d0b9d4.cjs.dev.js +0 -394
- package/dist/Queue-9f8579c0.cjs.prod.js +0 -394
- package/dist/Queue-bbebbeda.esm.js +0 -362
- package/dist/Random-0bdc1bcb.cjs.prod.js +0 -104
- package/dist/Random-14987953.esm.js +0 -94
- package/dist/Random-f495bcbc.cjs.dev.js +0 -104
- package/dist/ReadonlyArray-199ff80e.esm.js +0 -1584
- package/dist/ReadonlyArray-3b1a15d8.cjs.dev.js +0 -10
- package/dist/ReadonlyArray-6fbc78a1.cjs.prod.js +0 -1721
- package/dist/ReadonlyArray-84c71385.esm.js +0 -8
- package/dist/ReadonlyArray-885e80a2.cjs.dev.js +0 -1721
- package/dist/ReadonlyArray-8adb9a46.cjs.prod.js +0 -10
- package/dist/ReadonlyRecord-4969b34f.cjs.prod.js +0 -568
- package/dist/ReadonlyRecord-c1f5d048.esm.js +0 -544
- package/dist/ReadonlyRecord-c6dc7deb.cjs.dev.js +0 -568
- package/dist/RedBlackTree-22839235.esm.js +0 -1632
- package/dist/RedBlackTree-59192950.cjs.prod.js +0 -1669
- package/dist/RedBlackTree-98a93ec6.cjs.dev.js +0 -1669
- package/dist/Ref-88c1d56d.cjs.prod.js +0 -282
- package/dist/Ref-8d85fc7a.cjs.dev.js +0 -282
- package/dist/Ref-9a9de951.esm.js +0 -248
- package/dist/Reloadable-10cfae17.esm.js +0 -159
- package/dist/Reloadable-3ca716d9.cjs.prod.js +0 -169
- package/dist/Reloadable-65bf6783.cjs.dev.js +0 -169
- package/dist/Request-5b794c27.cjs.dev.js +0 -190
- package/dist/Request-6d646956.cjs.prod.js +0 -190
- package/dist/Request-9f0b571a.esm.js +0 -175
- package/dist/RequestBlock-15e7d048.cjs.prod.js +0 -124
- package/dist/RequestBlock-6105623d.esm.js +0 -114
- package/dist/RequestBlock-ec5299d4.cjs.dev.js +0 -124
- package/dist/RequestResolver-10227a7b.esm.js +0 -213
- package/dist/RequestResolver-a3fe9b72.cjs.prod.js +0 -233
- package/dist/RequestResolver-bc7e6050.cjs.dev.js +0 -233
- package/dist/Resource-966460b5.cjs.dev.js +0 -118
- package/dist/Resource-9f1084b9.cjs.prod.js +0 -118
- package/dist/Resource-afd128d6.esm.js +0 -111
- package/dist/Runtime-15bf8fcd.cjs.prod.js +0 -191
- package/dist/Runtime-1a63e954.cjs.dev.js +0 -191
- package/dist/Runtime-4f6fc384.esm.js +0 -175
- package/dist/RuntimeFlags-4d3b4ba7.esm.js +0 -344
- package/dist/RuntimeFlags-a43dcce7.cjs.dev.js +0 -381
- package/dist/RuntimeFlags-ef10d73a.cjs.prod.js +0 -381
- package/dist/RuntimeFlagsPatch-0c131e8e.cjs.dev.js +0 -411
- package/dist/RuntimeFlagsPatch-a1da6096.esm.js +0 -365
- package/dist/RuntimeFlagsPatch-bfdf133d.cjs.prod.js +0 -411
- package/dist/STM-2bdad2bd.cjs.dev.js +0 -1447
- package/dist/STM-55e91604.esm.js +0 -1321
- package/dist/STM-e6749b84.cjs.prod.js +0 -1447
- package/dist/Schedule-35a9436e.cjs.prod.js +0 -1159
- package/dist/Schedule-d9b0f037.cjs.dev.js +0 -1159
- package/dist/Schedule-da001b13.esm.js +0 -1059
- package/dist/ScheduleDecision-2ab823c2.cjs.dev.js +0 -106
- package/dist/ScheduleDecision-369cf2a1.cjs.prod.js +0 -106
- package/dist/ScheduleDecision-e794f66d.esm.js +0 -99
- package/dist/ScheduleInterval-2db9be83.cjs.dev.js +0 -244
- package/dist/ScheduleInterval-3e9b8eca.cjs.prod.js +0 -244
- package/dist/ScheduleInterval-94e80ec4.esm.js +0 -229
- package/dist/ScheduleIntervals-ab412802.cjs.dev.js +0 -265
- package/dist/ScheduleIntervals-e6ed15fa.cjs.prod.js +0 -265
- package/dist/ScheduleIntervals-ef5cd7c5.esm.js +0 -252
- package/dist/Scheduler-44f252da.cjs.prod.js +0 -358
- package/dist/Scheduler-6122a3ee.cjs.dev.js +0 -358
- package/dist/Scheduler-d2f7e5c7.esm.js +0 -343
- package/dist/Scope-0ffde3bb.esm.js +0 -131
- package/dist/Scope-326194e2.cjs.prod.js +0 -143
- package/dist/Scope-3cf29072.cjs.dev.js +0 -143
- package/dist/ScopedCache-01a07a6d.cjs.prod.js +0 -467
- package/dist/ScopedCache-77c605e8.cjs.dev.js +0 -467
- package/dist/ScopedCache-9c558fd1.esm.js +0 -462
- package/dist/ScopedRef-2f0e2b33.cjs.dev.js +0 -87
- package/dist/ScopedRef-5c29a8a2.cjs.prod.js +0 -87
- package/dist/ScopedRef-dd8a823e.esm.js +0 -80
- package/dist/Sink-923b4ad8.esm.js +0 -1107
- package/dist/Sink-c4ca577a.cjs.prod.js +0 -1215
- package/dist/Sink-fa1f105b.cjs.dev.js +0 -1215
- package/dist/SortedMap-44f47d83.esm.js +0 -190
- package/dist/SortedMap-abf39a75.cjs.prod.js +0 -210
- package/dist/SortedMap-b04da739.cjs.dev.js +0 -210
- package/dist/SortedSet-3339ea7f.esm.js +0 -288
- package/dist/SortedSet-4efa4f05.cjs.dev.js +0 -311
- package/dist/SortedSet-b588ac70.cjs.prod.js +0 -311
- package/dist/Stack-765c2298.esm.js +0 -9
- package/dist/Stream-1d51d0be.esm.js +0 -3175
- package/dist/Stream-55dd689b.cjs.prod.js +0 -3469
- package/dist/Stream-b1eaedfc.cjs.dev.js +0 -3469
- package/dist/StreamEmit-bd696ab0.esm.js +0 -5
- package/dist/StreamHaltStrategy-292ed375.cjs.dev.js +0 -214
- package/dist/StreamHaltStrategy-506d4abb.cjs.prod.js +0 -214
- package/dist/StreamHaltStrategy-9864a080.esm.js +0 -201
- package/dist/String-9702a941.cjs.dev.js +0 -694
- package/dist/String-ba45d520.esm.js +0 -648
- package/dist/String-fa7c1c88.cjs.prod.js +0 -694
- package/dist/Struct-3d8b2a81.cjs.prod.js +0 -141
- package/dist/Struct-62f329c0.cjs.dev.js +0 -141
- package/dist/Struct-8bc142d1.esm.js +0 -134
- package/dist/SubscriptionRef-1eb76544.cjs.prod.js +0 -269
- package/dist/SubscriptionRef-33b302b6.esm.js +0 -245
- package/dist/SubscriptionRef-faf570c5.cjs.dev.js +0 -269
- package/dist/Supervisor-34de9985.cjs.dev.js +0 -170
- package/dist/Supervisor-3706300f.cjs.prod.js +0 -170
- package/dist/Supervisor-5b9943cf.esm.js +0 -160
- package/dist/Symbol-9ad0bde8.esm.js +0 -36
- package/dist/Symbol-e3ea5627.cjs.dev.js +0 -40
- package/dist/Symbol-e5af99ce.cjs.prod.js +0 -40
- package/dist/SynchronizedRef-01f585dc.cjs.prod.js +0 -212
- package/dist/SynchronizedRef-c389137f.esm.js +0 -187
- package/dist/SynchronizedRef-cda883b7.cjs.dev.js +0 -212
- package/dist/TArray-1200bf6a.esm.js +0 -412
- package/dist/TArray-97bc3f87.cjs.prod.js +0 -455
- package/dist/TArray-9bd73c38.cjs.dev.js +0 -455
- package/dist/TDeferred-875fd41c.esm.js +0 -120
- package/dist/TDeferred-bf21b756.cjs.prod.js +0 -129
- package/dist/TDeferred-f97247d3.cjs.dev.js +0 -129
- package/dist/THub-917198c0.esm.js +0 -553
- package/dist/THub-c4a3e52c.cjs.dev.js +0 -570
- package/dist/THub-d9d3b223.cjs.prod.js +0 -570
- package/dist/TMap-459696e5.cjs.dev.js +0 -463
- package/dist/TMap-786b8508.esm.js +0 -419
- package/dist/TMap-a6aab3c3.cjs.prod.js +0 -463
- package/dist/TPriorityQueue-31c32afb.esm.js +0 -360
- package/dist/TPriorityQueue-918056c3.cjs.prod.js +0 -381
- package/dist/TPriorityQueue-e8429066.cjs.dev.js +0 -381
- package/dist/TQueue-adee58b8.esm.js +0 -324
- package/dist/TQueue-b9593214.cjs.prod.js +0 -353
- package/dist/TQueue-d1c8153e.cjs.dev.js +0 -353
- package/dist/TRandom-65721a5b.cjs.prod.js +0 -203
- package/dist/TRandom-677ba64f.esm.js +0 -192
- package/dist/TRandom-79057bd9.cjs.dev.js +0 -203
- package/dist/TReentrantLock-0dbd6074.cjs.prod.js +0 -456
- package/dist/TReentrantLock-164c0898.cjs.dev.js +0 -456
- package/dist/TReentrantLock-65156c11.esm.js +0 -435
- package/dist/TRef-4a45f5af.cjs.dev.js +0 -152
- package/dist/TRef-edd5ff88.esm.js +0 -135
- package/dist/TRef-ff8497e4.cjs.prod.js +0 -152
- package/dist/TSemaphore-1f5dc074.cjs.dev.js +0 -197
- package/dist/TSemaphore-bccebfec.esm.js +0 -183
- package/dist/TSemaphore-d1096593.cjs.prod.js +0 -197
- package/dist/TSet-0f61d448.cjs.prod.js +0 -444
- package/dist/TSet-48903882.cjs.dev.js +0 -444
- package/dist/TSet-bd3a1de2.esm.js +0 -412
- package/dist/Take-1e6b1ba3.esm.js +0 -214
- package/dist/Take-7797160f.cjs.dev.js +0 -236
- package/dist/Take-d245cc08.cjs.prod.js +0 -236
- package/dist/TestAnnotation-5b23b64a.cjs.prod.js +0 -135
- package/dist/TestAnnotation-c2b6bb64.esm.js +0 -124
- package/dist/TestAnnotation-ca7ea5d9.cjs.dev.js +0 -135
- package/dist/TestAnnotationMap-5ef91d33.cjs.prod.js +0 -125
- package/dist/TestAnnotationMap-83b0e761.cjs.dev.js +0 -125
- package/dist/TestAnnotationMap-d180214b.esm.js +0 -114
- package/dist/TestAnnotations-758011e7.cjs.prod.js +0 -97
- package/dist/TestAnnotations-89733ab7.cjs.dev.js +0 -97
- package/dist/TestAnnotations-cf445345.esm.js +0 -91
- package/dist/TestClock-0a012f75.esm.js +0 -565
- package/dist/TestClock-0abac759.cjs.prod.js +0 -581
- package/dist/TestClock-3bdb0c0b.cjs.dev.js +0 -581
- package/dist/TestConfig-3f48c7f2.cjs.prod.js +0 -37
- package/dist/TestConfig-e52495c3.esm.js +0 -33
- package/dist/TestConfig-ff283076.cjs.dev.js +0 -37
- package/dist/TestContext-64f40523.esm.js +0 -36
- package/dist/TestContext-7a6420d3.cjs.prod.js +0 -41
- package/dist/TestContext-b44d97ae.cjs.dev.js +0 -41
- package/dist/TestLive-64c62bfe.cjs.dev.js +0 -60
- package/dist/TestLive-906c173d.cjs.prod.js +0 -60
- package/dist/TestLive-bfab4add.esm.js +0 -55
- package/dist/TestServices-844e305d.esm.js +0 -306
- package/dist/TestServices-944b625c.cjs.prod.js +0 -341
- package/dist/TestServices-f8c51bbd.cjs.dev.js +0 -341
- package/dist/TestSized-0fa739ff.cjs.prod.js +0 -64
- package/dist/TestSized-3a0fa658.esm.js +0 -58
- package/dist/TestSized-955a228e.cjs.dev.js +0 -64
- package/dist/Tracer-1610aba4.cjs.dev.js +0 -81
- package/dist/Tracer-700da80a.cjs.prod.js +0 -81
- package/dist/Tracer-b07052e2.esm.js +0 -75
- package/dist/Tuple-1fa12d6e.esm.js +0 -187
- package/dist/Tuple-73682170.cjs.prod.js +0 -199
- package/dist/Tuple-9822259f.cjs.dev.js +0 -199
- package/dist/Types-be3804ad.esm.js +0 -5
- package/dist/Unify-150ebcee.cjs.dev.js +0 -48
- package/dist/Unify-77f78d08.cjs.prod.js +0 -48
- package/dist/Unify-9d27a1f3.esm.js +0 -45
- package/dist/Utils-32587b0c.cjs.dev.js +0 -370
- package/dist/Utils-6484334f.cjs.prod.js +0 -370
- package/dist/Utils-657e8bfa.esm.js +0 -362
- package/dist/boundaries-6bacf30a.cjs.prod.js +0 -54
- package/dist/boundaries-8475a9b4.esm.js +0 -48
- package/dist/boundaries-c6f4c3da.cjs.dev.js +0 -54
- package/dist/cache-2fa366f0.esm.js +0 -514
- package/dist/cache-7b578624.cjs.prod.js +0 -523
- package/dist/cache-8db60799.cjs.dev.js +0 -523
- package/dist/childExecutorDecision-49f0f19c.esm.js +0 -85
- package/dist/childExecutorDecision-744cd5fb.cjs.prod.js +0 -98
- package/dist/childExecutorDecision-c1c3b8b6.cjs.dev.js +0 -98
- package/dist/circular-1dfea59d.cjs.prod.js +0 -107
- package/dist/circular-3ebc9b78.esm.js +0 -82
- package/dist/circular-604e98e5.cjs.prod.js +0 -341
- package/dist/circular-8088cc19.cjs.dev.js +0 -341
- package/dist/circular-cff58c30.esm.js +0 -311
- package/dist/circular-e5da795a.cjs.dev.js +0 -107
- package/dist/config-05de256b.cjs.dev.js +0 -474
- package/dist/config-3003c43a.cjs.prod.js +0 -474
- package/dist/config-64a67e36.esm.js +0 -428
- package/dist/configError-84c0742e.esm.js +0 -305
- package/dist/configError-a7c4fcc2.cjs.dev.js +0 -323
- package/dist/configError-b3dd6ec2.cjs.prod.js +0 -323
- package/dist/configProvider-35a1a3c7.cjs.prod.js +0 -447
- package/dist/configProvider-56d1b842.cjs.dev.js +0 -447
- package/dist/configProvider-cd15d971.esm.js +0 -428
- package/dist/configSecret-18ba6f6e.cjs.dev.js +0 -74
- package/dist/configSecret-3dd7ab72.cjs.prod.js +0 -74
- package/dist/configSecret-793e52b4.esm.js +0 -66
- package/dist/core-01c0ed9d.cjs.prod.js +0 -1072
- package/dist/core-218f7617.cjs.prod.js +0 -3502
- package/dist/core-5346c1e5.cjs.dev.js +0 -1072
- package/dist/core-9276b625.esm.js +0 -1032
- package/dist/core-9f5f0dc2.esm.js +0 -3225
- package/dist/core-bedc63fe.cjs.dev.js +0 -3502
- package/dist/core-effect-a839563d.cjs.dev.js +0 -1030
- package/dist/core-effect-e762d50b.esm.js +0 -902
- package/dist/core-effect-fea8dde9.cjs.prod.js +0 -1030
- package/dist/dataSource-43c62f8e.esm.js +0 -60
- package/dist/dataSource-8ab8a0ec.cjs.dev.js +0 -74
- package/dist/dataSource-cc1edaa1.cjs.prod.js +0 -74
- package/dist/defaultServices-1d4f144a.cjs.prod.js +0 -388
- package/dist/defaultServices-1f1298e8.cjs.dev.js +0 -388
- package/dist/defaultServices-86214de4.esm.js +0 -359
- package/dist/fiber-1511340a.esm.js +0 -363
- package/dist/fiber-18f7cf87.cjs.dev.js +0 -411
- package/dist/fiber-957d5291.cjs.prod.js +0 -411
- package/dist/fiberRefs-76ecbcfd.cjs.dev.js +0 -181
- package/dist/fiberRefs-b32de18b.esm.js +0 -169
- package/dist/fiberRefs-f0429b31.cjs.prod.js +0 -181
- package/dist/fiberRuntime-233db874.cjs.dev.js +0 -3012
- package/dist/fiberRuntime-5e42f85c.cjs.prod.js +0 -3012
- package/dist/fiberRuntime-98f09d31.esm.js +0 -2857
- package/dist/groupBy-36e6ca3f.cjs.prod.js +0 -216
- package/dist/groupBy-3a32c4b6.cjs.dev.js +0 -216
- package/dist/groupBy-8d753c19.esm.js +0 -206
- package/dist/hook-8fc9006f.esm.js +0 -362
- package/dist/hook-e169b712.cjs.prod.js +0 -371
- package/dist/hook-fe9f948d.cjs.dev.js +0 -371
- package/dist/key-215ea6fd.esm.js +0 -68
- package/dist/key-4824d1ad.cjs.prod.js +0 -79
- package/dist/key-d8dc829b.cjs.dev.js +0 -79
- package/dist/keyType-c980adcc.cjs.dev.js +0 -236
- package/dist/keyType-d85714ed.cjs.prod.js +0 -236
- package/dist/keyType-fefd9ef8.esm.js +0 -218
- package/dist/label-14b7d517.cjs.dev.js +0 -44
- package/dist/label-5cb21441.esm.js +0 -40
- package/dist/label-e78b2f8f.cjs.prod.js +0 -44
- package/dist/layer-3da5a933.cjs.prod.js +0 -658
- package/dist/layer-e1d1db03.cjs.dev.js +0 -658
- package/dist/layer-f8ec8454.esm.js +0 -596
- package/dist/mergeDecision-32146c34.esm.js +0 -78
- package/dist/mergeDecision-75feaab3.cjs.dev.js +0 -86
- package/dist/mergeDecision-a1822db2.cjs.prod.js +0 -86
- package/dist/mergeState-21728f0b.esm.js +0 -96
- package/dist/mergeState-2c24c562.cjs.prod.js +0 -109
- package/dist/mergeState-e9aa09b9.cjs.dev.js +0 -109
- package/dist/mergeStrategy-84dd9011.esm.js +0 -64
- package/dist/mergeStrategy-8fe47c7e.cjs.dev.js +0 -72
- package/dist/mergeStrategy-909bebb0.cjs.prod.js +0 -72
- package/dist/pair-67530b23.cjs.dev.js +0 -42
- package/dist/pair-cb46f77c.esm.js +0 -38
- package/dist/pair-fb591d12.cjs.prod.js +0 -42
- package/dist/patch-99e8591b.esm.js +0 -127
- package/dist/patch-cdcb5e42.cjs.dev.js +0 -132
- package/dist/patch-f440dab6.cjs.prod.js +0 -132
- package/dist/pathPatch-5ac830c8.esm.js +0 -83
- package/dist/pathPatch-75afe967.cjs.dev.js +0 -90
- package/dist/pathPatch-775a0838.cjs.prod.js +0 -90
- package/dist/pool-0da00d67.cjs.prod.js +0 -278
- package/dist/pool-54820a71.esm.js +0 -271
- package/dist/pool-bfa5c974.cjs.dev.js +0 -278
- package/dist/query-1685a476.esm.js +0 -97
- package/dist/query-3ab8cd4e.cjs.prod.js +0 -104
- package/dist/query-68bb7c45.cjs.dev.js +0 -104
- package/dist/queue-499cacee.cjs.prod.js +0 -538
- package/dist/queue-b79c472d.esm.js +0 -505
- package/dist/queue-bf262207.cjs.dev.js +0 -538
- package/dist/registry-38f0ed9d.esm.js +0 -111
- package/dist/registry-6f465b2f.cjs.prod.js +0 -114
- package/dist/registry-dfe7ed01.cjs.dev.js +0 -114
- package/dist/runtime-5b7472d5.cjs.dev.js +0 -288
- package/dist/runtime-68e90981.cjs.prod.js +0 -288
- package/dist/runtime-f91ca239.esm.js +0 -266
- package/dist/schedule-0d31f4cc.esm.js +0 -843
- package/dist/schedule-616cf1b8.cjs.prod.js +0 -956
- package/dist/schedule-d3f9b258.cjs.dev.js +0 -956
- package/dist/scopedRef-5e59cf54.cjs.prod.js +0 -55
- package/dist/scopedRef-730d8d35.cjs.dev.js +0 -55
- package/dist/scopedRef-e54a3d93.esm.js +0 -49
- package/dist/singleProducerAsyncInput-6508b7f1.cjs.dev.js +0 -193
- package/dist/singleProducerAsyncInput-c67ef1c6.esm.js +0 -191
- package/dist/singleProducerAsyncInput-d3225b4e.cjs.prod.js +0 -193
- package/dist/sink-05d54662.cjs.prod.js +0 -3094
- package/dist/sink-3105a90f.cjs.dev.js +0 -3094
- package/dist/sink-3f26fc31.esm.js +0 -2877
- package/dist/state-38610229.esm.js +0 -209
- package/dist/state-6d974829.cjs.dev.js +0 -227
- package/dist/state-abef4d59.cjs.prod.js +0 -227
- package/dist/stm-43c3b262.cjs.dev.js +0 -678
- package/dist/stm-d01a804c.esm.js +0 -582
- package/dist/stm-e1200304.cjs.prod.js +0 -678
- package/dist/stream-3ebec4f3.cjs.prod.js +0 -3649
- package/dist/stream-9270c6b1.esm.js +0 -3355
- package/dist/stream-b819c5b3.cjs.dev.js +0 -3649
- package/dist/synchronizedRef-5bbb64b2.cjs.prod.js +0 -62
- package/dist/synchronizedRef-e9682c8e.cjs.dev.js +0 -62
- package/dist/synchronizedRef-f7077a5f.esm.js +0 -53
- package/dist/tArray-0d2e8fae.cjs.dev.js +0 -330
- package/dist/tArray-442d22a4.cjs.prod.js +0 -330
- package/dist/tArray-fa2759e8.esm.js +0 -287
- package/dist/tMap-2a001015.cjs.prod.js +0 -535
- package/dist/tMap-2a98e9a7.esm.js +0 -492
- package/dist/tMap-2fd8c9e6.cjs.dev.js +0 -535
- package/dist/tQueue-13f8f402.esm.js +0 -331
- package/dist/tQueue-84a0d0eb.cjs.dev.js +0 -367
- package/dist/tQueue-e2e96d1f.cjs.prod.js +0 -367
- package/dist/tRef-4772a528.cjs.prod.js +0 -133
- package/dist/tRef-b5d0cc28.esm.js +0 -115
- package/dist/tRef-bbbdd134.cjs.dev.js +0 -133
- package/dist/take-68ed448f.cjs.dev.js +0 -152
- package/dist/take-7c168e8e.esm.js +0 -130
- package/dist/take-d293f721.cjs.prod.js +0 -152
- package/dist/timeout-4180303d.esm.js +0 -22
- package/dist/upstreamPullRequest-be86e51c.esm.js +0 -71
- package/dist/upstreamPullRequest-d2eaf7f5.cjs.prod.js +0 -79
- package/dist/upstreamPullRequest-f986731f.cjs.dev.js +0 -79
- package/dist/upstreamPullStrategy-08e7185f.cjs.prod.js +0 -81
- package/dist/upstreamPullStrategy-29c0b698.cjs.dev.js +0 -81
- package/dist/upstreamPullStrategy-d1505fa4.esm.js +0 -71
|
@@ -1,2857 +0,0 @@
|
|
|
1
|
-
import { n as not } from './Boolean-f564d31a.esm.js';
|
|
2
|
-
import { o as of$1, h as isNonEmpty, j as headNonEmpty, p as prepend, t as tailNonEmpty, f as fromIterable$2, l as unsafeFromArray } from './Chunk-98371336.esm.js';
|
|
3
|
-
import { g as get$2, a as getOption, b as add$1, T as Tag, m as merge, c as make$6, u as unsafeGet } from './Context-48179faa.esm.js';
|
|
4
|
-
import { _ as _await$1 } from './Deferred-554d3588.esm.js';
|
|
5
|
-
import { p as parallel, a as sequential, s as sequential$2, b as parallelN, i as isSequential, c as isParallel } from './ExecutionStrategy-c6f7c490.esm.js';
|
|
6
|
-
import { t as threadName, a as threadName$1, c as combine$1, n as none$3, u as unsafeMake$1 } from './FiberId-556ab9ef.esm.js';
|
|
7
|
-
import { g as getOrDefault } from './FiberRefs-a6ab4b8d.esm.js';
|
|
8
|
-
import { d as diff$2, p as patch$2 } from './FiberRefsPatch-f84453c3.esm.js';
|
|
9
|
-
import { i as isDone, d as done, s as suspended, r as running } from './FiberStatus-90291b8c.esm.js';
|
|
10
|
-
import { d as dual, b as constVoid, p as pipe, i as identity } from './Function-52fb7d21.esm.js';
|
|
11
|
-
import { e as empty$2, m as make$2, u as union, c as fromIterable, i as isHashSet, r as reduce, d as difference, s as size$1 } from './HashSet-dff2542b.esm.js';
|
|
12
|
-
import { r as fiberRefUnsafeMake, v as fiberRefGetWith, x as currentConcurrency, y as empty$1, A as pretty, t as tap, s as sync$2, B as matchCauseEffect, C as failCause, j as succeed$3, D as defects, m as map$2, E as currentMetricLabels, q as deferredUnsafeDone, F as matchEffect, G as exitFail, H as exitSucceed, J as zip$2, p as unit, K as currentTracerSpan, L as fiberRefUnsafeMakeHashSet, u as uninterruptible, M as isEffect, w as withFiberRuntime, N as fiberRefLocally, O as currentForkScopeOverride, P as exit, Q as exitIsSuccess, R as onError, S as failureOrCause, T as partitionMap, U as either, f as flatMap$1, V as fail$1, W as dieSync, X as uninterruptibleMask, Y as interruptible, Z as forEachSequential, z as zipRight$1, c as asUnit, o as onInterrupt, _ as zipLeft$1, $ as interruptFiber, d as deferredMake, a0 as exitMatchEffect, a1 as flatten, a2 as deferredFailCause, g as deferredSucceed, a3 as contextWithEffect, a4 as scopeFork, a5 as acquireUseRelease, a6 as scopeClose, a7 as exitZipWith, a8 as parallel$1, a9 as sequential$1, aa as flip, ab as fiberIdWith, ac as updateRuntimeFlags, ad as runtimeFlags, ae as ScopeTypeId, af as releaseMapMake, ag as CloseableScopeTypeId, ah as releaseMapAdd, ai as scopeAddFinalizerExit, aj as as, ak as mapInputContext, al as onExit, am as fiberRefUnsafeMakePatch, an as fiberRefGet, ao as fiberRefSet, ap as fiberRefUpdate, aq as fiberRefDelete, ar as fiberRefUnsafeMakeContext, as as fiberRefUnsafeMakeRuntimeFlags, at as forEachSequentialDiscard, a as suspend, au as currentInterruptedCause, l as deferredUnsafeMake, b as deferredAwait, av as async, aw as interrupt, ax as currentSchedulingPriority, ay as isEmpty, az as whileLoop, aA as currentUnhandledErrorLogLevel, aB as isInterruptedOnly, aC as currentLogLevel, aD as currentLogSpan, aE as currentLogAnnotations, aF as exitFailCause, aG as exitUnit, aH as die, aI as currentContext, aJ as NoSuchElementException, aK as stripFailures, aL as blocked, aM as catchAllCause, aN as runRequestBlock, aO as RevertFlags, aP as yieldNow$1, aQ as isEffectError, aR as isInterruptedException, aS as withRuntimeFlags, aT as if_, aU as zipWith, aV as currentRequestBatching, aW as transplant, aX as step, aY as par, aZ as deferredFail, a_ as exitCollectAll, a$ as exitIsFailure, b0 as IllegalArgumentException, h as exitInterrupt, b1 as exitAsUnit, b2 as interruptAsFiber, b3 as flatten$2, b4 as sequentialCollectionToChunk, b5 as flatMapStep } from './core-9f5f0dc2.esm.js';
|
|
13
|
-
import { c as currentServices, a as clockTag, t as tracerTag, b as consoleTag } from './defaultServices-86214de4.esm.js';
|
|
14
|
-
import { g as globalValue } from './GlobalValue-c5f1e8e5.esm.js';
|
|
15
|
-
import { c as configProviderTag } from './configProvider-cd15d971.esm.js';
|
|
16
|
-
import { t as tapDefect, a as tapError, m as makeSpan, c as currentTimeNanosTracing, b as mapErrorCause } from './core-effect-e762d50b.esm.js';
|
|
17
|
-
import { g as globalScope, _ as _await, F as FiberTypeId, f as fiberVariance, j as join, R as RuntimeFiberTypeId, r as resume, u as unsafeMake, s as stateful, i as interruptSignal, c as currentFiberURI, O as OP_STATEFUL, a as OP_RESUME, b as OP_INTERRUPT_SIGNAL, d as OP_YIELD_NOW, y as yieldNow, e as inheritAll, h as interruptAsFork } from './fiber-1511340a.esm.js';
|
|
18
|
-
import { g as get$1, j as joinAs, d as delete_, u as updatedAs, f as forkAs, a as getOrDefault$1 } from './fiberRefs-b32de18b.esm.js';
|
|
19
|
-
import { b as size } from './HashMap-e644e23b.esm.js';
|
|
20
|
-
import { i as isCons, h as head, p as prepend$1 } from './List-c066a506.esm.js';
|
|
21
|
-
import { r as render } from './LogSpan-e5cf11a5.esm.js';
|
|
22
|
-
import { s as some, n as none$2, f as flatMap, m as map$3, b as match$1, e as fromNullable, i as isSome, g as getOrElse } from './Option-1d073850.esm.js';
|
|
23
|
-
import { p as pipeArguments } from './Pipeable-fe51dc02.esm.js';
|
|
24
|
-
import { c as clockWith } from './Clock-ab907687.esm.js';
|
|
25
|
-
import { t as toMillis, n as nanos } from './Duration-5e9f2327.esm.js';
|
|
26
|
-
import { e as exponential, f as fromChunk } from './boundaries-8475a9b4.esm.js';
|
|
27
|
-
import { c as counter$1, f as frequency$1, g as gauge$1, h as histogram$1, s as summary$1, t as taggedWithLabelSet } from './key-215ea6fd.esm.js';
|
|
28
|
-
import { m as make$3 } from './label-5cb21441.esm.js';
|
|
29
|
-
import { m as make$1 } from './registry-38f0ed9d.esm.js';
|
|
30
|
-
import { C as forEach, f as fromIterable$1, a as filterMap, A as reduce$1, D as flatten$1, B as reduceRight, E as compact } from './ReadonlyArray-199ff80e.esm.js';
|
|
31
|
-
import { a as OP_FAILURE, O as OP_SUCCESS, i as OP_YIELD, k as OP_ASYNC, c as OP_ON_FAILURE, d as OP_ON_SUCCESS, h as OP_WHILE, l as OP_TAG, g as OP_SYNC, j as OP_REVERT_FLAGS, e as OP_ON_SUCCESS_AND_FAILURE, b as OP_WITH_RUNTIME, f as OP_UPDATE_RUNTIME_FLAGS, m as OP_COMMIT } from './Effectable-a76b6aa1.esm.js';
|
|
32
|
-
import { s as struct } from './Data-bad1ffeb.esm.js';
|
|
33
|
-
import { b as empty$3, p as patch$1, c as diff$1, r as runtimeMetrics, f as exclude, W as WindDown, I as Interruption, g as interruptible$1, h as enable, j as cooperativeYielding, O as OpSupervision, n as none$4 } from './RuntimeFlagsPatch-a1da6096.esm.js';
|
|
34
|
-
import { g as get, s as set$1, m as make$7, c as compareAndSet } from './MutableRef-cb4d2fc0.esm.js';
|
|
35
|
-
import { a as add, r as remove } from './SortedSet-3339ea7f.esm.js';
|
|
36
|
-
import { m as make$4 } from './Differ-3be1df41.esm.js';
|
|
37
|
-
import { e as equals } from './Equal-7d4ae7e7.esm.js';
|
|
38
|
-
import { f as fromLiteral, g as greaterThan } from './LogLevel-2e6b00c7.esm.js';
|
|
39
|
-
import { a as isIterable } from './Predicate-52271838.esm.js';
|
|
40
|
-
import { m as make$5, a as modify, u as update$1, g as get$3 } from './Ref-9a9de951.esm.js';
|
|
41
|
-
import { c as currentScheduler } from './Scheduler-d2f7e5c7.esm.js';
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
const currentRequestMap = /*#__PURE__*/globalValue( /*#__PURE__*/Symbol.for("effect/FiberRef/currentRequestMap"), () => fiberRefUnsafeMake(new Map()));
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
const match = (options, sequential, unbounded, bounded) => {
|
|
48
|
-
switch (options?.concurrency) {
|
|
49
|
-
case undefined:
|
|
50
|
-
{
|
|
51
|
-
return sequential();
|
|
52
|
-
}
|
|
53
|
-
case "unbounded":
|
|
54
|
-
{
|
|
55
|
-
return unbounded();
|
|
56
|
-
}
|
|
57
|
-
case "inherit":
|
|
58
|
-
{
|
|
59
|
-
return fiberRefGetWith(currentConcurrency, concurrency => concurrency === "unbounded" ? unbounded() : concurrency > 1 ? bounded(concurrency) : sequential());
|
|
60
|
-
}
|
|
61
|
-
default:
|
|
62
|
-
{
|
|
63
|
-
return options.concurrency > 1 ? bounded(options.concurrency) : sequential();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
const matchSimple = (options, sequential, concurrent) => {
|
|
70
|
-
switch (options?.concurrency) {
|
|
71
|
-
case undefined:
|
|
72
|
-
{
|
|
73
|
-
return sequential();
|
|
74
|
-
}
|
|
75
|
-
case "unbounded":
|
|
76
|
-
{
|
|
77
|
-
return concurrent();
|
|
78
|
-
}
|
|
79
|
-
case "inherit":
|
|
80
|
-
{
|
|
81
|
-
return fiberRefGetWith(currentConcurrency, concurrency => concurrency === "unbounded" ? concurrent() : concurrency > 1 ? concurrent() : sequential());
|
|
82
|
-
}
|
|
83
|
-
default:
|
|
84
|
-
{
|
|
85
|
-
return options.concurrency > 1 ? concurrent() : sequential();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
const LoggerSymbolKey = "effect/Logger";
|
|
92
|
-
|
|
93
|
-
/** @internal */
|
|
94
|
-
const LoggerTypeId = /*#__PURE__*/Symbol.for(LoggerSymbolKey);
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
const loggerVariance = {
|
|
98
|
-
_Message: _ => _,
|
|
99
|
-
_Output: _ => _
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
const makeLogger = log => ({
|
|
104
|
-
[LoggerTypeId]: loggerVariance,
|
|
105
|
-
log,
|
|
106
|
-
pipe() {
|
|
107
|
-
return pipeArguments(this, arguments);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
const mapInput$1 = /*#__PURE__*/dual(2, (self, f) => makeLogger(options => self.log({
|
|
113
|
-
...options,
|
|
114
|
-
message: f(options.message)
|
|
115
|
-
})));
|
|
116
|
-
|
|
117
|
-
/** @internal */
|
|
118
|
-
const filterLogLevel = /*#__PURE__*/dual(2, (self, f) => makeLogger(options => f(options.logLevel) ? some(self.log(options)) : none$2()));
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
const map$1 = /*#__PURE__*/dual(2, (self, f) => makeLogger(options => f(self.log(options))));
|
|
122
|
-
|
|
123
|
-
/** @internal */
|
|
124
|
-
const none$1 = {
|
|
125
|
-
[LoggerTypeId]: loggerVariance,
|
|
126
|
-
log: constVoid,
|
|
127
|
-
pipe() {
|
|
128
|
-
return pipeArguments(this, arguments);
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
/** @internal */
|
|
133
|
-
const simple = log => ({
|
|
134
|
-
[LoggerTypeId]: loggerVariance,
|
|
135
|
-
log: ({
|
|
136
|
-
message
|
|
137
|
-
}) => log(message),
|
|
138
|
-
pipe() {
|
|
139
|
-
return pipeArguments(this, arguments);
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
/** @internal */
|
|
144
|
-
const succeed$2 = value => {
|
|
145
|
-
return simple(() => value);
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
/** @internal */
|
|
149
|
-
const sync$1 = evaluate => {
|
|
150
|
-
return simple(evaluate);
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
/** @internal */
|
|
154
|
-
const zip$1 = /*#__PURE__*/dual(2, (self, that) => makeLogger(options => [self.log(options), that.log(options)]));
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
const zipLeft = /*#__PURE__*/dual(2, (self, that) => map$1(zip$1(self, that), tuple => tuple[0]));
|
|
158
|
-
|
|
159
|
-
/** @internal */
|
|
160
|
-
const zipRight = /*#__PURE__*/dual(2, (self, that) => map$1(zip$1(self, that), tuple => tuple[1]));
|
|
161
|
-
|
|
162
|
-
/** @internal */
|
|
163
|
-
const stringLogger = /*#__PURE__*/makeLogger(({
|
|
164
|
-
annotations,
|
|
165
|
-
cause,
|
|
166
|
-
date,
|
|
167
|
-
fiberId,
|
|
168
|
-
logLevel,
|
|
169
|
-
message,
|
|
170
|
-
spans
|
|
171
|
-
}) => {
|
|
172
|
-
const nowMillis = date.getTime();
|
|
173
|
-
const outputArray = [`timestamp=${date.toISOString()}`, `level=${logLevel.label}`, `fiber=${threadName(fiberId)}`];
|
|
174
|
-
let output = outputArray.join(" ");
|
|
175
|
-
const stringMessage = serializeUnknown(message);
|
|
176
|
-
if (stringMessage.length > 0) {
|
|
177
|
-
output = output + " message=";
|
|
178
|
-
output = appendQuoted(stringMessage, output);
|
|
179
|
-
}
|
|
180
|
-
if (cause != null && cause != empty$1) {
|
|
181
|
-
output = output + " cause=";
|
|
182
|
-
output = appendQuoted(pretty(cause), output);
|
|
183
|
-
}
|
|
184
|
-
if (isCons(spans)) {
|
|
185
|
-
output = output + " ";
|
|
186
|
-
let first = true;
|
|
187
|
-
for (const span of spans) {
|
|
188
|
-
if (first) {
|
|
189
|
-
first = false;
|
|
190
|
-
} else {
|
|
191
|
-
output = output + " ";
|
|
192
|
-
}
|
|
193
|
-
output = output + pipe(span, render(nowMillis));
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
if (pipe(annotations, size) > 0) {
|
|
197
|
-
output = output + " ";
|
|
198
|
-
let first = true;
|
|
199
|
-
for (const [key, value] of annotations) {
|
|
200
|
-
if (first) {
|
|
201
|
-
first = false;
|
|
202
|
-
} else {
|
|
203
|
-
output = output + " ";
|
|
204
|
-
}
|
|
205
|
-
output = output + filterKeyName(key);
|
|
206
|
-
output = output + "=";
|
|
207
|
-
output = appendQuoted(String(value), output);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
return output;
|
|
211
|
-
});
|
|
212
|
-
const serializeUnknown = u => {
|
|
213
|
-
try {
|
|
214
|
-
return typeof u === "object" ? JSON.stringify(u) : String(u);
|
|
215
|
-
} catch (_) {
|
|
216
|
-
return String(u);
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
/** @internal */
|
|
221
|
-
const escapeDoubleQuotes = str => `"${str.replace(/\\([\s\S])|(")/g, "\\$1$2")}"`;
|
|
222
|
-
const textOnly = /^[^\s"=]+$/;
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
const appendQuoted = (label, output) => output + (label.match(textOnly) ? label : escapeDoubleQuotes(label));
|
|
226
|
-
|
|
227
|
-
/** @internal */
|
|
228
|
-
const logfmtLogger = /*#__PURE__*/makeLogger(({
|
|
229
|
-
annotations,
|
|
230
|
-
cause,
|
|
231
|
-
date,
|
|
232
|
-
fiberId,
|
|
233
|
-
logLevel,
|
|
234
|
-
message,
|
|
235
|
-
spans
|
|
236
|
-
}) => {
|
|
237
|
-
const nowMillis = date.getTime();
|
|
238
|
-
const outputArray = [`timestamp=${date.toISOString()}`, `level=${logLevel.label}`, `fiber=${threadName(fiberId)}`];
|
|
239
|
-
let output = outputArray.join(" ");
|
|
240
|
-
const stringMessage = serializeUnknown(message);
|
|
241
|
-
if (stringMessage.length > 0) {
|
|
242
|
-
output = output + " message=";
|
|
243
|
-
output = appendQuotedLogfmt(stringMessage, output);
|
|
244
|
-
}
|
|
245
|
-
if (cause != null && cause != empty$1) {
|
|
246
|
-
output = output + " cause=";
|
|
247
|
-
output = appendQuotedLogfmt(pretty(cause), output);
|
|
248
|
-
}
|
|
249
|
-
if (isCons(spans)) {
|
|
250
|
-
output = output + " ";
|
|
251
|
-
let first = true;
|
|
252
|
-
for (const span of spans) {
|
|
253
|
-
if (first) {
|
|
254
|
-
first = false;
|
|
255
|
-
} else {
|
|
256
|
-
output = output + " ";
|
|
257
|
-
}
|
|
258
|
-
output = output + pipe(span, renderLogSpanLogfmt(nowMillis));
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
if (pipe(annotations, size) > 0) {
|
|
262
|
-
output = output + " ";
|
|
263
|
-
let first = true;
|
|
264
|
-
for (const [key, value] of annotations) {
|
|
265
|
-
if (first) {
|
|
266
|
-
first = false;
|
|
267
|
-
} else {
|
|
268
|
-
output = output + " ";
|
|
269
|
-
}
|
|
270
|
-
output = output + filterKeyName(key);
|
|
271
|
-
output = output + "=";
|
|
272
|
-
output = appendQuotedLogfmt(String(value), output);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
return output;
|
|
276
|
-
});
|
|
277
|
-
|
|
278
|
-
/** @internal */
|
|
279
|
-
const filterKeyName = key => key.replace(/[\s="]/g, "_");
|
|
280
|
-
|
|
281
|
-
/** @internal */
|
|
282
|
-
const escapeDoubleQuotesLogfmt = str => JSON.stringify(str);
|
|
283
|
-
|
|
284
|
-
/** @internal */
|
|
285
|
-
const appendQuotedLogfmt = (label, output) => output + (label.match(textOnly) ? label : escapeDoubleQuotesLogfmt(label));
|
|
286
|
-
|
|
287
|
-
/** @internal */
|
|
288
|
-
const renderLogSpanLogfmt = now => self => {
|
|
289
|
-
const label = filterKeyName(self.label);
|
|
290
|
-
return `${label}=${now - self.startTime}ms`;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
/** @internal */
|
|
294
|
-
const MetricSymbolKey = "effect/Metric";
|
|
295
|
-
|
|
296
|
-
/** @internal */
|
|
297
|
-
const MetricTypeId = /*#__PURE__*/Symbol.for(MetricSymbolKey);
|
|
298
|
-
|
|
299
|
-
/** @internal */
|
|
300
|
-
const metricVariance = {
|
|
301
|
-
_Type: _ => _,
|
|
302
|
-
_In: _ => _,
|
|
303
|
-
_Out: _ => _
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
/** @internal */
|
|
307
|
-
const globalMetricRegistry = /*#__PURE__*/globalValue( /*#__PURE__*/Symbol.for("effect/Metric/globalMetricRegistry"), () => make$1());
|
|
308
|
-
|
|
309
|
-
/** @internal */
|
|
310
|
-
const make = function (keyType, unsafeUpdate, unsafeValue) {
|
|
311
|
-
const metric = Object.assign(effect => tap(effect, a => sync$2(() => unsafeUpdate(a, empty$2()))), {
|
|
312
|
-
[MetricTypeId]: metricVariance,
|
|
313
|
-
keyType,
|
|
314
|
-
unsafeUpdate,
|
|
315
|
-
unsafeValue,
|
|
316
|
-
pipe() {
|
|
317
|
-
return pipeArguments(this, arguments);
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
return metric;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
/** @internal */
|
|
324
|
-
const mapInput = /*#__PURE__*/dual(2, (self, f) => make(self.keyType, (input, extraTags) => self.unsafeUpdate(f(input), extraTags), self.unsafeValue));
|
|
325
|
-
|
|
326
|
-
/** @internal */
|
|
327
|
-
const counter = (name, description) => fromMetricKey(counter$1(name, description));
|
|
328
|
-
|
|
329
|
-
/** @internal */
|
|
330
|
-
const frequency = (name, description) => fromMetricKey(frequency$1(name, description));
|
|
331
|
-
|
|
332
|
-
/** @internal */
|
|
333
|
-
const withConstantInput = /*#__PURE__*/dual(2, (self, input) => mapInput(self, () => input));
|
|
334
|
-
|
|
335
|
-
/** @internal */
|
|
336
|
-
const fromMetricKey = key => {
|
|
337
|
-
const hook = extraTags => {
|
|
338
|
-
const fullKey = pipe(key, taggedWithLabelSet(extraTags));
|
|
339
|
-
return globalMetricRegistry.get(fullKey);
|
|
340
|
-
};
|
|
341
|
-
return make(key.keyType, (input, extraTags) => hook(extraTags).update(input), extraTags => hook(extraTags).get());
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
/** @internal */
|
|
345
|
-
const gauge = (name, description) => fromMetricKey(gauge$1(name, description));
|
|
346
|
-
|
|
347
|
-
/** @internal */
|
|
348
|
-
const histogram = (name, boundaries, description) => fromMetricKey(histogram$1(name, boundaries, description));
|
|
349
|
-
|
|
350
|
-
/* @internal */
|
|
351
|
-
const increment = self => update(self, 1);
|
|
352
|
-
|
|
353
|
-
/* @internal */
|
|
354
|
-
const incrementBy = /*#__PURE__*/dual(2, (self, amount) => update(self, amount));
|
|
355
|
-
|
|
356
|
-
/** @internal */
|
|
357
|
-
const map = /*#__PURE__*/dual(2, (self, f) => make(self.keyType, self.unsafeUpdate, extraTags => f(self.unsafeValue(extraTags))));
|
|
358
|
-
|
|
359
|
-
/** @internal */
|
|
360
|
-
const mapType = /*#__PURE__*/dual(2, (self, f) => make(f(self.keyType), self.unsafeUpdate, self.unsafeValue));
|
|
361
|
-
|
|
362
|
-
/* @internal */
|
|
363
|
-
const set = /*#__PURE__*/dual(2, (self, value) => update(self, value));
|
|
364
|
-
|
|
365
|
-
/** @internal */
|
|
366
|
-
const succeed$1 = out => make(void 0, constVoid, () => out);
|
|
367
|
-
|
|
368
|
-
/** @internal */
|
|
369
|
-
const sync = evaluate => make(void 0, constVoid, evaluate);
|
|
370
|
-
|
|
371
|
-
/** @internal */
|
|
372
|
-
const summary = options => withNow(summaryTimestamp(options));
|
|
373
|
-
|
|
374
|
-
/** @internal */
|
|
375
|
-
const summaryTimestamp = options => fromMetricKey(summary$1(options));
|
|
376
|
-
|
|
377
|
-
/** @internal */
|
|
378
|
-
const tagged$1 = /*#__PURE__*/dual(3, (self, key, value) => taggedWithLabels(self, make$2(make$3(key, value))));
|
|
379
|
-
|
|
380
|
-
/** @internal */
|
|
381
|
-
const taggedWithLabelsInput = /*#__PURE__*/dual(2, (self, f) => map(make(self.keyType, (input, extraTags) => self.unsafeUpdate(input, union(fromIterable(f(input)), extraTags)), self.unsafeValue), constVoid));
|
|
382
|
-
|
|
383
|
-
/** @internal */
|
|
384
|
-
const taggedWithLabels = /*#__PURE__*/dual(2, (self, extraTagsIterable) => {
|
|
385
|
-
const extraTags = isHashSet(extraTagsIterable) ? extraTagsIterable : fromIterable(extraTagsIterable);
|
|
386
|
-
return make(self.keyType, (input, extraTags1) => self.unsafeUpdate(input, pipe(extraTags, union(extraTags1))), extraTags1 => self.unsafeValue(pipe(extraTags, union(extraTags1))));
|
|
387
|
-
});
|
|
388
|
-
|
|
389
|
-
/** @internal */
|
|
390
|
-
const timer = name => {
|
|
391
|
-
const boundaries = exponential({
|
|
392
|
-
start: 1,
|
|
393
|
-
factor: 2,
|
|
394
|
-
count: 100
|
|
395
|
-
});
|
|
396
|
-
const base = pipe(histogram(name, boundaries), tagged$1("time_unit", "milliseconds"));
|
|
397
|
-
return mapInput(base, toMillis);
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
/** @internal */
|
|
401
|
-
const timerWithBoundaries = (name, boundaries) => {
|
|
402
|
-
const base = pipe(histogram(name, fromChunk(boundaries)), tagged$1("time_unit", "milliseconds"));
|
|
403
|
-
return mapInput(base, toMillis);
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
/* @internal */
|
|
407
|
-
const trackAll = /*#__PURE__*/dual(2, (self, input) => effect => matchCauseEffect(effect, {
|
|
408
|
-
onFailure: cause => {
|
|
409
|
-
self.unsafeUpdate(input, empty$2());
|
|
410
|
-
return failCause(cause);
|
|
411
|
-
},
|
|
412
|
-
onSuccess: value => {
|
|
413
|
-
self.unsafeUpdate(input, empty$2());
|
|
414
|
-
return succeed$3(value);
|
|
415
|
-
}
|
|
416
|
-
}));
|
|
417
|
-
|
|
418
|
-
/* @internal */
|
|
419
|
-
const trackDefect = /*#__PURE__*/dual(2, (self, metric) => trackDefectWith(self, metric, identity));
|
|
420
|
-
|
|
421
|
-
/* @internal */
|
|
422
|
-
const trackDefectWith = /*#__PURE__*/dual(3, (self, metric, f) => {
|
|
423
|
-
const updater = defect => metric.unsafeUpdate(f(defect), empty$2());
|
|
424
|
-
return tapDefect(self, cause => sync$2(() => pipe(defects(cause), forEach(updater))));
|
|
425
|
-
});
|
|
426
|
-
|
|
427
|
-
/* @internal */
|
|
428
|
-
const trackDuration = /*#__PURE__*/dual(2, (self, metric) => trackDurationWith(self, metric, identity));
|
|
429
|
-
|
|
430
|
-
/* @internal */
|
|
431
|
-
const trackDurationWith = /*#__PURE__*/dual(3, (self, metric, f) => clockWith(clock => {
|
|
432
|
-
const startTime = clock.unsafeCurrentTimeNanos();
|
|
433
|
-
return map$2(self, a => {
|
|
434
|
-
const endTime = clock.unsafeCurrentTimeNanos();
|
|
435
|
-
const duration = nanos(endTime - startTime);
|
|
436
|
-
metric.unsafeUpdate(f(duration), empty$2());
|
|
437
|
-
return a;
|
|
438
|
-
});
|
|
439
|
-
}));
|
|
440
|
-
|
|
441
|
-
/* @internal */
|
|
442
|
-
const trackError = /*#__PURE__*/dual(2, (self, metric) => trackErrorWith(self, metric, a => a));
|
|
443
|
-
|
|
444
|
-
/* @internal */
|
|
445
|
-
const trackErrorWith = /*#__PURE__*/dual(3, (self, metric, f) => {
|
|
446
|
-
const updater = error => update(metric, f(error));
|
|
447
|
-
return tapError(self, updater);
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
/* @internal */
|
|
451
|
-
const trackSuccess = /*#__PURE__*/dual(2, (self, metric) => trackSuccessWith(self, metric, a => a));
|
|
452
|
-
|
|
453
|
-
/* @internal */
|
|
454
|
-
const trackSuccessWith = /*#__PURE__*/dual(3, (self, metric, f) => {
|
|
455
|
-
const updater = value => update(metric, f(value));
|
|
456
|
-
return tap(self, updater);
|
|
457
|
-
});
|
|
458
|
-
|
|
459
|
-
/* @internal */
|
|
460
|
-
const update = /*#__PURE__*/dual(2, (self, input) => fiberRefGetWith(currentMetricLabels, tags => sync$2(() => self.unsafeUpdate(input, tags))));
|
|
461
|
-
|
|
462
|
-
/* @internal */
|
|
463
|
-
const value = self => fiberRefGetWith(currentMetricLabels, tags => sync$2(() => self.unsafeValue(tags)));
|
|
464
|
-
|
|
465
|
-
/** @internal */
|
|
466
|
-
const withNow = self => mapInput(self, input => [input, Date.now()]);
|
|
467
|
-
|
|
468
|
-
/** @internal */
|
|
469
|
-
const zip = /*#__PURE__*/dual(2, (self, that) => make([self.keyType, that.keyType], (input, extraTags) => {
|
|
470
|
-
const [l, r] = input;
|
|
471
|
-
self.unsafeUpdate(l, extraTags);
|
|
472
|
-
that.unsafeUpdate(r, extraTags);
|
|
473
|
-
}, extraTags => [self.unsafeValue(extraTags), that.unsafeValue(extraTags)]));
|
|
474
|
-
|
|
475
|
-
/** @internal */
|
|
476
|
-
const unsafeSnapshot = () => globalMetricRegistry.snapshot();
|
|
477
|
-
|
|
478
|
-
/** @internal */
|
|
479
|
-
const snapshot = /*#__PURE__*/sync$2(unsafeSnapshot);
|
|
480
|
-
|
|
481
|
-
/** @internal */
|
|
482
|
-
const RequestSymbolKey = "effect/Request";
|
|
483
|
-
|
|
484
|
-
/** @internal */
|
|
485
|
-
const RequestTypeId = /*#__PURE__*/Symbol.for(RequestSymbolKey);
|
|
486
|
-
|
|
487
|
-
/** @internal */
|
|
488
|
-
const requestVariance = {
|
|
489
|
-
_E: _ => _,
|
|
490
|
-
_A: _ => _
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
/** @internal */
|
|
494
|
-
const isRequest = u => typeof u === "object" && u != null && RequestTypeId in u;
|
|
495
|
-
|
|
496
|
-
/** @internal */
|
|
497
|
-
const of = () => args =>
|
|
498
|
-
// @ts-expect-error
|
|
499
|
-
struct({
|
|
500
|
-
[RequestTypeId]: requestVariance,
|
|
501
|
-
...args
|
|
502
|
-
});
|
|
503
|
-
|
|
504
|
-
/** @internal */
|
|
505
|
-
const tagged = tag => args =>
|
|
506
|
-
// @ts-expect-error
|
|
507
|
-
struct({
|
|
508
|
-
[RequestTypeId]: requestVariance,
|
|
509
|
-
_tag: tag,
|
|
510
|
-
...args
|
|
511
|
-
});
|
|
512
|
-
|
|
513
|
-
/** @internal */
|
|
514
|
-
const complete = /*#__PURE__*/dual(2, (self, result) => fiberRefGetWith(currentRequestMap, map => sync$2(() => {
|
|
515
|
-
if (map.has(self)) {
|
|
516
|
-
const entry = map.get(self);
|
|
517
|
-
if (!entry.state.completed) {
|
|
518
|
-
entry.state.completed = true;
|
|
519
|
-
deferredUnsafeDone(entry.result, result);
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
})));
|
|
523
|
-
|
|
524
|
-
/** @internal */
|
|
525
|
-
const completeEffect = /*#__PURE__*/dual(2, (self, effect) => matchEffect(effect, {
|
|
526
|
-
onFailure: error => complete(self, exitFail(error)),
|
|
527
|
-
onSuccess: value => complete(self, exitSucceed(value))
|
|
528
|
-
}));
|
|
529
|
-
|
|
530
|
-
/** @internal */
|
|
531
|
-
const fail = /*#__PURE__*/dual(2, (self, error) => complete(self, exitFail(error)));
|
|
532
|
-
|
|
533
|
-
/** @internal */
|
|
534
|
-
const succeed = /*#__PURE__*/dual(2, (self, value) => complete(self, exitSucceed(value)));
|
|
535
|
-
|
|
536
|
-
/** @internal */
|
|
537
|
-
class Listeners {
|
|
538
|
-
count = 0;
|
|
539
|
-
observers = new Set();
|
|
540
|
-
addObserver(f) {
|
|
541
|
-
this.observers.add(f);
|
|
542
|
-
}
|
|
543
|
-
removeObserver(f) {
|
|
544
|
-
this.observers.delete(f);
|
|
545
|
-
}
|
|
546
|
-
increment() {
|
|
547
|
-
this.count++;
|
|
548
|
-
this.observers.forEach(f => f(this.count));
|
|
549
|
-
}
|
|
550
|
-
decrement() {
|
|
551
|
-
this.count--;
|
|
552
|
-
this.observers.forEach(f => f(this.count));
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
/** @internal */
|
|
557
|
-
const SupervisorSymbolKey = "effect/Supervisor";
|
|
558
|
-
|
|
559
|
-
/** @internal */
|
|
560
|
-
const SupervisorTypeId = /*#__PURE__*/Symbol.for(SupervisorSymbolKey);
|
|
561
|
-
|
|
562
|
-
/** @internal */
|
|
563
|
-
const supervisorVariance = {
|
|
564
|
-
_T: _ => _
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
/** @internal */
|
|
568
|
-
class ProxySupervisor {
|
|
569
|
-
[SupervisorTypeId] = supervisorVariance;
|
|
570
|
-
constructor(underlying, value0) {
|
|
571
|
-
this.underlying = underlying;
|
|
572
|
-
this.value0 = value0;
|
|
573
|
-
}
|
|
574
|
-
value() {
|
|
575
|
-
return this.value0();
|
|
576
|
-
}
|
|
577
|
-
onStart(context, effect, parent, fiber) {
|
|
578
|
-
this.underlying.onStart(context, effect, parent, fiber);
|
|
579
|
-
}
|
|
580
|
-
onEnd(value, fiber) {
|
|
581
|
-
this.underlying.onEnd(value, fiber);
|
|
582
|
-
}
|
|
583
|
-
onEffect(fiber, effect) {
|
|
584
|
-
this.underlying.onEffect(fiber, effect);
|
|
585
|
-
}
|
|
586
|
-
onSuspend(fiber) {
|
|
587
|
-
this.underlying.onSuspend(fiber);
|
|
588
|
-
}
|
|
589
|
-
onResume(fiber) {
|
|
590
|
-
this.underlying.onResume(fiber);
|
|
591
|
-
}
|
|
592
|
-
map(f) {
|
|
593
|
-
return new ProxySupervisor(this, () => pipe(this.value(), map$2(f)));
|
|
594
|
-
}
|
|
595
|
-
zip(right) {
|
|
596
|
-
return new Zip(this, right);
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
/** @internal */
|
|
601
|
-
class Zip {
|
|
602
|
-
[SupervisorTypeId] = supervisorVariance;
|
|
603
|
-
constructor(left, right) {
|
|
604
|
-
this.left = left;
|
|
605
|
-
this.right = right;
|
|
606
|
-
}
|
|
607
|
-
value() {
|
|
608
|
-
return zip$2(this.left.value(), this.right.value());
|
|
609
|
-
}
|
|
610
|
-
onStart(context, effect, parent, fiber) {
|
|
611
|
-
this.left.onStart(context, effect, parent, fiber);
|
|
612
|
-
this.right.onStart(context, effect, parent, fiber);
|
|
613
|
-
}
|
|
614
|
-
onEnd(value, fiber) {
|
|
615
|
-
this.left.onEnd(value, fiber);
|
|
616
|
-
this.right.onEnd(value, fiber);
|
|
617
|
-
}
|
|
618
|
-
onEffect(fiber, effect) {
|
|
619
|
-
this.left.onEffect(fiber, effect);
|
|
620
|
-
this.right.onEffect(fiber, effect);
|
|
621
|
-
}
|
|
622
|
-
onSuspend(fiber) {
|
|
623
|
-
this.left.onSuspend(fiber);
|
|
624
|
-
this.right.onSuspend(fiber);
|
|
625
|
-
}
|
|
626
|
-
onResume(fiber) {
|
|
627
|
-
this.left.onResume(fiber);
|
|
628
|
-
this.right.onResume(fiber);
|
|
629
|
-
}
|
|
630
|
-
map(f) {
|
|
631
|
-
return new ProxySupervisor(this, () => pipe(this.value(), map$2(f)));
|
|
632
|
-
}
|
|
633
|
-
zip(right) {
|
|
634
|
-
return new Zip(this, right);
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
class Track {
|
|
638
|
-
[SupervisorTypeId] = supervisorVariance;
|
|
639
|
-
fibers = new Set();
|
|
640
|
-
value() {
|
|
641
|
-
return sync$2(() => Array.from(this.fibers));
|
|
642
|
-
}
|
|
643
|
-
onStart(_context, _effect, _parent, fiber) {
|
|
644
|
-
this.fibers.add(fiber);
|
|
645
|
-
}
|
|
646
|
-
onEnd(_value, fiber) {
|
|
647
|
-
this.fibers.delete(fiber);
|
|
648
|
-
}
|
|
649
|
-
onEffect(_fiber, _effect) {
|
|
650
|
-
//
|
|
651
|
-
}
|
|
652
|
-
onSuspend(_fiber) {
|
|
653
|
-
//
|
|
654
|
-
}
|
|
655
|
-
onResume(_fiber) {
|
|
656
|
-
//
|
|
657
|
-
}
|
|
658
|
-
map(f) {
|
|
659
|
-
return new ProxySupervisor(this, () => pipe(this.value(), map$2(f)));
|
|
660
|
-
}
|
|
661
|
-
zip(right) {
|
|
662
|
-
return new Zip(this, right);
|
|
663
|
-
}
|
|
664
|
-
onRun(execution, _fiber) {
|
|
665
|
-
return execution();
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
class Const {
|
|
669
|
-
[SupervisorTypeId] = supervisorVariance;
|
|
670
|
-
constructor(effect) {
|
|
671
|
-
this.effect = effect;
|
|
672
|
-
}
|
|
673
|
-
value() {
|
|
674
|
-
return this.effect;
|
|
675
|
-
}
|
|
676
|
-
onStart(_context, _effect, _parent, _fiber) {
|
|
677
|
-
//
|
|
678
|
-
}
|
|
679
|
-
onEnd(_value, _fiber) {
|
|
680
|
-
//
|
|
681
|
-
}
|
|
682
|
-
onEffect(_fiber, _effect) {
|
|
683
|
-
//
|
|
684
|
-
}
|
|
685
|
-
onSuspend(_fiber) {
|
|
686
|
-
//
|
|
687
|
-
}
|
|
688
|
-
onResume(_fiber) {
|
|
689
|
-
//
|
|
690
|
-
}
|
|
691
|
-
map(f) {
|
|
692
|
-
return new ProxySupervisor(this, () => pipe(this.value(), map$2(f)));
|
|
693
|
-
}
|
|
694
|
-
zip(right) {
|
|
695
|
-
return new Zip(this, right);
|
|
696
|
-
}
|
|
697
|
-
onRun(execution, _fiber) {
|
|
698
|
-
return execution();
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
class FibersIn {
|
|
702
|
-
[SupervisorTypeId] = supervisorVariance;
|
|
703
|
-
constructor(ref) {
|
|
704
|
-
this.ref = ref;
|
|
705
|
-
}
|
|
706
|
-
value() {
|
|
707
|
-
return sync$2(() => get(this.ref));
|
|
708
|
-
}
|
|
709
|
-
onStart(_context, _effect, _parent, fiber) {
|
|
710
|
-
pipe(this.ref, set$1(pipe(get(this.ref), add(fiber))));
|
|
711
|
-
}
|
|
712
|
-
onEnd(_value, fiber) {
|
|
713
|
-
pipe(this.ref, set$1(pipe(get(this.ref), remove(fiber))));
|
|
714
|
-
}
|
|
715
|
-
onEffect(_fiber, _effect) {
|
|
716
|
-
//
|
|
717
|
-
}
|
|
718
|
-
onSuspend(_fiber) {
|
|
719
|
-
//
|
|
720
|
-
}
|
|
721
|
-
onResume(_fiber) {
|
|
722
|
-
//
|
|
723
|
-
}
|
|
724
|
-
map(f) {
|
|
725
|
-
return new ProxySupervisor(this, () => pipe(this.value(), map$2(f)));
|
|
726
|
-
}
|
|
727
|
-
zip(right) {
|
|
728
|
-
return new Zip(this, right);
|
|
729
|
-
}
|
|
730
|
-
onRun(execution, _fiber) {
|
|
731
|
-
return execution();
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
/** @internal */
|
|
736
|
-
const unsafeTrack = () => {
|
|
737
|
-
return new Track();
|
|
738
|
-
};
|
|
739
|
-
|
|
740
|
-
/** @internal */
|
|
741
|
-
const track = /*#__PURE__*/sync$2(unsafeTrack);
|
|
742
|
-
|
|
743
|
-
/** @internal */
|
|
744
|
-
const fromEffect = effect => {
|
|
745
|
-
return new Const(effect);
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
/** @internal */
|
|
749
|
-
const none = /*#__PURE__*/fromEffect(unit);
|
|
750
|
-
|
|
751
|
-
/** @internal */
|
|
752
|
-
const fibersIn = ref => sync$2(() => new FibersIn(ref));
|
|
753
|
-
|
|
754
|
-
/** @internal */
|
|
755
|
-
|
|
756
|
-
/** @internal */
|
|
757
|
-
const OP_EMPTY = "Empty";
|
|
758
|
-
|
|
759
|
-
/** @internal */
|
|
760
|
-
|
|
761
|
-
/** @internal */
|
|
762
|
-
const OP_ADD_SUPERVISOR = "AddSupervisor";
|
|
763
|
-
|
|
764
|
-
/** @internal */
|
|
765
|
-
|
|
766
|
-
/** @internal */
|
|
767
|
-
const OP_REMOVE_SUPERVISOR = "RemoveSupervisor";
|
|
768
|
-
|
|
769
|
-
/** @internal */
|
|
770
|
-
|
|
771
|
-
/** @internal */
|
|
772
|
-
const OP_AND_THEN = "AndThen";
|
|
773
|
-
|
|
774
|
-
/** @internal */
|
|
775
|
-
|
|
776
|
-
/** @internal */
|
|
777
|
-
|
|
778
|
-
/** @internal */
|
|
779
|
-
|
|
780
|
-
/** @internal */
|
|
781
|
-
|
|
782
|
-
/** @internal */
|
|
783
|
-
|
|
784
|
-
/**
|
|
785
|
-
* The empty `SupervisorPatch`.
|
|
786
|
-
*
|
|
787
|
-
* @internal
|
|
788
|
-
*/
|
|
789
|
-
const empty = {
|
|
790
|
-
_tag: OP_EMPTY
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* Combines two patches to produce a new patch that describes applying the
|
|
795
|
-
* updates from this patch and then the updates from the specified patch.
|
|
796
|
-
*
|
|
797
|
-
* @internal
|
|
798
|
-
*/
|
|
799
|
-
const combine = (self, that) => {
|
|
800
|
-
return {
|
|
801
|
-
_tag: OP_AND_THEN,
|
|
802
|
-
first: self,
|
|
803
|
-
second: that
|
|
804
|
-
};
|
|
805
|
-
};
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* Applies a `SupervisorPatch` to a `Supervisor` to produce a new `Supervisor`.
|
|
809
|
-
*
|
|
810
|
-
* @internal
|
|
811
|
-
*/
|
|
812
|
-
const patch = (self, supervisor) => {
|
|
813
|
-
return patchLoop(supervisor, of$1(self));
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
/** @internal */
|
|
817
|
-
const patchLoop = (_supervisor, _patches) => {
|
|
818
|
-
let supervisor = _supervisor;
|
|
819
|
-
let patches = _patches;
|
|
820
|
-
while (isNonEmpty(patches)) {
|
|
821
|
-
const head = headNonEmpty(patches);
|
|
822
|
-
switch (head._tag) {
|
|
823
|
-
case OP_EMPTY:
|
|
824
|
-
{
|
|
825
|
-
patches = tailNonEmpty(patches);
|
|
826
|
-
break;
|
|
827
|
-
}
|
|
828
|
-
case OP_ADD_SUPERVISOR:
|
|
829
|
-
{
|
|
830
|
-
supervisor = supervisor.zip(head.supervisor);
|
|
831
|
-
patches = tailNonEmpty(patches);
|
|
832
|
-
break;
|
|
833
|
-
}
|
|
834
|
-
case OP_REMOVE_SUPERVISOR:
|
|
835
|
-
{
|
|
836
|
-
supervisor = removeSupervisor(supervisor, head.supervisor);
|
|
837
|
-
patches = tailNonEmpty(patches);
|
|
838
|
-
break;
|
|
839
|
-
}
|
|
840
|
-
case OP_AND_THEN:
|
|
841
|
-
{
|
|
842
|
-
patches = prepend(head.first)(prepend(head.second)(tailNonEmpty(patches)));
|
|
843
|
-
break;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
return supervisor;
|
|
848
|
-
};
|
|
849
|
-
|
|
850
|
-
/** @internal */
|
|
851
|
-
const removeSupervisor = (self, that) => {
|
|
852
|
-
if (equals(self, that)) {
|
|
853
|
-
return none;
|
|
854
|
-
} else {
|
|
855
|
-
if (self instanceof Zip) {
|
|
856
|
-
return removeSupervisor(self.left, that).zip(removeSupervisor(self.right, that));
|
|
857
|
-
} else {
|
|
858
|
-
return self;
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
|
|
863
|
-
/** @internal */
|
|
864
|
-
const toSet = self => {
|
|
865
|
-
if (equals(self, none)) {
|
|
866
|
-
return empty$2();
|
|
867
|
-
} else {
|
|
868
|
-
if (self instanceof Zip) {
|
|
869
|
-
return pipe(toSet(self.left), union(toSet(self.right)));
|
|
870
|
-
} else {
|
|
871
|
-
return make$2(self);
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
};
|
|
875
|
-
|
|
876
|
-
/** @internal */
|
|
877
|
-
const diff = (oldValue, newValue) => {
|
|
878
|
-
if (equals(oldValue, newValue)) {
|
|
879
|
-
return empty;
|
|
880
|
-
}
|
|
881
|
-
const oldSupervisors = toSet(oldValue);
|
|
882
|
-
const newSupervisors = toSet(newValue);
|
|
883
|
-
const added = pipe(newSupervisors, difference(oldSupervisors), reduce(empty, (patch, supervisor) => combine(patch, {
|
|
884
|
-
_tag: OP_ADD_SUPERVISOR,
|
|
885
|
-
supervisor
|
|
886
|
-
})));
|
|
887
|
-
const removed = pipe(oldSupervisors, difference(newSupervisors), reduce(empty, (patch, supervisor) => combine(patch, {
|
|
888
|
-
_tag: OP_REMOVE_SUPERVISOR,
|
|
889
|
-
supervisor
|
|
890
|
-
})));
|
|
891
|
-
return combine(added, removed);
|
|
892
|
-
};
|
|
893
|
-
|
|
894
|
-
/** @internal */
|
|
895
|
-
const differ = /*#__PURE__*/make$4({
|
|
896
|
-
empty,
|
|
897
|
-
patch,
|
|
898
|
-
combine,
|
|
899
|
-
diff
|
|
900
|
-
});
|
|
901
|
-
|
|
902
|
-
/** @internal */
|
|
903
|
-
const fiberStarted = /*#__PURE__*/counter("effect_fiber_started");
|
|
904
|
-
/** @internal */
|
|
905
|
-
const fiberActive = /*#__PURE__*/counter("effect_fiber_active");
|
|
906
|
-
/** @internal */
|
|
907
|
-
const fiberSuccesses = /*#__PURE__*/counter("effect_fiber_successes");
|
|
908
|
-
/** @internal */
|
|
909
|
-
const fiberFailures = /*#__PURE__*/counter("effect_fiber_failures");
|
|
910
|
-
/** @internal */
|
|
911
|
-
const fiberLifetimes = /*#__PURE__*/tagged$1( /*#__PURE__*/histogram("effect_fiber_lifetimes", /*#__PURE__*/exponential({
|
|
912
|
-
start: 1.0,
|
|
913
|
-
factor: 1.3,
|
|
914
|
-
count: 100
|
|
915
|
-
})), "time_unit", "milliseconds");
|
|
916
|
-
|
|
917
|
-
/** @internal */
|
|
918
|
-
|
|
919
|
-
/** @internal */
|
|
920
|
-
const EvaluationSignalContinue = "Continue";
|
|
921
|
-
|
|
922
|
-
/** @internal */
|
|
923
|
-
|
|
924
|
-
/** @internal */
|
|
925
|
-
const EvaluationSignalDone = "Done";
|
|
926
|
-
|
|
927
|
-
/** @internal */
|
|
928
|
-
|
|
929
|
-
/** @internal */
|
|
930
|
-
const EvaluationSignalYieldNow = "Yield";
|
|
931
|
-
|
|
932
|
-
/** @internal */
|
|
933
|
-
|
|
934
|
-
/** @internal */
|
|
935
|
-
const runtimeFiberVariance = {
|
|
936
|
-
_E: _ => _,
|
|
937
|
-
_A: _ => _
|
|
938
|
-
};
|
|
939
|
-
const absurd = _ => {
|
|
940
|
-
throw new Error(`BUG: FiberRuntime - ${JSON.stringify(_)} - please report an issue at https://github.com/Effect-TS/io/issues`);
|
|
941
|
-
};
|
|
942
|
-
const contOpSuccess = {
|
|
943
|
-
[OP_ON_SUCCESS]: (_, cont, value) => {
|
|
944
|
-
return cont.i1(value);
|
|
945
|
-
},
|
|
946
|
-
["OnStep"]: (_, cont, value) => {
|
|
947
|
-
return cont.i1(exitSucceed(value));
|
|
948
|
-
},
|
|
949
|
-
[OP_ON_SUCCESS_AND_FAILURE]: (_, cont, value) => {
|
|
950
|
-
return cont.i2(value);
|
|
951
|
-
},
|
|
952
|
-
[OP_REVERT_FLAGS]: (self, cont, value) => {
|
|
953
|
-
self.patchRuntimeFlags(self._runtimeFlags, cont.patch);
|
|
954
|
-
if (interruptible$1(self._runtimeFlags) && self.isInterrupted()) {
|
|
955
|
-
return exitFailCause(self.getInterruptedCause());
|
|
956
|
-
} else {
|
|
957
|
-
return exitSucceed(value);
|
|
958
|
-
}
|
|
959
|
-
},
|
|
960
|
-
[OP_WHILE]: (self, cont, value) => {
|
|
961
|
-
cont.i2(value);
|
|
962
|
-
if (cont.i0()) {
|
|
963
|
-
self.pushStack(cont);
|
|
964
|
-
return cont.i1();
|
|
965
|
-
} else {
|
|
966
|
-
return unit;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
const drainQueueWhileRunningTable = {
|
|
971
|
-
[OP_INTERRUPT_SIGNAL]: (self, runtimeFlags, cur, message) => {
|
|
972
|
-
self.processNewInterruptSignal(message.cause);
|
|
973
|
-
return interruptible$1(runtimeFlags) ? exitFailCause(message.cause) : cur;
|
|
974
|
-
},
|
|
975
|
-
[OP_RESUME]: (_self, _runtimeFlags, _cur, _message) => {
|
|
976
|
-
throw new Error("It is illegal to have multiple concurrent run loops in a single fiber");
|
|
977
|
-
},
|
|
978
|
-
[OP_STATEFUL]: (self, runtimeFlags, cur, message) => {
|
|
979
|
-
message.onFiber(self, running(runtimeFlags));
|
|
980
|
-
return cur;
|
|
981
|
-
},
|
|
982
|
-
[OP_YIELD_NOW]: (_self, _runtimeFlags, cur, _message) => {
|
|
983
|
-
return flatMap$1(yieldNow$1(), () => cur);
|
|
984
|
-
}
|
|
985
|
-
};
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Executes all requests, submitting requests to each data source in parallel.
|
|
989
|
-
*/
|
|
990
|
-
const runBlockedRequests = self => forEachSequentialDiscard(flatten$2(self), requestsByRequestResolver => forEachParUnboundedDiscard(sequentialCollectionToChunk(requestsByRequestResolver), ([dataSource, sequential]) => {
|
|
991
|
-
const map = new Map();
|
|
992
|
-
for (const block of sequential) {
|
|
993
|
-
for (const entry of block) {
|
|
994
|
-
map.set(entry.request, entry);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
return fiberRefLocally(invokeWithInterrupt(dataSource.runAll(sequential), sequential.flat()), currentRequestMap, map);
|
|
998
|
-
}, false));
|
|
999
|
-
|
|
1000
|
-
/** @internal */
|
|
1001
|
-
class FiberRuntime {
|
|
1002
|
-
[FiberTypeId] = fiberVariance;
|
|
1003
|
-
[RuntimeFiberTypeId] = runtimeFiberVariance;
|
|
1004
|
-
pipe() {
|
|
1005
|
-
return pipeArguments(this, arguments);
|
|
1006
|
-
}
|
|
1007
|
-
_queue = new Array();
|
|
1008
|
-
_children = null;
|
|
1009
|
-
_observers = new Array();
|
|
1010
|
-
_running = false;
|
|
1011
|
-
_stack = [];
|
|
1012
|
-
_asyncInterruptor = null;
|
|
1013
|
-
_asyncBlockingOn = null;
|
|
1014
|
-
_exitValue = null;
|
|
1015
|
-
_steps = [false];
|
|
1016
|
-
currentOpCount = 0;
|
|
1017
|
-
constructor(fiberId, fiberRefs0, runtimeFlags0) {
|
|
1018
|
-
this._runtimeFlags = runtimeFlags0;
|
|
1019
|
-
this._fiberId = fiberId;
|
|
1020
|
-
this._fiberRefs = fiberRefs0;
|
|
1021
|
-
this._supervisor = this.getFiberRef(currentSupervisor);
|
|
1022
|
-
this._scheduler = this.getFiberRef(currentScheduler);
|
|
1023
|
-
if (runtimeMetrics(runtimeFlags0)) {
|
|
1024
|
-
const tags = this.getFiberRef(currentMetricLabels);
|
|
1025
|
-
fiberStarted.unsafeUpdate(1, tags);
|
|
1026
|
-
fiberActive.unsafeUpdate(1, tags);
|
|
1027
|
-
}
|
|
1028
|
-
this._tracer = get$2(this.getFiberRef(currentServices), tracerTag);
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
/**
|
|
1032
|
-
* The identity of the fiber.
|
|
1033
|
-
*/
|
|
1034
|
-
id() {
|
|
1035
|
-
return this._fiberId;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
/**
|
|
1039
|
-
* Begins execution of the effect associated with this fiber on in the
|
|
1040
|
-
* background. This can be called to "kick off" execution of a fiber after
|
|
1041
|
-
* it has been created.
|
|
1042
|
-
*/
|
|
1043
|
-
resume(effect) {
|
|
1044
|
-
this.tell(resume(effect));
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
/**
|
|
1048
|
-
* The status of the fiber.
|
|
1049
|
-
*/
|
|
1050
|
-
status() {
|
|
1051
|
-
return this.ask((_, status) => status);
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* Gets the fiber runtime flags.
|
|
1056
|
-
*/
|
|
1057
|
-
runtimeFlags() {
|
|
1058
|
-
return this.ask((state, status) => {
|
|
1059
|
-
if (isDone(status)) {
|
|
1060
|
-
return state._runtimeFlags;
|
|
1061
|
-
}
|
|
1062
|
-
return status.runtimeFlags;
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
/**
|
|
1067
|
-
* Returns the current `FiberScope` for the fiber.
|
|
1068
|
-
*/
|
|
1069
|
-
scope() {
|
|
1070
|
-
return unsafeMake(this);
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
/**
|
|
1074
|
-
* Retrieves the immediate children of the fiber.
|
|
1075
|
-
*/
|
|
1076
|
-
children() {
|
|
1077
|
-
return this.ask(fiber => Array.from(fiber.getChildren()));
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
/**
|
|
1081
|
-
* Gets the fiber's set of children.
|
|
1082
|
-
*/
|
|
1083
|
-
getChildren() {
|
|
1084
|
-
if (this._children === null) {
|
|
1085
|
-
this._children = new Set();
|
|
1086
|
-
}
|
|
1087
|
-
return this._children;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* Retrieves the interrupted cause of the fiber, which will be `Cause.empty`
|
|
1092
|
-
* if the fiber has not been interrupted.
|
|
1093
|
-
*
|
|
1094
|
-
* **NOTE**: This method is safe to invoke on any fiber, but if not invoked
|
|
1095
|
-
* on this fiber, then values derived from the fiber's state (including the
|
|
1096
|
-
* log annotations and log level) may not be up-to-date.
|
|
1097
|
-
*/
|
|
1098
|
-
getInterruptedCause() {
|
|
1099
|
-
return this.getFiberRef(currentInterruptedCause);
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* Retrieves the whole set of fiber refs.
|
|
1104
|
-
*/
|
|
1105
|
-
fiberRefs() {
|
|
1106
|
-
return this.ask(fiber => fiber.getFiberRefs());
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
/**
|
|
1110
|
-
* Returns an effect that will contain information computed from the fiber
|
|
1111
|
-
* state and status while running on the fiber.
|
|
1112
|
-
*
|
|
1113
|
-
* This allows the outside world to interact safely with mutable fiber state
|
|
1114
|
-
* without locks or immutable data.
|
|
1115
|
-
*/
|
|
1116
|
-
ask(f) {
|
|
1117
|
-
return suspend(() => {
|
|
1118
|
-
const deferred = deferredUnsafeMake(this._fiberId);
|
|
1119
|
-
this.tell(stateful((fiber, status) => {
|
|
1120
|
-
deferredUnsafeDone(deferred, sync$2(() => f(fiber, status)));
|
|
1121
|
-
}));
|
|
1122
|
-
return deferredAwait(deferred);
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* Adds a message to be processed by the fiber on the fiber.
|
|
1128
|
-
*/
|
|
1129
|
-
tell(message) {
|
|
1130
|
-
this._queue.push(message);
|
|
1131
|
-
if (!this._running) {
|
|
1132
|
-
this._running = true;
|
|
1133
|
-
this.drainQueueLaterOnExecutor();
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
await() {
|
|
1137
|
-
return async(resume => {
|
|
1138
|
-
const cb = exit => resume(succeed$3(exit));
|
|
1139
|
-
this.tell(stateful((fiber, _) => {
|
|
1140
|
-
if (fiber._exitValue !== null) {
|
|
1141
|
-
cb(this._exitValue);
|
|
1142
|
-
} else {
|
|
1143
|
-
fiber.addObserver(cb);
|
|
1144
|
-
}
|
|
1145
|
-
}));
|
|
1146
|
-
return sync$2(() => this.tell(stateful((fiber, _) => {
|
|
1147
|
-
fiber.removeObserver(cb);
|
|
1148
|
-
})));
|
|
1149
|
-
}, this.id());
|
|
1150
|
-
}
|
|
1151
|
-
inheritAll() {
|
|
1152
|
-
return withFiberRuntime((parentFiber, parentStatus) => {
|
|
1153
|
-
const parentFiberId = parentFiber.id();
|
|
1154
|
-
const parentFiberRefs = parentFiber.getFiberRefs();
|
|
1155
|
-
const parentRuntimeFlags = parentStatus.runtimeFlags;
|
|
1156
|
-
const childFiberRefs = this.getFiberRefs();
|
|
1157
|
-
const updatedFiberRefs = joinAs(parentFiberRefs, parentFiberId, childFiberRefs);
|
|
1158
|
-
parentFiber.setFiberRefs(updatedFiberRefs);
|
|
1159
|
-
const updatedRuntimeFlags = parentFiber.getFiberRef(currentRuntimeFlags);
|
|
1160
|
-
const patch = pipe(diff$1(parentRuntimeFlags, updatedRuntimeFlags),
|
|
1161
|
-
// Do not inherit WindDown or Interruption!
|
|
1162
|
-
exclude(Interruption), exclude(WindDown));
|
|
1163
|
-
return updateRuntimeFlags(patch);
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
/**
|
|
1168
|
-
* Tentatively observes the fiber, but returns immediately if it is not
|
|
1169
|
-
* already done.
|
|
1170
|
-
*/
|
|
1171
|
-
poll() {
|
|
1172
|
-
return sync$2(() => fromNullable(this._exitValue));
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* Unsafely observes the fiber, but returns immediately if it is not
|
|
1177
|
-
* already done.
|
|
1178
|
-
*/
|
|
1179
|
-
unsafePoll() {
|
|
1180
|
-
return this._exitValue;
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
/**
|
|
1184
|
-
* In the background, interrupts the fiber as if interrupted from the specified fiber.
|
|
1185
|
-
*/
|
|
1186
|
-
interruptAsFork(fiberId) {
|
|
1187
|
-
return sync$2(() => this.tell(interruptSignal(interrupt(fiberId))));
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
/**
|
|
1191
|
-
* Adds an observer to the list of observers.
|
|
1192
|
-
*
|
|
1193
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1194
|
-
*/
|
|
1195
|
-
addObserver(observer) {
|
|
1196
|
-
if (this._exitValue !== null) {
|
|
1197
|
-
observer(this._exitValue);
|
|
1198
|
-
} else {
|
|
1199
|
-
this._observers.push(observer);
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* Removes the specified observer from the list of observers that will be
|
|
1205
|
-
* notified when the fiber exits.
|
|
1206
|
-
*
|
|
1207
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1208
|
-
*/
|
|
1209
|
-
removeObserver(observer) {
|
|
1210
|
-
this._observers = this._observers.filter(o => o !== observer);
|
|
1211
|
-
}
|
|
1212
|
-
/**
|
|
1213
|
-
* Retrieves all fiber refs of the fiber.
|
|
1214
|
-
*
|
|
1215
|
-
* **NOTE**: This method is safe to invoke on any fiber, but if not invoked
|
|
1216
|
-
* on this fiber, then values derived from the fiber's state (including the
|
|
1217
|
-
* log annotations and log level) may not be up-to-date.
|
|
1218
|
-
*/
|
|
1219
|
-
getFiberRefs() {
|
|
1220
|
-
this.setFiberRef(currentRuntimeFlags, this._runtimeFlags);
|
|
1221
|
-
return this._fiberRefs;
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
* Deletes the specified fiber ref.
|
|
1226
|
-
*
|
|
1227
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1228
|
-
*/
|
|
1229
|
-
unsafeDeleteFiberRef(fiberRef) {
|
|
1230
|
-
this._fiberRefs = delete_(this._fiberRefs, fiberRef);
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
* Retrieves the state of the fiber ref, or else its initial value.
|
|
1235
|
-
*
|
|
1236
|
-
* **NOTE**: This method is safe to invoke on any fiber, but if not invoked
|
|
1237
|
-
* on this fiber, then values derived from the fiber's state (including the
|
|
1238
|
-
* log annotations and log level) may not be up-to-date.
|
|
1239
|
-
*/
|
|
1240
|
-
getFiberRef(fiberRef) {
|
|
1241
|
-
if (this._fiberRefs.locals.has(fiberRef)) {
|
|
1242
|
-
return this._fiberRefs.locals.get(fiberRef)[0][1];
|
|
1243
|
-
}
|
|
1244
|
-
return fiberRef.initial;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Sets the fiber ref to the specified value.
|
|
1249
|
-
*
|
|
1250
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1251
|
-
*/
|
|
1252
|
-
setFiberRef(fiberRef, value) {
|
|
1253
|
-
this._fiberRefs = updatedAs(this._fiberRefs, {
|
|
1254
|
-
fiberId: this._fiberId,
|
|
1255
|
-
fiberRef,
|
|
1256
|
-
value
|
|
1257
|
-
});
|
|
1258
|
-
this.refreshRefCache();
|
|
1259
|
-
}
|
|
1260
|
-
refreshRefCache() {
|
|
1261
|
-
this._tracer = get$2(this.getFiberRef(currentServices), tracerTag);
|
|
1262
|
-
this._supervisor = this.getFiberRef(currentSupervisor);
|
|
1263
|
-
this._scheduler = this.getFiberRef(currentScheduler);
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
* Wholesale replaces all fiber refs of this fiber.
|
|
1268
|
-
*
|
|
1269
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1270
|
-
*/
|
|
1271
|
-
setFiberRefs(fiberRefs) {
|
|
1272
|
-
this._fiberRefs = fiberRefs;
|
|
1273
|
-
this.refreshRefCache();
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* Adds a reference to the specified fiber inside the children set.
|
|
1278
|
-
*
|
|
1279
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1280
|
-
*/
|
|
1281
|
-
addChild(child) {
|
|
1282
|
-
this.getChildren().add(child);
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
/**
|
|
1286
|
-
* Removes a reference to the specified fiber inside the children set.
|
|
1287
|
-
*
|
|
1288
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1289
|
-
*/
|
|
1290
|
-
removeChild(child) {
|
|
1291
|
-
this.getChildren().delete(child);
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
/**
|
|
1295
|
-
* On the current thread, executes all messages in the fiber's inbox. This
|
|
1296
|
-
* method may return before all work is done, in the event the fiber executes
|
|
1297
|
-
* an asynchronous operation.
|
|
1298
|
-
*
|
|
1299
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1300
|
-
*/
|
|
1301
|
-
drainQueueOnCurrentThread() {
|
|
1302
|
-
let recurse = true;
|
|
1303
|
-
while (recurse) {
|
|
1304
|
-
let evaluationSignal = EvaluationSignalContinue;
|
|
1305
|
-
const prev = globalThis[currentFiberURI];
|
|
1306
|
-
globalThis[currentFiberURI] = this;
|
|
1307
|
-
try {
|
|
1308
|
-
while (evaluationSignal === EvaluationSignalContinue) {
|
|
1309
|
-
evaluationSignal = this._queue.length === 0 ? EvaluationSignalDone : this.evaluateMessageWhileSuspended(this._queue.splice(0, 1)[0]);
|
|
1310
|
-
}
|
|
1311
|
-
} finally {
|
|
1312
|
-
this._running = false;
|
|
1313
|
-
globalThis[currentFiberURI] = prev;
|
|
1314
|
-
}
|
|
1315
|
-
// Maybe someone added something to the queue between us checking, and us
|
|
1316
|
-
// giving up the drain. If so, we need to restart the draining, but only
|
|
1317
|
-
// if we beat everyone else to the restart:
|
|
1318
|
-
if (this._queue.length > 0 && !this._running) {
|
|
1319
|
-
this._running = true;
|
|
1320
|
-
if (evaluationSignal === EvaluationSignalYieldNow) {
|
|
1321
|
-
this.drainQueueLaterOnExecutor();
|
|
1322
|
-
recurse = false;
|
|
1323
|
-
} else {
|
|
1324
|
-
recurse = true;
|
|
1325
|
-
}
|
|
1326
|
-
} else {
|
|
1327
|
-
recurse = false;
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* Schedules the execution of all messages in the fiber's inbox.
|
|
1334
|
-
*
|
|
1335
|
-
* This method will return immediately after the scheduling
|
|
1336
|
-
* operation is completed, but potentially before such messages have been
|
|
1337
|
-
* executed.
|
|
1338
|
-
*
|
|
1339
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1340
|
-
*/
|
|
1341
|
-
drainQueueLaterOnExecutor() {
|
|
1342
|
-
this._scheduler.scheduleTask(this.run, this.getFiberRef(currentSchedulingPriority));
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* Drains the fiber's message queue while the fiber is actively running,
|
|
1347
|
-
* returning the next effect to execute, which may be the input effect if no
|
|
1348
|
-
* additional effect needs to be executed.
|
|
1349
|
-
*
|
|
1350
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1351
|
-
*/
|
|
1352
|
-
drainQueueWhileRunning(runtimeFlags, cur0) {
|
|
1353
|
-
let cur = cur0;
|
|
1354
|
-
while (this._queue.length > 0) {
|
|
1355
|
-
const message = this._queue.splice(0, 1)[0];
|
|
1356
|
-
// @ts-expect-error
|
|
1357
|
-
cur = drainQueueWhileRunningTable[message._tag](this, runtimeFlags, cur, message);
|
|
1358
|
-
}
|
|
1359
|
-
return cur;
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* Determines if the fiber is interrupted.
|
|
1364
|
-
*
|
|
1365
|
-
* **NOTE**: This method is safe to invoke on any fiber, but if not invoked
|
|
1366
|
-
* on this fiber, then values derived from the fiber's state (including the
|
|
1367
|
-
* log annotations and log level) may not be up-to-date.
|
|
1368
|
-
*/
|
|
1369
|
-
isInterrupted() {
|
|
1370
|
-
return !isEmpty(this.getFiberRef(currentInterruptedCause));
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* Adds an interruptor to the set of interruptors that are interrupting this
|
|
1375
|
-
* fiber.
|
|
1376
|
-
*
|
|
1377
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1378
|
-
*/
|
|
1379
|
-
addInterruptedCause(cause) {
|
|
1380
|
-
const oldSC = this.getFiberRef(currentInterruptedCause);
|
|
1381
|
-
this.setFiberRef(currentInterruptedCause, sequential$1(oldSC, cause));
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
/**
|
|
1385
|
-
* Processes a new incoming interrupt signal.
|
|
1386
|
-
*
|
|
1387
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1388
|
-
*/
|
|
1389
|
-
processNewInterruptSignal(cause) {
|
|
1390
|
-
this.addInterruptedCause(cause);
|
|
1391
|
-
this.sendInterruptSignalToAllChildren();
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
/**
|
|
1395
|
-
* Interrupts all children of the current fiber, returning an effect that will
|
|
1396
|
-
* await the exit of the children. This method will return null if the fiber
|
|
1397
|
-
* has no children.
|
|
1398
|
-
*
|
|
1399
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1400
|
-
*/
|
|
1401
|
-
sendInterruptSignalToAllChildren() {
|
|
1402
|
-
if (this._children === null || this._children.size === 0) {
|
|
1403
|
-
return false;
|
|
1404
|
-
}
|
|
1405
|
-
let told = false;
|
|
1406
|
-
for (const child of this._children) {
|
|
1407
|
-
child.tell(interruptSignal(interrupt(this.id())));
|
|
1408
|
-
told = true;
|
|
1409
|
-
}
|
|
1410
|
-
return told;
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
/**
|
|
1414
|
-
* Interrupts all children of the current fiber, returning an effect that will
|
|
1415
|
-
* await the exit of the children. This method will return null if the fiber
|
|
1416
|
-
* has no children.
|
|
1417
|
-
*
|
|
1418
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1419
|
-
*/
|
|
1420
|
-
interruptAllChildren() {
|
|
1421
|
-
if (this.sendInterruptSignalToAllChildren()) {
|
|
1422
|
-
const it = this._children.values();
|
|
1423
|
-
this._children = null;
|
|
1424
|
-
let isDone = false;
|
|
1425
|
-
const body = () => {
|
|
1426
|
-
const next = it.next();
|
|
1427
|
-
if (!next.done) {
|
|
1428
|
-
return asUnit(next.value.await());
|
|
1429
|
-
} else {
|
|
1430
|
-
return sync$2(() => {
|
|
1431
|
-
isDone = true;
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
};
|
|
1435
|
-
return whileLoop({
|
|
1436
|
-
while: () => !isDone,
|
|
1437
|
-
body,
|
|
1438
|
-
step: () => {
|
|
1439
|
-
//
|
|
1440
|
-
}
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
return null;
|
|
1444
|
-
}
|
|
1445
|
-
reportExitValue(exit) {
|
|
1446
|
-
if (runtimeMetrics(this._runtimeFlags)) {
|
|
1447
|
-
const tags = this.getFiberRef(currentMetricLabels);
|
|
1448
|
-
fiberActive.unsafeUpdate(-1, tags);
|
|
1449
|
-
switch (exit._tag) {
|
|
1450
|
-
case OP_SUCCESS:
|
|
1451
|
-
{
|
|
1452
|
-
fiberSuccesses.unsafeUpdate(1, tags);
|
|
1453
|
-
break;
|
|
1454
|
-
}
|
|
1455
|
-
case OP_FAILURE:
|
|
1456
|
-
{
|
|
1457
|
-
fiberFailures.unsafeUpdate(1, tags);
|
|
1458
|
-
break;
|
|
1459
|
-
}
|
|
1460
|
-
}
|
|
1461
|
-
}
|
|
1462
|
-
if (exit._tag === "Failure") {
|
|
1463
|
-
const level = this.getFiberRef(currentUnhandledErrorLogLevel);
|
|
1464
|
-
if (!isInterruptedOnly(exit.cause) && level._tag === "Some") {
|
|
1465
|
-
this.log("Fiber terminated with a non handled error", exit.cause, level);
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
setExitValue(exit) {
|
|
1470
|
-
this._exitValue = exit;
|
|
1471
|
-
if (runtimeMetrics(this._runtimeFlags)) {
|
|
1472
|
-
const tags = this.getFiberRef(currentMetricLabels);
|
|
1473
|
-
const startTimeMillis = this.id().startTimeMillis;
|
|
1474
|
-
const endTimeMillis = new Date().getTime();
|
|
1475
|
-
fiberLifetimes.unsafeUpdate(endTimeMillis - startTimeMillis, tags);
|
|
1476
|
-
}
|
|
1477
|
-
this.reportExitValue(exit);
|
|
1478
|
-
for (let i = this._observers.length - 1; i >= 0; i--) {
|
|
1479
|
-
this._observers[i](exit);
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
getLoggers() {
|
|
1483
|
-
return this.getFiberRef(currentLoggers);
|
|
1484
|
-
}
|
|
1485
|
-
log(message, cause, overrideLogLevel) {
|
|
1486
|
-
const logLevel = isSome(overrideLogLevel) ? overrideLogLevel.value : this.getFiberRef(currentLogLevel);
|
|
1487
|
-
const minimumLogLevel = this.getFiberRef(currentMinimumLogLevel);
|
|
1488
|
-
if (greaterThan(minimumLogLevel, logLevel)) {
|
|
1489
|
-
return;
|
|
1490
|
-
}
|
|
1491
|
-
const spans = this.getFiberRef(currentLogSpan);
|
|
1492
|
-
const annotations = this.getFiberRef(currentLogAnnotations);
|
|
1493
|
-
const loggers = this.getLoggers();
|
|
1494
|
-
const contextMap = this.getFiberRefs();
|
|
1495
|
-
if (size$1(loggers) > 0) {
|
|
1496
|
-
const clockService = get$2(this.getFiberRef(currentServices), clockTag);
|
|
1497
|
-
const date = new Date(clockService.unsafeCurrentTimeMillis());
|
|
1498
|
-
for (const logger of loggers) {
|
|
1499
|
-
logger.log({
|
|
1500
|
-
fiberId: this.id(),
|
|
1501
|
-
logLevel,
|
|
1502
|
-
message,
|
|
1503
|
-
cause,
|
|
1504
|
-
context: contextMap,
|
|
1505
|
-
spans,
|
|
1506
|
-
annotations,
|
|
1507
|
-
date
|
|
1508
|
-
});
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* Evaluates a single message on the current thread, while the fiber is
|
|
1515
|
-
* suspended. This method should only be called while evaluation of the
|
|
1516
|
-
* fiber's effect is suspended due to an asynchronous operation.
|
|
1517
|
-
*
|
|
1518
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1519
|
-
*/
|
|
1520
|
-
evaluateMessageWhileSuspended(message) {
|
|
1521
|
-
switch (message._tag) {
|
|
1522
|
-
case OP_YIELD_NOW:
|
|
1523
|
-
{
|
|
1524
|
-
return EvaluationSignalYieldNow;
|
|
1525
|
-
}
|
|
1526
|
-
case OP_INTERRUPT_SIGNAL:
|
|
1527
|
-
{
|
|
1528
|
-
this.processNewInterruptSignal(message.cause);
|
|
1529
|
-
if (this._asyncInterruptor !== null) {
|
|
1530
|
-
this._asyncInterruptor(exitFailCause(message.cause));
|
|
1531
|
-
this._asyncInterruptor = null;
|
|
1532
|
-
}
|
|
1533
|
-
return EvaluationSignalContinue;
|
|
1534
|
-
}
|
|
1535
|
-
case OP_RESUME:
|
|
1536
|
-
{
|
|
1537
|
-
this._asyncInterruptor = null;
|
|
1538
|
-
this._asyncBlockingOn = null;
|
|
1539
|
-
this.evaluateEffect(message.effect);
|
|
1540
|
-
return EvaluationSignalContinue;
|
|
1541
|
-
}
|
|
1542
|
-
case OP_STATEFUL:
|
|
1543
|
-
{
|
|
1544
|
-
message.onFiber(this, this._exitValue !== null ? done : suspended(this._runtimeFlags, this._asyncBlockingOn));
|
|
1545
|
-
return EvaluationSignalContinue;
|
|
1546
|
-
}
|
|
1547
|
-
default:
|
|
1548
|
-
{
|
|
1549
|
-
return absurd(message);
|
|
1550
|
-
}
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* Evaluates an effect until completion, potentially asynchronously.
|
|
1556
|
-
*
|
|
1557
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1558
|
-
*/
|
|
1559
|
-
evaluateEffect(effect0) {
|
|
1560
|
-
this._supervisor.onResume(this);
|
|
1561
|
-
try {
|
|
1562
|
-
let effect = interruptible$1(this._runtimeFlags) && this.isInterrupted() ? exitFailCause(this.getInterruptedCause()) : effect0;
|
|
1563
|
-
while (effect !== null) {
|
|
1564
|
-
try {
|
|
1565
|
-
const eff = effect;
|
|
1566
|
-
const exit = this.runLoop(eff);
|
|
1567
|
-
this._runtimeFlags = pipe(this._runtimeFlags, enable(WindDown));
|
|
1568
|
-
const interruption = this.interruptAllChildren();
|
|
1569
|
-
if (interruption !== null) {
|
|
1570
|
-
effect = flatMap$1(interruption, () => exit);
|
|
1571
|
-
} else {
|
|
1572
|
-
if (this._queue.length === 0) {
|
|
1573
|
-
// No more messages to process, so we will allow the fiber to end life:
|
|
1574
|
-
this.setExitValue(exit);
|
|
1575
|
-
} else {
|
|
1576
|
-
// There are messages, possibly added by the final op executed by
|
|
1577
|
-
// the fiber. To be safe, we should execute those now before we
|
|
1578
|
-
// allow the fiber to end life:
|
|
1579
|
-
this.tell(resume(exit));
|
|
1580
|
-
}
|
|
1581
|
-
effect = null;
|
|
1582
|
-
}
|
|
1583
|
-
} catch (e) {
|
|
1584
|
-
if (isEffect(e)) {
|
|
1585
|
-
if (e._op === OP_YIELD) {
|
|
1586
|
-
if (cooperativeYielding(this._runtimeFlags)) {
|
|
1587
|
-
this.tell(yieldNow());
|
|
1588
|
-
this.tell(resume(exitUnit));
|
|
1589
|
-
effect = null;
|
|
1590
|
-
} else {
|
|
1591
|
-
effect = exitUnit;
|
|
1592
|
-
}
|
|
1593
|
-
} else if (e._op === OP_ASYNC) {
|
|
1594
|
-
// Terminate this evaluation, async resumption will continue evaluation:
|
|
1595
|
-
effect = null;
|
|
1596
|
-
}
|
|
1597
|
-
} else {
|
|
1598
|
-
throw e;
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
} finally {
|
|
1603
|
-
this._supervisor.onSuspend(this);
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
/**
|
|
1608
|
-
* Begins execution of the effect associated with this fiber on the current
|
|
1609
|
-
* thread. This can be called to "kick off" execution of a fiber after it has
|
|
1610
|
-
* been created, in hopes that the effect can be executed synchronously.
|
|
1611
|
-
*
|
|
1612
|
-
* This is not the normal way of starting a fiber, but it is useful when the
|
|
1613
|
-
* express goal of executing the fiber is to synchronously produce its exit.
|
|
1614
|
-
*/
|
|
1615
|
-
start(effect) {
|
|
1616
|
-
if (!this._running) {
|
|
1617
|
-
this._running = true;
|
|
1618
|
-
const prev = globalThis[currentFiberURI];
|
|
1619
|
-
globalThis[currentFiberURI] = this;
|
|
1620
|
-
try {
|
|
1621
|
-
this.evaluateEffect(effect);
|
|
1622
|
-
} finally {
|
|
1623
|
-
this._running = false;
|
|
1624
|
-
globalThis[currentFiberURI] = prev;
|
|
1625
|
-
// Because we're special casing `start`, we have to be responsible
|
|
1626
|
-
// for spinning up the fiber if there were new messages added to
|
|
1627
|
-
// the queue between the completion of the effect and the transition
|
|
1628
|
-
// to the not running state.
|
|
1629
|
-
if (this._queue.length > 0) {
|
|
1630
|
-
this.drainQueueLaterOnExecutor();
|
|
1631
|
-
}
|
|
1632
|
-
}
|
|
1633
|
-
} else {
|
|
1634
|
-
this.tell(resume(effect));
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
/**
|
|
1639
|
-
* Begins execution of the effect associated with this fiber on in the
|
|
1640
|
-
* background, and on the correct thread pool. This can be called to "kick
|
|
1641
|
-
* off" execution of a fiber after it has been created, in hopes that the
|
|
1642
|
-
* effect can be executed synchronously.
|
|
1643
|
-
*/
|
|
1644
|
-
startFork(effect) {
|
|
1645
|
-
this.tell(resume(effect));
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
/**
|
|
1649
|
-
* Takes the current runtime flags, patches them to return the new runtime
|
|
1650
|
-
* flags, and then makes any changes necessary to fiber state based on the
|
|
1651
|
-
* specified patch.
|
|
1652
|
-
*
|
|
1653
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1654
|
-
*/
|
|
1655
|
-
patchRuntimeFlags(oldRuntimeFlags, patch) {
|
|
1656
|
-
const newRuntimeFlags = patch$1(oldRuntimeFlags, patch);
|
|
1657
|
-
globalThis[currentFiberURI] = this;
|
|
1658
|
-
this._runtimeFlags = newRuntimeFlags;
|
|
1659
|
-
return newRuntimeFlags;
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Initiates an asynchronous operation, by building a callback that will
|
|
1664
|
-
* resume execution, and then feeding that callback to the registration
|
|
1665
|
-
* function, handling error cases and repeated resumptions appropriately.
|
|
1666
|
-
*
|
|
1667
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1668
|
-
*/
|
|
1669
|
-
initiateAsync(runtimeFlags, asyncRegister) {
|
|
1670
|
-
let alreadyCalled = false;
|
|
1671
|
-
const callback = effect => {
|
|
1672
|
-
if (!alreadyCalled) {
|
|
1673
|
-
alreadyCalled = true;
|
|
1674
|
-
this.tell(resume(effect));
|
|
1675
|
-
}
|
|
1676
|
-
};
|
|
1677
|
-
if (interruptible$1(runtimeFlags)) {
|
|
1678
|
-
this._asyncInterruptor = callback;
|
|
1679
|
-
}
|
|
1680
|
-
try {
|
|
1681
|
-
asyncRegister(callback);
|
|
1682
|
-
} catch (e) {
|
|
1683
|
-
callback(failCause(die(e)));
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
pushStack(cont) {
|
|
1687
|
-
this._stack.push(cont);
|
|
1688
|
-
if (cont._op === "OnStep") {
|
|
1689
|
-
this._steps.push(true);
|
|
1690
|
-
}
|
|
1691
|
-
if (cont._op === "RevertFlags") {
|
|
1692
|
-
this._steps.push(false);
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
popStack() {
|
|
1696
|
-
const item = this._stack.pop();
|
|
1697
|
-
if (item) {
|
|
1698
|
-
if (item._op === "OnStep" || item._op === "RevertFlags") {
|
|
1699
|
-
this._steps.pop();
|
|
1700
|
-
}
|
|
1701
|
-
return item;
|
|
1702
|
-
}
|
|
1703
|
-
return;
|
|
1704
|
-
}
|
|
1705
|
-
getNextSuccessCont() {
|
|
1706
|
-
let frame = this.popStack();
|
|
1707
|
-
while (frame) {
|
|
1708
|
-
if (frame._op !== OP_ON_FAILURE) {
|
|
1709
|
-
return frame;
|
|
1710
|
-
}
|
|
1711
|
-
frame = this.popStack();
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
|
-
getNextFailCont() {
|
|
1715
|
-
let frame = this.popStack();
|
|
1716
|
-
while (frame) {
|
|
1717
|
-
if (frame._op !== OP_ON_SUCCESS && frame._op !== OP_WHILE) {
|
|
1718
|
-
return frame;
|
|
1719
|
-
}
|
|
1720
|
-
frame = this.popStack();
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
[OP_TAG](op) {
|
|
1724
|
-
return map$2(fiberRefGet(currentContext), context => {
|
|
1725
|
-
try {
|
|
1726
|
-
return unsafeGet(context, op);
|
|
1727
|
-
} catch (e) {
|
|
1728
|
-
console.log(e);
|
|
1729
|
-
throw e;
|
|
1730
|
-
}
|
|
1731
|
-
});
|
|
1732
|
-
}
|
|
1733
|
-
["Left"](op) {
|
|
1734
|
-
return exitFail(op.left);
|
|
1735
|
-
}
|
|
1736
|
-
["None"](_) {
|
|
1737
|
-
return exitFail(NoSuchElementException());
|
|
1738
|
-
}
|
|
1739
|
-
["Right"](op) {
|
|
1740
|
-
return exitSucceed(op.right);
|
|
1741
|
-
}
|
|
1742
|
-
["Some"](op) {
|
|
1743
|
-
return exitSucceed(op.value);
|
|
1744
|
-
}
|
|
1745
|
-
[OP_SYNC](op) {
|
|
1746
|
-
const value = op.i0();
|
|
1747
|
-
const cont = this.getNextSuccessCont();
|
|
1748
|
-
if (cont !== undefined) {
|
|
1749
|
-
if (!(cont._op in contOpSuccess)) {
|
|
1750
|
-
// @ts-expect-error
|
|
1751
|
-
absurd(cont);
|
|
1752
|
-
}
|
|
1753
|
-
// @ts-expect-error
|
|
1754
|
-
return contOpSuccess[cont._op](this, cont, value);
|
|
1755
|
-
} else {
|
|
1756
|
-
throw exitSucceed(value);
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
[OP_SUCCESS](op) {
|
|
1760
|
-
const oldCur = op;
|
|
1761
|
-
const cont = this.getNextSuccessCont();
|
|
1762
|
-
if (cont !== undefined) {
|
|
1763
|
-
if (!(cont._op in contOpSuccess)) {
|
|
1764
|
-
// @ts-expect-error
|
|
1765
|
-
absurd(cont);
|
|
1766
|
-
}
|
|
1767
|
-
// @ts-expect-error
|
|
1768
|
-
return contOpSuccess[cont._op](this, cont, oldCur.i0);
|
|
1769
|
-
} else {
|
|
1770
|
-
throw oldCur;
|
|
1771
|
-
}
|
|
1772
|
-
}
|
|
1773
|
-
[OP_FAILURE](op) {
|
|
1774
|
-
const cause = op.i0;
|
|
1775
|
-
const cont = this.getNextFailCont();
|
|
1776
|
-
if (cont !== undefined) {
|
|
1777
|
-
switch (cont._op) {
|
|
1778
|
-
case OP_ON_FAILURE:
|
|
1779
|
-
case OP_ON_SUCCESS_AND_FAILURE:
|
|
1780
|
-
{
|
|
1781
|
-
if (!(interruptible$1(this._runtimeFlags) && this.isInterrupted())) {
|
|
1782
|
-
return cont.i1(cause);
|
|
1783
|
-
} else {
|
|
1784
|
-
return exitFailCause(stripFailures(cause));
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
case "OnStep":
|
|
1788
|
-
{
|
|
1789
|
-
if (!(interruptible$1(this._runtimeFlags) && this.isInterrupted())) {
|
|
1790
|
-
return cont.i1(exitFailCause(cause));
|
|
1791
|
-
} else {
|
|
1792
|
-
return exitFailCause(stripFailures(cause));
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
case OP_REVERT_FLAGS:
|
|
1796
|
-
{
|
|
1797
|
-
this.patchRuntimeFlags(this._runtimeFlags, cont.patch);
|
|
1798
|
-
if (interruptible$1(this._runtimeFlags) && this.isInterrupted()) {
|
|
1799
|
-
return exitFailCause(sequential$1(cause, this.getInterruptedCause()));
|
|
1800
|
-
} else {
|
|
1801
|
-
return exitFailCause(cause);
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
default:
|
|
1805
|
-
{
|
|
1806
|
-
absurd(cont);
|
|
1807
|
-
}
|
|
1808
|
-
}
|
|
1809
|
-
} else {
|
|
1810
|
-
throw exitFailCause(cause);
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
[OP_WITH_RUNTIME](op) {
|
|
1814
|
-
return op.i0(this, running(this._runtimeFlags));
|
|
1815
|
-
}
|
|
1816
|
-
["Blocked"](op) {
|
|
1817
|
-
if (this._steps[this._steps.length - 1]) {
|
|
1818
|
-
const nextOp = this.popStack();
|
|
1819
|
-
if (nextOp) {
|
|
1820
|
-
switch (nextOp._op) {
|
|
1821
|
-
case "OnStep":
|
|
1822
|
-
{
|
|
1823
|
-
return nextOp.i1(op);
|
|
1824
|
-
}
|
|
1825
|
-
case "OnSuccess":
|
|
1826
|
-
{
|
|
1827
|
-
return blocked(op.i0, flatMap$1(op.i1, nextOp.i1));
|
|
1828
|
-
}
|
|
1829
|
-
case "OnSuccessAndFailure":
|
|
1830
|
-
{
|
|
1831
|
-
return blocked(op.i0, matchCauseEffect(op.i1, {
|
|
1832
|
-
onFailure: nextOp.i1,
|
|
1833
|
-
onSuccess: nextOp.i2
|
|
1834
|
-
}));
|
|
1835
|
-
}
|
|
1836
|
-
case "OnFailure":
|
|
1837
|
-
{
|
|
1838
|
-
return blocked(op.i0, catchAllCause(op.i1, nextOp.i1));
|
|
1839
|
-
}
|
|
1840
|
-
case "While":
|
|
1841
|
-
{
|
|
1842
|
-
return blocked(op.i0, flatMap$1(op.i1, a => {
|
|
1843
|
-
nextOp.i2(a);
|
|
1844
|
-
if (nextOp.i0()) {
|
|
1845
|
-
return whileLoop({
|
|
1846
|
-
while: nextOp.i0,
|
|
1847
|
-
body: nextOp.i1,
|
|
1848
|
-
step: nextOp.i2
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
return unit;
|
|
1852
|
-
}));
|
|
1853
|
-
}
|
|
1854
|
-
case "RevertFlags":
|
|
1855
|
-
{
|
|
1856
|
-
this.pushStack(nextOp);
|
|
1857
|
-
break;
|
|
1858
|
-
}
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
|
-
return uninterruptibleMask(restore => flatMap$1(fork(runRequestBlock(op.i0)), () => restore(op.i1)));
|
|
1863
|
-
}
|
|
1864
|
-
["RunBlocked"](op) {
|
|
1865
|
-
return runBlockedRequests(op.i0);
|
|
1866
|
-
}
|
|
1867
|
-
[OP_UPDATE_RUNTIME_FLAGS](op) {
|
|
1868
|
-
const updateFlags = op.i0;
|
|
1869
|
-
const oldRuntimeFlags = this._runtimeFlags;
|
|
1870
|
-
const newRuntimeFlags = patch$1(oldRuntimeFlags, updateFlags);
|
|
1871
|
-
// One more chance to short circuit: if we're immediately going
|
|
1872
|
-
// to interrupt. Interruption will cause immediate reversion of
|
|
1873
|
-
// the flag, so as long as we "peek ahead", there's no need to
|
|
1874
|
-
// set them to begin with.
|
|
1875
|
-
if (interruptible$1(newRuntimeFlags) && this.isInterrupted()) {
|
|
1876
|
-
return exitFailCause(this.getInterruptedCause());
|
|
1877
|
-
} else {
|
|
1878
|
-
// Impossible to short circuit, so record the changes
|
|
1879
|
-
this.patchRuntimeFlags(this._runtimeFlags, updateFlags);
|
|
1880
|
-
if (op.i1) {
|
|
1881
|
-
// Since we updated the flags, we need to revert them
|
|
1882
|
-
const revertFlags = diff$1(newRuntimeFlags, oldRuntimeFlags);
|
|
1883
|
-
this.pushStack(new RevertFlags(revertFlags, op));
|
|
1884
|
-
return op.i1(oldRuntimeFlags);
|
|
1885
|
-
} else {
|
|
1886
|
-
return exitUnit;
|
|
1887
|
-
}
|
|
1888
|
-
}
|
|
1889
|
-
}
|
|
1890
|
-
[OP_ON_SUCCESS](op) {
|
|
1891
|
-
this.pushStack(op);
|
|
1892
|
-
return op.i0;
|
|
1893
|
-
}
|
|
1894
|
-
["OnStep"](op) {
|
|
1895
|
-
this.pushStack(op);
|
|
1896
|
-
return op.i0;
|
|
1897
|
-
}
|
|
1898
|
-
[OP_ON_FAILURE](op) {
|
|
1899
|
-
this.pushStack(op);
|
|
1900
|
-
return op.i0;
|
|
1901
|
-
}
|
|
1902
|
-
[OP_ON_SUCCESS_AND_FAILURE](op) {
|
|
1903
|
-
this.pushStack(op);
|
|
1904
|
-
return op.i0;
|
|
1905
|
-
}
|
|
1906
|
-
[OP_ASYNC](op) {
|
|
1907
|
-
this._asyncBlockingOn = op.i1;
|
|
1908
|
-
this.initiateAsync(this._runtimeFlags, op.i0);
|
|
1909
|
-
throw op;
|
|
1910
|
-
}
|
|
1911
|
-
[OP_YIELD](op) {
|
|
1912
|
-
throw op;
|
|
1913
|
-
}
|
|
1914
|
-
[OP_WHILE](op) {
|
|
1915
|
-
const check = op.i0;
|
|
1916
|
-
const body = op.i1;
|
|
1917
|
-
if (check()) {
|
|
1918
|
-
this.pushStack(op);
|
|
1919
|
-
return body();
|
|
1920
|
-
} else {
|
|
1921
|
-
return exitUnit;
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
[OP_COMMIT](op) {
|
|
1925
|
-
return op.commit();
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1928
|
-
/**
|
|
1929
|
-
* The main run-loop for evaluating effects.
|
|
1930
|
-
*
|
|
1931
|
-
* **NOTE**: This method must be invoked by the fiber itself.
|
|
1932
|
-
*/
|
|
1933
|
-
runLoop(effect0) {
|
|
1934
|
-
let cur = effect0;
|
|
1935
|
-
this.currentOpCount = 0;
|
|
1936
|
-
// eslint-disable-next-line no-constant-condition
|
|
1937
|
-
while (true) {
|
|
1938
|
-
if ((this._runtimeFlags & OpSupervision) !== 0) {
|
|
1939
|
-
this._supervisor.onEffect(this, cur);
|
|
1940
|
-
}
|
|
1941
|
-
if (this._queue.length > 0) {
|
|
1942
|
-
cur = this.drainQueueWhileRunning(this._runtimeFlags, cur);
|
|
1943
|
-
}
|
|
1944
|
-
this.currentOpCount += 1;
|
|
1945
|
-
const shouldYield = this._scheduler.shouldYield(this);
|
|
1946
|
-
if (shouldYield !== false) {
|
|
1947
|
-
this.currentOpCount = 0;
|
|
1948
|
-
const oldCur = cur;
|
|
1949
|
-
cur = flatMap$1(yieldNow$1({
|
|
1950
|
-
priority: shouldYield
|
|
1951
|
-
}), () => oldCur);
|
|
1952
|
-
}
|
|
1953
|
-
try {
|
|
1954
|
-
if (!("_op" in cur)) {
|
|
1955
|
-
console.log(cur);
|
|
1956
|
-
}
|
|
1957
|
-
if (!(cur._op in this)) {
|
|
1958
|
-
if (typeof cur === "function") {
|
|
1959
|
-
console.log(cur());
|
|
1960
|
-
}
|
|
1961
|
-
// @ts-expect-error
|
|
1962
|
-
absurd(cur);
|
|
1963
|
-
}
|
|
1964
|
-
// @ts-expect-error
|
|
1965
|
-
cur = this._tracer.context(
|
|
1966
|
-
// @ts-expect-error
|
|
1967
|
-
() => this[cur._op](cur), this);
|
|
1968
|
-
} catch (e) {
|
|
1969
|
-
if (isEffect(e)) {
|
|
1970
|
-
if (e._op === OP_YIELD || e._op === OP_ASYNC) {
|
|
1971
|
-
throw e;
|
|
1972
|
-
}
|
|
1973
|
-
if (e._op === OP_SUCCESS || e._op === OP_FAILURE) {
|
|
1974
|
-
return e;
|
|
1975
|
-
}
|
|
1976
|
-
} else {
|
|
1977
|
-
if (isEffectError(e)) {
|
|
1978
|
-
cur = exitFailCause(e.cause);
|
|
1979
|
-
} else if (isInterruptedException(e)) {
|
|
1980
|
-
cur = exitFailCause(sequential$1(die(e), interrupt(none$3)));
|
|
1981
|
-
} else {
|
|
1982
|
-
cur = exitFailCause(die(e));
|
|
1983
|
-
}
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
1987
|
-
}
|
|
1988
|
-
run = () => {
|
|
1989
|
-
this.drainQueueOnCurrentThread();
|
|
1990
|
-
};
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
// circular with Logger
|
|
1994
|
-
|
|
1995
|
-
/** @internal */
|
|
1996
|
-
const currentMinimumLogLevel = /*#__PURE__*/fiberRefUnsafeMake( /*#__PURE__*/fromLiteral("Info"));
|
|
1997
|
-
|
|
1998
|
-
/** @internal */
|
|
1999
|
-
const getConsole = refs => {
|
|
2000
|
-
const defaultServicesValue = getOrDefault(refs, currentServices);
|
|
2001
|
-
const cnsl = get$2(defaultServicesValue, consoleTag);
|
|
2002
|
-
return cnsl.unsafe;
|
|
2003
|
-
};
|
|
2004
|
-
|
|
2005
|
-
/** @internal */
|
|
2006
|
-
const defaultLogger = /*#__PURE__*/makeLogger(options => {
|
|
2007
|
-
const formatted = stringLogger.log(options);
|
|
2008
|
-
getConsole(options.context).log(formatted);
|
|
2009
|
-
});
|
|
2010
|
-
|
|
2011
|
-
/** @internal */
|
|
2012
|
-
const logFmtLogger = /*#__PURE__*/makeLogger(options => {
|
|
2013
|
-
const formatted = logfmtLogger.log(options);
|
|
2014
|
-
getConsole(options.context).log(formatted);
|
|
2015
|
-
});
|
|
2016
|
-
|
|
2017
|
-
/** @internal */
|
|
2018
|
-
const tracerLogger = /*#__PURE__*/makeLogger(({
|
|
2019
|
-
annotations,
|
|
2020
|
-
cause,
|
|
2021
|
-
context,
|
|
2022
|
-
fiberId,
|
|
2023
|
-
logLevel,
|
|
2024
|
-
message
|
|
2025
|
-
}) => {
|
|
2026
|
-
const span = flatMap(get$1(context, currentTracerSpan), head);
|
|
2027
|
-
const clockService = map$3(get$1(context, currentServices), _ => get$2(_, clockTag));
|
|
2028
|
-
if (span._tag === "None" || span.value._tag === "ExternalSpan" || clockService._tag === "None") {
|
|
2029
|
-
return;
|
|
2030
|
-
}
|
|
2031
|
-
const attributes = Object.fromEntries(annotations);
|
|
2032
|
-
attributes["effect.fiberId"] = threadName$1(fiberId);
|
|
2033
|
-
attributes["effect.logLevel"] = logLevel.label;
|
|
2034
|
-
if (cause !== null && cause !== empty$1) {
|
|
2035
|
-
attributes["effect.cause"] = pretty(cause);
|
|
2036
|
-
}
|
|
2037
|
-
span.value.event(String(message), clockService.value.unsafeCurrentTimeNanos(), attributes);
|
|
2038
|
-
});
|
|
2039
|
-
|
|
2040
|
-
/** @internal */
|
|
2041
|
-
const currentLoggers = /*#__PURE__*/fiberRefUnsafeMakeHashSet( /*#__PURE__*/make$2(defaultLogger, tracerLogger));
|
|
2042
|
-
|
|
2043
|
-
// circular with Effect
|
|
2044
|
-
|
|
2045
|
-
/* @internal */
|
|
2046
|
-
const acquireRelease = /*#__PURE__*/dual(args => isEffect(args[0]), (acquire, release) => {
|
|
2047
|
-
return uninterruptible(tap(acquire, a => addFinalizer(exit => release(a, exit))));
|
|
2048
|
-
});
|
|
2049
|
-
|
|
2050
|
-
/* @internal */
|
|
2051
|
-
const acquireReleaseInterruptible = /*#__PURE__*/dual(args => isEffect(args[0]), (acquire, release) => {
|
|
2052
|
-
return ensuring(acquire, addFinalizer(exit => release(exit)));
|
|
2053
|
-
});
|
|
2054
|
-
|
|
2055
|
-
/* @internal */
|
|
2056
|
-
const addFinalizer = finalizer => withFiberRuntime(runtime => {
|
|
2057
|
-
const acquireRefs = runtime.getFiberRefs();
|
|
2058
|
-
const acquireFlags = runtime._runtimeFlags;
|
|
2059
|
-
return flatMap$1(scope, scope => scopeAddFinalizerExit(scope, exit => withFiberRuntime(runtimeFinalizer => {
|
|
2060
|
-
const preRefs = runtimeFinalizer.getFiberRefs();
|
|
2061
|
-
const preFlags = runtimeFinalizer._runtimeFlags;
|
|
2062
|
-
const patchRefs = diff$2(preRefs, acquireRefs);
|
|
2063
|
-
const patchFlags = diff$1(preFlags, acquireFlags);
|
|
2064
|
-
const inverseRefs = diff$2(acquireRefs, preRefs);
|
|
2065
|
-
runtimeFinalizer.setFiberRefs(patch$2(patchRefs, runtimeFinalizer.id(), acquireRefs));
|
|
2066
|
-
return ensuring(withRuntimeFlags(finalizer(exit), patchFlags), sync$2(() => {
|
|
2067
|
-
runtimeFinalizer.setFiberRefs(patch$2(inverseRefs, runtimeFinalizer.id(), runtimeFinalizer.getFiberRefs()));
|
|
2068
|
-
}));
|
|
2069
|
-
})));
|
|
2070
|
-
});
|
|
2071
|
-
|
|
2072
|
-
/* @internal */
|
|
2073
|
-
const daemonChildren = self => {
|
|
2074
|
-
const forkScope = fiberRefLocally(currentForkScopeOverride, some(globalScope));
|
|
2075
|
-
return forkScope(self);
|
|
2076
|
-
};
|
|
2077
|
-
|
|
2078
|
-
/** @internal */
|
|
2079
|
-
const _existsParFound = /*#__PURE__*/Symbol("effect/Effect/existsPar/found");
|
|
2080
|
-
|
|
2081
|
-
/* @internal */
|
|
2082
|
-
const exists = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => matchSimple(options, () => suspend(() => existsLoop(elements[Symbol.iterator](), 0, f)), () => matchEffect(forEachOptions(elements, (a, i) => if_(f(a, i), {
|
|
2083
|
-
onTrue: fail$1(_existsParFound),
|
|
2084
|
-
onFalse: unit
|
|
2085
|
-
}), options), {
|
|
2086
|
-
onFailure: e => e === _existsParFound ? succeed$3(true) : fail$1(e),
|
|
2087
|
-
onSuccess: () => succeed$3(false)
|
|
2088
|
-
})));
|
|
2089
|
-
const existsLoop = (iterator, index, f) => {
|
|
2090
|
-
const next = iterator.next();
|
|
2091
|
-
if (next.done) {
|
|
2092
|
-
return succeed$3(false);
|
|
2093
|
-
}
|
|
2094
|
-
return pipe(flatMap$1(f(next.value, index), b => b ? succeed$3(b) : existsLoop(iterator, index + 1, f)));
|
|
2095
|
-
};
|
|
2096
|
-
|
|
2097
|
-
/* @internal */
|
|
2098
|
-
const filter = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => {
|
|
2099
|
-
const predicate = options?.negate ? (a, i) => map$2(f(a, i), not) : f;
|
|
2100
|
-
return matchSimple(options, () => suspend(() => fromIterable$1(elements).reduceRight((effect, a, i) => zipWith(effect, suspend(() => predicate(a, i)), (list, b) => b ? [a, ...list] : list), sync$2(() => new Array()))), () => map$2(forEachOptions(elements, (a, i) => map$2(predicate(a, i), b => b ? some(a) : none$2()), options), compact));
|
|
2101
|
-
});
|
|
2102
|
-
|
|
2103
|
-
// === all
|
|
2104
|
-
|
|
2105
|
-
const allResolveInput = input => {
|
|
2106
|
-
if (Array.isArray(input) || isIterable(input)) {
|
|
2107
|
-
return [input, none$2()];
|
|
2108
|
-
}
|
|
2109
|
-
const keys = Object.keys(input);
|
|
2110
|
-
const size = keys.length;
|
|
2111
|
-
return [keys.map(k => input[k]), some(values => {
|
|
2112
|
-
const res = {};
|
|
2113
|
-
for (let i = 0; i < size; i++) {
|
|
2114
|
-
res[keys[i]] = values[i];
|
|
2115
|
-
}
|
|
2116
|
-
return res;
|
|
2117
|
-
})];
|
|
2118
|
-
};
|
|
2119
|
-
const allValidate = (effects, reconcile, options) => {
|
|
2120
|
-
const eitherEffects = [];
|
|
2121
|
-
for (const effect of effects) {
|
|
2122
|
-
eitherEffects.push(either(effect));
|
|
2123
|
-
}
|
|
2124
|
-
return flatMap$1(forEachOptions(eitherEffects, identity, {
|
|
2125
|
-
concurrency: options?.concurrency,
|
|
2126
|
-
batching: options?.batching
|
|
2127
|
-
}), eithers => {
|
|
2128
|
-
const none = none$2();
|
|
2129
|
-
const size = eithers.length;
|
|
2130
|
-
const errors = new Array(size);
|
|
2131
|
-
const successes = new Array(size);
|
|
2132
|
-
let errored = false;
|
|
2133
|
-
for (let i = 0; i < size; i++) {
|
|
2134
|
-
const either = eithers[i];
|
|
2135
|
-
if (either._tag === "Left") {
|
|
2136
|
-
errors[i] = some(either.left);
|
|
2137
|
-
errored = true;
|
|
2138
|
-
} else {
|
|
2139
|
-
successes[i] = either.right;
|
|
2140
|
-
errors[i] = none;
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2143
|
-
if (errored) {
|
|
2144
|
-
return reconcile._tag === "Some" ? fail$1(reconcile.value(errors)) : fail$1(errors);
|
|
2145
|
-
} else if (options?.discard) {
|
|
2146
|
-
return unit;
|
|
2147
|
-
}
|
|
2148
|
-
return reconcile._tag === "Some" ? succeed$3(reconcile.value(successes)) : succeed$3(successes);
|
|
2149
|
-
});
|
|
2150
|
-
};
|
|
2151
|
-
const allEither = (effects, reconcile, options) => {
|
|
2152
|
-
const eitherEffects = [];
|
|
2153
|
-
for (const effect of effects) {
|
|
2154
|
-
eitherEffects.push(either(effect));
|
|
2155
|
-
}
|
|
2156
|
-
if (options?.discard) {
|
|
2157
|
-
return forEachOptions(eitherEffects, identity, {
|
|
2158
|
-
concurrency: options?.concurrency,
|
|
2159
|
-
batching: options?.batching,
|
|
2160
|
-
discard: true
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
|
-
return map$2(forEachOptions(eitherEffects, identity, {
|
|
2164
|
-
concurrency: options?.concurrency,
|
|
2165
|
-
batching: options?.batching
|
|
2166
|
-
}), eithers => reconcile._tag === "Some" ? reconcile.value(eithers) : eithers);
|
|
2167
|
-
};
|
|
2168
|
-
|
|
2169
|
-
/* @internal */
|
|
2170
|
-
const all = (arg, options) => {
|
|
2171
|
-
const [effects, reconcile] = allResolveInput(arg);
|
|
2172
|
-
if (options?.mode === "validate") {
|
|
2173
|
-
return allValidate(effects, reconcile, options);
|
|
2174
|
-
} else if (options?.mode === "either") {
|
|
2175
|
-
return allEither(effects, reconcile, options);
|
|
2176
|
-
}
|
|
2177
|
-
return reconcile._tag === "Some" ? map$2(forEachOptions(effects, identity, options), reconcile.value) : forEachOptions(effects, identity, options);
|
|
2178
|
-
};
|
|
2179
|
-
|
|
2180
|
-
/* @internal */
|
|
2181
|
-
const allWith = options => arg => all(arg, options);
|
|
2182
|
-
|
|
2183
|
-
/* @internal */
|
|
2184
|
-
const allSuccesses = (elements, options) => map$2(all(fromIterable$1(elements).map(exit), options), filterMap(exit => exitIsSuccess(exit) ? some(exit.i0) : none$2()));
|
|
2185
|
-
|
|
2186
|
-
/* @internal */
|
|
2187
|
-
const replicate = /*#__PURE__*/dual(2, (self, n) => Array.from({
|
|
2188
|
-
length: n
|
|
2189
|
-
}, () => self));
|
|
2190
|
-
|
|
2191
|
-
/* @internal */
|
|
2192
|
-
const replicateEffect = /*#__PURE__*/dual(args => isEffect(args[0]), (self, n, options) => all(replicate(self, n), options));
|
|
2193
|
-
|
|
2194
|
-
// @ts-expect-error
|
|
2195
|
-
const forEachOptions = /*#__PURE__*/dual(args => isIterable(args[0]), (self, f, options) => withFiberRuntime(r => {
|
|
2196
|
-
const requestBatchingEnabled = options?.batching === true || options?.batching === "inherit" && r.getFiberRef(currentRequestBatching);
|
|
2197
|
-
if (options?.discard) {
|
|
2198
|
-
return match(options, () => finalizersMask(sequential)(restore => requestBatchingEnabled ? forEachBatchedDiscard(self, (a, i) => restore(f(a, i))) : forEachSequentialDiscard(self, (a, i) => restore(f(a, i)))), () => finalizersMask(parallel)(restore => forEachParUnboundedDiscard(self, (a, i) => restore(f(a, i)), requestBatchingEnabled)), n => finalizersMask(parallelN(n))(restore => forEachParNDiscard(self, n, (a, i) => restore(f(a, i)), requestBatchingEnabled)));
|
|
2199
|
-
}
|
|
2200
|
-
return match(options, () => finalizersMask(sequential)(restore => requestBatchingEnabled ? forEachParN(self, 1, (a, i) => restore(f(a, i)), true) : forEachSequential(self, (a, i) => restore(f(a, i)))), () => finalizersMask(parallel)(restore => forEachParUnbounded(self, (a, i) => restore(f(a, i)), requestBatchingEnabled)), n => finalizersMask(parallelN(n))(restore => forEachParN(self, n, (a, i) => restore(f(a, i)), requestBatchingEnabled)));
|
|
2201
|
-
}));
|
|
2202
|
-
|
|
2203
|
-
/* @internal */
|
|
2204
|
-
const forEachParUnbounded = (self, f, batching) => suspend(() => {
|
|
2205
|
-
const as = fromIterable$1(self);
|
|
2206
|
-
const array = new Array(as.length);
|
|
2207
|
-
const fn = (a, i) => flatMap$1(f(a, i), b => sync$2(() => array[i] = b));
|
|
2208
|
-
return zipRight$1(forEachParUnboundedDiscard(as, fn, batching), succeed$3(array));
|
|
2209
|
-
});
|
|
2210
|
-
const forEachBatchedDiscard = (self, f) => suspend(() => {
|
|
2211
|
-
const as = fromIterable$1(self);
|
|
2212
|
-
const size = as.length;
|
|
2213
|
-
if (size === 0) {
|
|
2214
|
-
return unit;
|
|
2215
|
-
} else if (size === 1) {
|
|
2216
|
-
return asUnit(f(as[0], 0));
|
|
2217
|
-
}
|
|
2218
|
-
const effects = as.map(f);
|
|
2219
|
-
const blocked$1 = new Array();
|
|
2220
|
-
const loop = i => i === effects.length ? suspend(() => {
|
|
2221
|
-
if (blocked$1.length > 0) {
|
|
2222
|
-
const requests = blocked$1.map(b => b.i0).reduce(par);
|
|
2223
|
-
return blocked(requests, forEachBatchedDiscard(blocked$1.map(b => b.i1), identity));
|
|
2224
|
-
}
|
|
2225
|
-
return unit;
|
|
2226
|
-
}) : flatMapStep(effects[i], s => {
|
|
2227
|
-
if (s._op === "Blocked") {
|
|
2228
|
-
blocked$1.push(s);
|
|
2229
|
-
return loop(i + 1);
|
|
2230
|
-
} else if (s._op === "Failure") {
|
|
2231
|
-
return suspend(() => {
|
|
2232
|
-
if (blocked$1.length > 0) {
|
|
2233
|
-
const requests = blocked$1.map(b => b.i0).reduce(par);
|
|
2234
|
-
return blocked(requests, flatMap$1(forEachBatchedDiscard(blocked$1.map(b => b.i1), identity), () => s));
|
|
2235
|
-
}
|
|
2236
|
-
return unit;
|
|
2237
|
-
});
|
|
2238
|
-
} else {
|
|
2239
|
-
return loop(i + 1);
|
|
2240
|
-
}
|
|
2241
|
-
});
|
|
2242
|
-
return loop(0);
|
|
2243
|
-
});
|
|
2244
|
-
|
|
2245
|
-
/* @internal */
|
|
2246
|
-
const forEachParUnboundedDiscard = (self, f, batching) => suspend(() => {
|
|
2247
|
-
const as = fromIterable$1(self);
|
|
2248
|
-
const size = as.length;
|
|
2249
|
-
if (size === 0) {
|
|
2250
|
-
return unit;
|
|
2251
|
-
} else if (size === 1) {
|
|
2252
|
-
return asUnit(f(as[0], 0));
|
|
2253
|
-
}
|
|
2254
|
-
return uninterruptibleMask(restore => {
|
|
2255
|
-
const deferred = deferredUnsafeMake(none$3);
|
|
2256
|
-
let ref = 0;
|
|
2257
|
-
const residual = [];
|
|
2258
|
-
const joinOrder = [];
|
|
2259
|
-
const process = transplant(graft => forEachSequential(as, (a, i) => pipe(graft(pipe(suspend(() => restore((batching ? step : exit)(f(a, i)))), flatMap$1(exit => {
|
|
2260
|
-
switch (exit._op) {
|
|
2261
|
-
case "Failure":
|
|
2262
|
-
{
|
|
2263
|
-
if (residual.length > 0) {
|
|
2264
|
-
const requests = residual.map(blocked => blocked.i0).reduce(par);
|
|
2265
|
-
const _continue = forEachParUnboundedDiscard(residual, blocked => blocked.i1, batching);
|
|
2266
|
-
return blocked(requests, matchCauseEffect(_continue, {
|
|
2267
|
-
onFailure: cause => zipRight$1(deferredFail(deferred, void 0), failCause(parallel$1(cause, exit.cause))),
|
|
2268
|
-
onSuccess: () => zipRight$1(deferredFail(deferred, void 0), failCause(exit.cause))
|
|
2269
|
-
}));
|
|
2270
|
-
}
|
|
2271
|
-
return zipRight$1(deferredFail(deferred, void 0), failCause(exit.cause));
|
|
2272
|
-
}
|
|
2273
|
-
default:
|
|
2274
|
-
{
|
|
2275
|
-
if (exit._op === "Blocked") {
|
|
2276
|
-
residual.push(exit);
|
|
2277
|
-
}
|
|
2278
|
-
if (ref + 1 === size) {
|
|
2279
|
-
if (residual.length > 0) {
|
|
2280
|
-
const requests = residual.map(blocked => blocked.i0).reduce(par);
|
|
2281
|
-
const _continue = forEachParUnboundedDiscard(residual, blocked => blocked.i1, batching);
|
|
2282
|
-
return deferredSucceed(deferred, blocked(requests, _continue));
|
|
2283
|
-
} else {
|
|
2284
|
-
deferredUnsafeDone(deferred, exitSucceed(exitUnit));
|
|
2285
|
-
}
|
|
2286
|
-
} else {
|
|
2287
|
-
ref = ref + 1;
|
|
2288
|
-
}
|
|
2289
|
-
return unit;
|
|
2290
|
-
}
|
|
2291
|
-
}
|
|
2292
|
-
}))), forkDaemon, map$2(fiber => {
|
|
2293
|
-
fiber.addObserver(() => {
|
|
2294
|
-
joinOrder.push(fiber);
|
|
2295
|
-
});
|
|
2296
|
-
return fiber;
|
|
2297
|
-
}))));
|
|
2298
|
-
return flatMap$1(process, fibers => matchCauseEffect(restore(deferredAwait(deferred)), {
|
|
2299
|
-
onFailure: cause => flatMap$1(forEachParUnbounded(fibers, interruptFiber, batching), exits => {
|
|
2300
|
-
const exit = exitCollectAll(exits, {
|
|
2301
|
-
parallel: true
|
|
2302
|
-
});
|
|
2303
|
-
if (exit._tag === "Some" && exitIsFailure(exit.value)) {
|
|
2304
|
-
return failCause(parallel$1(stripFailures(cause), exit.value.i0));
|
|
2305
|
-
} else {
|
|
2306
|
-
return failCause(stripFailures(cause));
|
|
2307
|
-
}
|
|
2308
|
-
}),
|
|
2309
|
-
onSuccess: rest => flatMap$1(rest, () => forEachSequentialDiscard(joinOrder, f => f.inheritAll()))
|
|
2310
|
-
}));
|
|
2311
|
-
});
|
|
2312
|
-
});
|
|
2313
|
-
|
|
2314
|
-
/* @internal */
|
|
2315
|
-
const forEachParN = (self, n, f, batching) => suspend(() => {
|
|
2316
|
-
const as = fromIterable$1(self);
|
|
2317
|
-
const array = new Array(as.length);
|
|
2318
|
-
const fn = (a, i) => map$2(f(a, i), b => array[i] = b);
|
|
2319
|
-
return zipRight$1(forEachParNDiscard(as, n, fn, batching), succeed$3(array));
|
|
2320
|
-
});
|
|
2321
|
-
|
|
2322
|
-
/* @internal */
|
|
2323
|
-
const forEachParNDiscard = (self, n, f, batching) => suspend(() => {
|
|
2324
|
-
let i = 0;
|
|
2325
|
-
const iterator = self[Symbol.iterator]();
|
|
2326
|
-
const residual = [];
|
|
2327
|
-
const worker = flatMap$1(sync$2(() => iterator.next()), next => next.done ? unit : flatMap$1((batching ? step : exit)(asUnit(f(next.value, i++))), res => {
|
|
2328
|
-
switch (res._op) {
|
|
2329
|
-
case "Blocked":
|
|
2330
|
-
{
|
|
2331
|
-
residual.push(res);
|
|
2332
|
-
return worker;
|
|
2333
|
-
}
|
|
2334
|
-
case "Failure":
|
|
2335
|
-
{
|
|
2336
|
-
return res;
|
|
2337
|
-
}
|
|
2338
|
-
case "Success":
|
|
2339
|
-
return worker;
|
|
2340
|
-
}
|
|
2341
|
-
}));
|
|
2342
|
-
const effects = [];
|
|
2343
|
-
for (let i = 0; i < n; i++) {
|
|
2344
|
-
effects.push(worker);
|
|
2345
|
-
}
|
|
2346
|
-
return flatMap$1(exit(forEachParUnboundedDiscard(effects, identity, batching)), exit => {
|
|
2347
|
-
if (residual.length === 0) {
|
|
2348
|
-
return exit;
|
|
2349
|
-
}
|
|
2350
|
-
const requests = residual.map(blocked => blocked.i0).reduce(par);
|
|
2351
|
-
const _continue = forEachParNDiscard(residual, n, blocked => blocked.i1, batching);
|
|
2352
|
-
if (exit._tag === "Failure") {
|
|
2353
|
-
return blocked(requests, matchCauseEffect(_continue, {
|
|
2354
|
-
onFailure: cause => exitFailCause(parallel$1(exit.cause, cause)),
|
|
2355
|
-
onSuccess: () => exit
|
|
2356
|
-
}));
|
|
2357
|
-
}
|
|
2358
|
-
return blocked(requests, _continue);
|
|
2359
|
-
});
|
|
2360
|
-
});
|
|
2361
|
-
|
|
2362
|
-
/* @internal */
|
|
2363
|
-
const fork = self => withFiberRuntime((state, status) => succeed$3(unsafeFork(self, state, status.runtimeFlags)));
|
|
2364
|
-
|
|
2365
|
-
/* @internal */
|
|
2366
|
-
const forkDaemon = self => forkWithScopeOverride(self, globalScope);
|
|
2367
|
-
|
|
2368
|
-
/* @internal */
|
|
2369
|
-
const forkWithErrorHandler = /*#__PURE__*/dual(2, (self, handler) => fork(onError(self, cause => {
|
|
2370
|
-
const either = failureOrCause(cause);
|
|
2371
|
-
switch (either._tag) {
|
|
2372
|
-
case "Left":
|
|
2373
|
-
{
|
|
2374
|
-
return handler(either.left);
|
|
2375
|
-
}
|
|
2376
|
-
case "Right":
|
|
2377
|
-
{
|
|
2378
|
-
return failCause(either.right);
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
})));
|
|
2382
|
-
|
|
2383
|
-
/** @internal */
|
|
2384
|
-
const unsafeFork = (effect, parentFiber, parentRuntimeFlags, overrideScope = null) => {
|
|
2385
|
-
const childFiber = unsafeMakeChildFiber(effect, parentFiber, parentRuntimeFlags, overrideScope);
|
|
2386
|
-
childFiber.resume(effect);
|
|
2387
|
-
return childFiber;
|
|
2388
|
-
};
|
|
2389
|
-
|
|
2390
|
-
/** @internal */
|
|
2391
|
-
const unsafeMakeChildFiber = (effect, parentFiber, parentRuntimeFlags, overrideScope = null) => {
|
|
2392
|
-
const childId = unsafeMake$1();
|
|
2393
|
-
const parentFiberRefs = parentFiber.getFiberRefs();
|
|
2394
|
-
const childFiberRefs = forkAs(parentFiberRefs, childId);
|
|
2395
|
-
const childFiber = new FiberRuntime(childId, childFiberRefs, parentRuntimeFlags);
|
|
2396
|
-
const childContext = getOrDefault$1(childFiberRefs, currentContext);
|
|
2397
|
-
const supervisor = childFiber._supervisor;
|
|
2398
|
-
supervisor.onStart(childContext, effect, some(parentFiber), childFiber);
|
|
2399
|
-
childFiber.addObserver(exit => supervisor.onEnd(exit, childFiber));
|
|
2400
|
-
const parentScope = overrideScope !== null ? overrideScope : pipe(parentFiber.getFiberRef(currentForkScopeOverride), getOrElse(() => parentFiber.scope()));
|
|
2401
|
-
parentScope.add(parentRuntimeFlags, childFiber);
|
|
2402
|
-
return childFiber;
|
|
2403
|
-
};
|
|
2404
|
-
|
|
2405
|
-
/* @internal */
|
|
2406
|
-
const forkWithScopeOverride = (self, scopeOverride) => withFiberRuntime((parentFiber, parentStatus) => succeed$3(unsafeFork(self, parentFiber, parentStatus.runtimeFlags, scopeOverride)));
|
|
2407
|
-
|
|
2408
|
-
/* @internal */
|
|
2409
|
-
const mergeAll = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, zero, f, options) => matchSimple(options, () => fromIterable$1(elements).reduce((acc, a, i) => zipWith(acc, a, (acc, a) => f(acc, a, i)), succeed$3(zero)), () => flatMap$1(make$5(zero), acc => flatMap$1(forEachOptions(elements, (effect, i) => flatMap$1(effect, a => update$1(acc, b => f(b, a, i))), options), () => get$3(acc)))));
|
|
2410
|
-
|
|
2411
|
-
/* @internal */
|
|
2412
|
-
const partition = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => pipe(forEachOptions(elements, (a, i) => either(f(a, i)), options), map$2(chunk => partitionMap(chunk, identity))));
|
|
2413
|
-
|
|
2414
|
-
/* @internal */
|
|
2415
|
-
const validateAll = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => flatMap$1(partition(elements, f, {
|
|
2416
|
-
concurrency: options?.concurrency,
|
|
2417
|
-
batching: options?.batching
|
|
2418
|
-
}), ([es, bs]) => es.length === 0 ? options?.discard ? unit : succeed$3(bs) : fail$1(es)));
|
|
2419
|
-
|
|
2420
|
-
/* @internal */
|
|
2421
|
-
const raceAll = all => {
|
|
2422
|
-
const list = fromIterable$2(all);
|
|
2423
|
-
if (!isNonEmpty(list)) {
|
|
2424
|
-
return dieSync(() => IllegalArgumentException(`Received an empty collection of effects`));
|
|
2425
|
-
}
|
|
2426
|
-
const self = headNonEmpty(list);
|
|
2427
|
-
const effects = tailNonEmpty(list);
|
|
2428
|
-
const inheritAll$1 = res => pipe(inheritAll(res[1]), as(res[0]));
|
|
2429
|
-
return pipe(deferredMake(), flatMap$1(done => pipe(make$5(effects.length), flatMap$1(fails => uninterruptibleMask(restore => pipe(fork(interruptible(self)), flatMap$1(head => pipe(effects, forEachSequential(effect => fork(interruptible(effect))), map$2(unsafeFromArray), map$2(tail => pipe(tail, prepend(head))), tap(fibers => pipe(fibers, reduce$1(unit, (effect, fiber) => pipe(effect, zipRight$1(pipe(_await(fiber), flatMap$1(raceAllArbiter(fibers, fiber, done, fails)), fork, asUnit)))))), flatMap$1(fibers => pipe(restore(pipe(_await$1(done), flatMap$1(inheritAll$1))), onInterrupt(() => pipe(fibers, reduce$1(unit, (effect, fiber) => pipe(effect, zipLeft$1(interruptFiber(fiber))))))))))))))));
|
|
2430
|
-
};
|
|
2431
|
-
|
|
2432
|
-
/* @internal */
|
|
2433
|
-
const raceAllArbiter = (fibers, winner, deferred, fails) => exit => exitMatchEffect(exit, {
|
|
2434
|
-
onFailure: cause => pipe(modify(fails, fails => [fails === 0 ? pipe(deferredFailCause(deferred, cause), asUnit) : unit, fails - 1]), flatten),
|
|
2435
|
-
onSuccess: value => pipe(deferredSucceed(deferred, [value, winner]), flatMap$1(set => set ? pipe(fromIterable$2(fibers), reduce$1(unit, (effect, fiber) => fiber === winner ? effect : pipe(effect, zipLeft$1(interruptFiber(fiber))))) : unit))
|
|
2436
|
-
});
|
|
2437
|
-
|
|
2438
|
-
/* @internal */
|
|
2439
|
-
const reduceEffect = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, zero, f, options) => matchSimple(options, () => fromIterable$1(elements).reduce((acc, a, i) => zipWith(acc, a, (acc, a) => f(acc, a, i)), zero), () => suspend(() => pipe(mergeAll([zero, ...elements], none$2(), (acc, elem, i) => {
|
|
2440
|
-
switch (acc._tag) {
|
|
2441
|
-
case "None":
|
|
2442
|
-
{
|
|
2443
|
-
return some(elem);
|
|
2444
|
-
}
|
|
2445
|
-
case "Some":
|
|
2446
|
-
{
|
|
2447
|
-
return some(f(acc.value, elem, i));
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
2450
|
-
}, options), map$2(option => {
|
|
2451
|
-
switch (option._tag) {
|
|
2452
|
-
case "None":
|
|
2453
|
-
{
|
|
2454
|
-
throw new Error("BUG: Effect.reduceEffect - please report an issue at https://github.com/Effect-TS/io/issues");
|
|
2455
|
-
}
|
|
2456
|
-
case "Some":
|
|
2457
|
-
{
|
|
2458
|
-
return option.value;
|
|
2459
|
-
}
|
|
2460
|
-
}
|
|
2461
|
-
})))));
|
|
2462
|
-
|
|
2463
|
-
/* @internal */
|
|
2464
|
-
const parallelFinalizers = self => contextWithEffect(context => match$1(getOption(context, scopeTag), {
|
|
2465
|
-
onNone: () => self,
|
|
2466
|
-
onSome: scope => {
|
|
2467
|
-
switch (scope.strategy._tag) {
|
|
2468
|
-
case "Parallel":
|
|
2469
|
-
return self;
|
|
2470
|
-
case "Sequential":
|
|
2471
|
-
case "ParallelN":
|
|
2472
|
-
return flatMap$1(scopeFork(scope, parallel), inner => scopeExtend(self, inner));
|
|
2473
|
-
}
|
|
2474
|
-
}
|
|
2475
|
-
}));
|
|
2476
|
-
|
|
2477
|
-
/* @internal */
|
|
2478
|
-
const parallelNFinalizers = parallelism => self => contextWithEffect(context => match$1(getOption(context, scopeTag), {
|
|
2479
|
-
onNone: () => self,
|
|
2480
|
-
onSome: scope => {
|
|
2481
|
-
if (scope.strategy._tag === "ParallelN" && scope.strategy.parallelism === parallelism) {
|
|
2482
|
-
return self;
|
|
2483
|
-
}
|
|
2484
|
-
return flatMap$1(scopeFork(scope, parallelN(parallelism)), inner => scopeExtend(self, inner));
|
|
2485
|
-
}
|
|
2486
|
-
}));
|
|
2487
|
-
|
|
2488
|
-
/* @internal */
|
|
2489
|
-
const finalizersMask = strategy => self => contextWithEffect(context => match$1(getOption(context, scopeTag), {
|
|
2490
|
-
onNone: () => self(identity),
|
|
2491
|
-
onSome: scope => {
|
|
2492
|
-
const patch = strategy._tag === "Parallel" ? parallelFinalizers : strategy._tag === "Sequential" ? sequentialFinalizers : parallelNFinalizers(strategy.parallelism);
|
|
2493
|
-
switch (scope.strategy._tag) {
|
|
2494
|
-
case "Parallel":
|
|
2495
|
-
return patch(self(parallelFinalizers));
|
|
2496
|
-
case "Sequential":
|
|
2497
|
-
return patch(self(sequentialFinalizers));
|
|
2498
|
-
case "ParallelN":
|
|
2499
|
-
return patch(self(parallelNFinalizers(scope.strategy.parallelism)));
|
|
2500
|
-
}
|
|
2501
|
-
}
|
|
2502
|
-
}));
|
|
2503
|
-
|
|
2504
|
-
/* @internal */
|
|
2505
|
-
const scopeWith = f => flatMap$1(scopeTag, f);
|
|
2506
|
-
|
|
2507
|
-
/* @internal */
|
|
2508
|
-
const scopedEffect = effect => flatMap$1(scopeMake(), scope => scopeUse(scope)(effect));
|
|
2509
|
-
|
|
2510
|
-
/* @internal */
|
|
2511
|
-
const sequentialFinalizers = self => contextWithEffect(context => match$1(getOption(context, scopeTag), {
|
|
2512
|
-
onNone: () => self,
|
|
2513
|
-
onSome: scope => {
|
|
2514
|
-
switch (scope.strategy._tag) {
|
|
2515
|
-
case "Sequential":
|
|
2516
|
-
return self;
|
|
2517
|
-
case "Parallel":
|
|
2518
|
-
case "ParallelN":
|
|
2519
|
-
return flatMap$1(scopeFork(scope, sequential), inner => scopeExtend(self, inner));
|
|
2520
|
-
}
|
|
2521
|
-
}
|
|
2522
|
-
}));
|
|
2523
|
-
|
|
2524
|
-
/* @internal */
|
|
2525
|
-
const tagMetricsScoped = (key, value) => labelMetricsScoped([make$3(key, value)]);
|
|
2526
|
-
|
|
2527
|
-
/* @internal */
|
|
2528
|
-
const labelMetricsScoped = labels => labelMetricsScopedSet(fromIterable(labels));
|
|
2529
|
-
|
|
2530
|
-
/* @internal */
|
|
2531
|
-
const labelMetricsScopedSet = labels => fiberRefLocallyScopedWith(currentMetricLabels, set => pipe(set, union(labels)));
|
|
2532
|
-
|
|
2533
|
-
/* @internal */
|
|
2534
|
-
const using = /*#__PURE__*/dual(2, (self, use) => acquireUseRelease(scopeMake(), scope => flatMap$1(scopeExtend(self, scope), use), (scope, exit) => scopeClose(scope, exit)));
|
|
2535
|
-
|
|
2536
|
-
/** @internal */
|
|
2537
|
-
const validate = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, options) => validateWith(self, that, (a, b) => [a, b], options));
|
|
2538
|
-
|
|
2539
|
-
/** @internal */
|
|
2540
|
-
const validateWith = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, f, options) => flatten(zipWithOptions(exit(self), exit(that), (ea, eb) => exitZipWith(ea, eb, {
|
|
2541
|
-
onSuccess: f,
|
|
2542
|
-
onFailure: (ca, cb) => options?.concurrent ? parallel$1(ca, cb) : sequential$1(ca, cb)
|
|
2543
|
-
}), options)));
|
|
2544
|
-
|
|
2545
|
-
/* @internal */
|
|
2546
|
-
const validateFirst = /*#__PURE__*/dual(args => isIterable(args[0]), (elements, f, options) => flip(forEachOptions(elements, (a, i) => flip(f(a, i)), options)));
|
|
2547
|
-
|
|
2548
|
-
/* @internal */
|
|
2549
|
-
const withClockScoped = value => fiberRefLocallyScopedWith(currentServices, add$1(clockTag, value));
|
|
2550
|
-
|
|
2551
|
-
/* @internal */
|
|
2552
|
-
const withConfigProviderScoped = value => fiberRefLocallyScopedWith(currentServices, add$1(configProviderTag, value));
|
|
2553
|
-
|
|
2554
|
-
/* @internal */
|
|
2555
|
-
const withEarlyRelease = self => scopeWith(parent => flatMap$1(scopeFork(parent, sequential$2), child => pipe(self, scopeExtend(child), map$2(value => [fiberIdWith(fiberId => scopeClose(child, exitInterrupt(fiberId))), value]))));
|
|
2556
|
-
|
|
2557
|
-
/** @internal */
|
|
2558
|
-
const zipOptions = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (a, b) => [a, b], options));
|
|
2559
|
-
|
|
2560
|
-
/** @internal */
|
|
2561
|
-
const zipLeftOptions = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (a, _) => a, options));
|
|
2562
|
-
|
|
2563
|
-
/** @internal */
|
|
2564
|
-
const zipRightOptions = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, options) => zipWithOptions(self, that, (_, b) => b, options));
|
|
2565
|
-
|
|
2566
|
-
/** @internal */
|
|
2567
|
-
const zipWithOptions = /*#__PURE__*/dual(args => isEffect(args[1]), (self, that, f, options) => map$2(all([self, that], {
|
|
2568
|
-
concurrency: options?.concurrent ? 2 : 1,
|
|
2569
|
-
batching: options?.batching
|
|
2570
|
-
}), ([a, a2]) => f(a, a2)));
|
|
2571
|
-
|
|
2572
|
-
/* @internal */
|
|
2573
|
-
const withRuntimeFlagsScoped = update => {
|
|
2574
|
-
if (update === empty$3) {
|
|
2575
|
-
return unit;
|
|
2576
|
-
}
|
|
2577
|
-
return pipe(runtimeFlags, flatMap$1(runtimeFlags => {
|
|
2578
|
-
const updatedRuntimeFlags = patch$1(runtimeFlags, update);
|
|
2579
|
-
const revertRuntimeFlags = diff$1(updatedRuntimeFlags, runtimeFlags);
|
|
2580
|
-
return pipe(updateRuntimeFlags(update), zipRight$1(addFinalizer(() => updateRuntimeFlags(revertRuntimeFlags))), asUnit);
|
|
2581
|
-
}), uninterruptible);
|
|
2582
|
-
};
|
|
2583
|
-
|
|
2584
|
-
// circular with ReleaseMap
|
|
2585
|
-
|
|
2586
|
-
/* @internal */
|
|
2587
|
-
const releaseMapReleaseAll = (strategy, exit$1) => self => suspend(() => {
|
|
2588
|
-
switch (self.state._tag) {
|
|
2589
|
-
case "Exited":
|
|
2590
|
-
{
|
|
2591
|
-
return unit;
|
|
2592
|
-
}
|
|
2593
|
-
case "Running":
|
|
2594
|
-
{
|
|
2595
|
-
const finalizersMap = self.state.finalizers;
|
|
2596
|
-
const update = self.state.update;
|
|
2597
|
-
const finalizers = Array.from(finalizersMap.keys()).sort((a, b) => b - a).map(key => finalizersMap.get(key));
|
|
2598
|
-
self.state = {
|
|
2599
|
-
_tag: "Exited",
|
|
2600
|
-
nextKey: self.state.nextKey,
|
|
2601
|
-
exit: exit$1,
|
|
2602
|
-
update
|
|
2603
|
-
};
|
|
2604
|
-
return isSequential(strategy) ? pipe(finalizers, forEachSequential(fin => exit(update(fin)(exit$1))), flatMap$1(results => pipe(exitCollectAll(results), map$3(exitAsUnit), getOrElse(() => exitUnit)))) : isParallel(strategy) ? pipe(forEachParUnbounded(finalizers, fin => exit(update(fin)(exit$1)), false), flatMap$1(results => pipe(exitCollectAll(results, {
|
|
2605
|
-
parallel: true
|
|
2606
|
-
}), map$3(exitAsUnit), getOrElse(() => exitUnit)))) : pipe(forEachParN(finalizers, strategy.parallelism, fin => exit(update(fin)(exit$1)), false), flatMap$1(results => pipe(exitCollectAll(results, {
|
|
2607
|
-
parallel: true
|
|
2608
|
-
}), map$3(exitAsUnit), getOrElse(() => exitUnit))));
|
|
2609
|
-
}
|
|
2610
|
-
}
|
|
2611
|
-
});
|
|
2612
|
-
|
|
2613
|
-
// circular with Scope
|
|
2614
|
-
|
|
2615
|
-
/** @internal */
|
|
2616
|
-
const scopeTag = /*#__PURE__*/Tag(ScopeTypeId);
|
|
2617
|
-
|
|
2618
|
-
/* @internal */
|
|
2619
|
-
const scope = scopeTag;
|
|
2620
|
-
|
|
2621
|
-
/* @internal */
|
|
2622
|
-
const scopeMake = (strategy = sequential$2) => map$2(releaseMapMake, rm => ({
|
|
2623
|
-
[ScopeTypeId]: ScopeTypeId,
|
|
2624
|
-
[CloseableScopeTypeId]: CloseableScopeTypeId,
|
|
2625
|
-
strategy,
|
|
2626
|
-
pipe() {
|
|
2627
|
-
return pipeArguments(this, arguments);
|
|
2628
|
-
},
|
|
2629
|
-
fork: strategy => uninterruptible(pipe(scopeMake(strategy), flatMap$1(scope => pipe(releaseMapAdd(rm, exit => scopeClose(scope, exit)), tap(fin => scopeAddFinalizerExit(scope, fin)), as(scope))))),
|
|
2630
|
-
close: exit => asUnit(releaseMapReleaseAll(strategy, exit)(rm)),
|
|
2631
|
-
addFinalizer: fin => asUnit(releaseMapAdd(fin)(rm))
|
|
2632
|
-
}));
|
|
2633
|
-
|
|
2634
|
-
/* @internal */
|
|
2635
|
-
const scopeExtend = /*#__PURE__*/dual(2, (effect, scope) => mapInputContext(effect,
|
|
2636
|
-
// @ts-expect-error
|
|
2637
|
-
merge(make$6(scopeTag, scope))));
|
|
2638
|
-
|
|
2639
|
-
/* @internal */
|
|
2640
|
-
const scopeUse = /*#__PURE__*/dual(2, (effect, scope) => pipe(effect, scopeExtend(scope), onExit(exit => scope.close(exit))));
|
|
2641
|
-
|
|
2642
|
-
// circular with Supervisor
|
|
2643
|
-
|
|
2644
|
-
/** @internal */
|
|
2645
|
-
const fiberRefUnsafeMakeSupervisor = initial => fiberRefUnsafeMakePatch(initial, {
|
|
2646
|
-
differ: differ,
|
|
2647
|
-
fork: empty
|
|
2648
|
-
});
|
|
2649
|
-
|
|
2650
|
-
// circular with FiberRef
|
|
2651
|
-
|
|
2652
|
-
/* @internal */
|
|
2653
|
-
const fiberRefLocallyScoped = /*#__PURE__*/dual(2, (self, value) => asUnit(acquireRelease(flatMap$1(fiberRefGet(self), oldValue => as(fiberRefSet(self, value), oldValue)), oldValue => fiberRefSet(self, oldValue))));
|
|
2654
|
-
|
|
2655
|
-
/* @internal */
|
|
2656
|
-
const fiberRefLocallyScopedWith = /*#__PURE__*/dual(2, (self, f) => fiberRefGetWith(self, a => fiberRefLocallyScoped(self, f(a))));
|
|
2657
|
-
|
|
2658
|
-
/* @internal */
|
|
2659
|
-
const fiberRefMake = (initial, options) => fiberRefMakeWith(() => fiberRefUnsafeMake(initial, options));
|
|
2660
|
-
|
|
2661
|
-
/* @internal */
|
|
2662
|
-
const fiberRefMakeWith = ref => acquireRelease(tap(sync$2(ref), ref => fiberRefUpdate(ref, identity)), fiberRef => fiberRefDelete(fiberRef));
|
|
2663
|
-
|
|
2664
|
-
/* @internal */
|
|
2665
|
-
const fiberRefMakeContext = initial => fiberRefMakeWith(() => fiberRefUnsafeMakeContext(initial));
|
|
2666
|
-
|
|
2667
|
-
/* @internal */
|
|
2668
|
-
const fiberRefMakeRuntimeFlags = initial => fiberRefMakeWith(() => fiberRefUnsafeMakeRuntimeFlags(initial));
|
|
2669
|
-
|
|
2670
|
-
/** @internal */
|
|
2671
|
-
const currentRuntimeFlags = /*#__PURE__*/fiberRefUnsafeMakeRuntimeFlags(none$4);
|
|
2672
|
-
|
|
2673
|
-
/** @internal */
|
|
2674
|
-
const currentSupervisor = /*#__PURE__*/fiberRefUnsafeMakeSupervisor(none);
|
|
2675
|
-
|
|
2676
|
-
// circular with Fiber
|
|
2677
|
-
|
|
2678
|
-
/* @internal */
|
|
2679
|
-
const fiberAwaitAll = fibers => asUnit(_await(fiberAll(fibers)));
|
|
2680
|
-
|
|
2681
|
-
/** @internal */
|
|
2682
|
-
const fiberAll = fibers => ({
|
|
2683
|
-
[FiberTypeId]: fiberVariance,
|
|
2684
|
-
id: () => fromIterable$1(fibers).reduce((id, fiber) => combine$1(id, fiber.id()), none$3),
|
|
2685
|
-
await: () => exit(forEachParUnbounded(fibers, fiber => flatten(fiber.await()), false)),
|
|
2686
|
-
children: () => map$2(forEachParUnbounded(fibers, fiber => fiber.children(), false), flatten$1),
|
|
2687
|
-
inheritAll: () => forEachSequentialDiscard(fibers, fiber => fiber.inheritAll()),
|
|
2688
|
-
poll: () => map$2(forEachSequential(fibers, fiber => fiber.poll()), reduceRight(some(exitSucceed(new Array())), (optionB, optionA) => {
|
|
2689
|
-
switch (optionA._tag) {
|
|
2690
|
-
case "None":
|
|
2691
|
-
{
|
|
2692
|
-
return none$2();
|
|
2693
|
-
}
|
|
2694
|
-
case "Some":
|
|
2695
|
-
{
|
|
2696
|
-
switch (optionB._tag) {
|
|
2697
|
-
case "None":
|
|
2698
|
-
{
|
|
2699
|
-
return none$2();
|
|
2700
|
-
}
|
|
2701
|
-
case "Some":
|
|
2702
|
-
{
|
|
2703
|
-
return some(exitZipWith(optionA.value, optionB.value, {
|
|
2704
|
-
onSuccess: (a, chunk) => [a, ...chunk],
|
|
2705
|
-
onFailure: parallel$1
|
|
2706
|
-
}));
|
|
2707
|
-
}
|
|
2708
|
-
}
|
|
2709
|
-
}
|
|
2710
|
-
}
|
|
2711
|
-
})),
|
|
2712
|
-
interruptAsFork: fiberId => forEachSequentialDiscard(fibers, fiber => fiber.interruptAsFork(fiberId)),
|
|
2713
|
-
pipe() {
|
|
2714
|
-
return pipeArguments(this, arguments);
|
|
2715
|
-
}
|
|
2716
|
-
});
|
|
2717
|
-
|
|
2718
|
-
/* @internal */
|
|
2719
|
-
const fiberInterruptFork = self => asUnit(forkDaemon(interruptFiber(self)));
|
|
2720
|
-
|
|
2721
|
-
/* @internal */
|
|
2722
|
-
const fiberJoinAll = fibers => asUnit(join(fiberAll(fibers)));
|
|
2723
|
-
|
|
2724
|
-
/* @internal */
|
|
2725
|
-
const fiberScoped = self => acquireRelease(succeed$3(self), interruptFiber);
|
|
2726
|
-
|
|
2727
|
-
//
|
|
2728
|
-
// circular race
|
|
2729
|
-
//
|
|
2730
|
-
|
|
2731
|
-
/** @internal */
|
|
2732
|
-
const raceWith = /*#__PURE__*/dual(3, (self, other, options) => raceFibersWith(self, other, {
|
|
2733
|
-
onSelfWin: (winner, loser) => flatMap$1(winner.await(), exit => {
|
|
2734
|
-
switch (exit._tag) {
|
|
2735
|
-
case OP_SUCCESS:
|
|
2736
|
-
{
|
|
2737
|
-
return flatMap$1(winner.inheritAll(), () => options.onSelfDone(exit, loser));
|
|
2738
|
-
}
|
|
2739
|
-
case OP_FAILURE:
|
|
2740
|
-
{
|
|
2741
|
-
return options.onSelfDone(exit, loser);
|
|
2742
|
-
}
|
|
2743
|
-
}
|
|
2744
|
-
}),
|
|
2745
|
-
onOtherWin: (winner, loser) => flatMap$1(winner.await(), exit => {
|
|
2746
|
-
switch (exit._tag) {
|
|
2747
|
-
case OP_SUCCESS:
|
|
2748
|
-
{
|
|
2749
|
-
return flatMap$1(winner.inheritAll(), () => options.onOtherDone(exit, loser));
|
|
2750
|
-
}
|
|
2751
|
-
case OP_FAILURE:
|
|
2752
|
-
{
|
|
2753
|
-
return options.onOtherDone(exit, loser);
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
})
|
|
2757
|
-
}));
|
|
2758
|
-
|
|
2759
|
-
/** @internal */
|
|
2760
|
-
const disconnect = self => uninterruptibleMask(restore => fiberIdWith(fiberId => flatMap$1(forkDaemon(restore(self)), fiber => pipe(restore(join(fiber)), onInterrupt(() => pipe(fiber, interruptAsFork(fiberId)))))));
|
|
2761
|
-
|
|
2762
|
-
/** @internal */
|
|
2763
|
-
const race = /*#__PURE__*/dual(2, (self, that) => fiberIdWith(parentFiberId => raceWith(self, that, {
|
|
2764
|
-
onSelfDone: (exit, right) => exitMatchEffect(exit, {
|
|
2765
|
-
onFailure: cause => pipe(join(right), mapErrorCause(cause2 => parallel$1(cause, cause2))),
|
|
2766
|
-
onSuccess: value => pipe(right, interruptAsFiber(parentFiberId), as(value))
|
|
2767
|
-
}),
|
|
2768
|
-
onOtherDone: (exit, left) => exitMatchEffect(exit, {
|
|
2769
|
-
onFailure: cause => pipe(join(left), mapErrorCause(cause2 => parallel$1(cause2, cause))),
|
|
2770
|
-
onSuccess: value => pipe(left, interruptAsFiber(parentFiberId), as(value))
|
|
2771
|
-
})
|
|
2772
|
-
})));
|
|
2773
|
-
|
|
2774
|
-
/** @internal */
|
|
2775
|
-
const raceFibersWith = /*#__PURE__*/dual(3, (self, other, options) => withFiberRuntime((parentFiber, parentStatus) => {
|
|
2776
|
-
const parentRuntimeFlags = parentStatus.runtimeFlags;
|
|
2777
|
-
const raceIndicator = make$7(true);
|
|
2778
|
-
const leftFiber = unsafeMakeChildFiber(self, parentFiber, parentRuntimeFlags, options.selfScope);
|
|
2779
|
-
const rightFiber = unsafeMakeChildFiber(other, parentFiber, parentRuntimeFlags, options.otherScope);
|
|
2780
|
-
return async(cb => {
|
|
2781
|
-
leftFiber.addObserver(() => completeRace(leftFiber, rightFiber, options.onSelfWin, raceIndicator, cb));
|
|
2782
|
-
rightFiber.addObserver(() => completeRace(rightFiber, leftFiber, options.onOtherWin, raceIndicator, cb));
|
|
2783
|
-
leftFiber.startFork(self);
|
|
2784
|
-
rightFiber.startFork(other);
|
|
2785
|
-
}, combine$1(leftFiber.id(), rightFiber.id()));
|
|
2786
|
-
}));
|
|
2787
|
-
const completeRace = (winner, loser, cont, ab, cb) => {
|
|
2788
|
-
if (compareAndSet(true, false)(ab)) {
|
|
2789
|
-
cb(cont(winner, loser));
|
|
2790
|
-
}
|
|
2791
|
-
};
|
|
2792
|
-
|
|
2793
|
-
/** @internal */
|
|
2794
|
-
const ensuring = /*#__PURE__*/dual(2, (self, finalizer) => uninterruptibleMask(restore => matchCauseEffect(restore(self), {
|
|
2795
|
-
onFailure: cause1 => matchCauseEffect(finalizer, {
|
|
2796
|
-
onFailure: cause2 => failCause(sequential$1(cause1, cause2)),
|
|
2797
|
-
onSuccess: () => failCause(cause1)
|
|
2798
|
-
}),
|
|
2799
|
-
onSuccess: a => as(finalizer, a)
|
|
2800
|
-
})));
|
|
2801
|
-
|
|
2802
|
-
/** @internal */
|
|
2803
|
-
const invokeWithInterrupt = (dataSource, all) => fiberIdWith(id => flatMap$1(flatMap$1(forkDaemon(interruptible(dataSource)), processing => async(cb => {
|
|
2804
|
-
const counts = all.map(_ => _.listeners.count);
|
|
2805
|
-
const checkDone = () => {
|
|
2806
|
-
if (counts.every(count => count === 0)) {
|
|
2807
|
-
cleanup.forEach(f => f());
|
|
2808
|
-
cb(interruptFiber(processing));
|
|
2809
|
-
}
|
|
2810
|
-
};
|
|
2811
|
-
processing.addObserver(exit => {
|
|
2812
|
-
cleanup.forEach(f => f());
|
|
2813
|
-
cb(exit);
|
|
2814
|
-
});
|
|
2815
|
-
const cleanup = all.map((r, i) => {
|
|
2816
|
-
const observer = count => {
|
|
2817
|
-
counts[i] = count;
|
|
2818
|
-
checkDone();
|
|
2819
|
-
};
|
|
2820
|
-
r.listeners.addObserver(observer);
|
|
2821
|
-
return () => r.listeners.removeObserver(observer);
|
|
2822
|
-
});
|
|
2823
|
-
checkDone();
|
|
2824
|
-
return sync$2(() => {
|
|
2825
|
-
cleanup.forEach(f => f());
|
|
2826
|
-
});
|
|
2827
|
-
})), () => suspend(() => {
|
|
2828
|
-
const residual = all.flatMap(entry => {
|
|
2829
|
-
if (!entry.state.completed) {
|
|
2830
|
-
return [entry];
|
|
2831
|
-
}
|
|
2832
|
-
return [];
|
|
2833
|
-
});
|
|
2834
|
-
return forEachSequentialDiscard(residual, entry => complete(entry.request, exitInterrupt(id)));
|
|
2835
|
-
})));
|
|
2836
|
-
|
|
2837
|
-
/** @internal */
|
|
2838
|
-
const interruptWhenPossible = /*#__PURE__*/dual(2, (self, all) => fiberRefGetWith(currentRequestMap, map => suspend(() => {
|
|
2839
|
-
const entries = fromIterable$1(all).flatMap(_ => map.has(_) ? [map.get(_)] : []);
|
|
2840
|
-
return invokeWithInterrupt(self, entries);
|
|
2841
|
-
})));
|
|
2842
|
-
|
|
2843
|
-
// circular Tracer
|
|
2844
|
-
|
|
2845
|
-
/** @internal */
|
|
2846
|
-
const useSpanScoped = (name, options) => acquireRelease(makeSpan(name, options), (span, exit) => flatMap$1(currentTimeNanosTracing, endTime => sync$2(() => span.end(endTime, exit))));
|
|
2847
|
-
|
|
2848
|
-
/* @internal */
|
|
2849
|
-
const withSpanScoped = (name, options) => flatMap$1(useSpanScoped(name, options), span => fiberRefLocallyScopedWith(currentTracerSpan, prepend$1(span)));
|
|
2850
|
-
|
|
2851
|
-
/* @internal */
|
|
2852
|
-
const withTracerScoped = value => fiberRefLocallyScopedWith(currentServices, add$1(tracerTag, value));
|
|
2853
|
-
|
|
2854
|
-
/* @internal */
|
|
2855
|
-
const withParentSpanScoped = span => fiberRefLocallyScopedWith(currentTracerSpan, prepend$1(span));
|
|
2856
|
-
|
|
2857
|
-
export { withParentSpanScoped as $, scopedEffect as A, using as B, withEarlyRelease as C, daemonChildren as D, fork as E, forkDaemon as F, forkWithErrorHandler as G, fiberRefLocallyScoped as H, fiberRefLocallyScopedWith as I, withClockScoped as J, withConfigProviderScoped as K, raceAll as L, race as M, raceWith as N, withRuntimeFlagsScoped as O, tagMetricsScoped as P, labelMetricsScoped as Q, labelMetricsScopedSet as R, validate as S, validateWith as T, zipOptions as U, zipLeftOptions as V, zipRightOptions as W, zipWithOptions as X, withTracerScoped as Y, useSpanScoped as Z, withSpanScoped as _, all as a, timer as a$, fiberRefMake as a0, fiberRefMakeWith as a1, fiberRefMakeContext as a2, fiberRefMakeRuntimeFlags as a3, fiberRefUnsafeMakeSupervisor as a4, currentLoggers as a5, currentMinimumLogLevel as a6, currentRuntimeFlags as a7, currentSupervisor as a8, fiberAwaitAll as a9, logfmtLogger as aA, stringLogger as aB, tracerLogger as aC, logFmtLogger as aD, MetricTypeId as aE, globalMetricRegistry as aF, make as aG, mapInput as aH, counter as aI, frequency as aJ, withConstantInput as aK, fromMetricKey as aL, gauge as aM, histogram as aN, increment as aO, incrementBy as aP, map as aQ, mapType as aR, set as aS, snapshot as aT, succeed$1 as aU, sync as aV, summary as aW, summaryTimestamp as aX, tagged$1 as aY, taggedWithLabelsInput as aZ, taggedWithLabels as a_, fiberAll as aa, track as ab, raceFibersWith as ac, scopeExtend as ad, Zip as ae, Listeners as af, FiberRuntime as ag, none as ah, scopeTag as ai, scopeUse as aj, fiberInterruptFork as ak, fiberJoinAll as al, fiberScoped as am, LoggerTypeId as an, makeLogger as ao, mapInput$1 as ap, filterLogLevel as aq, map$1 as ar, none$1 as as, simple as at, succeed$2 as au, sync$1 as av, zip$1 as aw, zipLeft as ax, zipRight as ay, defaultLogger as az, acquireRelease as b, timerWithBoundaries as b0, trackAll as b1, trackDefect as b2, trackDefectWith as b3, trackDuration as b4, trackDurationWith as b5, trackError as b6, trackErrorWith as b7, trackSuccess as b8, trackSuccessWith as b9, update as ba, value as bb, withNow as bc, zip as bd, unsafeSnapshot as be, fiberStarted as bf, fiberSuccesses as bg, fiberFailures as bh, fiberLifetimes as bi, fiberActive as bj, RequestTypeId as bk, isRequest as bl, of as bm, tagged as bn, complete as bo, interruptWhenPossible as bp, completeEffect as bq, fail as br, succeed as bs, SupervisorTypeId as bt, fibersIn as bu, fromEffect as bv, unsafeTrack as bw, ProxySupervisor as bx, supervisorVariance as by, invokeWithInterrupt as bz, forEachParUnboundedDiscard as c, allWith as d, allSuccesses as e, forEachParUnbounded as f, exists as g, filter as h, forEachOptions as i, replicate as j, replicateEffect as k, validateFirst as l, mergeAll as m, disconnect as n, acquireReleaseInterruptible as o, partition as p, addFinalizer as q, reduceEffect as r, scopeMake as s, ensuring as t, parallelFinalizers as u, validateAll as v, finalizersMask as w, sequentialFinalizers as x, scope as y, scopeWith as z };
|