effect 3.8.4 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Array.js +24 -3
- package/dist/cjs/Array.js.map +1 -1
- package/dist/cjs/BigDecimal.js +5 -3
- package/dist/cjs/BigDecimal.js.map +1 -1
- package/dist/cjs/BigInt.js.map +1 -1
- package/dist/cjs/Boolean.js.map +1 -1
- package/dist/cjs/Cause.js.map +1 -1
- package/dist/cjs/Channel.js.map +1 -1
- package/dist/cjs/ChildExecutorDecision.js.map +1 -1
- package/dist/cjs/Chunk.js +3 -0
- package/dist/cjs/Chunk.js.map +1 -1
- package/dist/cjs/Config.js.map +1 -1
- package/dist/cjs/ConfigError.js.map +1 -1
- package/dist/cjs/ConfigProvider.js.map +1 -1
- package/dist/cjs/ConfigProviderPathPatch.js.map +1 -1
- package/dist/cjs/Console.js.map +1 -1
- package/dist/cjs/Context.js.map +1 -1
- package/dist/cjs/Cron.js +3 -0
- package/dist/cjs/Cron.js.map +1 -1
- package/dist/cjs/Data.js.map +1 -1
- package/dist/cjs/DateTime.js +6 -0
- package/dist/cjs/DateTime.js.map +1 -1
- package/dist/cjs/Deferred.js.map +1 -1
- package/dist/cjs/Differ.js.map +1 -1
- package/dist/cjs/Duration.js +3 -0
- package/dist/cjs/Duration.js.map +1 -1
- package/dist/cjs/Effect.js +122 -35
- package/dist/cjs/Effect.js.map +1 -1
- package/dist/cjs/Either.js.map +1 -1
- package/dist/cjs/Equivalence.js.map +1 -1
- package/dist/cjs/ExecutionStrategy.js.map +1 -1
- package/dist/cjs/Exit.js.map +1 -1
- package/dist/cjs/Fiber.js.map +1 -1
- package/dist/cjs/FiberHandle.js +3 -0
- package/dist/cjs/FiberHandle.js.map +1 -1
- package/dist/cjs/FiberId.js.map +1 -1
- package/dist/cjs/FiberMap.js +3 -0
- package/dist/cjs/FiberMap.js.map +1 -1
- package/dist/cjs/FiberRef.js.map +1 -1
- package/dist/cjs/FiberRefs.js.map +1 -1
- package/dist/cjs/FiberRefsPatch.js.map +1 -1
- package/dist/cjs/FiberSet.js +3 -0
- package/dist/cjs/FiberSet.js.map +1 -1
- package/dist/cjs/Function.js.map +1 -1
- package/dist/cjs/GroupBy.js.map +1 -1
- package/dist/cjs/Hash.js.map +1 -1
- package/dist/cjs/HashMap.js.map +1 -1
- package/dist/cjs/HashSet.js.map +1 -1
- package/dist/cjs/Inspectable.js +15 -1
- package/dist/cjs/Inspectable.js.map +1 -1
- package/dist/cjs/Iterable.js.map +1 -1
- package/dist/cjs/KeyedPool.js.map +1 -1
- package/dist/cjs/Layer.js.map +1 -1
- package/dist/cjs/List.js +6 -0
- package/dist/cjs/List.js.map +1 -1
- package/dist/cjs/LogLevel.js.map +1 -1
- package/dist/cjs/Logger.js.map +1 -1
- package/dist/cjs/Mailbox.js.map +1 -1
- package/dist/cjs/ManagedRuntime.js +16 -1
- package/dist/cjs/ManagedRuntime.js.map +1 -1
- package/dist/cjs/MergeDecision.js.map +1 -1
- package/dist/cjs/MergeState.js.map +1 -1
- package/dist/cjs/MergeStrategy.js.map +1 -1
- package/dist/cjs/Metric.js.map +1 -1
- package/dist/cjs/MetricHook.js.map +1 -1
- package/dist/cjs/MetricKey.js.map +1 -1
- package/dist/cjs/MetricPolling.js.map +1 -1
- package/dist/cjs/MetricState.js.map +1 -1
- package/dist/cjs/Micro.js +6 -0
- package/dist/cjs/Micro.js.map +1 -1
- package/dist/cjs/MutableHashMap.js +3 -0
- package/dist/cjs/MutableHashMap.js.map +1 -1
- package/dist/cjs/MutableHashSet.js +3 -0
- package/dist/cjs/MutableHashSet.js.map +1 -1
- package/dist/cjs/MutableList.js +3 -0
- package/dist/cjs/MutableList.js.map +1 -1
- package/dist/cjs/MutableQueue.js +3 -0
- package/dist/cjs/MutableQueue.js.map +1 -1
- package/dist/cjs/MutableRef.js +3 -0
- package/dist/cjs/MutableRef.js.map +1 -1
- package/dist/cjs/Number.js.map +1 -1
- package/dist/cjs/Option.js.map +1 -1
- package/dist/cjs/Order.js.map +1 -1
- package/dist/cjs/Ordering.js.map +1 -1
- package/dist/cjs/Pipeable.js.map +1 -1
- package/dist/cjs/Pool.js.map +1 -1
- package/dist/cjs/Predicate.js +18 -2
- package/dist/cjs/Predicate.js.map +1 -1
- package/dist/cjs/PubSub.js.map +1 -1
- package/dist/cjs/Queue.js.map +1 -1
- package/dist/cjs/RcMap.js.map +1 -1
- package/dist/cjs/Readable.js.map +1 -1
- package/dist/cjs/Record.js.map +1 -1
- package/dist/cjs/RedBlackTree.js.map +1 -1
- package/dist/cjs/Ref.js.map +1 -1
- package/dist/cjs/RegExp.js +20 -1
- package/dist/cjs/RegExp.js.map +1 -1
- package/dist/cjs/Request.js.map +1 -1
- package/dist/cjs/RequestResolver.js.map +1 -1
- package/dist/cjs/Resource.js.map +1 -1
- package/dist/cjs/Runtime.js.map +1 -1
- package/dist/cjs/RuntimeFlags.js.map +1 -1
- package/dist/cjs/RuntimeFlagsPatch.js.map +1 -1
- package/dist/cjs/STM.js.map +1 -1
- package/dist/cjs/Schedule.js.map +1 -1
- package/dist/cjs/ScheduleInterval.js.map +1 -1
- package/dist/cjs/ScheduleIntervals.js.map +1 -1
- package/dist/cjs/Scheduler.js.map +1 -1
- package/dist/cjs/Scope.js.map +1 -1
- package/dist/cjs/ScopedRef.js.map +1 -1
- package/dist/cjs/Sink.js.map +1 -1
- package/dist/cjs/SortedMap.js +3 -0
- package/dist/cjs/SortedMap.js.map +1 -1
- package/dist/cjs/SortedSet.js +3 -0
- package/dist/cjs/SortedSet.js.map +1 -1
- package/dist/cjs/Stream.js +17 -3
- package/dist/cjs/Stream.js.map +1 -1
- package/dist/cjs/StreamHaltStrategy.js.map +1 -1
- package/dist/cjs/String.js.map +1 -1
- package/dist/cjs/Struct.js.map +1 -1
- package/dist/cjs/Subscribable.js.map +1 -1
- package/dist/cjs/SubscriptionRef.js.map +1 -1
- package/dist/cjs/SynchronizedRef.js.map +1 -1
- package/dist/cjs/TArray.js.map +1 -1
- package/dist/cjs/TDeferred.js.map +1 -1
- package/dist/cjs/TMap.js.map +1 -1
- package/dist/cjs/TPriorityQueue.js.map +1 -1
- package/dist/cjs/TPubSub.js.map +1 -1
- package/dist/cjs/TQueue.js.map +1 -1
- package/dist/cjs/TReentrantLock.js.map +1 -1
- package/dist/cjs/TRef.js.map +1 -1
- package/dist/cjs/TSemaphore.js.map +1 -1
- package/dist/cjs/TSet.js.map +1 -1
- package/dist/cjs/Take.js.map +1 -1
- package/dist/cjs/TestAnnotationMap.js.map +1 -1
- package/dist/cjs/TestClock.js.map +1 -1
- package/dist/cjs/TestServices.js.map +1 -1
- package/dist/cjs/Trie.js.map +1 -1
- package/dist/cjs/Tuple.js +21 -2
- package/dist/cjs/Tuple.js.map +1 -1
- package/dist/cjs/Unify.js.map +1 -1
- package/dist/cjs/UpstreamPullRequest.js.map +1 -1
- package/dist/cjs/UpstreamPullStrategy.js.map +1 -1
- package/dist/cjs/Utils.js +1 -14
- package/dist/cjs/Utils.js.map +1 -1
- package/dist/cjs/internal/cause.js +3 -0
- package/dist/cjs/internal/cause.js.map +1 -1
- package/dist/cjs/internal/context.js +6 -1
- package/dist/cjs/internal/context.js.map +1 -1
- package/dist/cjs/internal/core-effect.js.map +1 -1
- package/dist/cjs/internal/core.js +16 -3
- package/dist/cjs/internal/core.js.map +1 -1
- package/dist/cjs/internal/effect/circular.js +5 -1
- package/dist/cjs/internal/effect/circular.js.map +1 -1
- package/dist/cjs/internal/fiberId.js +9 -0
- package/dist/cjs/internal/fiberId.js.map +1 -1
- package/dist/cjs/internal/hashMap.js +3 -0
- package/dist/cjs/internal/hashMap.js.map +1 -1
- package/dist/cjs/internal/hashSet.js +3 -0
- package/dist/cjs/internal/hashSet.js.map +1 -1
- package/dist/cjs/internal/layer.js +33 -19
- package/dist/cjs/internal/layer.js.map +1 -1
- package/dist/cjs/internal/mailbox.js +3 -0
- package/dist/cjs/internal/mailbox.js.map +1 -1
- package/dist/cjs/internal/managedRuntime/circular.js +10 -0
- package/dist/cjs/internal/managedRuntime/circular.js.map +1 -0
- package/dist/cjs/internal/managedRuntime.js +23 -9
- package/dist/cjs/internal/managedRuntime.js.map +1 -1
- package/dist/cjs/internal/option.js +3 -0
- package/dist/cjs/internal/option.js.map +1 -1
- package/dist/cjs/internal/pool.js +6 -1
- package/dist/cjs/internal/pool.js.map +1 -1
- package/dist/cjs/internal/redBlackTree.js +3 -0
- package/dist/cjs/internal/redBlackTree.js.map +1 -1
- package/dist/cjs/internal/resource.js +15 -5
- package/dist/cjs/internal/resource.js.map +1 -1
- package/dist/cjs/internal/runtime.js +4 -1
- package/dist/cjs/internal/runtime.js.map +1 -1
- package/dist/cjs/internal/scopedRef.js +11 -8
- package/dist/cjs/internal/scopedRef.js.map +1 -1
- package/dist/cjs/internal/stm/core.js +1 -2
- package/dist/cjs/internal/stm/core.js.map +1 -1
- package/dist/cjs/internal/stream.js +12 -3
- package/dist/cjs/internal/stream.js.map +1 -1
- package/dist/cjs/internal/trie.js +3 -0
- package/dist/cjs/internal/trie.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/Array.d.ts +2735 -2
- package/dist/dts/Array.d.ts.map +1 -1
- package/dist/dts/BigDecimal.d.ts +558 -1
- package/dist/dts/BigDecimal.d.ts.map +1 -1
- package/dist/dts/BigInt.d.ts +490 -0
- package/dist/dts/BigInt.d.ts.map +1 -1
- package/dist/dts/Boolean.d.ts +228 -0
- package/dist/dts/Boolean.d.ts.map +1 -1
- package/dist/dts/Cause.d.ts +172 -0
- package/dist/dts/Cause.d.ts.map +1 -1
- package/dist/dts/Channel.d.ts +750 -0
- package/dist/dts/Channel.d.ts.map +1 -1
- package/dist/dts/ChildExecutorDecision.d.ts +12 -0
- package/dist/dts/ChildExecutorDecision.d.ts.map +1 -1
- package/dist/dts/Chunk.d.ts +791 -0
- package/dist/dts/Chunk.d.ts.map +1 -1
- package/dist/dts/Config.d.ts +174 -0
- package/dist/dts/Config.d.ts.map +1 -1
- package/dist/dts/ConfigError.d.ts +16 -0
- package/dist/dts/ConfigError.d.ts.map +1 -1
- package/dist/dts/ConfigProvider.d.ts +84 -0
- package/dist/dts/ConfigProvider.d.ts.map +1 -1
- package/dist/dts/ConfigProviderPathPatch.d.ts +32 -0
- package/dist/dts/ConfigProviderPathPatch.d.ts.map +1 -1
- package/dist/dts/Console.d.ts +24 -0
- package/dist/dts/Console.d.ts.map +1 -1
- package/dist/dts/Context.d.ts +234 -3
- package/dist/dts/Context.d.ts.map +1 -1
- package/dist/dts/Cron.d.ts +12 -0
- package/dist/dts/Cron.d.ts.map +1 -1
- package/dist/dts/Data.d.ts +165 -0
- package/dist/dts/Data.d.ts.map +1 -1
- package/dist/dts/DateTime.d.ts +878 -0
- package/dist/dts/DateTime.d.ts.map +1 -1
- package/dist/dts/Deferred.d.ts +171 -1
- package/dist/dts/Deferred.d.ts.map +1 -1
- package/dist/dts/Differ.d.ts +78 -0
- package/dist/dts/Differ.d.ts.map +1 -1
- package/dist/dts/Duration.d.ts +130 -0
- package/dist/dts/Duration.d.ts.map +1 -1
- package/dist/dts/Effect.d.ts +4350 -13
- package/dist/dts/Effect.d.ts.map +1 -1
- package/dist/dts/Either.d.ts +620 -0
- package/dist/dts/Either.d.ts.map +1 -1
- package/dist/dts/Equivalence.d.ts +24 -0
- package/dist/dts/Equivalence.d.ts.map +1 -1
- package/dist/dts/ExecutionStrategy.d.ts +14 -0
- package/dist/dts/ExecutionStrategy.d.ts.map +1 -1
- package/dist/dts/Exit.d.ts +252 -0
- package/dist/dts/Exit.d.ts.map +1 -1
- package/dist/dts/Fiber.d.ts +182 -0
- package/dist/dts/Fiber.d.ts.map +1 -1
- package/dist/dts/FiberHandle.d.ts +42 -0
- package/dist/dts/FiberHandle.d.ts.map +1 -1
- package/dist/dts/FiberId.d.ts +24 -0
- package/dist/dts/FiberId.d.ts.map +1 -1
- package/dist/dts/FiberMap.d.ts +102 -0
- package/dist/dts/FiberMap.d.ts.map +1 -1
- package/dist/dts/FiberRef.d.ts +80 -0
- package/dist/dts/FiberRef.d.ts.map +1 -1
- package/dist/dts/FiberRefs.d.ts +84 -0
- package/dist/dts/FiberRefs.d.ts.map +1 -1
- package/dist/dts/FiberRefsPatch.d.ts +30 -0
- package/dist/dts/FiberRefsPatch.d.ts.map +1 -1
- package/dist/dts/FiberSet.d.ts +38 -0
- package/dist/dts/FiberSet.d.ts.map +1 -1
- package/dist/dts/Function.d.ts +144 -28
- package/dist/dts/Function.d.ts.map +1 -1
- package/dist/dts/GroupBy.d.ts +38 -0
- package/dist/dts/GroupBy.d.ts.map +1 -1
- package/dist/dts/Hash.d.ts +8 -0
- package/dist/dts/Hash.d.ts.map +1 -1
- package/dist/dts/HashMap.d.ts +315 -0
- package/dist/dts/HashMap.d.ts.map +1 -1
- package/dist/dts/HashSet.d.ts +284 -0
- package/dist/dts/HashSet.d.ts.map +1 -1
- package/dist/dts/Inspectable.d.ts +15 -0
- package/dist/dts/Inspectable.d.ts.map +1 -1
- package/dist/dts/Iterable.d.ts +454 -0
- package/dist/dts/Iterable.d.ts.map +1 -1
- package/dist/dts/KeyedPool.d.ts +34 -0
- package/dist/dts/KeyedPool.d.ts.map +1 -1
- package/dist/dts/Layer.d.ts +460 -5
- package/dist/dts/Layer.d.ts.map +1 -1
- package/dist/dts/List.d.ts +430 -0
- package/dist/dts/List.d.ts.map +1 -1
- package/dist/dts/LogLevel.d.ts +46 -0
- package/dist/dts/LogLevel.d.ts.map +1 -1
- package/dist/dts/Logger.d.ts +194 -0
- package/dist/dts/Logger.d.ts.map +1 -1
- package/dist/dts/Mailbox.d.ts +16 -0
- package/dist/dts/Mailbox.d.ts.map +1 -1
- package/dist/dts/ManagedRuntime.d.ts +41 -2
- package/dist/dts/ManagedRuntime.d.ts.map +1 -1
- package/dist/dts/MergeDecision.d.ts +8 -0
- package/dist/dts/MergeDecision.d.ts.map +1 -1
- package/dist/dts/MergeState.d.ts +8 -0
- package/dist/dts/MergeState.d.ts.map +1 -1
- package/dist/dts/MergeStrategy.d.ts +12 -0
- package/dist/dts/MergeStrategy.d.ts.map +1 -1
- package/dist/dts/Metric.d.ts +410 -0
- package/dist/dts/Metric.d.ts.map +1 -1
- package/dist/dts/MetricHook.d.ts +24 -0
- package/dist/dts/MetricHook.d.ts.map +1 -1
- package/dist/dts/MetricKey.d.ts +48 -0
- package/dist/dts/MetricKey.d.ts.map +1 -1
- package/dist/dts/MetricPolling.d.ts +40 -0
- package/dist/dts/MetricPolling.d.ts.map +1 -1
- package/dist/dts/MetricState.d.ts +16 -0
- package/dist/dts/MetricState.d.ts.map +1 -1
- package/dist/dts/Micro.d.ts +1110 -0
- package/dist/dts/Micro.d.ts.map +1 -1
- package/dist/dts/MutableHashMap.d.ts +50 -0
- package/dist/dts/MutableHashMap.d.ts.map +1 -1
- package/dist/dts/MutableHashSet.d.ts +24 -0
- package/dist/dts/MutableHashSet.d.ts.map +1 -1
- package/dist/dts/MutableList.d.ts +36 -0
- package/dist/dts/MutableList.d.ts.map +1 -1
- package/dist/dts/MutableQueue.d.ts +62 -0
- package/dist/dts/MutableQueue.d.ts.map +1 -1
- package/dist/dts/MutableRef.d.ts +56 -0
- package/dist/dts/MutableRef.d.ts.map +1 -1
- package/dist/dts/Number.d.ts +474 -0
- package/dist/dts/Number.d.ts.map +1 -1
- package/dist/dts/Option.d.ts +1019 -0
- package/dist/dts/Option.d.ts.map +1 -1
- package/dist/dts/Order.d.ts +24 -0
- package/dist/dts/Order.d.ts.map +1 -1
- package/dist/dts/Ordering.d.ts +66 -0
- package/dist/dts/Ordering.d.ts.map +1 -1
- package/dist/dts/Pipeable.d.ts +21 -21
- package/dist/dts/Pipeable.d.ts.map +1 -1
- package/dist/dts/Pool.d.ts +37 -1
- package/dist/dts/Pool.d.ts.map +1 -1
- package/dist/dts/Predicate.d.ts +513 -0
- package/dist/dts/Predicate.d.ts.map +1 -1
- package/dist/dts/PubSub.d.ts +28 -0
- package/dist/dts/PubSub.d.ts.map +1 -1
- package/dist/dts/Queue.d.ts +106 -2
- package/dist/dts/Queue.d.ts.map +1 -1
- package/dist/dts/RcMap.d.ts +70 -0
- package/dist/dts/RcMap.d.ts.map +1 -1
- package/dist/dts/Readable.d.ts +16 -0
- package/dist/dts/Readable.d.ts.map +1 -1
- package/dist/dts/Record.d.ts +800 -0
- package/dist/dts/Record.d.ts.map +1 -1
- package/dist/dts/RedBlackTree.d.ts +300 -0
- package/dist/dts/RedBlackTree.d.ts.map +1 -1
- package/dist/dts/Ref.d.ts +88 -0
- package/dist/dts/Ref.d.ts.map +1 -1
- package/dist/dts/RegExp.d.ts +12 -2
- package/dist/dts/RegExp.d.ts.map +1 -1
- package/dist/dts/Request.d.ts +76 -0
- package/dist/dts/Request.d.ts.map +1 -1
- package/dist/dts/RequestResolver.d.ts +144 -0
- package/dist/dts/RequestResolver.d.ts.map +1 -1
- package/dist/dts/Resource.d.ts +21 -1
- package/dist/dts/Resource.d.ts.map +1 -1
- package/dist/dts/Runtime.d.ts +126 -0
- package/dist/dts/Runtime.d.ts.map +1 -1
- package/dist/dts/RuntimeFlags.d.ts +100 -0
- package/dist/dts/RuntimeFlags.d.ts.map +1 -1
- package/dist/dts/RuntimeFlagsPatch.d.ts +112 -0
- package/dist/dts/RuntimeFlagsPatch.d.ts.map +1 -1
- package/dist/dts/STM.d.ts +1090 -0
- package/dist/dts/STM.d.ts.map +1 -1
- package/dist/dts/Schedule.d.ts +704 -0
- package/dist/dts/Schedule.d.ts.map +1 -1
- package/dist/dts/ScheduleInterval.d.ts +68 -0
- package/dist/dts/ScheduleInterval.d.ts.map +1 -1
- package/dist/dts/ScheduleIntervals.d.ts +50 -0
- package/dist/dts/ScheduleIntervals.d.ts.map +1 -1
- package/dist/dts/Scope.d.ts +36 -0
- package/dist/dts/Scope.d.ts.map +1 -1
- package/dist/dts/ScopedRef.d.ts +43 -1
- package/dist/dts/ScopedRef.d.ts.map +1 -1
- package/dist/dts/Sink.d.ts +464 -0
- package/dist/dts/Sink.d.ts.map +1 -1
- package/dist/dts/SortedMap.d.ts +76 -0
- package/dist/dts/SortedMap.d.ts.map +1 -1
- package/dist/dts/SortedSet.d.ts +142 -0
- package/dist/dts/SortedSet.d.ts.map +1 -1
- package/dist/dts/Stream.d.ts +4998 -1
- package/dist/dts/Stream.d.ts.map +1 -1
- package/dist/dts/StreamHaltStrategy.d.ts +12 -0
- package/dist/dts/StreamHaltStrategy.d.ts.map +1 -1
- package/dist/dts/String.d.ts +200 -0
- package/dist/dts/String.d.ts.map +1 -1
- package/dist/dts/Struct.d.ts +84 -0
- package/dist/dts/Struct.d.ts.map +1 -1
- package/dist/dts/Subscribable.d.ts +16 -0
- package/dist/dts/Subscribable.d.ts.map +1 -1
- package/dist/dts/SubscriptionRef.d.ts +152 -0
- package/dist/dts/SubscriptionRef.d.ts.map +1 -1
- package/dist/dts/SynchronizedRef.d.ts +152 -0
- package/dist/dts/SynchronizedRef.d.ts.map +1 -1
- package/dist/dts/TArray.d.ts +426 -0
- package/dist/dts/TArray.d.ts.map +1 -1
- package/dist/dts/TDeferred.d.ts +24 -0
- package/dist/dts/TDeferred.d.ts.map +1 -1
- package/dist/dts/TMap.d.ts +366 -0
- package/dist/dts/TMap.d.ts.map +1 -1
- package/dist/dts/TPriorityQueue.d.ts +60 -0
- package/dist/dts/TPriorityQueue.d.ts.map +1 -1
- package/dist/dts/TPubSub.d.ts +28 -0
- package/dist/dts/TPubSub.d.ts.map +1 -1
- package/dist/dts/TQueue.d.ts +108 -0
- package/dist/dts/TQueue.d.ts.map +1 -1
- package/dist/dts/TReentrantLock.d.ts +36 -0
- package/dist/dts/TReentrantLock.d.ts.map +1 -1
- package/dist/dts/TRef.d.ts +88 -0
- package/dist/dts/TRef.d.ts.map +1 -1
- package/dist/dts/TSemaphore.d.ts +40 -0
- package/dist/dts/TSemaphore.d.ts.map +1 -1
- package/dist/dts/TSet.d.ts +254 -0
- package/dist/dts/TSet.d.ts.map +1 -1
- package/dist/dts/Take.d.ts +56 -0
- package/dist/dts/Take.d.ts.map +1 -1
- package/dist/dts/TestAnnotationMap.d.ts.map +1 -1
- package/dist/dts/TestClock.d.ts.map +1 -1
- package/dist/dts/TestServices.d.ts.map +1 -1
- package/dist/dts/Trie.d.ts +906 -0
- package/dist/dts/Trie.d.ts.map +1 -1
- package/dist/dts/Tuple.d.ts +203 -0
- package/dist/dts/Tuple.d.ts.map +1 -1
- package/dist/dts/Types.d.ts +39 -0
- package/dist/dts/Types.d.ts.map +1 -1
- package/dist/dts/Unify.d.ts +26 -13
- package/dist/dts/Unify.d.ts.map +1 -1
- package/dist/dts/UpstreamPullRequest.d.ts +12 -0
- package/dist/dts/UpstreamPullRequest.d.ts.map +1 -1
- package/dist/dts/UpstreamPullStrategy.d.ts +12 -0
- package/dist/dts/UpstreamPullStrategy.d.ts.map +1 -1
- package/dist/dts/Utils.d.ts.map +1 -1
- package/dist/dts/internal/core.d.ts.map +1 -1
- package/dist/dts/internal/hashMap.d.ts.map +1 -1
- package/dist/dts/internal/layer.d.ts.map +1 -1
- package/dist/dts/internal/managedRuntime/circular.d.ts +2 -0
- package/dist/dts/internal/managedRuntime/circular.d.ts.map +1 -0
- package/dist/dts/internal/stream.d.ts.map +1 -1
- package/dist/esm/Array.js +21 -0
- package/dist/esm/Array.js.map +1 -1
- package/dist/esm/BigDecimal.js +6 -3
- package/dist/esm/BigDecimal.js.map +1 -1
- package/dist/esm/BigInt.js.map +1 -1
- package/dist/esm/Boolean.js.map +1 -1
- package/dist/esm/Cause.js.map +1 -1
- package/dist/esm/Channel.js.map +1 -1
- package/dist/esm/ChildExecutorDecision.js.map +1 -1
- package/dist/esm/Chunk.js +4 -1
- package/dist/esm/Chunk.js.map +1 -1
- package/dist/esm/Config.js.map +1 -1
- package/dist/esm/ConfigError.js.map +1 -1
- package/dist/esm/ConfigProvider.js.map +1 -1
- package/dist/esm/ConfigProviderPathPatch.js.map +1 -1
- package/dist/esm/Console.js.map +1 -1
- package/dist/esm/Context.js.map +1 -1
- package/dist/esm/Cron.js +4 -1
- package/dist/esm/Cron.js.map +1 -1
- package/dist/esm/Data.js.map +1 -1
- package/dist/esm/DateTime.js +6 -0
- package/dist/esm/DateTime.js.map +1 -1
- package/dist/esm/Deferred.js.map +1 -1
- package/dist/esm/Differ.js.map +1 -1
- package/dist/esm/Duration.js +4 -1
- package/dist/esm/Duration.js.map +1 -1
- package/dist/esm/Effect.js +116 -30
- package/dist/esm/Effect.js.map +1 -1
- package/dist/esm/Either.js.map +1 -1
- package/dist/esm/Equivalence.js.map +1 -1
- package/dist/esm/ExecutionStrategy.js.map +1 -1
- package/dist/esm/Exit.js.map +1 -1
- package/dist/esm/Fiber.js.map +1 -1
- package/dist/esm/FiberHandle.js +3 -0
- package/dist/esm/FiberHandle.js.map +1 -1
- package/dist/esm/FiberId.js.map +1 -1
- package/dist/esm/FiberMap.js +3 -0
- package/dist/esm/FiberMap.js.map +1 -1
- package/dist/esm/FiberRef.js.map +1 -1
- package/dist/esm/FiberRefs.js.map +1 -1
- package/dist/esm/FiberRefsPatch.js.map +1 -1
- package/dist/esm/FiberSet.js +3 -0
- package/dist/esm/FiberSet.js.map +1 -1
- package/dist/esm/Function.js.map +1 -1
- package/dist/esm/GroupBy.js.map +1 -1
- package/dist/esm/Hash.js.map +1 -1
- package/dist/esm/HashMap.js.map +1 -1
- package/dist/esm/HashSet.js.map +1 -1
- package/dist/esm/Inspectable.js +14 -0
- package/dist/esm/Inspectable.js.map +1 -1
- package/dist/esm/Iterable.js.map +1 -1
- package/dist/esm/KeyedPool.js.map +1 -1
- package/dist/esm/Layer.js.map +1 -1
- package/dist/esm/List.js +7 -1
- package/dist/esm/List.js.map +1 -1
- package/dist/esm/LogLevel.js.map +1 -1
- package/dist/esm/Logger.js.map +1 -1
- package/dist/esm/Mailbox.js.map +1 -1
- package/dist/esm/ManagedRuntime.js +15 -0
- package/dist/esm/ManagedRuntime.js.map +1 -1
- package/dist/esm/MergeDecision.js.map +1 -1
- package/dist/esm/MergeState.js.map +1 -1
- package/dist/esm/MergeStrategy.js.map +1 -1
- package/dist/esm/Metric.js.map +1 -1
- package/dist/esm/MetricHook.js.map +1 -1
- package/dist/esm/MetricKey.js.map +1 -1
- package/dist/esm/MetricPolling.js.map +1 -1
- package/dist/esm/MetricState.js.map +1 -1
- package/dist/esm/Micro.js +7 -1
- package/dist/esm/Micro.js.map +1 -1
- package/dist/esm/MutableHashMap.js +4 -1
- package/dist/esm/MutableHashMap.js.map +1 -1
- package/dist/esm/MutableHashSet.js +4 -1
- package/dist/esm/MutableHashSet.js.map +1 -1
- package/dist/esm/MutableList.js +4 -1
- package/dist/esm/MutableList.js.map +1 -1
- package/dist/esm/MutableQueue.js +4 -1
- package/dist/esm/MutableQueue.js.map +1 -1
- package/dist/esm/MutableRef.js +4 -1
- package/dist/esm/MutableRef.js.map +1 -1
- package/dist/esm/Number.js.map +1 -1
- package/dist/esm/Option.js.map +1 -1
- package/dist/esm/Order.js.map +1 -1
- package/dist/esm/Ordering.js.map +1 -1
- package/dist/esm/Pipeable.js.map +1 -1
- package/dist/esm/Pool.js.map +1 -1
- package/dist/esm/Predicate.js +15 -0
- package/dist/esm/Predicate.js.map +1 -1
- package/dist/esm/PubSub.js.map +1 -1
- package/dist/esm/Queue.js.map +1 -1
- package/dist/esm/RcMap.js.map +1 -1
- package/dist/esm/Readable.js.map +1 -1
- package/dist/esm/Record.js.map +1 -1
- package/dist/esm/RedBlackTree.js.map +1 -1
- package/dist/esm/Ref.js.map +1 -1
- package/dist/esm/RegExp.js +16 -0
- package/dist/esm/RegExp.js.map +1 -1
- package/dist/esm/Request.js.map +1 -1
- package/dist/esm/RequestResolver.js.map +1 -1
- package/dist/esm/Resource.js.map +1 -1
- package/dist/esm/Runtime.js.map +1 -1
- package/dist/esm/RuntimeFlags.js.map +1 -1
- package/dist/esm/RuntimeFlagsPatch.js.map +1 -1
- package/dist/esm/STM.js.map +1 -1
- package/dist/esm/Schedule.js.map +1 -1
- package/dist/esm/ScheduleInterval.js.map +1 -1
- package/dist/esm/ScheduleIntervals.js.map +1 -1
- package/dist/esm/Scheduler.js.map +1 -1
- package/dist/esm/Scope.js.map +1 -1
- package/dist/esm/ScopedRef.js.map +1 -1
- package/dist/esm/Sink.js.map +1 -1
- package/dist/esm/SortedMap.js +4 -1
- package/dist/esm/SortedMap.js.map +1 -1
- package/dist/esm/SortedSet.js +4 -1
- package/dist/esm/SortedSet.js.map +1 -1
- package/dist/esm/Stream.js +14 -0
- package/dist/esm/Stream.js.map +1 -1
- package/dist/esm/StreamHaltStrategy.js.map +1 -1
- package/dist/esm/String.js.map +1 -1
- package/dist/esm/Struct.js.map +1 -1
- package/dist/esm/Subscribable.js.map +1 -1
- package/dist/esm/SubscriptionRef.js.map +1 -1
- package/dist/esm/SynchronizedRef.js.map +1 -1
- package/dist/esm/TArray.js.map +1 -1
- package/dist/esm/TDeferred.js.map +1 -1
- package/dist/esm/TMap.js.map +1 -1
- package/dist/esm/TPriorityQueue.js.map +1 -1
- package/dist/esm/TPubSub.js.map +1 -1
- package/dist/esm/TQueue.js.map +1 -1
- package/dist/esm/TReentrantLock.js.map +1 -1
- package/dist/esm/TRef.js.map +1 -1
- package/dist/esm/TSemaphore.js.map +1 -1
- package/dist/esm/TSet.js.map +1 -1
- package/dist/esm/Take.js.map +1 -1
- package/dist/esm/TestAnnotationMap.js.map +1 -1
- package/dist/esm/TestClock.js.map +1 -1
- package/dist/esm/TestServices.js.map +1 -1
- package/dist/esm/Trie.js.map +1 -1
- package/dist/esm/Tuple.js +19 -0
- package/dist/esm/Tuple.js.map +1 -1
- package/dist/esm/Unify.js.map +1 -1
- package/dist/esm/UpstreamPullRequest.js.map +1 -1
- package/dist/esm/UpstreamPullStrategy.js.map +1 -1
- package/dist/esm/Utils.js +1 -14
- package/dist/esm/Utils.js.map +1 -1
- package/dist/esm/internal/cause.js +4 -1
- package/dist/esm/internal/cause.js.map +1 -1
- package/dist/esm/internal/context.js +7 -2
- package/dist/esm/internal/context.js.map +1 -1
- package/dist/esm/internal/core-effect.js.map +1 -1
- package/dist/esm/internal/core.js +14 -2
- package/dist/esm/internal/core.js.map +1 -1
- package/dist/esm/internal/effect/circular.js +5 -1
- package/dist/esm/internal/effect/circular.js.map +1 -1
- package/dist/esm/internal/fiberId.js +10 -1
- package/dist/esm/internal/fiberId.js.map +1 -1
- package/dist/esm/internal/hashMap.js +4 -1
- package/dist/esm/internal/hashMap.js.map +1 -1
- package/dist/esm/internal/hashSet.js +4 -1
- package/dist/esm/internal/hashSet.js.map +1 -1
- package/dist/esm/internal/layer.js +32 -18
- package/dist/esm/internal/layer.js.map +1 -1
- package/dist/esm/internal/mailbox.js +3 -0
- package/dist/esm/internal/mailbox.js.map +1 -1
- package/dist/esm/internal/managedRuntime/circular.js +4 -0
- package/dist/esm/internal/managedRuntime/circular.js.map +1 -0
- package/dist/esm/internal/managedRuntime.js +21 -8
- package/dist/esm/internal/managedRuntime.js.map +1 -1
- package/dist/esm/internal/option.js +4 -1
- package/dist/esm/internal/option.js.map +1 -1
- package/dist/esm/internal/pool.js +6 -1
- package/dist/esm/internal/pool.js.map +1 -1
- package/dist/esm/internal/redBlackTree.js +4 -1
- package/dist/esm/internal/redBlackTree.js.map +1 -1
- package/dist/esm/internal/resource.js +15 -5
- package/dist/esm/internal/resource.js.map +1 -1
- package/dist/esm/internal/runtime.js +4 -1
- package/dist/esm/internal/runtime.js.map +1 -1
- package/dist/esm/internal/scopedRef.js +11 -8
- package/dist/esm/internal/scopedRef.js.map +1 -1
- package/dist/esm/internal/stm/core.js +1 -2
- package/dist/esm/internal/stm/core.js.map +1 -1
- package/dist/esm/internal/stream.js +9 -0
- package/dist/esm/internal/stream.js.map +1 -1
- package/dist/esm/internal/trie.js +4 -1
- package/dist/esm/internal/trie.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +2791 -40
- package/src/BigDecimal.ts +589 -19
- package/src/BigInt.ts +516 -16
- package/src/Boolean.ts +241 -8
- package/src/Cause.ts +177 -1
- package/src/Channel.ts +766 -49
- package/src/ChildExecutorDecision.ts +12 -0
- package/src/Chunk.ts +822 -5
- package/src/Config.ts +187 -8
- package/src/ConfigError.ts +16 -0
- package/src/ConfigProvider.ts +89 -1
- package/src/ConfigProviderPathPatch.ts +32 -0
- package/src/Console.ts +37 -8
- package/src/Context.ts +234 -3
- package/src/Cron.ts +16 -1
- package/src/Data.ts +165 -0
- package/src/DateTime.ts +1012 -50
- package/src/Deferred.ts +171 -1
- package/src/Differ.ts +89 -27
- package/src/Duration.ts +160 -17
- package/src/Effect.ts +4717 -164
- package/src/Either.ts +650 -34
- package/src/Equivalence.ts +24 -0
- package/src/ExecutionStrategy.ts +29 -10
- package/src/Exit.ts +252 -0
- package/src/Fiber.ts +182 -0
- package/src/FiberHandle.ts +45 -0
- package/src/FiberId.ts +24 -0
- package/src/FiberMap.ts +147 -21
- package/src/FiberRef.ts +80 -0
- package/src/FiberRefs.ts +84 -0
- package/src/FiberRefsPatch.ts +35 -1
- package/src/FiberSet.ts +41 -0
- package/src/Function.ts +416 -31
- package/src/GroupBy.ts +38 -0
- package/src/Hash.ts +8 -0
- package/src/HashMap.ts +316 -0
- package/src/HashSet.ts +284 -0
- package/src/Inspectable.ts +22 -0
- package/src/Iterable.ts +456 -6
- package/src/KeyedPool.ts +34 -0
- package/src/Layer.ts +475 -38
- package/src/List.ts +483 -4
- package/src/LogLevel.ts +46 -0
- package/src/Logger.ts +195 -4
- package/src/Mailbox.ts +16 -0
- package/src/ManagedRuntime.ts +46 -2
- package/src/MergeDecision.ts +8 -0
- package/src/MergeState.ts +8 -0
- package/src/MergeStrategy.ts +25 -8
- package/src/Metric.ts +426 -15
- package/src/MetricHook.ts +24 -0
- package/src/MetricKey.ts +62 -8
- package/src/MetricPolling.ts +42 -6
- package/src/MetricState.ts +16 -0
- package/src/Micro.ts +1223 -61
- package/src/MutableHashMap.ts +109 -2
- package/src/MutableHashSet.ts +28 -1
- package/src/MutableList.ts +40 -1
- package/src/MutableQueue.ts +66 -1
- package/src/MutableRef.ts +60 -1
- package/src/Number.ts +500 -16
- package/src/Option.ts +1042 -16
- package/src/Order.ts +24 -0
- package/src/Ordering.ts +66 -0
- package/src/Pipeable.ts +224 -21
- package/src/Pool.ts +42 -1
- package/src/Predicate.ts +514 -0
- package/src/PubSub.ts +28 -0
- package/src/Queue.ts +106 -2
- package/src/RcMap.ts +70 -0
- package/src/Readable.ts +18 -7
- package/src/Record.ts +814 -40
- package/src/RedBlackTree.ts +305 -1
- package/src/Ref.ts +88 -0
- package/src/RegExp.ts +17 -0
- package/src/Request.ts +76 -0
- package/src/RequestResolver.ts +145 -4
- package/src/Resource.ts +22 -1
- package/src/Runtime.ts +134 -2
- package/src/RuntimeFlags.ts +100 -0
- package/src/RuntimeFlagsPatch.ts +112 -0
- package/src/STM.ts +1107 -11
- package/src/Schedule.ts +704 -0
- package/src/ScheduleInterval.ts +68 -0
- package/src/ScheduleIntervals.ts +50 -0
- package/src/Scheduler.ts +2 -0
- package/src/Scope.ts +36 -0
- package/src/ScopedRef.ts +44 -1
- package/src/Sink.ts +464 -0
- package/src/SortedMap.ts +80 -1
- package/src/SortedSet.ts +147 -4
- package/src/Stream.ts +5041 -54
- package/src/StreamHaltStrategy.ts +29 -12
- package/src/String.ts +200 -0
- package/src/Struct.ts +86 -7
- package/src/Subscribable.ts +16 -0
- package/src/SubscriptionRef.ts +159 -11
- package/src/SynchronizedRef.ts +169 -8
- package/src/TArray.ts +431 -1
- package/src/TDeferred.ts +24 -0
- package/src/TMap.ts +381 -12
- package/src/TPriorityQueue.ts +60 -0
- package/src/TPubSub.ts +28 -0
- package/src/TQueue.ts +108 -0
- package/src/TReentrantLock.ts +36 -0
- package/src/TRef.ts +88 -0
- package/src/TSemaphore.ts +40 -0
- package/src/TSet.ts +280 -12
- package/src/Take.ts +56 -0
- package/src/TestAnnotationMap.ts +45 -1
- package/src/TestClock.ts +6 -0
- package/src/TestServices.ts +66 -0
- package/src/Trie.ts +906 -0
- package/src/Tuple.ts +223 -8
- package/src/Types.ts +41 -0
- package/src/Unify.ts +28 -17
- package/src/UpstreamPullRequest.ts +12 -0
- package/src/UpstreamPullStrategy.ts +12 -0
- package/src/Utils.ts +1 -15
- package/src/internal/cause.ts +4 -1
- package/src/internal/context.ts +7 -2
- package/src/internal/core-effect.ts +7 -7
- package/src/internal/core.ts +14 -2
- package/src/internal/effect/circular.ts +8 -2
- package/src/internal/fiberId.ts +10 -1
- package/src/internal/hashMap.ts +4 -1
- package/src/internal/hashSet.ts +4 -1
- package/src/internal/layer.ts +105 -38
- package/src/internal/mailbox.ts +3 -0
- package/src/internal/managedRuntime/circular.ts +6 -0
- package/src/internal/managedRuntime.ts +36 -22
- package/src/internal/option.ts +4 -1
- package/src/internal/pool.ts +7 -1
- package/src/internal/redBlackTree.ts +4 -1
- package/src/internal/resource.ts +16 -5
- package/src/internal/runtime.ts +4 -1
- package/src/internal/scopedRef.ts +12 -8
- package/src/internal/stm/core.ts +2 -3
- package/src/internal/stream.ts +27 -0
- package/src/internal/trie.ts +4 -1
- package/src/internal/version.ts +1 -1
package/dist/dts/Channel.d.ts
CHANGED
|
@@ -158,7 +158,15 @@ export declare const acquireUseRelease: <Acquired, OutErr, Env, OutElem1, InElem
|
|
|
158
158
|
* @category constructors
|
|
159
159
|
*/
|
|
160
160
|
export declare const acquireReleaseOut: {
|
|
161
|
+
/**
|
|
162
|
+
* @since 2.0.0
|
|
163
|
+
* @category constructors
|
|
164
|
+
*/
|
|
161
165
|
<Z, R2>(release: (z: Z, e: Exit.Exit<unknown, unknown>) => Effect.Effect<unknown, never, R2>): <E, R>(self: Effect.Effect<Z, E, R>) => Channel<Z, unknown, E, unknown, void, unknown, R2 | R>;
|
|
166
|
+
/**
|
|
167
|
+
* @since 2.0.0
|
|
168
|
+
* @category constructors
|
|
169
|
+
*/
|
|
162
170
|
<Z, E, R, R2>(self: Effect.Effect<Z, E, R>, release: (z: Z, e: Exit.Exit<unknown, unknown>) => Effect.Effect<unknown, never, R2>): Channel<Z, unknown, E, unknown, void, unknown, R | R2>;
|
|
163
171
|
};
|
|
164
172
|
/**
|
|
@@ -172,7 +180,27 @@ export declare const acquireReleaseOut: {
|
|
|
172
180
|
* @category mapping
|
|
173
181
|
*/
|
|
174
182
|
export declare const as: {
|
|
183
|
+
/**
|
|
184
|
+
* Returns a new channel that is the same as this one, except the terminal
|
|
185
|
+
* value of the channel is the specified constant value.
|
|
186
|
+
*
|
|
187
|
+
* This method produces the same result as mapping this channel to the
|
|
188
|
+
* specified constant value.
|
|
189
|
+
*
|
|
190
|
+
* @since 2.0.0
|
|
191
|
+
* @category mapping
|
|
192
|
+
*/
|
|
175
193
|
<OutDone2>(value: OutDone2): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env>;
|
|
194
|
+
/**
|
|
195
|
+
* Returns a new channel that is the same as this one, except the terminal
|
|
196
|
+
* value of the channel is the specified constant value.
|
|
197
|
+
*
|
|
198
|
+
* This method produces the same result as mapping this channel to the
|
|
199
|
+
* specified constant value.
|
|
200
|
+
*
|
|
201
|
+
* @since 2.0.0
|
|
202
|
+
* @category mapping
|
|
203
|
+
*/
|
|
176
204
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutDone2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, value: OutDone2): Channel<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env>;
|
|
177
205
|
};
|
|
178
206
|
/**
|
|
@@ -207,7 +235,23 @@ export declare const bufferChunk: <InElem, InErr, InDone>(ref: Ref.Ref<Chunk.Chu
|
|
|
207
235
|
* @category error handling
|
|
208
236
|
*/
|
|
209
237
|
export declare const catchAll: {
|
|
238
|
+
/**
|
|
239
|
+
* Returns a new channel that is the same as this one, except if this channel
|
|
240
|
+
* errors for any typed error, then the returned channel will switch over to
|
|
241
|
+
* using the fallback channel returned by the specified error handler.
|
|
242
|
+
*
|
|
243
|
+
* @since 2.0.0
|
|
244
|
+
* @category error handling
|
|
245
|
+
*/
|
|
210
246
|
<OutErr, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(f: (error: OutErr) => Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>): <OutElem, InElem, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem, InElem & InElem1, OutErr1, InErr & InErr1, OutDone1 | OutDone, InDone & InDone1, Env1 | Env>;
|
|
247
|
+
/**
|
|
248
|
+
* Returns a new channel that is the same as this one, except if this channel
|
|
249
|
+
* errors for any typed error, then the returned channel will switch over to
|
|
250
|
+
* using the fallback channel returned by the specified error handler.
|
|
251
|
+
*
|
|
252
|
+
* @since 2.0.0
|
|
253
|
+
* @category error handling
|
|
254
|
+
*/
|
|
211
255
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (error: OutErr) => Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>): Channel<OutElem | OutElem1, InElem & InElem1, OutErr1, InErr & InErr1, OutDone | OutDone1, InDone & InDone1, Env | Env1>;
|
|
212
256
|
};
|
|
213
257
|
/**
|
|
@@ -219,7 +263,23 @@ export declare const catchAll: {
|
|
|
219
263
|
* @category error handling
|
|
220
264
|
*/
|
|
221
265
|
export declare const catchAllCause: {
|
|
266
|
+
/**
|
|
267
|
+
* Returns a new channel that is the same as this one, except if this channel
|
|
268
|
+
* errors for any typed error, then the returned channel will switch over to
|
|
269
|
+
* using the fallback channel returned by the specified error handler.
|
|
270
|
+
*
|
|
271
|
+
* @since 2.0.0
|
|
272
|
+
* @category error handling
|
|
273
|
+
*/
|
|
222
274
|
<OutErr, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(f: (cause: Cause.Cause<OutErr>) => Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>): <OutElem, InElem, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem, InElem & InElem1, OutErr1, InErr & InErr1, OutDone1 | OutDone, InDone & InDone1, Env1 | Env>;
|
|
275
|
+
/**
|
|
276
|
+
* Returns a new channel that is the same as this one, except if this channel
|
|
277
|
+
* errors for any typed error, then the returned channel will switch over to
|
|
278
|
+
* using the fallback channel returned by the specified error handler.
|
|
279
|
+
*
|
|
280
|
+
* @since 2.0.0
|
|
281
|
+
* @category error handling
|
|
282
|
+
*/
|
|
223
283
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (cause: Cause.Cause<OutErr>) => Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>): Channel<OutElem | OutElem1, InElem & InElem1, OutErr1, InErr & InErr1, OutDone | OutDone1, InDone & InDone1, Env | Env1>;
|
|
224
284
|
};
|
|
225
285
|
/**
|
|
@@ -246,7 +306,25 @@ export declare const concatAllWith: <OutElem, InElem2, OutErr2, InErr2, OutDone,
|
|
|
246
306
|
* @category utils
|
|
247
307
|
*/
|
|
248
308
|
export declare const concatMap: {
|
|
309
|
+
/**
|
|
310
|
+
* Returns a new channel whose outputs are fed to the specified factory
|
|
311
|
+
* function, which creates new channels in response. These new channels are
|
|
312
|
+
* sequentially concatenated together, and all their outputs appear as outputs
|
|
313
|
+
* of the newly returned channel.
|
|
314
|
+
*
|
|
315
|
+
* @since 2.0.0
|
|
316
|
+
* @category utils
|
|
317
|
+
*/
|
|
249
318
|
<OutElem, OutElem2, InElem2, OutErr2, InErr2, X, InDone2, Env2>(f: (o: OutElem) => Channel<OutElem2, InElem2, OutErr2, InErr2, X, InDone2, Env2>): <Env, InErr, InElem, InDone, OutErr, OutDone>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem2, InElem & InElem2, OutErr2 | OutErr, InErr & InErr2, unknown, InDone & InDone2, Env2 | Env>;
|
|
319
|
+
/**
|
|
320
|
+
* Returns a new channel whose outputs are fed to the specified factory
|
|
321
|
+
* function, which creates new channels in response. These new channels are
|
|
322
|
+
* sequentially concatenated together, and all their outputs appear as outputs
|
|
323
|
+
* of the newly returned channel.
|
|
324
|
+
*
|
|
325
|
+
* @since 2.0.0
|
|
326
|
+
* @category utils
|
|
327
|
+
*/
|
|
250
328
|
<Env, InErr, InElem, InDone, OutErr, OutDone, OutElem, OutElem2, Env2, InErr2, InElem2, InDone2, OutErr2, X>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (o: OutElem) => Channel<OutElem2, InElem2, OutErr2, InErr2, X, InDone2, Env2>): Channel<OutElem2, InElem & InElem2, OutErr | OutErr2, InErr & InErr2, unknown, InDone & InDone2, Env | Env2>;
|
|
251
329
|
};
|
|
252
330
|
/**
|
|
@@ -261,7 +339,29 @@ export declare const concatMap: {
|
|
|
261
339
|
* @category utils
|
|
262
340
|
*/
|
|
263
341
|
export declare const concatMapWith: {
|
|
342
|
+
/**
|
|
343
|
+
* Returns a new channel whose outputs are fed to the specified factory
|
|
344
|
+
* function, which creates new channels in response. These new channels are
|
|
345
|
+
* sequentially concatenated together, and all their outputs appear as outputs
|
|
346
|
+
* of the newly returned channel. The provided merging function is used to
|
|
347
|
+
* merge the terminal values of all channels into the single terminal value of
|
|
348
|
+
* the returned channel.
|
|
349
|
+
*
|
|
350
|
+
* @since 2.0.0
|
|
351
|
+
* @category utils
|
|
352
|
+
*/
|
|
264
353
|
<OutElem, OutElem2, InElem2, OutErr2, InErr2, OutDone, InDone2, Env2, OutDone2, OutDone3>(f: (o: OutElem) => Channel<OutElem2, InElem2, OutErr2, InErr2, OutDone, InDone2, Env2>, g: (o: OutDone, o1: OutDone) => OutDone, h: (o: OutDone, o2: OutDone2) => OutDone3): <Env, InErr, InElem, InDone, OutErr>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env>) => Channel<OutElem2, InElem & InElem2, OutErr2 | OutErr, InErr & InErr2, OutDone3, InDone & InDone2, Env2 | Env>;
|
|
354
|
+
/**
|
|
355
|
+
* Returns a new channel whose outputs are fed to the specified factory
|
|
356
|
+
* function, which creates new channels in response. These new channels are
|
|
357
|
+
* sequentially concatenated together, and all their outputs appear as outputs
|
|
358
|
+
* of the newly returned channel. The provided merging function is used to
|
|
359
|
+
* merge the terminal values of all channels into the single terminal value of
|
|
360
|
+
* the returned channel.
|
|
361
|
+
*
|
|
362
|
+
* @since 2.0.0
|
|
363
|
+
* @category utils
|
|
364
|
+
*/
|
|
265
365
|
<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env, OutElem2, InElem2, OutErr2, InErr2, OutDone, InDone2, Env2, OutDone3>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env>, f: (o: OutElem) => Channel<OutElem2, InElem2, OutErr2, InErr2, OutDone, InDone2, Env2>, g: (o: OutDone, o1: OutDone) => OutDone, h: (o: OutDone, o2: OutDone2) => OutDone3): Channel<OutElem2, InElem & InElem2, OutErr | OutErr2, InErr & InErr2, OutDone3, InDone & InDone2, Env | Env2>;
|
|
266
366
|
};
|
|
267
367
|
/**
|
|
@@ -276,7 +376,29 @@ export declare const concatMapWith: {
|
|
|
276
376
|
* @category utils
|
|
277
377
|
*/
|
|
278
378
|
export declare const concatMapWithCustom: {
|
|
379
|
+
/**
|
|
380
|
+
* Returns a new channel whose outputs are fed to the specified factory
|
|
381
|
+
* function, which creates new channels in response. These new channels are
|
|
382
|
+
* sequentially concatenated together, and all their outputs appear as outputs
|
|
383
|
+
* of the newly returned channel. The provided merging function is used to
|
|
384
|
+
* merge the terminal values of all channels into the single terminal value of
|
|
385
|
+
* the returned channel.
|
|
386
|
+
*
|
|
387
|
+
* @since 2.0.0
|
|
388
|
+
* @category utils
|
|
389
|
+
*/
|
|
279
390
|
<OutElem, OutElem2, InElem2, OutErr2, InErr2, OutDone, InDone2, Env2, OutDone2, OutDone3>(f: (o: OutElem) => Channel<OutElem2, InElem2, OutErr2, InErr2, OutDone, InDone2, Env2>, g: (o: OutDone, o1: OutDone) => OutDone, h: (o: OutDone, o2: OutDone2) => OutDone3, onPull: (upstreamPullRequest: UpstreamPullRequest.UpstreamPullRequest<OutElem>) => UpstreamPullStrategy.UpstreamPullStrategy<OutElem2>, onEmit: (elem: OutElem2) => ChildExecutorDecision.ChildExecutorDecision): <Env, InErr, InElem, InDone, OutErr>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env>) => Channel<OutElem2, InElem & InElem2, OutErr2 | OutErr, InErr & InErr2, OutDone3, InDone & InDone2, Env2 | Env>;
|
|
391
|
+
/**
|
|
392
|
+
* Returns a new channel whose outputs are fed to the specified factory
|
|
393
|
+
* function, which creates new channels in response. These new channels are
|
|
394
|
+
* sequentially concatenated together, and all their outputs appear as outputs
|
|
395
|
+
* of the newly returned channel. The provided merging function is used to
|
|
396
|
+
* merge the terminal values of all channels into the single terminal value of
|
|
397
|
+
* the returned channel.
|
|
398
|
+
*
|
|
399
|
+
* @since 2.0.0
|
|
400
|
+
* @category utils
|
|
401
|
+
*/
|
|
280
402
|
<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env, OutElem2, InElem2, OutErr2, InErr2, OutDone, InDone2, Env2, OutDone3>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env>, f: (o: OutElem) => Channel<OutElem2, InElem2, OutErr2, InErr2, OutDone, InDone2, Env2>, g: (o: OutDone, o1: OutDone) => OutDone, h: (o: OutDone, o2: OutDone2) => OutDone3, onPull: (upstreamPullRequest: UpstreamPullRequest.UpstreamPullRequest<OutElem>) => UpstreamPullStrategy.UpstreamPullStrategy<OutElem2>, onEmit: (elem: OutElem2) => ChildExecutorDecision.ChildExecutorDecision): Channel<OutElem2, InElem & InElem2, OutErr | OutErr2, InErr & InErr2, OutDone3, InDone & InDone2, Env | Env2>;
|
|
281
403
|
};
|
|
282
404
|
/**
|
|
@@ -287,7 +409,21 @@ export declare const concatMapWithCustom: {
|
|
|
287
409
|
* @category utils
|
|
288
410
|
*/
|
|
289
411
|
export declare const collect: {
|
|
412
|
+
/**
|
|
413
|
+
* Returns a new channel, which is the same as this one, except its outputs
|
|
414
|
+
* are filtered and transformed by the specified partial function.
|
|
415
|
+
*
|
|
416
|
+
* @since 2.0.0
|
|
417
|
+
* @category utils
|
|
418
|
+
*/
|
|
290
419
|
<OutElem, OutElem2>(pf: (o: OutElem) => Option.Option<OutElem2>): <InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, unknown, never, unknown, void, unknown, never>) => Channel<OutElem2, InElem, OutErr, InErr, OutDone, InDone, Env>;
|
|
420
|
+
/**
|
|
421
|
+
* Returns a new channel, which is the same as this one, except its outputs
|
|
422
|
+
* are filtered and transformed by the specified partial function.
|
|
423
|
+
*
|
|
424
|
+
* @since 2.0.0
|
|
425
|
+
* @category utils
|
|
426
|
+
*/
|
|
291
427
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, pf: (o: OutElem) => Option.Option<OutElem2>): Channel<OutElem2, InElem, OutErr, InErr, OutDone, InDone, Env>;
|
|
292
428
|
};
|
|
293
429
|
/**
|
|
@@ -307,7 +443,21 @@ export declare const concatOut: <OutElem, InElem, OutErr, InErr, InDone, Env, Ou
|
|
|
307
443
|
* @category utils
|
|
308
444
|
*/
|
|
309
445
|
export declare const mapInput: {
|
|
446
|
+
/**
|
|
447
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
448
|
+
* function to the input channel's done value.
|
|
449
|
+
*
|
|
450
|
+
* @since 2.0.0
|
|
451
|
+
* @category utils
|
|
452
|
+
*/
|
|
310
453
|
<InDone0, InDone>(f: (a: InDone0) => InDone): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone0, Env>;
|
|
454
|
+
/**
|
|
455
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
456
|
+
* function to the input channel's done value.
|
|
457
|
+
*
|
|
458
|
+
* @since 2.0.0
|
|
459
|
+
* @category utils
|
|
460
|
+
*/
|
|
311
461
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, InDone0>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (a: InDone0) => InDone): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone0, Env>;
|
|
312
462
|
};
|
|
313
463
|
/**
|
|
@@ -318,7 +468,21 @@ export declare const mapInput: {
|
|
|
318
468
|
* @category utils
|
|
319
469
|
*/
|
|
320
470
|
export declare const mapInputEffect: {
|
|
471
|
+
/**
|
|
472
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
473
|
+
* effectual function to the input channel's done value.
|
|
474
|
+
*
|
|
475
|
+
* @since 2.0.0
|
|
476
|
+
* @category utils
|
|
477
|
+
*/
|
|
321
478
|
<InDone0, InDone, InErr, Env1>(f: (i: InDone0) => Effect.Effect<InDone, InErr, Env1>): <OutElem, InElem, OutErr, OutDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone0, Env1 | Env>;
|
|
479
|
+
/**
|
|
480
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
481
|
+
* effectual function to the input channel's done value.
|
|
482
|
+
*
|
|
483
|
+
* @since 2.0.0
|
|
484
|
+
* @category utils
|
|
485
|
+
*/
|
|
322
486
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, InDone0, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (i: InDone0) => Effect.Effect<InDone, InErr, Env1>): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone0, Env | Env1>;
|
|
323
487
|
};
|
|
324
488
|
/**
|
|
@@ -329,7 +493,21 @@ export declare const mapInputEffect: {
|
|
|
329
493
|
* @category utils
|
|
330
494
|
*/
|
|
331
495
|
export declare const mapInputError: {
|
|
496
|
+
/**
|
|
497
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
498
|
+
* function to the input channel's error value.
|
|
499
|
+
*
|
|
500
|
+
* @since 2.0.0
|
|
501
|
+
* @category utils
|
|
502
|
+
*/
|
|
332
503
|
<InErr0, InErr>(f: (a: InErr0) => InErr): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr0, OutDone, InDone, Env>;
|
|
504
|
+
/**
|
|
505
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
506
|
+
* function to the input channel's error value.
|
|
507
|
+
*
|
|
508
|
+
* @since 2.0.0
|
|
509
|
+
* @category utils
|
|
510
|
+
*/
|
|
333
511
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, InErr0>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (a: InErr0) => InErr): Channel<OutElem, InElem, OutErr, InErr0, OutDone, InDone, Env>;
|
|
334
512
|
};
|
|
335
513
|
/**
|
|
@@ -340,7 +518,21 @@ export declare const mapInputError: {
|
|
|
340
518
|
* @category utils
|
|
341
519
|
*/
|
|
342
520
|
export declare const mapInputErrorEffect: {
|
|
521
|
+
/**
|
|
522
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
523
|
+
* effectual function to the input channel's error value.
|
|
524
|
+
*
|
|
525
|
+
* @since 2.0.0
|
|
526
|
+
* @category utils
|
|
527
|
+
*/
|
|
343
528
|
<InErr0, InDone, InErr, Env1>(f: (error: InErr0) => Effect.Effect<InDone, InErr, Env1>): <OutElem, InElem, OutErr, OutDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr0, OutDone, InDone, Env1 | Env>;
|
|
529
|
+
/**
|
|
530
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
531
|
+
* effectual function to the input channel's error value.
|
|
532
|
+
*
|
|
533
|
+
* @since 2.0.0
|
|
534
|
+
* @category utils
|
|
535
|
+
*/
|
|
344
536
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, InErr0, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (error: InErr0) => Effect.Effect<InDone, InErr, Env1>): Channel<OutElem, InElem, OutErr, InErr0, OutDone, InDone, Env | Env1>;
|
|
345
537
|
};
|
|
346
538
|
/**
|
|
@@ -351,7 +543,21 @@ export declare const mapInputErrorEffect: {
|
|
|
351
543
|
* @category utils
|
|
352
544
|
*/
|
|
353
545
|
export declare const mapInputIn: {
|
|
546
|
+
/**
|
|
547
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
548
|
+
* function to the input channel's output elements.
|
|
549
|
+
*
|
|
550
|
+
* @since 2.0.0
|
|
551
|
+
* @category utils
|
|
552
|
+
*/
|
|
354
553
|
<InElem0, InElem>(f: (a: InElem0) => InElem): <OutElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem0, OutErr, InErr, OutDone, InDone, Env>;
|
|
554
|
+
/**
|
|
555
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
556
|
+
* function to the input channel's output elements.
|
|
557
|
+
*
|
|
558
|
+
* @since 2.0.0
|
|
559
|
+
* @category utils
|
|
560
|
+
*/
|
|
355
561
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, InElem0>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (a: InElem0) => InElem): Channel<OutElem, InElem0, OutErr, InErr, OutDone, InDone, Env>;
|
|
356
562
|
};
|
|
357
563
|
/**
|
|
@@ -362,7 +568,21 @@ export declare const mapInputIn: {
|
|
|
362
568
|
* @category utils
|
|
363
569
|
*/
|
|
364
570
|
export declare const mapInputInEffect: {
|
|
571
|
+
/**
|
|
572
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
573
|
+
* effectual function to the input channel's output elements.
|
|
574
|
+
*
|
|
575
|
+
* @since 2.0.0
|
|
576
|
+
* @category utils
|
|
577
|
+
*/
|
|
365
578
|
<InElem0, InElem, InErr, Env1>(f: (a: InElem0) => Effect.Effect<InElem, InErr, Env1>): <OutElem, OutErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem0, OutErr, InErr, OutDone, InDone, Env1 | Env>;
|
|
579
|
+
/**
|
|
580
|
+
* Returns a new channel which is the same as this one but applies the given
|
|
581
|
+
* effectual function to the input channel's output elements.
|
|
582
|
+
*
|
|
583
|
+
* @since 2.0.0
|
|
584
|
+
* @category utils
|
|
585
|
+
*/
|
|
366
586
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, InElem0, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (a: InElem0) => Effect.Effect<InElem, InErr, Env1>): Channel<OutElem, InElem0, OutErr, InErr, OutDone, InDone, Env | Env1>;
|
|
367
587
|
};
|
|
368
588
|
/**
|
|
@@ -394,7 +614,21 @@ export declare const drain: <OutElem, InElem, OutErr, InErr, OutDone, InDone, En
|
|
|
394
614
|
* @category utils
|
|
395
615
|
*/
|
|
396
616
|
export declare const embedInput: {
|
|
617
|
+
/**
|
|
618
|
+
* Returns a new channel which connects the given `AsyncInputProducer` as
|
|
619
|
+
* this channel's input.
|
|
620
|
+
*
|
|
621
|
+
* @since 2.0.0
|
|
622
|
+
* @category utils
|
|
623
|
+
*/
|
|
397
624
|
<InErr, InElem, InDone>(input: SingleProducerAsyncInput.AsyncInputProducer<InErr, InElem, InDone>): <OutElem, OutErr, OutDone, Env>(self: Channel<OutElem, unknown, OutErr, unknown, OutDone, unknown, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>;
|
|
625
|
+
/**
|
|
626
|
+
* Returns a new channel which connects the given `AsyncInputProducer` as
|
|
627
|
+
* this channel's input.
|
|
628
|
+
*
|
|
629
|
+
* @since 2.0.0
|
|
630
|
+
* @category utils
|
|
631
|
+
*/
|
|
398
632
|
<OutElem, OutErr, OutDone, Env, InErr, InElem, InDone>(self: Channel<OutElem, unknown, OutErr, unknown, OutDone, unknown, Env>, input: SingleProducerAsyncInput.AsyncInputProducer<InErr, InElem, InDone>): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>;
|
|
399
633
|
};
|
|
400
634
|
/**
|
|
@@ -414,7 +648,23 @@ export declare const emitCollect: <OutElem, InElem, OutErr, InErr, OutDone, InDo
|
|
|
414
648
|
* @category utils
|
|
415
649
|
*/
|
|
416
650
|
export declare const ensuring: {
|
|
651
|
+
/**
|
|
652
|
+
* Returns a new channel with an attached finalizer. The finalizer is
|
|
653
|
+
* guaranteed to be executed so long as the channel begins execution (and
|
|
654
|
+
* regardless of whether or not it completes).
|
|
655
|
+
*
|
|
656
|
+
* @since 2.0.0
|
|
657
|
+
* @category utils
|
|
658
|
+
*/
|
|
417
659
|
<Z, Env1>(finalizer: Effect.Effect<Z, never, Env1>): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env1 | Env>;
|
|
660
|
+
/**
|
|
661
|
+
* Returns a new channel with an attached finalizer. The finalizer is
|
|
662
|
+
* guaranteed to be executed so long as the channel begins execution (and
|
|
663
|
+
* regardless of whether or not it completes).
|
|
664
|
+
*
|
|
665
|
+
* @since 2.0.0
|
|
666
|
+
* @category utils
|
|
667
|
+
*/
|
|
418
668
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, Z, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, finalizer: Effect.Effect<Z, never, Env1>): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env | Env1>;
|
|
419
669
|
};
|
|
420
670
|
/**
|
|
@@ -426,7 +676,23 @@ export declare const ensuring: {
|
|
|
426
676
|
* @category utils
|
|
427
677
|
*/
|
|
428
678
|
export declare const ensuringWith: {
|
|
679
|
+
/**
|
|
680
|
+
* Returns a new channel with an attached finalizer. The finalizer is
|
|
681
|
+
* guaranteed to be executed so long as the channel begins execution (and
|
|
682
|
+
* regardless of whether or not it completes).
|
|
683
|
+
*
|
|
684
|
+
* @since 2.0.0
|
|
685
|
+
* @category utils
|
|
686
|
+
*/
|
|
429
687
|
<OutDone, OutErr, Env2>(finalizer: (e: Exit.Exit<OutDone, OutErr>) => Effect.Effect<unknown, never, Env2>): <OutElem, InElem, InErr, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env2 | Env>;
|
|
688
|
+
/**
|
|
689
|
+
* Returns a new channel with an attached finalizer. The finalizer is
|
|
690
|
+
* guaranteed to be executed so long as the channel begins execution (and
|
|
691
|
+
* regardless of whether or not it completes).
|
|
692
|
+
*
|
|
693
|
+
* @since 2.0.0
|
|
694
|
+
* @category utils
|
|
695
|
+
*/
|
|
430
696
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, Env2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, finalizer: (e: Exit.Exit<OutDone, OutErr>) => Effect.Effect<unknown, never, Env2>): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env | Env2>;
|
|
431
697
|
};
|
|
432
698
|
/**
|
|
@@ -498,7 +764,27 @@ export declare const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => Ch
|
|
|
498
764
|
* @category sequencing
|
|
499
765
|
*/
|
|
500
766
|
export declare const flatMap: {
|
|
767
|
+
/**
|
|
768
|
+
* Returns a new channel, which sequentially combines this channel, together
|
|
769
|
+
* with the provided factory function, which creates a second channel based on
|
|
770
|
+
* the terminal value of this channel. The result is a channel that will first
|
|
771
|
+
* perform the functions of this channel, before performing the functions of
|
|
772
|
+
* the created channel (including yielding its terminal value).
|
|
773
|
+
*
|
|
774
|
+
* @since 2.0.0
|
|
775
|
+
* @category sequencing
|
|
776
|
+
*/
|
|
501
777
|
<OutDone, OutElem1, InElem1, OutErr1, InErr1, OutDone2, InDone1, Env1>(f: (d: OutDone) => Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone2, InDone1, Env1>): <OutElem, InElem, OutErr, InErr, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, OutDone2, InDone & InDone1, Env1 | Env>;
|
|
778
|
+
/**
|
|
779
|
+
* Returns a new channel, which sequentially combines this channel, together
|
|
780
|
+
* with the provided factory function, which creates a second channel based on
|
|
781
|
+
* the terminal value of this channel. The result is a channel that will first
|
|
782
|
+
* perform the functions of this channel, before performing the functions of
|
|
783
|
+
* the created channel (including yielding its terminal value).
|
|
784
|
+
*
|
|
785
|
+
* @since 2.0.0
|
|
786
|
+
* @category sequencing
|
|
787
|
+
*/
|
|
502
788
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, OutDone2, InDone1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (d: OutDone) => Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone2, InDone1, Env1>): Channel<OutElem | OutElem1, InElem & InElem1, OutErr | OutErr1, InErr & InErr1, OutDone2, InDone & InDone1, Env | Env1>;
|
|
503
789
|
};
|
|
504
790
|
/**
|
|
@@ -517,10 +803,22 @@ export declare const flatten: <OutElem, InElem, OutErr, InErr, OutElem1, InElem1
|
|
|
517
803
|
* @category utils
|
|
518
804
|
*/
|
|
519
805
|
export declare const foldChannel: {
|
|
806
|
+
/**
|
|
807
|
+
* Folds over the result of this channel.
|
|
808
|
+
*
|
|
809
|
+
* @since 2.0.0
|
|
810
|
+
* @category utils
|
|
811
|
+
*/
|
|
520
812
|
<OutErr, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1, OutDone, OutElem2, InElem2, OutErr2, InErr2, OutDone2, InDone2, Env2>(options: {
|
|
521
813
|
readonly onFailure: (error: OutErr) => Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>;
|
|
522
814
|
readonly onSuccess: (done: OutDone) => Channel<OutElem2, InElem2, OutErr2, InErr2, OutDone2, InDone2, Env2>;
|
|
523
815
|
}): <Env, InErr, InElem, InDone, OutElem>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem2 | OutElem, InElem & InElem1 & InElem2, OutErr1 | OutErr2, InErr & InErr1 & InErr2, OutDone1 | OutDone2, InDone & InDone1 & InDone2, Env1 | Env2 | Env>;
|
|
816
|
+
/**
|
|
817
|
+
* Folds over the result of this channel.
|
|
818
|
+
*
|
|
819
|
+
* @since 2.0.0
|
|
820
|
+
* @category utils
|
|
821
|
+
*/
|
|
524
822
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1, OutElem2, InElem2, OutErr2, InErr2, OutDone2, InDone2, Env2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, options: {
|
|
525
823
|
readonly onFailure: (error: OutErr) => Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>;
|
|
526
824
|
readonly onSuccess: (done: OutDone) => Channel<OutElem2, InElem2, OutErr2, InErr2, OutDone2, InDone2, Env2>;
|
|
@@ -533,10 +831,22 @@ export declare const foldChannel: {
|
|
|
533
831
|
* @category utils
|
|
534
832
|
*/
|
|
535
833
|
export declare const foldCauseChannel: {
|
|
834
|
+
/**
|
|
835
|
+
* Folds over the result of this channel including any cause of termination.
|
|
836
|
+
*
|
|
837
|
+
* @since 2.0.0
|
|
838
|
+
* @category utils
|
|
839
|
+
*/
|
|
536
840
|
<OutErr, OutElem1, InElem1, OutErr2, InErr1, OutDone2, InDone1, Env1, OutDone, OutElem2, InElem2, OutErr3, InErr2, OutDone3, InDone2, Env2>(options: {
|
|
537
841
|
readonly onFailure: (c: Cause.Cause<OutErr>) => Channel<OutElem1, InElem1, OutErr2, InErr1, OutDone2, InDone1, Env1>;
|
|
538
842
|
readonly onSuccess: (o: OutDone) => Channel<OutElem2, InElem2, OutErr3, InErr2, OutDone3, InDone2, Env2>;
|
|
539
843
|
}): <Env, InErr, InElem, InDone, OutElem>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem2 | OutElem, InElem & InElem1 & InElem2, OutErr2 | OutErr3, InErr & InErr1 & InErr2, OutDone2 | OutDone3, InDone & InDone1 & InDone2, Env1 | Env2 | Env>;
|
|
844
|
+
/**
|
|
845
|
+
* Folds over the result of this channel including any cause of termination.
|
|
846
|
+
*
|
|
847
|
+
* @since 2.0.0
|
|
848
|
+
* @category utils
|
|
849
|
+
*/
|
|
540
850
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr2, InErr1, OutDone2, InDone1, Env1, OutElem2, InElem2, OutErr3, InErr2, OutDone3, InDone2, Env2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, options: {
|
|
541
851
|
readonly onFailure: (c: Cause.Cause<OutErr>) => Channel<OutElem1, InElem1, OutErr2, InErr1, OutDone2, InDone1, Env1>;
|
|
542
852
|
readonly onSuccess: (o: OutDone) => Channel<OutElem2, InElem2, OutErr3, InErr2, OutDone3, InDone2, Env2>;
|
|
@@ -609,7 +919,31 @@ export declare const identity: <Elem, Err, Done>() => Channel<Elem, Elem, Err, E
|
|
|
609
919
|
* @category utils
|
|
610
920
|
*/
|
|
611
921
|
export declare const interruptWhen: {
|
|
922
|
+
/**
|
|
923
|
+
* Returns a new channel, which is the same as this one, except it will be
|
|
924
|
+
* interrupted when the specified effect completes. If the effect completes
|
|
925
|
+
* successfully before the underlying channel is done, then the returned
|
|
926
|
+
* channel will yield the success value of the effect as its terminal value.
|
|
927
|
+
* On the other hand, if the underlying channel finishes first, then the
|
|
928
|
+
* returned channel will yield the success value of the underlying channel as
|
|
929
|
+
* its terminal value.
|
|
930
|
+
*
|
|
931
|
+
* @since 2.0.0
|
|
932
|
+
* @category utils
|
|
933
|
+
*/
|
|
612
934
|
<OutDone1, OutErr1, Env1>(effect: Effect.Effect<OutDone1, OutErr1, Env1>): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr1 | OutErr, InErr, OutDone1 | OutDone, InDone, Env1 | Env>;
|
|
935
|
+
/**
|
|
936
|
+
* Returns a new channel, which is the same as this one, except it will be
|
|
937
|
+
* interrupted when the specified effect completes. If the effect completes
|
|
938
|
+
* successfully before the underlying channel is done, then the returned
|
|
939
|
+
* channel will yield the success value of the effect as its terminal value.
|
|
940
|
+
* On the other hand, if the underlying channel finishes first, then the
|
|
941
|
+
* returned channel will yield the success value of the underlying channel as
|
|
942
|
+
* its terminal value.
|
|
943
|
+
*
|
|
944
|
+
* @since 2.0.0
|
|
945
|
+
* @category utils
|
|
946
|
+
*/
|
|
613
947
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutDone1, OutErr1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, effect: Effect.Effect<OutDone1, OutErr1, Env1>): Channel<OutElem, InElem, OutErr | OutErr1, InErr, OutDone | OutDone1, InDone, Env | Env1>;
|
|
614
948
|
};
|
|
615
949
|
/**
|
|
@@ -624,7 +958,29 @@ export declare const interruptWhen: {
|
|
|
624
958
|
* @category utils
|
|
625
959
|
*/
|
|
626
960
|
export declare const interruptWhenDeferred: {
|
|
961
|
+
/**
|
|
962
|
+
* Returns a new channel, which is the same as this one, except it will be
|
|
963
|
+
* interrupted when the specified deferred is completed. If the deferred is
|
|
964
|
+
* completed before the underlying channel is done, then the returned channel
|
|
965
|
+
* will yield the value of the deferred. Otherwise, if the underlying channel
|
|
966
|
+
* finishes first, then the returned channel will yield the value of the
|
|
967
|
+
* underlying channel.
|
|
968
|
+
*
|
|
969
|
+
* @since 2.0.0
|
|
970
|
+
* @category utils
|
|
971
|
+
*/
|
|
627
972
|
<OutDone1, OutErr1>(deferred: Deferred.Deferred<OutDone1, OutErr1>): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr1 | OutErr, InErr, OutDone1 | OutDone, InDone, Env>;
|
|
973
|
+
/**
|
|
974
|
+
* Returns a new channel, which is the same as this one, except it will be
|
|
975
|
+
* interrupted when the specified deferred is completed. If the deferred is
|
|
976
|
+
* completed before the underlying channel is done, then the returned channel
|
|
977
|
+
* will yield the value of the deferred. Otherwise, if the underlying channel
|
|
978
|
+
* finishes first, then the returned channel will yield the value of the
|
|
979
|
+
* underlying channel.
|
|
980
|
+
*
|
|
981
|
+
* @since 2.0.0
|
|
982
|
+
* @category utils
|
|
983
|
+
*/
|
|
628
984
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutDone1, OutErr1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, deferred: Deferred.Deferred<OutDone1, OutErr1>): Channel<OutElem, InElem, OutErr | OutErr1, InErr, OutDone | OutDone1, InDone, Env>;
|
|
629
985
|
};
|
|
630
986
|
/**
|
|
@@ -636,7 +992,23 @@ export declare const interruptWhenDeferred: {
|
|
|
636
992
|
* @category mapping
|
|
637
993
|
*/
|
|
638
994
|
export declare const map: {
|
|
995
|
+
/**
|
|
996
|
+
* Returns a new channel, which is the same as this one, except the terminal
|
|
997
|
+
* value of the returned channel is created by applying the specified function
|
|
998
|
+
* to the terminal value of this channel.
|
|
999
|
+
*
|
|
1000
|
+
* @since 2.0.0
|
|
1001
|
+
* @category mapping
|
|
1002
|
+
*/
|
|
639
1003
|
<OutDone, OutDone2>(f: (out: OutDone) => OutDone2): <OutElem, InElem, OutErr, InErr, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env>;
|
|
1004
|
+
/**
|
|
1005
|
+
* Returns a new channel, which is the same as this one, except the terminal
|
|
1006
|
+
* value of the returned channel is created by applying the specified function
|
|
1007
|
+
* to the terminal value of this channel.
|
|
1008
|
+
*
|
|
1009
|
+
* @since 2.0.0
|
|
1010
|
+
* @category mapping
|
|
1011
|
+
*/
|
|
640
1012
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutDone2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (out: OutDone) => OutDone2): Channel<OutElem, InElem, OutErr, InErr, OutDone2, InDone, Env>;
|
|
641
1013
|
};
|
|
642
1014
|
/**
|
|
@@ -648,7 +1020,23 @@ export declare const map: {
|
|
|
648
1020
|
* @category mapping
|
|
649
1021
|
*/
|
|
650
1022
|
export declare const mapEffect: {
|
|
1023
|
+
/**
|
|
1024
|
+
* Returns a new channel, which is the same as this one, except the terminal
|
|
1025
|
+
* value of the returned channel is created by applying the specified
|
|
1026
|
+
* effectful function to the terminal value of this channel.
|
|
1027
|
+
*
|
|
1028
|
+
* @since 2.0.0
|
|
1029
|
+
* @category mapping
|
|
1030
|
+
*/
|
|
651
1031
|
<OutDone, OutDone1, OutErr1, Env1>(f: (o: OutDone) => Effect.Effect<OutDone1, OutErr1, Env1>): <OutElem, InElem, OutErr, InErr, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr1 | OutErr, InErr, OutDone1, InDone, Env1 | Env>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Returns a new channel, which is the same as this one, except the terminal
|
|
1034
|
+
* value of the returned channel is created by applying the specified
|
|
1035
|
+
* effectful function to the terminal value of this channel.
|
|
1036
|
+
*
|
|
1037
|
+
* @since 2.0.0
|
|
1038
|
+
* @category mapping
|
|
1039
|
+
*/
|
|
652
1040
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutDone1, OutErr1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (o: OutDone) => Effect.Effect<OutDone1, OutErr1, Env1>): Channel<OutElem, InElem, OutErr | OutErr1, InErr, OutDone1, InDone, Env | Env1>;
|
|
653
1041
|
};
|
|
654
1042
|
/**
|
|
@@ -660,7 +1048,23 @@ export declare const mapEffect: {
|
|
|
660
1048
|
* @category mapping
|
|
661
1049
|
*/
|
|
662
1050
|
export declare const mapError: {
|
|
1051
|
+
/**
|
|
1052
|
+
* Returns a new channel, which is the same as this one, except the failure
|
|
1053
|
+
* value of the returned channel is created by applying the specified function
|
|
1054
|
+
* to the failure value of this channel.
|
|
1055
|
+
*
|
|
1056
|
+
* @since 2.0.0
|
|
1057
|
+
* @category mapping
|
|
1058
|
+
*/
|
|
663
1059
|
<OutErr, OutErr2>(f: (err: OutErr) => OutErr2): <OutElem, InElem, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr2, InErr, OutDone, InDone, Env>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Returns a new channel, which is the same as this one, except the failure
|
|
1062
|
+
* value of the returned channel is created by applying the specified function
|
|
1063
|
+
* to the failure value of this channel.
|
|
1064
|
+
*
|
|
1065
|
+
* @since 2.0.0
|
|
1066
|
+
* @category mapping
|
|
1067
|
+
*/
|
|
664
1068
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutErr2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (err: OutErr) => OutErr2): Channel<OutElem, InElem, OutErr2, InErr, OutDone, InDone, Env>;
|
|
665
1069
|
};
|
|
666
1070
|
/**
|
|
@@ -671,7 +1075,21 @@ export declare const mapError: {
|
|
|
671
1075
|
* @category mapping
|
|
672
1076
|
*/
|
|
673
1077
|
export declare const mapErrorCause: {
|
|
1078
|
+
/**
|
|
1079
|
+
* A more powerful version of `mapError` which also surfaces the `Cause`
|
|
1080
|
+
* of the channel failure.
|
|
1081
|
+
*
|
|
1082
|
+
* @since 2.0.0
|
|
1083
|
+
* @category mapping
|
|
1084
|
+
*/
|
|
674
1085
|
<OutErr, OutErr2>(f: (cause: Cause.Cause<OutErr>) => Cause.Cause<OutErr2>): <OutElem, InElem, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr2, InErr, OutDone, InDone, Env>;
|
|
1086
|
+
/**
|
|
1087
|
+
* A more powerful version of `mapError` which also surfaces the `Cause`
|
|
1088
|
+
* of the channel failure.
|
|
1089
|
+
*
|
|
1090
|
+
* @since 2.0.0
|
|
1091
|
+
* @category mapping
|
|
1092
|
+
*/
|
|
675
1093
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutErr2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (cause: Cause.Cause<OutErr>) => Cause.Cause<OutErr2>): Channel<OutElem, InElem, OutErr2, InErr, OutDone, InDone, Env>;
|
|
676
1094
|
};
|
|
677
1095
|
/**
|
|
@@ -681,7 +1099,19 @@ export declare const mapErrorCause: {
|
|
|
681
1099
|
* @category mapping
|
|
682
1100
|
*/
|
|
683
1101
|
export declare const mapOut: {
|
|
1102
|
+
/**
|
|
1103
|
+
* Maps the output of this channel using the specified function.
|
|
1104
|
+
*
|
|
1105
|
+
* @since 2.0.0
|
|
1106
|
+
* @category mapping
|
|
1107
|
+
*/
|
|
684
1108
|
<OutElem, OutElem2>(f: (o: OutElem) => OutElem2): <InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem2, InElem, OutErr, InErr, OutDone, InDone, Env>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Maps the output of this channel using the specified function.
|
|
1111
|
+
*
|
|
1112
|
+
* @since 2.0.0
|
|
1113
|
+
* @category mapping
|
|
1114
|
+
*/
|
|
685
1115
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (o: OutElem) => OutElem2): Channel<OutElem2, InElem, OutErr, InErr, OutDone, InDone, Env>;
|
|
686
1116
|
};
|
|
687
1117
|
/**
|
|
@@ -692,7 +1122,21 @@ export declare const mapOut: {
|
|
|
692
1122
|
* @category mapping
|
|
693
1123
|
*/
|
|
694
1124
|
export declare const mapOutEffect: {
|
|
1125
|
+
/**
|
|
1126
|
+
* Creates a channel that is like this channel but the given effectful function
|
|
1127
|
+
* gets applied to each emitted output element.
|
|
1128
|
+
*
|
|
1129
|
+
* @since 2.0.0
|
|
1130
|
+
* @category mapping
|
|
1131
|
+
*/
|
|
695
1132
|
<OutElem, OutElem1, OutErr1, Env1>(f: (o: OutElem) => Effect.Effect<OutElem1, OutErr1, Env1>): <InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1, InElem, OutErr1 | OutErr, InErr, OutDone, InDone, Env1 | Env>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Creates a channel that is like this channel but the given effectful function
|
|
1135
|
+
* gets applied to each emitted output element.
|
|
1136
|
+
*
|
|
1137
|
+
* @since 2.0.0
|
|
1138
|
+
* @category mapping
|
|
1139
|
+
*/
|
|
696
1140
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, OutErr1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (o: OutElem) => Effect.Effect<OutElem1, OutErr1, Env1>): Channel<OutElem1, InElem, OutErr | OutErr1, InErr, OutDone, InDone, Env | Env1>;
|
|
697
1141
|
};
|
|
698
1142
|
/**
|
|
@@ -704,7 +1148,23 @@ export declare const mapOutEffect: {
|
|
|
704
1148
|
* @category mapping
|
|
705
1149
|
*/
|
|
706
1150
|
export declare const mapOutEffectPar: {
|
|
1151
|
+
/**
|
|
1152
|
+
* Creates a channel that is like this channel but the given ZIO function gets
|
|
1153
|
+
* applied to each emitted output element, taking `n` elements at once and
|
|
1154
|
+
* mapping them in parallel.
|
|
1155
|
+
*
|
|
1156
|
+
* @since 2.0.0
|
|
1157
|
+
* @category mapping
|
|
1158
|
+
*/
|
|
707
1159
|
<OutElem, OutElem1, OutErr1, Env1>(f: (o: OutElem) => Effect.Effect<OutElem1, OutErr1, Env1>, n: number): <InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1, InElem, OutErr1 | OutErr, InErr, OutDone, InDone, Env1 | Env>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Creates a channel that is like this channel but the given ZIO function gets
|
|
1162
|
+
* applied to each emitted output element, taking `n` elements at once and
|
|
1163
|
+
* mapping them in parallel.
|
|
1164
|
+
*
|
|
1165
|
+
* @since 2.0.0
|
|
1166
|
+
* @category mapping
|
|
1167
|
+
*/
|
|
708
1168
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, OutErr1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (o: OutElem) => Effect.Effect<OutElem1, OutErr1, Env1>, n: number): Channel<OutElem1, InElem, OutErr | OutErr1, InErr, OutDone, InDone, Env | Env1>;
|
|
709
1169
|
};
|
|
710
1170
|
/**
|
|
@@ -747,11 +1207,33 @@ export declare const mergeAllWith: ({ bufferSize, concurrency, mergeStrategy }:
|
|
|
747
1207
|
* @category mapping
|
|
748
1208
|
*/
|
|
749
1209
|
export declare const mergeMap: {
|
|
1210
|
+
/**
|
|
1211
|
+
* Returns a new channel which creates a new channel for each emitted element
|
|
1212
|
+
* and merges some of them together. Different merge strategies control what
|
|
1213
|
+
* happens if there are more than the given maximum number of channels gets
|
|
1214
|
+
* created. See `Channel.mergeAll`.
|
|
1215
|
+
*
|
|
1216
|
+
* @param n The maximum number of channels to merge.
|
|
1217
|
+
* @param f The function that creates a new channel from each emitted element.
|
|
1218
|
+
* @since 2.0.0
|
|
1219
|
+
* @category mapping
|
|
1220
|
+
*/
|
|
750
1221
|
<OutElem, OutElem1, InElem1, OutErr1, InErr1, Z, InDone1, Env1>(f: (outElem: OutElem) => Channel<OutElem1, InElem1, OutErr1, InErr1, Z, InDone1, Env1>, options: {
|
|
751
1222
|
readonly concurrency: number | "unbounded";
|
|
752
1223
|
readonly bufferSize?: number | undefined;
|
|
753
1224
|
readonly mergeStrategy?: MergeStrategy.MergeStrategy | undefined;
|
|
754
1225
|
}): <InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, unknown, InDone & InDone1, Env1 | Env>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Returns a new channel which creates a new channel for each emitted element
|
|
1228
|
+
* and merges some of them together. Different merge strategies control what
|
|
1229
|
+
* happens if there are more than the given maximum number of channels gets
|
|
1230
|
+
* created. See `Channel.mergeAll`.
|
|
1231
|
+
*
|
|
1232
|
+
* @param n The maximum number of channels to merge.
|
|
1233
|
+
* @param f The function that creates a new channel from each emitted element.
|
|
1234
|
+
* @since 2.0.0
|
|
1235
|
+
* @category mapping
|
|
1236
|
+
*/
|
|
755
1237
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, Z, InDone1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (outElem: OutElem) => Channel<OutElem1, InElem1, OutErr1, InErr1, Z, InDone1, Env1>, options: {
|
|
756
1238
|
readonly concurrency: number | "unbounded";
|
|
757
1239
|
readonly bufferSize?: number | undefined;
|
|
@@ -766,7 +1248,21 @@ export declare const mergeMap: {
|
|
|
766
1248
|
* @category utils
|
|
767
1249
|
*/
|
|
768
1250
|
export declare const mergeOut: {
|
|
1251
|
+
/**
|
|
1252
|
+
* Returns a new channel which merges a number of channels emitted by this
|
|
1253
|
+
* channel using the back pressuring merge strategy. See `Channel.mergeAll`.
|
|
1254
|
+
*
|
|
1255
|
+
* @since 2.0.0
|
|
1256
|
+
* @category utils
|
|
1257
|
+
*/
|
|
769
1258
|
(n: number): <OutElem1, InElem1, OutErr1, InErr1, Z, InDone1, Env1, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<Channel<OutElem1, InElem1, OutErr1, InErr1, Z, InDone1, Env1>, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, unknown, InDone & InDone1, Env1 | Env>;
|
|
1259
|
+
/**
|
|
1260
|
+
* Returns a new channel which merges a number of channels emitted by this
|
|
1261
|
+
* channel using the back pressuring merge strategy. See `Channel.mergeAll`.
|
|
1262
|
+
*
|
|
1263
|
+
* @since 2.0.0
|
|
1264
|
+
* @category utils
|
|
1265
|
+
*/
|
|
770
1266
|
<OutElem1, InElem1, OutErr1, InErr1, Z, InDone1, Env1, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<Channel<OutElem1, InElem1, OutErr1, InErr1, Z, InDone1, Env1>, InElem, OutErr, InErr, OutDone, InDone, Env>, n: number): Channel<OutElem1, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, unknown, InDone & InDone1, Env1 | Env>;
|
|
771
1267
|
};
|
|
772
1268
|
/**
|
|
@@ -779,7 +1275,25 @@ export declare const mergeOut: {
|
|
|
779
1275
|
* @category utils
|
|
780
1276
|
*/
|
|
781
1277
|
export declare const mergeOutWith: {
|
|
1278
|
+
/**
|
|
1279
|
+
* Returns a new channel which merges a number of channels emitted by this
|
|
1280
|
+
* channel using the back pressuring merge strategy and uses a given function
|
|
1281
|
+
* to merge each completed subchannel's result value. See
|
|
1282
|
+
* `Channel.mergeAll`.
|
|
1283
|
+
*
|
|
1284
|
+
* @since 2.0.0
|
|
1285
|
+
* @category utils
|
|
1286
|
+
*/
|
|
782
1287
|
<OutDone1>(n: number, f: (o1: OutDone1, o2: OutDone1) => OutDone1): <OutElem1, InElem1, OutErr1, InErr1, InDone1, Env1, InElem, OutErr, InErr, InDone, Env>(self: Channel<Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>, InElem, OutErr, InErr, OutDone1, InDone, Env>) => Channel<OutElem1, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, OutDone1, InDone & InDone1, Env1 | Env>;
|
|
1288
|
+
/**
|
|
1289
|
+
* Returns a new channel which merges a number of channels emitted by this
|
|
1290
|
+
* channel using the back pressuring merge strategy and uses a given function
|
|
1291
|
+
* to merge each completed subchannel's result value. See
|
|
1292
|
+
* `Channel.mergeAll`.
|
|
1293
|
+
*
|
|
1294
|
+
* @since 2.0.0
|
|
1295
|
+
* @category utils
|
|
1296
|
+
*/
|
|
783
1297
|
<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1, InElem, OutErr, InErr, InDone, Env>(self: Channel<Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>, InElem, OutErr, InErr, OutDone1, InDone, Env>, n: number, f: (o1: OutDone1, o2: OutDone1) => OutDone1): Channel<OutElem1, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, OutDone1, InDone & InDone1, Env1 | Env>;
|
|
784
1298
|
};
|
|
785
1299
|
/**
|
|
@@ -792,11 +1306,29 @@ export declare const mergeOutWith: {
|
|
|
792
1306
|
* @category utils
|
|
793
1307
|
*/
|
|
794
1308
|
export declare const mergeWith: {
|
|
1309
|
+
/**
|
|
1310
|
+
* Returns a new channel, which is the merge of this channel and the specified
|
|
1311
|
+
* channel, where the behavior of the returned channel on left or right early
|
|
1312
|
+
* termination is decided by the specified `leftDone` and `rightDone` merge
|
|
1313
|
+
* decisions.
|
|
1314
|
+
*
|
|
1315
|
+
* @since 2.0.0
|
|
1316
|
+
* @category utils
|
|
1317
|
+
*/
|
|
795
1318
|
<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1, OutDone, OutErr, OutErr2, OutDone2, OutErr3, OutDone3>(options: {
|
|
796
1319
|
readonly other: Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>;
|
|
797
1320
|
readonly onSelfDone: (exit: Exit.Exit<OutDone, OutErr>) => MergeDecision.MergeDecision<Env1, OutErr1, OutDone1, OutErr2, OutDone2>;
|
|
798
1321
|
readonly onOtherDone: (ex: Exit.Exit<OutDone1, OutErr1>) => MergeDecision.MergeDecision<Env1, OutErr, OutDone, OutErr3, OutDone3>;
|
|
799
1322
|
}): <Env, InErr, InElem, InDone, OutElem>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem, InElem & InElem1, OutErr2 | OutErr3, InErr & InErr1, OutDone2 | OutDone3, InDone & InDone1, Env1 | Env>;
|
|
1323
|
+
/**
|
|
1324
|
+
* Returns a new channel, which is the merge of this channel and the specified
|
|
1325
|
+
* channel, where the behavior of the returned channel on left or right early
|
|
1326
|
+
* termination is decided by the specified `leftDone` and `rightDone` merge
|
|
1327
|
+
* decisions.
|
|
1328
|
+
*
|
|
1329
|
+
* @since 2.0.0
|
|
1330
|
+
* @category utils
|
|
1331
|
+
*/
|
|
800
1332
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1, OutErr2, OutDone2, OutErr3, OutDone3>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, options: {
|
|
801
1333
|
readonly other: Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>;
|
|
802
1334
|
readonly onSelfDone: (exit: Exit.Exit<OutDone, OutErr>) => MergeDecision.MergeDecision<Env1, OutErr1, OutDone1, OutErr2, OutDone2>;
|
|
@@ -818,7 +1350,21 @@ export declare const never: Channel<never, unknown, never, unknown, never, unkno
|
|
|
818
1350
|
* @category error handling
|
|
819
1351
|
*/
|
|
820
1352
|
export declare const orDie: {
|
|
1353
|
+
/**
|
|
1354
|
+
* Translates channel failure into death of the fiber, making all failures
|
|
1355
|
+
* unchecked and not a part of the type of the channel.
|
|
1356
|
+
*
|
|
1357
|
+
* @since 2.0.0
|
|
1358
|
+
* @category error handling
|
|
1359
|
+
*/
|
|
821
1360
|
<E>(error: LazyArg<E>): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, never, InErr, OutDone, InDone, Env>;
|
|
1361
|
+
/**
|
|
1362
|
+
* Translates channel failure into death of the fiber, making all failures
|
|
1363
|
+
* unchecked and not a part of the type of the channel.
|
|
1364
|
+
*
|
|
1365
|
+
* @since 2.0.0
|
|
1366
|
+
* @category error handling
|
|
1367
|
+
*/
|
|
822
1368
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, E>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, error: LazyArg<E>): Channel<OutElem, InElem, never, InErr, OutDone, InDone, Env>;
|
|
823
1369
|
};
|
|
824
1370
|
/**
|
|
@@ -829,7 +1375,21 @@ export declare const orDie: {
|
|
|
829
1375
|
* @category error handling
|
|
830
1376
|
*/
|
|
831
1377
|
export declare const orDieWith: {
|
|
1378
|
+
/**
|
|
1379
|
+
* Keeps none of the errors, and terminates the fiber with them, using the
|
|
1380
|
+
* specified function to convert the `OutErr` into a defect.
|
|
1381
|
+
*
|
|
1382
|
+
* @since 2.0.0
|
|
1383
|
+
* @category error handling
|
|
1384
|
+
*/
|
|
832
1385
|
<OutErr>(f: (e: OutErr) => unknown): <OutElem, InElem, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, never, InErr, OutDone, InDone, Env>;
|
|
1386
|
+
/**
|
|
1387
|
+
* Keeps none of the errors, and terminates the fiber with them, using the
|
|
1388
|
+
* specified function to convert the `OutErr` into a defect.
|
|
1389
|
+
*
|
|
1390
|
+
* @since 2.0.0
|
|
1391
|
+
* @category error handling
|
|
1392
|
+
*/
|
|
833
1393
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (e: OutErr) => unknown): Channel<OutElem, InElem, never, InErr, OutDone, InDone, Env>;
|
|
834
1394
|
};
|
|
835
1395
|
/**
|
|
@@ -841,7 +1401,23 @@ export declare const orDieWith: {
|
|
|
841
1401
|
* @category error handling
|
|
842
1402
|
*/
|
|
843
1403
|
export declare const orElse: {
|
|
1404
|
+
/**
|
|
1405
|
+
* Returns a new channel that will perform the operations of this one, until
|
|
1406
|
+
* failure, and then it will switch over to the operations of the specified
|
|
1407
|
+
* fallback channel.
|
|
1408
|
+
*
|
|
1409
|
+
* @since 2.0.0
|
|
1410
|
+
* @category error handling
|
|
1411
|
+
*/
|
|
844
1412
|
<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(that: LazyArg<Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>>): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem, InElem & InElem1, OutErr1, InErr & InErr1, OutDone1 | OutDone, InDone & InDone1, Env1 | Env>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Returns a new channel that will perform the operations of this one, until
|
|
1415
|
+
* failure, and then it will switch over to the operations of the specified
|
|
1416
|
+
* fallback channel.
|
|
1417
|
+
*
|
|
1418
|
+
* @since 2.0.0
|
|
1419
|
+
* @category error handling
|
|
1420
|
+
*/
|
|
845
1421
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, that: LazyArg<Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>>): Channel<OutElem | OutElem1, InElem & InElem1, OutErr1, InErr & InErr1, OutDone | OutDone1, InDone & InDone1, Env | Env1>;
|
|
846
1422
|
};
|
|
847
1423
|
/**
|
|
@@ -854,7 +1430,25 @@ export declare const orElse: {
|
|
|
854
1430
|
* @category utils
|
|
855
1431
|
*/
|
|
856
1432
|
export declare const pipeTo: {
|
|
1433
|
+
/**
|
|
1434
|
+
* Returns a new channel that pipes the output of this channel into the
|
|
1435
|
+
* specified channel. The returned channel has the input type of this channel,
|
|
1436
|
+
* and the output type of the specified channel, terminating with the value of
|
|
1437
|
+
* the specified channel.
|
|
1438
|
+
*
|
|
1439
|
+
* @since 2.0.0
|
|
1440
|
+
* @category utils
|
|
1441
|
+
*/
|
|
857
1442
|
<OutElem2, OutElem, OutErr2, OutErr, OutDone2, OutDone, Env2>(that: Channel<OutElem2, OutElem, OutErr2, OutErr, OutDone2, OutDone, Env2>): <InElem, InErr, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem2, InElem, OutErr2, InErr, OutDone2, InDone, Env2 | Env>;
|
|
1443
|
+
/**
|
|
1444
|
+
* Returns a new channel that pipes the output of this channel into the
|
|
1445
|
+
* specified channel. The returned channel has the input type of this channel,
|
|
1446
|
+
* and the output type of the specified channel, terminating with the value of
|
|
1447
|
+
* the specified channel.
|
|
1448
|
+
*
|
|
1449
|
+
* @since 2.0.0
|
|
1450
|
+
* @category utils
|
|
1451
|
+
*/
|
|
858
1452
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem2, OutErr2, OutDone2, Env2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, that: Channel<OutElem2, OutElem, OutErr2, OutErr, OutDone2, OutDone, Env2>): Channel<OutElem2, InElem, OutErr2, InErr, OutDone2, InDone, Env | Env2>;
|
|
859
1453
|
};
|
|
860
1454
|
/**
|
|
@@ -866,7 +1460,23 @@ export declare const pipeTo: {
|
|
|
866
1460
|
* @category utils
|
|
867
1461
|
*/
|
|
868
1462
|
export declare const pipeToOrFail: {
|
|
1463
|
+
/**
|
|
1464
|
+
* Returns a new channel that pipes the output of this channel into the
|
|
1465
|
+
* specified channel and preserves this channel's failures without providing
|
|
1466
|
+
* them to the other channel for observation.
|
|
1467
|
+
*
|
|
1468
|
+
* @since 2.0.0
|
|
1469
|
+
* @category utils
|
|
1470
|
+
*/
|
|
869
1471
|
<OutElem2, OutElem, OutErr2, OutDone2, OutDone, Env2>(that: Channel<OutElem2, OutElem, OutErr2, never, OutDone2, OutDone, Env2>): <InElem, OutErr, InErr, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem2, InElem, OutErr2 | OutErr, InErr, OutDone2, InDone, Env2 | Env>;
|
|
1472
|
+
/**
|
|
1473
|
+
* Returns a new channel that pipes the output of this channel into the
|
|
1474
|
+
* specified channel and preserves this channel's failures without providing
|
|
1475
|
+
* them to the other channel for observation.
|
|
1476
|
+
*
|
|
1477
|
+
* @since 2.0.0
|
|
1478
|
+
* @category utils
|
|
1479
|
+
*/
|
|
870
1480
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem2, OutErr2, OutDone2, Env2>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, that: Channel<OutElem2, OutElem, OutErr2, never, OutDone2, OutDone, Env2>): Channel<OutElem2, InElem, OutErr | OutErr2, InErr, OutDone2, InDone, Env | Env2>;
|
|
871
1481
|
};
|
|
872
1482
|
/**
|
|
@@ -877,7 +1487,21 @@ export declare const pipeToOrFail: {
|
|
|
877
1487
|
* @category context
|
|
878
1488
|
*/
|
|
879
1489
|
export declare const provideContext: {
|
|
1490
|
+
/**
|
|
1491
|
+
* Provides the channel with its required context, which eliminates its
|
|
1492
|
+
* dependency on `Env`.
|
|
1493
|
+
*
|
|
1494
|
+
* @since 2.0.0
|
|
1495
|
+
* @category context
|
|
1496
|
+
*/
|
|
880
1497
|
<Env>(env: Context.Context<Env>): <OutElem, InElem, OutErr, InErr, OutDone, InDone>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, never>;
|
|
1498
|
+
/**
|
|
1499
|
+
* Provides the channel with its required context, which eliminates its
|
|
1500
|
+
* dependency on `Env`.
|
|
1501
|
+
*
|
|
1502
|
+
* @since 2.0.0
|
|
1503
|
+
* @category context
|
|
1504
|
+
*/
|
|
881
1505
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, env: Context.Context<Env>): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, never>;
|
|
882
1506
|
};
|
|
883
1507
|
/**
|
|
@@ -887,7 +1511,19 @@ export declare const provideContext: {
|
|
|
887
1511
|
* @category context
|
|
888
1512
|
*/
|
|
889
1513
|
export declare const provideLayer: {
|
|
1514
|
+
/**
|
|
1515
|
+
* Provides a layer to the channel, which translates it to another level.
|
|
1516
|
+
*
|
|
1517
|
+
* @since 2.0.0
|
|
1518
|
+
* @category context
|
|
1519
|
+
*/
|
|
890
1520
|
<Env, OutErr2, Env0>(layer: Layer.Layer<Env, OutErr2, Env0>): <OutElem, InElem, OutErr, InErr, OutDone, InDone>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr2 | OutErr, InErr, OutDone, InDone, Env0>;
|
|
1521
|
+
/**
|
|
1522
|
+
* Provides a layer to the channel, which translates it to another level.
|
|
1523
|
+
*
|
|
1524
|
+
* @since 2.0.0
|
|
1525
|
+
* @category context
|
|
1526
|
+
*/
|
|
891
1527
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutErr2, Env0>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, layer: Layer.Layer<Env, OutErr2, Env0>): Channel<OutElem, InElem, OutErr | OutErr2, InErr, OutDone, InDone, Env0>;
|
|
892
1528
|
};
|
|
893
1529
|
/**
|
|
@@ -898,7 +1534,21 @@ export declare const provideLayer: {
|
|
|
898
1534
|
* @category context
|
|
899
1535
|
*/
|
|
900
1536
|
export declare const mapInputContext: {
|
|
1537
|
+
/**
|
|
1538
|
+
* Transforms the context being provided to the channel with the specified
|
|
1539
|
+
* function.
|
|
1540
|
+
*
|
|
1541
|
+
* @since 2.0.0
|
|
1542
|
+
* @category context
|
|
1543
|
+
*/
|
|
901
1544
|
<Env0, Env>(f: (env: Context.Context<Env0>) => Context.Context<Env>): <OutElem, InElem, OutErr, InErr, OutDone, InDone>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env0>;
|
|
1545
|
+
/**
|
|
1546
|
+
* Transforms the context being provided to the channel with the specified
|
|
1547
|
+
* function.
|
|
1548
|
+
*
|
|
1549
|
+
* @since 2.0.0
|
|
1550
|
+
* @category context
|
|
1551
|
+
*/
|
|
902
1552
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, Env0>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, f: (env: Context.Context<Env0>) => Context.Context<Env>): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env0>;
|
|
903
1553
|
};
|
|
904
1554
|
/**
|
|
@@ -909,7 +1559,21 @@ export declare const mapInputContext: {
|
|
|
909
1559
|
* @category context
|
|
910
1560
|
*/
|
|
911
1561
|
export declare const provideSomeLayer: {
|
|
1562
|
+
/**
|
|
1563
|
+
* Splits the context into two parts, providing one part using the
|
|
1564
|
+
* specified layer and leaving the remainder `Env0`.
|
|
1565
|
+
*
|
|
1566
|
+
* @since 2.0.0
|
|
1567
|
+
* @category context
|
|
1568
|
+
*/
|
|
912
1569
|
<R2, OutErr2, Env0>(layer: Layer.Layer<R2, OutErr2, Env0>): <OutElem, InElem, OutErr, InErr, OutDone, InDone, R>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, R>) => Channel<OutElem, InElem, OutErr2 | OutErr, InErr, OutDone, InDone, Env0 | Exclude<R, R2>>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Splits the context into two parts, providing one part using the
|
|
1572
|
+
* specified layer and leaving the remainder `Env0`.
|
|
1573
|
+
*
|
|
1574
|
+
* @since 2.0.0
|
|
1575
|
+
* @category context
|
|
1576
|
+
*/
|
|
913
1577
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, R, R2, OutErr2, Env0>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, R>, layer: Layer.Layer<R2, OutErr2, Env0>): Channel<OutElem, InElem, OutErr | OutErr2, InErr, OutDone, InDone, Env0 | Exclude<R, R2>>;
|
|
914
1578
|
};
|
|
915
1579
|
/**
|
|
@@ -920,7 +1584,21 @@ export declare const provideSomeLayer: {
|
|
|
920
1584
|
* @category context
|
|
921
1585
|
*/
|
|
922
1586
|
export declare const provideService: {
|
|
1587
|
+
/**
|
|
1588
|
+
* Provides the effect with the single service it requires. If the effect
|
|
1589
|
+
* requires more than one service use `provideContext` instead.
|
|
1590
|
+
*
|
|
1591
|
+
* @since 2.0.0
|
|
1592
|
+
* @category context
|
|
1593
|
+
*/
|
|
923
1594
|
<T extends Context.Tag<any, any>>(tag: T, service: Context.Tag.Service<T>): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Exclude<Env, Context.Tag.Identifier<T>>>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Provides the effect with the single service it requires. If the effect
|
|
1597
|
+
* requires more than one service use `provideContext` instead.
|
|
1598
|
+
*
|
|
1599
|
+
* @since 2.0.0
|
|
1600
|
+
* @category context
|
|
1601
|
+
*/
|
|
924
1602
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, T extends Context.Tag<any, any>>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, tag: T, service: Context.Tag.Service<T>): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Exclude<Env, Context.Tag.Identifier<T>>>;
|
|
925
1603
|
};
|
|
926
1604
|
/**
|
|
@@ -1083,7 +1761,19 @@ export declare const unwrapScoped: <OutElem, InElem, OutErr, InErr, OutDone, InD
|
|
|
1083
1761
|
* @category context
|
|
1084
1762
|
*/
|
|
1085
1763
|
export declare const updateService: {
|
|
1764
|
+
/**
|
|
1765
|
+
* Updates a service in the context of this channel.
|
|
1766
|
+
*
|
|
1767
|
+
* @since 2.0.0
|
|
1768
|
+
* @category context
|
|
1769
|
+
*/
|
|
1086
1770
|
<T extends Context.Tag<any, any>>(tag: T, f: (resource: Context.Tag.Service<T>) => Context.Tag.Service<T>): <OutElem, OutErr, InErr, OutDone, InDone, R>(self: Channel<OutElem, unknown, OutErr, InErr, OutDone, InDone, R>) => Channel<OutElem, unknown, OutErr, InErr, OutDone, InDone, T | R>;
|
|
1771
|
+
/**
|
|
1772
|
+
* Updates a service in the context of this channel.
|
|
1773
|
+
*
|
|
1774
|
+
* @since 2.0.0
|
|
1775
|
+
* @category context
|
|
1776
|
+
*/
|
|
1087
1777
|
<OutElem, OutErr, InErr, OutDone, InDone, R, T extends Context.Tag<any, any>>(self: Channel<OutElem, unknown, OutErr, InErr, OutDone, InDone, R>, tag: T, f: (resource: Context.Tag.Service<T>) => Context.Tag.Service<T>): Channel<OutElem, unknown, OutErr, InErr, OutDone, InDone, R | T>;
|
|
1088
1778
|
};
|
|
1089
1779
|
/**
|
|
@@ -1093,7 +1783,19 @@ export declare const updateService: {
|
|
|
1093
1783
|
* @category tracing
|
|
1094
1784
|
*/
|
|
1095
1785
|
export declare const withSpan: {
|
|
1786
|
+
/**
|
|
1787
|
+
* Wraps the channel with a new span for tracing.
|
|
1788
|
+
*
|
|
1789
|
+
* @since 2.0.0
|
|
1790
|
+
* @category tracing
|
|
1791
|
+
*/
|
|
1096
1792
|
(name: string, options?: Tracer.SpanOptions | undefined): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Exclude<Env, Tracer.ParentSpan>>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Wraps the channel with a new span for tracing.
|
|
1795
|
+
*
|
|
1796
|
+
* @since 2.0.0
|
|
1797
|
+
* @category tracing
|
|
1798
|
+
*/
|
|
1097
1799
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, name: string, options?: Tracer.SpanOptions | undefined): Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Exclude<Env, Tracer.ParentSpan>>;
|
|
1098
1800
|
};
|
|
1099
1801
|
/**
|
|
@@ -1126,9 +1828,25 @@ export declare const writeChunk: <OutElem>(outs: Chunk.Chunk<OutElem>) => Channe
|
|
|
1126
1828
|
* @category zipping
|
|
1127
1829
|
*/
|
|
1128
1830
|
export declare const zip: {
|
|
1831
|
+
/**
|
|
1832
|
+
* Returns a new channel that is the sequential composition of this channel
|
|
1833
|
+
* and the specified channel. The returned channel terminates with a tuple of
|
|
1834
|
+
* the terminal values of both channels.
|
|
1835
|
+
*
|
|
1836
|
+
* @since 2.0.0
|
|
1837
|
+
* @category zipping
|
|
1838
|
+
*/
|
|
1129
1839
|
<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(that: Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>, options?: {
|
|
1130
1840
|
readonly concurrent?: boolean | undefined;
|
|
1131
1841
|
} | undefined): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, readonly [OutDone, OutDone1], InDone & InDone1, Env1 | Env>;
|
|
1842
|
+
/**
|
|
1843
|
+
* Returns a new channel that is the sequential composition of this channel
|
|
1844
|
+
* and the specified channel. The returned channel terminates with a tuple of
|
|
1845
|
+
* the terminal values of both channels.
|
|
1846
|
+
*
|
|
1847
|
+
* @since 2.0.0
|
|
1848
|
+
* @category zipping
|
|
1849
|
+
*/
|
|
1132
1850
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, that: Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>, options?: {
|
|
1133
1851
|
readonly concurrent?: boolean | undefined;
|
|
1134
1852
|
} | undefined): Channel<OutElem | OutElem1, InElem & InElem1, OutErr | OutErr1, InErr & InErr1, readonly [OutDone, OutDone1], InDone & InDone1, Env | Env1>;
|
|
@@ -1142,9 +1860,25 @@ export declare const zip: {
|
|
|
1142
1860
|
* @category zipping
|
|
1143
1861
|
*/
|
|
1144
1862
|
export declare const zipLeft: {
|
|
1863
|
+
/**
|
|
1864
|
+
* Returns a new channel that is the sequential composition of this channel
|
|
1865
|
+
* and the specified channel. The returned channel terminates with the
|
|
1866
|
+
* terminal value of this channel.
|
|
1867
|
+
*
|
|
1868
|
+
* @since 2.0.0
|
|
1869
|
+
* @category zipping
|
|
1870
|
+
*/
|
|
1145
1871
|
<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(that: Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>, options?: {
|
|
1146
1872
|
readonly concurrent?: boolean | undefined;
|
|
1147
1873
|
} | undefined): <OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, OutDone, InDone & InDone1, Env1 | Env>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Returns a new channel that is the sequential composition of this channel
|
|
1876
|
+
* and the specified channel. The returned channel terminates with the
|
|
1877
|
+
* terminal value of this channel.
|
|
1878
|
+
*
|
|
1879
|
+
* @since 2.0.0
|
|
1880
|
+
* @category zipping
|
|
1881
|
+
*/
|
|
1148
1882
|
<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env, OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, that: Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>, options?: {
|
|
1149
1883
|
readonly concurrent?: boolean | undefined;
|
|
1150
1884
|
} | undefined): Channel<OutElem | OutElem1, InElem & InElem1, OutErr | OutErr1, InErr & InErr1, OutDone, InDone & InDone1, Env | Env1>;
|
|
@@ -1158,9 +1892,25 @@ export declare const zipLeft: {
|
|
|
1158
1892
|
* @category zipping
|
|
1159
1893
|
*/
|
|
1160
1894
|
export declare const zipRight: {
|
|
1895
|
+
/**
|
|
1896
|
+
* Returns a new channel that is the sequential composition of this channel
|
|
1897
|
+
* and the specified channel. The returned channel terminates with the
|
|
1898
|
+
* terminal value of that channel.
|
|
1899
|
+
*
|
|
1900
|
+
* @since 2.0.0
|
|
1901
|
+
* @category zipping
|
|
1902
|
+
*/
|
|
1161
1903
|
<Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1>(that: Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>, options?: {
|
|
1162
1904
|
readonly concurrent?: boolean | undefined;
|
|
1163
1905
|
}): <Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>) => Channel<OutElem1 | OutElem, InElem & InElem1, OutErr1 | OutErr, InErr & InErr1, OutDone1, InDone & InDone1, Env1 | Env>;
|
|
1906
|
+
/**
|
|
1907
|
+
* Returns a new channel that is the sequential composition of this channel
|
|
1908
|
+
* and the specified channel. The returned channel terminates with the
|
|
1909
|
+
* terminal value of that channel.
|
|
1910
|
+
*
|
|
1911
|
+
* @since 2.0.0
|
|
1912
|
+
* @category zipping
|
|
1913
|
+
*/
|
|
1164
1914
|
<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone, Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1>(self: Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>, that: Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone1, InDone1, Env1>, options?: {
|
|
1165
1915
|
readonly concurrent?: boolean | undefined;
|
|
1166
1916
|
}): Channel<OutElem | OutElem1, InElem & InElem1, OutErr | OutErr1, InErr & InErr1, OutDone1, InDone & InDone1, Env | Env1>;
|