@fncts/io 0.0.20 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/Cached/api.d.ts +2 -2
- package/Channel/ChildExecutorDecision/api.d.ts +2 -2
- package/Channel/UpstreamPullRequest/api.d.ts +2 -2
- package/Channel/api/interruptWhen.d.ts +5 -5
- package/Channel/api/mapOutConcurrentIO.d.ts +8 -0
- package/Channel/api/mergeAll.d.ts +2 -2
- package/Channel/api/mergeAllUnboundedWith.d.ts +2 -2
- package/Channel/api/mergeAllWith.d.ts +2 -2
- package/Channel/api/mergeMap.d.ts +2 -2
- package/Channel/api/mergeWith.d.ts +2 -2
- package/Channel/api/zipConcurrent.d.ts +16 -0
- package/Channel/api.d.ts +62 -62
- package/Channel/core-api.d.ts +11 -11
- package/Channel/definition.d.ts +35 -21
- package/Channel/internal/SingleProducerAsyncInput.d.ts +1 -1
- package/CountdownLatch.d.ts +25 -0
- package/Fiber/FiberMessage.d.ts +67 -0
- package/Fiber/FiberRuntime.d.ts +116 -0
- package/Fiber/api/interrupt.d.ts +1 -1
- package/Fiber/api/interruptAs.d.ts +6 -1
- package/Fiber/api/location.d.ts +1 -2
- package/Fiber/api/mapFiber.d.ts +2 -2
- package/Fiber/api/mapIO.d.ts +5 -5
- package/Fiber/api/zipWith.d.ts +2 -2
- package/Fiber/definition.d.ts +17 -16
- package/Fiber.d.ts +2 -3
- package/FiberDescriptor.d.ts +3 -6
- package/FiberRef/api/locallyScoped.d.ts +2 -2
- package/FiberRef/api/locallyScopedWith.d.ts +2 -2
- package/FiberRef/api.d.ts +18 -18
- package/FiberRef/definition.d.ts +2 -2
- package/FiberRef/unsafe.d.ts +5 -0
- package/FiberRefs/api.d.ts +30 -2
- package/FiberRefs/definition.d.ts +14 -7
- package/FiberRefs/join.d.ts +3 -3
- package/FiberScope/constructors.d.ts +2 -2
- package/FiberScope/definition.d.ts +8 -5
- package/FiberStatus/constructors.d.ts +3 -7
- package/FiberStatus/definition.d.ts +16 -28
- package/Future/api.d.ts +21 -21
- package/Hub/api.d.ts +27 -25
- package/Hub/definition.d.ts +13 -9
- package/IO/api/acquireRelease.d.ts +1 -1
- package/IO/api/acquireReleaseExit.d.ts +1 -1
- package/IO/api/asyncInterrupt.d.ts +39 -0
- package/IO/api/bracket.d.ts +1 -1
- package/IO/api/bracketExit.d.ts +1 -1
- package/IO/api/concurrency.d.ts +2 -2
- package/IO/api/core-scope.d.ts +7 -43
- package/IO/api/delay.d.ts +8 -0
- package/IO/api/ensuringChildren.d.ts +3 -3
- package/IO/api/environment.d.ts +11 -15
- package/IO/api/{foreachC.d.ts → foreachConcurrent.d.ts} +8 -8
- package/IO/api/foreachExec.d.ts +1 -1
- package/IO/api/fork.d.ts +36 -0
- package/IO/api/forkIn.d.ts +3 -3
- package/IO/api/fulfill.d.ts +3 -3
- package/IO/api/interrupt.d.ts +9 -13
- package/IO/api/onExit.d.ts +3 -3
- package/IO/api/onTermination.d.ts +4 -4
- package/IO/api/provideLayer.d.ts +3 -3
- package/IO/api/provideSomeLayer.d.ts +3 -7
- package/IO/api/race.d.ts +2 -2
- package/IO/api/raceFirst.d.ts +2 -2
- package/IO/api/repeat.d.ts +3 -3
- package/IO/api/retry.d.ts +7 -7
- package/IO/api/schedule.d.ts +5 -5
- package/IO/api/scoped.d.ts +2 -2
- package/IO/api/supervised.d.ts +2 -4
- package/IO/api/timeout.d.ts +5 -5
- package/IO/api/withFinalizer.d.ts +3 -3
- package/IO/api/withFinalizerExit.d.ts +3 -3
- package/IO/api/zipConcurrent.d.ts +13 -0
- package/IO/api.d.ts +208 -306
- package/IO/definition.d.ts +111 -130
- package/IO/runtime.d.ts +19 -22
- package/IO.d.ts +5 -3
- package/Layer/MemoMap.d.ts +5 -5
- package/Layer/api.d.ts +28 -28
- package/LogLevel.d.ts +12 -12
- package/LogSpan.d.ts +2 -2
- package/Logger/api.d.ts +5 -5
- package/Push/api.d.ts +232 -0
- package/Push/definition.d.ts +34 -0
- package/Push/internal.d.ts +11 -0
- package/Push.d.ts +3 -0
- package/Queue/api/dimapIO.d.ts +70 -13
- package/Queue/api/filterInputIO.d.ts +12 -20
- package/Queue/api/filterOutputIO.d.ts +10 -21
- package/Queue/api/operations.d.ts +15 -14
- package/Queue/api/poll.d.ts +2 -2
- package/Queue/api/takeBetween.d.ts +3 -3
- package/Queue/api/zipWithIO.d.ts +7 -24
- package/Queue/definition.d.ts +112 -8
- package/Queue/internal.d.ts +7 -7
- package/Ref/Atomic.d.ts +22 -2
- package/Ref/Derived.d.ts +4 -2
- package/Ref/DerivedAll.d.ts +7 -3
- package/Ref/Synchronized/api.d.ts +31 -29
- package/Ref/Synchronized/constructors.d.ts +1 -1
- package/Ref/Synchronized/definition.d.ts +6 -4
- package/Ref/Synchronized.d.ts +3 -0
- package/Ref/api/collect.d.ts +3 -3
- package/Ref/api/dimap.d.ts +21 -21
- package/Ref/api/filter.d.ts +7 -6
- package/Ref/api/get.d.ts +1 -1
- package/Ref/api/match.d.ts +3 -3
- package/Ref/api/matchAll.d.ts +1 -1
- package/Ref/api/modify.d.ts +27 -27
- package/Ref/api/set.d.ts +3 -3
- package/Ref/constructors.d.ts +1 -1
- package/Ref/definition.d.ts +46 -20
- package/Ref/symbols.d.ts +30 -0
- package/Ref.d.ts +2 -0
- package/RefSubject/Atomic.d.ts +36 -0
- package/RefSubject/Synchronized/api.d.ts +9 -0
- package/RefSubject/Synchronized/definition.d.ts +40 -0
- package/RefSubject/api.d.ts +116 -0
- package/RefSubject/definition.d.ts +45 -0
- package/RefSubject.d.ts +3 -0
- package/RuntimeConfig.d.ts +0 -24
- package/RuntimeFlag.d.ts +10 -0
- package/RuntimeFlags/Patch.d.ts +53 -0
- package/RuntimeFlags/RuntimeFlags.d.ts +82 -0
- package/RuntimeFlags.d.ts +2 -0
- package/STM/api/core-api.d.ts +10 -10
- package/STM/api.d.ts +61 -61
- package/STM/internal/Journal.d.ts +4 -4
- package/Schedule/Decision.d.ts +2 -2
- package/Schedule/api.d.ts +121 -105
- package/Scope/ReleaseMap/api/releaseAll.d.ts +2 -2
- package/Scope/ReleaseMap/api.d.ts +10 -10
- package/Scope/ReleaseMap/definition.d.ts +1 -1
- package/Scope/api.d.ts +8 -8
- package/ScopedRef/api.d.ts +1 -1
- package/Sink/api.d.ts +66 -66
- package/State/api.d.ts +4 -4
- package/State/internal.d.ts +1 -1
- package/Stream/api/zipAllWith.d.ts +2 -2
- package/Stream/api/zipWith.d.ts +2 -2
- package/Stream/api/zipWithChunks.d.ts +2 -2
- package/Stream/api.d.ts +217 -205
- package/Stream/internal/DebounceState.d.ts +3 -3
- package/Stream/internal/Handoff.d.ts +6 -6
- package/Stream/internal/SinkEndReason.d.ts +3 -3
- package/Stream/internal/Take.d.ts +8 -8
- package/Subject/Atomic.d.ts +18 -0
- package/Subject/api.d.ts +13 -0
- package/Subject/definition.d.ts +15 -0
- package/Subject.d.ts +3 -0
- package/SubscriptionRef.d.ts +38 -0
- package/Supervisor/api.d.ts +4 -4
- package/SupervisorPatch.d.ts +4 -4
- package/TExit/definition.d.ts +2 -2
- package/TFuture/api.d.ts +7 -7
- package/TFuture/definition.d.ts +2 -2
- package/TReentrantLock/api.d.ts +4 -4
- package/TReentrantLock/definition.d.ts +3 -3
- package/TRef/api.d.ts +26 -27
- package/TRef/constructors.d.ts +6 -6
- package/TRef/definition.d.ts +47 -34
- package/TRef/symbols.d.ts +20 -0
- package/TRef.d.ts +1 -0
- package/TSemaphore/api.d.ts +4 -4
- package/TSemaphore/constructors.d.ts +6 -0
- package/TSemaphore/definition.d.ts +2 -2
- package/_cjs/Cached/api.cjs +9 -32
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/definition.cjs +2 -7
- package/_cjs/Cached/definition.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +0 -3
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/Cached.cjs +0 -6
- package/_cjs/Cached.cjs.map +1 -1
- package/_cjs/CancellerState.cjs +3 -22
- package/_cjs/CancellerState.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs +19 -20
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs +0 -5
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision.cjs +0 -4
- package/_cjs/Channel/ChildExecutorDecision.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +15 -20
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs +0 -6
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest.cjs +0 -4
- package/_cjs/Channel/UpstreamPullRequest.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs +0 -4
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy.cjs +0 -2
- package/_cjs/Channel/UpstreamPullStrategy.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +14 -22
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +42 -0
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs.map +1 -0
- package/_cjs/Channel/api/mergeAll.cjs +6 -8
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +6 -8
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +40 -71
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +6 -9
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +35 -67
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +1 -7
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runCollect.cjs +0 -5
- package/_cjs/Channel/api/runCollect.cjs.map +1 -1
- package/_cjs/Channel/api/runDrain.cjs +0 -5
- package/_cjs/Channel/api/runDrain.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +6 -28
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +7 -29
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/{zipC.cjs → zipConcurrent.cjs} +22 -30
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -0
- package/_cjs/Channel/api.cjs +242 -367
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +34 -48
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +20 -106
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +161 -371
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +5 -37
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeDecision.cjs +4 -27
- package/_cjs/Channel/internal/MergeDecision.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeState.cjs +3 -24
- package/_cjs/Channel/internal/MergeState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +37 -131
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Channel.cjs +0 -6
- package/_cjs/Channel.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +0 -7
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +0 -6
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +2 -12
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Clock.cjs +0 -6
- package/_cjs/Clock.cjs.map +1 -1
- package/_cjs/Console/api.cjs +0 -7
- package/_cjs/Console/api.cjs.map +1 -1
- package/_cjs/Console/definition.cjs +0 -6
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +0 -11
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/Console.cjs +0 -6
- package/_cjs/Console.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +50 -0
- package/_cjs/CountdownLatch.cjs.map +1 -0
- package/_cjs/Differ/api.cjs +5 -28
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Differ/definition.cjs +0 -4
- package/_cjs/Differ/definition.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +72 -0
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -0
- package/_cjs/Fiber/FiberRuntime.cjs +735 -0
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -0
- package/_cjs/Fiber/api/await.cjs +0 -1
- package/_cjs/Fiber/api/await.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +2 -8
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/children.cjs +0 -1
- package/_cjs/Fiber/api/children.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +3 -25
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +1 -6
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/id.cjs +0 -1
- package/_cjs/Fiber/api/id.cjs.map +1 -1
- package/_cjs/Fiber/api/inheritRefs.cjs +1 -2
- package/_cjs/Fiber/api/inheritRefs.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +3 -8
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +3 -13
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +15 -8
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +2 -9
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +3 -6
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +1 -7
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/location.cjs +1 -8
- package/_cjs/Fiber/api/location.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +6 -11
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +14 -27
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/poll.cjs +0 -1
- package/_cjs/Fiber/api/poll.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +7 -21
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +0 -18
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +11 -14
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/Fiber.cjs +15 -72
- package/_cjs/Fiber.cjs.map +1 -1
- package/_cjs/FiberDescriptor.cjs +1 -6
- package/_cjs/FiberDescriptor.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +6 -10
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +5 -8
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +78 -97
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +1 -11
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +5 -23
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +20 -48
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRef.cjs +0 -12
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +74 -32
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +5 -17
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberRefs/join.cjs +51 -71
- package/_cjs/FiberRefs/join.cjs.map +1 -1
- package/_cjs/FiberRefs.cjs +0 -6
- package/_cjs/FiberRefs.cjs.map +1 -1
- package/_cjs/FiberScope/constructors.cjs +0 -4
- package/_cjs/FiberScope/constructors.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +15 -20
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberScope.cjs +0 -4
- package/_cjs/FiberScope.cjs.map +1 -1
- package/_cjs/FiberStatus/constructors.cjs +5 -20
- package/_cjs/FiberStatus/constructors.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +18 -77
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/FiberStatus.cjs +0 -4
- package/_cjs/FiberStatus.cjs.map +1 -1
- package/_cjs/Future/api.cjs +99 -141
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +1 -12
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +2 -15
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Future.cjs +0 -6
- package/_cjs/Future.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +112 -172
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/definition.cjs +14 -7
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +30 -122
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/Hub.cjs +0 -4
- package/_cjs/Hub.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +0 -4
- package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs +1 -7
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +0 -4
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +2 -6
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizer.cjs +0 -4
- package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +1 -8
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +8 -16
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/asyncInterrupt.cjs +77 -0
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -0
- package/_cjs/IO/api/bracket.cjs +3 -7
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +3 -10
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/clockWith.cjs +2 -14
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +9 -22
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +1 -8
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +2 -14
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/core-scope.cjs +60 -126
- package/_cjs/IO/api/core-scope.cjs.map +1 -1
- package/_cjs/{Fiber/api/evalOn.cjs → IO/api/delay.cjs} +10 -18
- package/_cjs/IO/api/delay.cjs.map +1 -0
- package/_cjs/IO/api/ensuringChildren.cjs +7 -10
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +35 -64
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/{foreachC.cjs → foreachConcurrent.cjs} +36 -73
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -0
- package/_cjs/IO/api/foreachExec.cjs +4 -11
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/fork.cjs +75 -0
- package/_cjs/IO/api/fork.cjs.map +1 -0
- package/_cjs/IO/api/forkAll.cjs +3 -7
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +8 -14
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +1 -9
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +8 -12
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +51 -77
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +1 -8
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onExit.cjs +6 -9
- package/_cjs/IO/api/onExit.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +5 -11
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +1 -7
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +6 -12
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +5 -20
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +8 -17
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +6 -9
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +1 -13
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +12 -27
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +14 -29
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +15 -21
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +0 -6
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +0 -5
- package/_cjs/IO/api/scopeWith.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +6 -15
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sequenceT.cjs +1 -7
- package/_cjs/IO/api/sequenceT.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +0 -4
- package/_cjs/IO/api/sleep.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs +0 -6
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +6 -14
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +10 -18
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +2 -10
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +1 -8
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +6 -8
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +6 -8
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/zipConcurrent.cjs +51 -0
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -0
- package/_cjs/IO/api.cjs +669 -1057
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +121 -213
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +51 -119
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +41 -123
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +1 -12
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +1 -12
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +0 -5
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/IOEnv.cjs +0 -6
- package/_cjs/IOEnv.cjs.map +1 -1
- package/_cjs/InterruptStatus/constructors.cjs +0 -5
- package/_cjs/InterruptStatus/constructors.cjs.map +1 -1
- package/_cjs/InterruptStatus/definition.cjs +0 -5
- package/_cjs/InterruptStatus/definition.cjs.map +1 -1
- package/_cjs/InterruptStatus.cjs +0 -4
- package/_cjs/InterruptStatus.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +54 -111
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +112 -184
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs +9 -51
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/Layer.cjs +0 -6
- package/_cjs/Layer.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +24 -36
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs +16 -21
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +18 -21
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +3 -18
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Logger/definition.cjs +0 -3
- package/_cjs/Logger/definition.cjs.map +1 -1
- package/_cjs/Logger.cjs +0 -6
- package/_cjs/Logger.cjs.map +1 -1
- package/_cjs/Push/api.cjs +474 -0
- package/_cjs/Push/api.cjs.map +1 -0
- package/_cjs/Push/definition.cjs +43 -0
- package/_cjs/Push/definition.cjs.map +1 -0
- package/_cjs/Push/internal.cjs +40 -0
- package/_cjs/Push/internal.cjs.map +1 -0
- package/_cjs/Push.cjs +39 -0
- package/_cjs/Push.cjs.map +1 -0
- package/_cjs/Queue/api/dimapIO.cjs +109 -55
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +61 -36
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +72 -44
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/operations.cjs +21 -35
- package/_cjs/Queue/api/operations.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +1 -7
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +24 -34
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/zipWithIO.cjs +33 -48
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/api.cjs +0 -14
- package/_cjs/Queue/api.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +4 -17
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +18 -11
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +63 -117
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +27 -68
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Queue.cjs +0 -10
- package/_cjs/Queue.cjs.map +1 -1
- package/_cjs/Random/api.cjs +0 -17
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +0 -7
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +2 -16
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Random.cjs +0 -6
- package/_cjs/Random.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +54 -26
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +11 -20
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +17 -23
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +99 -103
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +1 -11
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +16 -39
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/{FiberState.cjs → Ref/Synchronized.cjs} +4 -10
- package/_cjs/Ref/Synchronized.cjs.map +1 -0
- package/_cjs/Ref/api/collect.cjs +7 -12
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +55 -60
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +14 -19
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/get.cjs +0 -2
- package/_cjs/Ref/api/get.cjs.map +1 -1
- package/_cjs/Ref/api/match.cjs +8 -10
- package/_cjs/Ref/api/match.cjs.map +1 -1
- package/_cjs/Ref/api/matchAll.cjs +6 -8
- package/_cjs/Ref/api/matchAll.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +73 -171
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api/set.cjs +8 -8
- package/_cjs/Ref/api/set.cjs.map +1 -1
- package/_cjs/Ref/api.cjs +2 -26
- package/_cjs/Ref/api.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +2 -9
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +11 -7
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Ref/symbols.cjs +37 -0
- package/_cjs/Ref/symbols.cjs.map +1 -0
- package/_cjs/Ref.cjs +22 -18
- package/_cjs/Ref.cjs.map +1 -1
- package/_cjs/RefSubject/Atomic.cjs +109 -0
- package/_cjs/RefSubject/Atomic.cjs.map +1 -0
- package/_cjs/{FiberState/constructors.cjs → RefSubject/Synchronized/api.cjs} +13 -34
- package/_cjs/RefSubject/Synchronized/api.cjs.map +1 -0
- package/_cjs/RefSubject/Synchronized/definition.cjs +56 -0
- package/_cjs/RefSubject/Synchronized/definition.cjs.map +1 -0
- package/_cjs/RefSubject/api.cjs +245 -0
- package/_cjs/RefSubject/api.cjs.map +1 -0
- package/_cjs/{FiberState/api.cjs → RefSubject/definition.cjs} +12 -16
- package/_cjs/RefSubject/definition.cjs.map +1 -0
- package/_cjs/RefSubject.cjs +39 -0
- package/_cjs/RefSubject.cjs.map +1 -0
- package/_cjs/Reloadable/api.cjs +3 -18
- package/_cjs/Reloadable/api.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +14 -41
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +0 -14
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/Reloadable.cjs +0 -6
- package/_cjs/Reloadable.cjs.map +1 -1
- package/_cjs/RuntimeConfig.cjs +1 -44
- package/_cjs/RuntimeConfig.cjs.map +1 -1
- package/_cjs/RuntimeFlag.cjs +6 -0
- package/_cjs/RuntimeFlag.cjs.map +1 -0
- package/_cjs/RuntimeFlags/Patch.cjs +76 -0
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -0
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +107 -0
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -0
- package/_cjs/RuntimeFlags.cjs +28 -0
- package/_cjs/RuntimeFlags.cjs.map +1 -0
- package/_cjs/STM/api/core-api.cjs +36 -42
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs +0 -15
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +218 -302
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +9 -72
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +12 -65
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +5 -32
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs +0 -20
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +50 -142
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM/internal/TryCommit.cjs +2 -12
- package/_cjs/STM/internal/TryCommit.cjs.map +1 -1
- package/_cjs/STM/internal/Versioned.cjs +0 -3
- package/_cjs/STM/internal/Versioned.cjs.map +1 -1
- package/_cjs/STM.cjs +0 -10
- package/_cjs/STM.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +13 -37
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/Driver.cjs +0 -5
- package/_cjs/Schedule/Driver.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +6 -22
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +440 -492
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Schedule/definition.cjs +0 -2
- package/_cjs/Schedule/definition.cjs.map +1 -1
- package/_cjs/Schedule.cjs +0 -8
- package/_cjs/Schedule.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +0 -6
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/Finalizer.cjs +0 -2
- package/_cjs/Scope/Finalizer.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +13 -24
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +65 -79
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +1 -12
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +0 -9
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap.cjs +0 -6
- package/_cjs/Scope/ReleaseMap.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +34 -69
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +0 -12
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/Scope.cjs +0 -4
- package/_cjs/Scope.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +7 -26
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +1 -5
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/ScopedRef.cjs +0 -4
- package/_cjs/ScopedRef.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +292 -484
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Sink/definition.cjs +0 -3
- package/_cjs/Sink/definition.cjs.map +1 -1
- package/_cjs/Sink.cjs +0 -4
- package/_cjs/Sink.cjs.map +1 -1
- package/_cjs/State/api.cjs +18 -32
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/State/definition.cjs +2 -7
- package/_cjs/State/definition.cjs.map +1 -1
- package/_cjs/State/internal.cjs +0 -3
- package/_cjs/State/internal.cjs.map +1 -1
- package/_cjs/State.cjs +0 -4
- package/_cjs/State.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +16 -43
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +6 -9
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +14 -32
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +961 -1205
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs +0 -8
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +16 -44
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +34 -80
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +2 -25
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +13 -28
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +32 -75
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +3 -13
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Stream.cjs +0 -4
- package/_cjs/Stream.cjs.map +1 -1
- package/_cjs/{FiberState/definition.cjs → Subject/Atomic.cjs} +21 -36
- package/_cjs/Subject/Atomic.cjs.map +1 -0
- package/_cjs/{IO/api/withRuntimeConfig.cjs → Subject/api.cjs} +17 -14
- package/_cjs/Subject/api.cjs.map +1 -0
- package/_cjs/Subject/definition.cjs +11 -0
- package/_cjs/Subject/definition.cjs.map +1 -0
- package/_cjs/Subject.cjs +39 -0
- package/_cjs/Subject.cjs.map +1 -0
- package/_cjs/SubscriptionRef.cjs +54 -0
- package/_cjs/SubscriptionRef.cjs.map +1 -0
- package/_cjs/Supervisor/api.cjs +24 -37
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +2 -26
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +6 -44
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/Supervisor.cjs +0 -6
- package/_cjs/Supervisor.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +25 -75
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/constructors.cjs +0 -12
- package/_cjs/TExit/constructors.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +14 -76
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TExit.cjs +0 -4
- package/_cjs/TExit.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +21 -37
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +1 -13
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +0 -4
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TFuture.cjs +0 -6
- package/_cjs/TFuture.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +41 -111
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +7 -38
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock.cjs +0 -4
- package/_cjs/TReentrantLock.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +95 -296
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +0 -19
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +84 -34
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TRef/symbols.cjs +27 -0
- package/_cjs/TRef/symbols.cjs.map +1 -0
- package/_cjs/TRef.cjs +11 -6
- package/_cjs/TRef.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +30 -49
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +13 -11
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +0 -4
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/TSemaphore.cjs +0 -6
- package/_cjs/TSemaphore.cjs.map +1 -1
- package/_cjs/TxnId.cjs +0 -3
- package/_cjs/TxnId.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +19 -24
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +19 -24
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +14 -19
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +18 -28
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +11 -14
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +29 -36
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs +0 -12
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +6 -10
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/HashedPair.cjs +4 -15
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +13 -175
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +22 -62
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +11 -77
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +0 -18
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +0 -9
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs +6 -13
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Cached/definition.mjs +2 -4
- package/_mjs/Cached/definition.mjs.map +1 -1
- package/_mjs/Cached/internal.mjs +0 -1
- package/_mjs/Cached/internal.mjs.map +1 -1
- package/_mjs/Cached.mjs.map +1 -1
- package/_mjs/CancellerState.mjs +6 -15
- package/_mjs/CancellerState.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs +18 -18
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs +0 -2
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +14 -16
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs +0 -2
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs +0 -1
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy.mjs.map +1 -1
- package/_mjs/Channel/api/interruptWhen.mjs +11 -10
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs +34 -0
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs.map +1 -0
- package/_mjs/Channel/api/mergeAll.mjs +5 -4
- package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +5 -4
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +39 -39
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeMap.mjs +5 -4
- package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +34 -50
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +1 -2
- package/_mjs/Channel/api/run.mjs.map +1 -1
- package/_mjs/Channel/api/runCollect.mjs +0 -1
- package/_mjs/Channel/api/runCollect.mjs.map +1 -1
- package/_mjs/Channel/api/runDrain.mjs +0 -1
- package/_mjs/Channel/api/runDrain.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +6 -21
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs +7 -20
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api/zipConcurrent.mjs +32 -0
- package/_mjs/Channel/api/zipConcurrent.mjs.map +1 -0
- package/_mjs/Channel/api.mjs +201 -267
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +28 -35
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +32 -67
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +161 -340
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelState.mjs +5 -20
- package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeDecision.mjs +5 -16
- package/_mjs/Channel/internal/MergeDecision.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeState.mjs +6 -15
- package/_mjs/Channel/internal/MergeState.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +40 -103
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Channel.mjs.map +1 -1
- package/_mjs/Clock/api.mjs +0 -2
- package/_mjs/Clock/api.mjs.map +1 -1
- package/_mjs/Clock/definition.mjs +0 -2
- package/_mjs/Clock/definition.mjs.map +1 -1
- package/_mjs/Clock/live.mjs +2 -6
- package/_mjs/Clock/live.mjs.map +1 -1
- package/_mjs/Clock.mjs.map +1 -1
- package/_mjs/Console/api.mjs +0 -2
- package/_mjs/Console/api.mjs.map +1 -1
- package/_mjs/Console/definition.mjs +0 -2
- package/_mjs/Console/definition.mjs.map +1 -1
- package/_mjs/Console/live.mjs +0 -4
- package/_mjs/Console/live.mjs.map +1 -1
- package/_mjs/Console.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +39 -0
- package/_mjs/CountdownLatch.mjs.map +1 -0
- package/_mjs/Differ/api.mjs +5 -20
- package/_mjs/Differ/api.mjs.map +1 -1
- package/_mjs/Differ/definition.mjs +0 -2
- package/_mjs/Differ/definition.mjs.map +1 -1
- package/_mjs/Fiber/FiberMessage.mjs +56 -0
- package/_mjs/Fiber/FiberMessage.mjs.map +1 -0
- package/_mjs/Fiber/FiberRuntime.mjs +728 -0
- package/_mjs/Fiber/FiberRuntime.mjs.map +1 -0
- package/_mjs/Fiber/api/await.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +2 -3
- package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
- package/_mjs/Fiber/api/children.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +3 -4
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/fromIO.mjs +1 -2
- package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
- package/_mjs/Fiber/api/id.mjs.map +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +3 -4
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +3 -6
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +13 -5
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs +2 -5
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/api/join.mjs +3 -3
- package/_mjs/Fiber/api/join.mjs.map +1 -1
- package/_mjs/Fiber/api/joinAll.mjs +1 -2
- package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
- package/_mjs/Fiber/api/location.mjs +1 -3
- package/_mjs/Fiber/api/location.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +5 -4
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +11 -10
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/poll.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +6 -5
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/constructors.mjs +0 -6
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs +9 -5
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/Fiber.mjs +3 -4
- package/_mjs/Fiber.mjs.map +1 -1
- package/_mjs/FiberDescriptor.mjs +1 -4
- package/_mjs/FiberDescriptor.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +5 -4
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +5 -4
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +64 -66
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +1 -4
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/definition.mjs +5 -10
- package/_mjs/FiberRef/definition.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +17 -30
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRef.mjs +2 -2
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +70 -24
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/definition.mjs +2 -13
- package/_mjs/FiberRefs/definition.mjs.map +1 -1
- package/_mjs/FiberRefs/join.mjs +51 -61
- package/_mjs/FiberRefs/join.mjs.map +1 -1
- package/_mjs/FiberRefs.mjs.map +1 -1
- package/_mjs/FiberScope/constructors.mjs +0 -2
- package/_mjs/FiberScope/constructors.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs +15 -12
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberScope.mjs.map +1 -1
- package/_mjs/FiberStatus/constructors.mjs +5 -15
- package/_mjs/FiberStatus/constructors.mjs.map +1 -1
- package/_mjs/FiberStatus/definition.mjs +14 -66
- package/_mjs/FiberStatus/definition.mjs.map +1 -1
- package/_mjs/FiberStatus.mjs.map +1 -1
- package/_mjs/Future/api.mjs +87 -110
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +1 -5
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +3 -9
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Future.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +98 -123
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/Hub/definition.mjs +13 -3
- package/_mjs/Hub/definition.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +30 -90
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/Hub.mjs.map +1 -1
- package/_mjs/IO/api/acquireRelease.mjs +0 -1
- package/_mjs/IO/api/acquireRelease.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs +1 -2
- package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs +0 -1
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +2 -2
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizer.mjs +0 -1
- package/_mjs/IO/api/addFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs +1 -2
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +8 -8
- package/_mjs/IO/api/asyncIO.mjs.map +1 -1
- package/_mjs/IO/api/asyncInterrupt.mjs +65 -0
- package/_mjs/IO/api/asyncInterrupt.mjs.map +1 -0
- package/_mjs/IO/api/bracket.mjs +2 -3
- package/_mjs/IO/api/bracket.mjs.map +1 -1
- package/_mjs/IO/api/bracketExit.mjs +2 -3
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/clockWith.mjs +2 -5
- package/_mjs/IO/api/clockWith.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +8 -11
- package/_mjs/IO/api/concurrency.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +1 -2
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/consoleWith.mjs +2 -5
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/core-scope.mjs +56 -94
- package/_mjs/IO/api/core-scope.mjs.map +1 -1
- package/_mjs/IO/api/delay.mjs +12 -0
- package/_mjs/IO/api/delay.mjs.map +1 -0
- package/_mjs/IO/api/ensuringChildren.mjs +7 -5
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +29 -42
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/foreachConcurrent.mjs +104 -0
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -0
- package/_mjs/IO/api/foreachExec.mjs +3 -4
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs +64 -0
- package/_mjs/IO/api/fork.mjs.map +1 -0
- package/_mjs/IO/api/forkAll.mjs +3 -3
- package/_mjs/IO/api/forkAll.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +7 -6
- package/_mjs/IO/api/forkIn.mjs.map +1 -1
- package/_mjs/IO/api/forkScoped.mjs +1 -2
- package/_mjs/IO/api/forkScoped.mjs.map +1 -1
- package/_mjs/IO/api/fulfill.mjs +7 -6
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +45 -58
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/memoize.mjs +1 -2
- package/_mjs/IO/api/memoize.mjs.map +1 -1
- package/_mjs/IO/api/onExit.mjs +5 -4
- package/_mjs/IO/api/onExit.mjs.map +1 -1
- package/_mjs/IO/api/onTermination.mjs +5 -4
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/once.mjs +1 -2
- package/_mjs/IO/api/once.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +5 -4
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +5 -12
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +7 -7
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +5 -4
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +1 -4
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +8 -13
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +12 -18
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +15 -15
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scope.mjs +0 -1
- package/_mjs/IO/api/scope.mjs.map +1 -1
- package/_mjs/IO/api/scopeWith.mjs +0 -1
- package/_mjs/IO/api/scopeWith.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +3 -6
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/sequenceT.mjs +1 -2
- package/_mjs/IO/api/sequenceT.mjs.map +1 -1
- package/_mjs/IO/api/sleep.mjs +0 -1
- package/_mjs/IO/api/sleep.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs +0 -1
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +5 -9
- package/_mjs/IO/api/supervised.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +10 -9
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/withChildren.mjs +2 -4
- package/_mjs/IO/api/withChildren.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +1 -2
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizer.mjs +5 -4
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +5 -4
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/zipConcurrent.mjs +41 -0
- package/_mjs/IO/api/zipConcurrent.mjs.map +1 -0
- package/_mjs/IO/api.mjs +545 -797
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +107 -150
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +51 -86
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +7 -5
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs +1 -2
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/IOEnv/live.mjs +1 -2
- package/_mjs/IOEnv/live.mjs.map +1 -1
- package/_mjs/IOEnv/services.mjs +0 -1
- package/_mjs/IOEnv/services.mjs.map +1 -1
- package/_mjs/IOEnv.mjs.map +1 -1
- package/_mjs/InterruptStatus/constructors.mjs +0 -3
- package/_mjs/InterruptStatus/constructors.mjs.map +1 -1
- package/_mjs/InterruptStatus/definition.mjs +0 -3
- package/_mjs/InterruptStatus/definition.mjs.map +1 -1
- package/_mjs/InterruptStatus.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +54 -82
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +93 -130
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs +15 -34
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/Layer.mjs.map +1 -1
- package/_mjs/LogLevel.mjs +24 -29
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs +16 -18
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs +16 -14
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs +3 -11
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Logger/definition.mjs +0 -1
- package/_mjs/Logger/definition.mjs.map +1 -1
- package/_mjs/Logger.mjs.map +1 -1
- package/_mjs/Push/api.mjs +417 -0
- package/_mjs/Push/api.mjs.map +1 -0
- package/_mjs/Push/definition.mjs +33 -0
- package/_mjs/Push/definition.mjs.map +1 -0
- package/_mjs/Push/internal.mjs +26 -0
- package/_mjs/Push/internal.mjs.map +1 -0
- package/_mjs/Push.mjs +5 -0
- package/_mjs/Push.mjs.map +1 -0
- package/_mjs/Queue/api/dimapIO.mjs +101 -42
- package/_mjs/Queue/api/dimapIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterInputIO.mjs +59 -24
- package/_mjs/Queue/api/filterInputIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +70 -32
- package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -1
- package/_mjs/Queue/api/operations.mjs +18 -22
- package/_mjs/Queue/api/operations.mjs.map +1 -1
- package/_mjs/Queue/api/poll.mjs +1 -2
- package/_mjs/Queue/api/poll.mjs.map +1 -1
- package/_mjs/Queue/api/takeBetween.mjs +23 -27
- package/_mjs/Queue/api/takeBetween.mjs.map +1 -1
- package/_mjs/Queue/api/zipWithIO.mjs +30 -33
- package/_mjs/Queue/api/zipWithIO.mjs.map +1 -1
- package/_mjs/Queue/api.mjs.map +1 -1
- package/_mjs/Queue/constructors.mjs +5 -9
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/definition.mjs +14 -7
- package/_mjs/Queue/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +57 -93
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +28 -55
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Queue.mjs.map +1 -1
- package/_mjs/Random/api.mjs +0 -8
- package/_mjs/Random/api.mjs.map +1 -1
- package/_mjs/Random/definition.mjs +0 -2
- package/_mjs/Random/definition.mjs.map +1 -1
- package/_mjs/Random/live.mjs +2 -9
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Random.mjs.map +1 -1
- package/_mjs/Ref/Atomic.mjs +49 -3
- package/_mjs/Ref/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Derived.mjs +11 -9
- package/_mjs/Ref/Derived.mjs.map +1 -1
- package/_mjs/Ref/DerivedAll.mjs +15 -11
- package/_mjs/Ref/DerivedAll.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/api.mjs +82 -68
- package/_mjs/Ref/Synchronized/api.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +1 -2
- package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs +16 -28
- package/_mjs/Ref/Synchronized/definition.mjs.map +1 -1
- package/_mjs/Ref/Synchronized.mjs +5 -0
- package/_mjs/Ref/Synchronized.mjs.map +1 -0
- package/_mjs/Ref/api/collect.mjs +6 -5
- package/_mjs/Ref/api/collect.mjs.map +1 -1
- package/_mjs/Ref/api/dimap.mjs +45 -41
- package/_mjs/Ref/api/dimap.mjs.map +1 -1
- package/_mjs/Ref/api/filter.mjs +12 -10
- package/_mjs/Ref/api/filter.mjs.map +1 -1
- package/_mjs/Ref/api/get.mjs +0 -1
- package/_mjs/Ref/api/get.mjs.map +1 -1
- package/_mjs/Ref/api/match.mjs +7 -7
- package/_mjs/Ref/api/match.mjs.map +1 -1
- package/_mjs/Ref/api/matchAll.mjs +5 -5
- package/_mjs/Ref/api/matchAll.mjs.map +1 -1
- package/_mjs/Ref/api/modify.mjs +63 -143
- package/_mjs/Ref/api/modify.mjs.map +1 -1
- package/_mjs/Ref/api/set.mjs +7 -6
- package/_mjs/Ref/api/set.mjs.map +1 -1
- package/_mjs/Ref/api.mjs +5 -7
- package/_mjs/Ref/api.mjs.map +1 -1
- package/_mjs/Ref/constructors.mjs +2 -3
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs +10 -3
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/Ref/symbols.mjs +25 -0
- package/_mjs/Ref/symbols.mjs.map +1 -0
- package/_mjs/Ref.mjs +4 -2
- package/_mjs/Ref.mjs.map +1 -1
- package/_mjs/RefSubject/Atomic.mjs +100 -0
- package/_mjs/RefSubject/Atomic.mjs.map +1 -0
- package/_mjs/RefSubject/Synchronized/api.mjs +15 -0
- package/_mjs/RefSubject/Synchronized/api.mjs.map +1 -0
- package/_mjs/RefSubject/Synchronized/definition.mjs +45 -0
- package/_mjs/RefSubject/Synchronized/definition.mjs.map +1 -0
- package/_mjs/RefSubject/api.mjs +220 -0
- package/_mjs/RefSubject/api.mjs.map +1 -0
- package/_mjs/RefSubject/definition.mjs +11 -0
- package/_mjs/RefSubject/definition.mjs.map +1 -0
- package/_mjs/RefSubject.mjs +5 -0
- package/_mjs/RefSubject.mjs.map +1 -0
- package/_mjs/Reloadable/api.mjs +3 -12
- package/_mjs/Reloadable/api.mjs.map +1 -1
- package/_mjs/Reloadable/constructors.mjs +14 -26
- package/_mjs/Reloadable/constructors.mjs.map +1 -1
- package/_mjs/Reloadable/definition.mjs +0 -6
- package/_mjs/Reloadable/definition.mjs.map +1 -1
- package/_mjs/Reloadable.mjs.map +1 -1
- package/_mjs/RuntimeConfig.mjs +0 -31
- package/_mjs/RuntimeConfig.mjs.map +1 -1
- package/_mjs/RuntimeFlag.mjs +2 -0
- package/_mjs/RuntimeFlag.mjs.map +1 -0
- package/_mjs/RuntimeFlags/Patch.mjs +58 -0
- package/_mjs/RuntimeFlags/Patch.mjs.map +1 -0
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs +82 -0
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs.map +1 -0
- package/_mjs/RuntimeFlags.mjs +4 -0
- package/_mjs/RuntimeFlags.mjs.map +1 -0
- package/_mjs/STM/api/core-api.mjs +29 -27
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api/core-constructors.mjs +0 -8
- package/_mjs/STM/api/core-constructors.mjs.map +1 -1
- package/_mjs/STM/api.mjs +182 -212
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/definition.mjs +14 -36
- package/_mjs/STM/definition.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +12 -54
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/CommitState.mjs +5 -25
- package/_mjs/STM/internal/CommitState.mjs.map +1 -1
- package/_mjs/STM/internal/Entry.mjs +0 -12
- package/_mjs/STM/internal/Entry.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +50 -128
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM/internal/TryCommit.mjs +3 -8
- package/_mjs/STM/internal/TryCommit.mjs.map +1 -1
- package/_mjs/STM/internal/Versioned.mjs +0 -1
- package/_mjs/STM/internal/Versioned.mjs.map +1 -1
- package/_mjs/STM.mjs +2 -2
- package/_mjs/STM.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +14 -25
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/Driver.mjs +0 -2
- package/_mjs/Schedule/Driver.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +6 -8
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +379 -374
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Schedule/definition.mjs.map +1 -1
- package/_mjs/Schedule.mjs.map +1 -1
- package/_mjs/Scope/Finalizer/definition.mjs +0 -1
- package/_mjs/Scope/Finalizer/definition.mjs.map +1 -1
- package/_mjs/Scope/Finalizer.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +12 -12
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +59 -60
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/constructors.mjs +1 -4
- package/_mjs/Scope/ReleaseMap/constructors.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/definition.mjs +0 -2
- package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +28 -45
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/Scope/definition.mjs +0 -4
- package/_mjs/Scope/definition.mjs.map +1 -1
- package/_mjs/Scope.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +7 -11
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef/definition.mjs +1 -3
- package/_mjs/ScopedRef/definition.mjs.map +1 -1
- package/_mjs/ScopedRef.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +282 -383
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/Sink/definition.mjs +0 -1
- package/_mjs/Sink/definition.mjs.map +1 -1
- package/_mjs/Sink.mjs.map +1 -1
- package/_mjs/State/api.mjs +16 -19
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/State/definition.mjs +2 -4
- package/_mjs/State/definition.mjs.map +1 -1
- package/_mjs/State/internal.mjs +0 -1
- package/_mjs/State/internal.mjs.map +1 -1
- package/_mjs/State.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +15 -30
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +5 -4
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +13 -23
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +827 -936
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs +0 -4
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +18 -34
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +33 -51
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +2 -9
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +13 -22
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +28 -42
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs +3 -6
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/Stream.mjs.map +1 -1
- package/_mjs/Subject/Atomic.mjs +22 -0
- package/_mjs/Subject/Atomic.mjs.map +1 -0
- package/_mjs/Subject/api.mjs +18 -0
- package/_mjs/Subject/api.mjs.map +1 -0
- package/_mjs/Subject/definition.mjs +3 -0
- package/_mjs/Subject/definition.mjs.map +1 -0
- package/_mjs/Subject.mjs +5 -0
- package/_mjs/Subject.mjs.map +1 -0
- package/_mjs/SubscriptionRef.mjs +41 -0
- package/_mjs/SubscriptionRef.mjs.map +1 -0
- package/_mjs/Supervisor/api.mjs +22 -29
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +2 -14
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +6 -32
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/Supervisor.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +28 -55
- package/_mjs/SupervisorPatch.mjs.map +1 -1
- package/_mjs/TExit/constructors.mjs +0 -6
- package/_mjs/TExit/constructors.mjs.map +1 -1
- package/_mjs/TExit/definition.mjs +14 -57
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TExit.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +17 -17
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +1 -4
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TFuture.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +41 -85
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +7 -26
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +79 -257
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/constructors.mjs +0 -7
- package/_mjs/TRef/constructors.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +84 -19
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TRef/symbols.mjs +17 -0
- package/_mjs/TRef/symbols.mjs.map +1 -0
- package/_mjs/TRef.mjs +1 -0
- package/_mjs/TRef.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +26 -32
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +10 -4
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/TSemaphore/definition.mjs.map +1 -1
- package/_mjs/TSemaphore.mjs.map +1 -1
- package/_mjs/TxnId.mjs +0 -1
- package/_mjs/TxnId.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +19 -20
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +19 -20
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +14 -15
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +17 -22
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +10 -9
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +28 -30
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +5 -4
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/internal/HashedPair.mjs +4 -7
- package/_mjs/internal/HashedPair.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs +13 -158
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +24 -51
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs +10 -57
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/Scheduler.mjs +0 -11
- package/_mjs/internal/Scheduler.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs +0 -3
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/Cached/api.ts +2 -2
- package/_src/Channel/ChildExecutorDecision/api.ts +14 -17
- package/_src/Channel/UpstreamPullRequest/api.ts +11 -13
- package/_src/Channel/api/interruptWhen.ts +18 -17
- package/_src/Channel/api/mapOutConcurrentIO.ts +66 -0
- package/_src/Channel/api/mergeAll.ts +15 -16
- package/_src/Channel/api/mergeAllUnboundedWith.ts +15 -27
- package/_src/Channel/api/mergeAllWith.ts +114 -126
- package/_src/Channel/api/mergeMap.ts +8 -18
- package/_src/Channel/api/mergeWith.ts +154 -158
- package/_src/Channel/api/toPull.ts +1 -1
- package/_src/Channel/api/zipConcurrent.ts +68 -0
- package/_src/Channel/api.ts +354 -414
- package/_src/Channel/core-api.ts +75 -122
- package/_src/Channel/definition.ts +49 -7
- package/_src/Channel/internal/ChannelExecutor.ts +12 -16
- package/_src/Channel/internal/SingleProducerAsyncInput.ts +2 -4
- package/_src/CountdownLatch.ts +39 -0
- package/_src/Fiber/FiberMessage.ts +78 -0
- package/_src/Fiber/FiberRuntime.ts +822 -0
- package/_src/Fiber/api/awaitAll.ts +1 -1
- package/_src/Fiber/api/collectAll.ts +2 -2
- package/_src/Fiber/api/inheritRefs.ts +1 -1
- package/_src/Fiber/api/interrupt.ts +1 -2
- package/_src/Fiber/api/interruptAll.ts +1 -2
- package/_src/Fiber/api/interruptAs.ts +9 -2
- package/_src/Fiber/api/interruptFork.ts +1 -1
- package/_src/Fiber/api/location.ts +2 -2
- package/_src/Fiber/api/mapFiber.ts +5 -7
- package/_src/Fiber/api/mapIO.ts +21 -21
- package/_src/Fiber/api/zipWith.ts +14 -17
- package/_src/Fiber/definition.ts +17 -16
- package/_src/Fiber.ts +2 -4
- package/_src/FiberDescriptor.ts +1 -8
- package/_src/FiberRef/api/locallyScoped.ts +8 -6
- package/_src/FiberRef/api/locallyScopedWith.ts +5 -7
- package/_src/FiberRef/api.ts +59 -52
- package/_src/FiberRef/unsafe.ts +6 -1
- package/_src/FiberRef.ts +0 -1
- package/_src/FiberRefs/api.ts +69 -14
- package/_src/FiberRefs/definition.ts +15 -7
- package/_src/FiberRefs/join.ts +39 -48
- package/_src/FiberScope/constructors.ts +2 -2
- package/_src/FiberScope/definition.ts +21 -9
- package/_src/FiberStatus/constructors.ts +6 -18
- package/_src/FiberStatus/definition.ts +13 -54
- package/_src/Future/api.ts +67 -53
- package/_src/Hub/api.ts +84 -96
- package/_src/Hub/definition.ts +22 -7
- package/_src/Hub/internal.ts +8 -8
- package/_src/IO/api/acquireRelease.ts +1 -1
- package/_src/IO/api/acquireReleaseExit.ts +1 -1
- package/_src/IO/api/asyncInterrupt.ts +77 -0
- package/_src/IO/api/bracket.ts +1 -1
- package/_src/IO/api/bracketExit.ts +1 -1
- package/_src/IO/api/clockWith.ts +0 -1
- package/_src/IO/api/concurrency.ts +5 -7
- package/_src/IO/api/consoleWith.ts +0 -2
- package/_src/IO/api/core-scope.ts +74 -90
- package/_src/IO/api/delay.ts +8 -0
- package/_src/IO/api/ensuringChildren.ts +8 -7
- package/_src/IO/api/environment.ts +24 -42
- package/_src/IO/api/{foreachC.ts → foreachConcurrent.ts} +30 -18
- package/_src/IO/api/foreachExec.ts +3 -3
- package/_src/IO/api/fork.ts +83 -0
- package/_src/IO/api/forkIn.ts +7 -9
- package/_src/IO/api/fulfill.ts +5 -3
- package/_src/IO/api/interrupt.ts +49 -32
- package/_src/IO/api/onExit.ts +8 -10
- package/_src/IO/api/onTermination.ts +12 -14
- package/_src/IO/api/provideLayer.ts +8 -10
- package/_src/IO/api/provideSomeLayer.ts +5 -14
- package/_src/IO/api/race.ts +19 -21
- package/_src/IO/api/raceFirst.ts +5 -7
- package/_src/IO/api/repeat.ts +3 -5
- package/_src/IO/api/retry.ts +19 -21
- package/_src/IO/api/schedule.ts +20 -21
- package/_src/IO/api/scoped.ts +2 -2
- package/_src/IO/api/sequenceT.ts +7 -1
- package/_src/IO/api/stateful.ts +0 -2
- package/_src/IO/api/supervised.ts +4 -8
- package/_src/IO/api/timeout.ts +10 -16
- package/_src/IO/api/withChildren.ts +2 -4
- package/_src/IO/api/withFinalizer.ts +5 -7
- package/_src/IO/api/withFinalizerExit.ts +6 -5
- package/_src/IO/api/zipConcurrent.ts +69 -0
- package/_src/IO/api.ts +576 -782
- package/_src/IO/definition.ts +150 -137
- package/_src/IO/runtime.ts +53 -64
- package/_src/IO.ts +5 -3
- package/_src/Layer/MemoMap.ts +62 -64
- package/_src/Layer/api.ts +95 -104
- package/_src/Layer/definition.ts +0 -1
- package/_src/LogLevel.ts +24 -16
- package/_src/LogSpan.ts +16 -16
- package/_src/Logger/api.ts +18 -17
- package/_src/Logger/constructors.ts +9 -15
- package/_src/Push/api.ts +702 -0
- package/_src/Push/definition.ts +42 -0
- package/_src/Push/internal.ts +39 -0
- package/_src/Push.ts +5 -0
- package/_src/Queue/api/dimapIO.ts +124 -47
- package/_src/Queue/api/filterInputIO.ts +69 -24
- package/_src/Queue/api/filterOutputIO.ts +77 -17
- package/_src/Queue/api/operations.ts +33 -31
- package/_src/Queue/api/poll.ts +3 -1
- package/_src/Queue/api/takeBetween.ts +29 -30
- package/_src/Queue/api/zipWithIO.ts +47 -36
- package/_src/Queue/constructors.ts +5 -5
- package/_src/Queue/definition.ts +129 -8
- package/_src/Queue/internal.ts +24 -38
- package/_src/Queue/strategy.ts +12 -26
- package/_src/Ref/Atomic.ts +70 -4
- package/_src/Ref/Derived.ts +22 -1
- package/_src/Ref/DerivedAll.ts +26 -2
- package/_src/Ref/Synchronized/api.ts +129 -130
- package/_src/Ref/Synchronized/constructors.ts +1 -1
- package/_src/Ref/Synchronized/definition.ts +21 -14
- package/_src/Ref/Synchronized.ts +5 -0
- package/_src/Ref/api/collect.ts +6 -8
- package/_src/Ref/api/dimap.ts +51 -64
- package/_src/Ref/api/filter.ts +12 -16
- package/_src/Ref/api/get.ts +2 -5
- package/_src/Ref/api/match.ts +8 -7
- package/_src/Ref/api/matchAll.ts +6 -5
- package/_src/Ref/api/modify.ts +61 -165
- package/_src/Ref/api/set.ts +7 -9
- package/_src/Ref/constructors.ts +3 -1
- package/_src/Ref/definition.ts +56 -23
- package/_src/Ref/symbols.ts +29 -0
- package/_src/Ref.ts +2 -0
- package/_src/RefSubject/Atomic.ts +120 -0
- package/_src/RefSubject/Synchronized/api.ts +14 -0
- package/_src/RefSubject/Synchronized/definition.ts +72 -0
- package/_src/RefSubject/api.ts +240 -0
- package/_src/RefSubject/definition.ts +62 -0
- package/_src/RefSubject.ts +5 -0
- package/_src/Reloadable/constructors.ts +2 -2
- package/_src/RuntimeConfig.ts +0 -31
- package/_src/RuntimeFlag.ts +10 -0
- package/_src/RuntimeFlags/Patch.ts +79 -0
- package/_src/RuntimeFlags/RuntimeFlags.ts +112 -0
- package/_src/RuntimeFlags.ts +4 -0
- package/_src/STM/api/core-api.ts +32 -35
- package/_src/STM/api.ts +211 -201
- package/_src/STM/internal/Entry.ts +0 -10
- package/_src/STM/internal/Journal.ts +24 -27
- package/_src/STM.ts +0 -1
- package/_src/Schedule/Decision.ts +10 -8
- package/_src/Schedule/api/driver.ts +2 -6
- package/_src/Schedule/api.ts +471 -474
- package/_src/Schedule/definition.ts +0 -1
- package/_src/Scope/ReleaseMap/api/releaseAll.ts +24 -26
- package/_src/Scope/ReleaseMap/api.ts +77 -74
- package/_src/Scope/ReleaseMap/constructors.ts +1 -1
- package/_src/Scope/api.ts +16 -18
- package/_src/ScopedRef/api.ts +0 -3
- package/_src/ScopedRef/definition.ts +1 -2
- package/_src/Sink/api.ts +326 -354
- package/_src/State/api.ts +12 -8
- package/_src/State/internal.ts +1 -1
- package/_src/Stream/api/zipAllWith.ts +7 -6
- package/_src/Stream/api/zipWith.ts +5 -8
- package/_src/Stream/api/zipWithChunks.ts +7 -6
- package/_src/Stream/api.ts +1086 -1203
- package/_src/Stream/definition.ts +0 -2
- package/_src/Stream/internal/DebounceState.ts +16 -17
- package/_src/Stream/internal/Handoff.ts +32 -36
- package/_src/Stream/internal/SinkEndReason.ts +13 -14
- package/_src/Stream/internal/Take.ts +21 -21
- package/_src/Stream/internal/util.ts +0 -2
- package/_src/Subject/Atomic.ts +28 -0
- package/_src/Subject/api.ts +18 -0
- package/_src/Subject/definition.ts +18 -0
- package/_src/Subject.ts +5 -0
- package/_src/SubscriptionRef.ts +58 -0
- package/_src/Supervisor/api.ts +20 -16
- package/_src/Supervisor/definition.ts +0 -1
- package/_src/SupervisorPatch.ts +10 -6
- package/_src/TExit/definition.ts +0 -8
- package/_src/TFuture/api.ts +23 -17
- package/_src/TFuture/definition.ts +2 -3
- package/_src/TReentrantLock/api.ts +18 -14
- package/_src/TReentrantLock/definition.ts +1 -8
- package/_src/TRef/api.ts +80 -250
- package/_src/TRef/constructors.ts +6 -6
- package/_src/TRef/definition.ts +161 -45
- package/_src/TRef/symbols.ts +19 -0
- package/_src/TRef.ts +1 -0
- package/_src/TSemaphore/api.ts +20 -19
- package/_src/TSemaphore/constructors.ts +7 -0
- package/_src/TSemaphore/definition.ts +1 -1
- package/_src/collection/immutable/Conc/dropUntilIO.ts +19 -21
- package/_src/collection/immutable/Conc/dropWhileIO.ts +21 -23
- package/_src/collection/immutable/Conc/filterIO.ts +15 -17
- package/_src/collection/immutable/Conc/findIO.ts +17 -19
- package/_src/collection/immutable/Conc/mapIO.ts +12 -10
- package/_src/collection/immutable/Conc/takeWhileIO.ts +27 -29
- package/_src/data/Exit/foreachIO.ts +8 -10
- package/_src/global.ts +11 -3
- package/_src/index.ts +10 -1
- package/_src/internal/Hub.ts +17 -27
- package/_src/internal/IsFatal.ts +14 -12
- package/_src/internal/MutableQueue.ts +8 -8
- package/_src/internal/StackTraceBuilder.ts +1 -2
- package/collection/immutable/Conc/dropUntilIO.d.ts +3 -3
- package/collection/immutable/Conc/dropWhileIO.d.ts +3 -3
- package/collection/immutable/Conc/filterIO.d.ts +3 -3
- package/collection/immutable/Conc/findIO.d.ts +2 -2
- package/collection/immutable/Conc/mapIO.d.ts +3 -3
- package/collection/immutable/Conc/takeWhileIO.d.ts +3 -3
- package/data/Exit/foreachIO.d.ts +3 -3
- package/global.d.ts +11 -3
- package/index.d.ts +10 -1
- package/internal/HashedPair.d.ts +2 -2
- package/internal/Hub.d.ts +2 -2
- package/internal/IsFatal.d.ts +3 -3
- package/internal/MutableQueue.d.ts +3 -3
- package/package.json +4 -4
- package/Channel/api/mapOutIOC.d.ts +0 -8
- package/Channel/api/zipC.d.ts +0 -16
- package/Fiber/FiberContext.d.ts +0 -153
- package/Fiber/api/evalOn.d.ts +0 -7
- package/Fiber/api/evalOnIO.d.ts +0 -9
- package/Fiber/api/interruptAsFork.d.ts +0 -8
- package/FiberState/api.d.ts +0 -7
- package/FiberState/constructors.d.ts +0 -22
- package/FiberState/definition.d.ts +0 -38
- package/FiberState.d.ts +0 -3
- package/IO/api/withRuntimeConfig.d.ts +0 -10
- package/IO/api/zipC.d.ts +0 -13
- package/Ref/Atomic/Atomic.d.ts +0 -18
- package/Ref/Atomic/api.d.ts +0 -53
- package/_cjs/Channel/api/mapOutIOC.cjs +0 -63
- package/_cjs/Channel/api/mapOutIOC.cjs.map +0 -1
- package/_cjs/Channel/api/zipC.cjs.map +0 -1
- package/_cjs/Fiber/FiberContext.cjs +0 -1088
- package/_cjs/Fiber/FiberContext.cjs.map +0 -1
- package/_cjs/Fiber/api/evalOn.cjs.map +0 -1
- package/_cjs/Fiber/api/evalOnIO.cjs +0 -31
- package/_cjs/Fiber/api/evalOnIO.cjs.map +0 -1
- package/_cjs/Fiber/api/interruptAsFork.cjs +0 -15
- package/_cjs/Fiber/api/interruptAsFork.cjs.map +0 -1
- package/_cjs/FiberState/api.cjs.map +0 -1
- package/_cjs/FiberState/constructors.cjs.map +0 -1
- package/_cjs/FiberState/definition.cjs.map +0 -1
- package/_cjs/FiberState.cjs.map +0 -1
- package/_cjs/IO/api/foreachC.cjs.map +0 -1
- package/_cjs/IO/api/withRuntimeConfig.cjs.map +0 -1
- package/_cjs/IO/api/zipC.cjs +0 -67
- package/_cjs/IO/api/zipC.cjs.map +0 -1
- package/_cjs/Ref/Atomic/Atomic.cjs +0 -64
- package/_cjs/Ref/Atomic/Atomic.cjs.map +0 -1
- package/_cjs/Ref/Atomic/api.cjs +0 -156
- package/_cjs/Ref/Atomic/api.cjs.map +0 -1
- package/_mjs/Channel/api/mapOutIOC.mjs +0 -32
- package/_mjs/Channel/api/mapOutIOC.mjs.map +0 -1
- package/_mjs/Channel/api/zipC.mjs +0 -30
- package/_mjs/Channel/api/zipC.mjs.map +0 -1
- package/_mjs/Fiber/FiberContext.mjs +0 -1013
- package/_mjs/Fiber/FiberContext.mjs.map +0 -1
- package/_mjs/Fiber/api/evalOn.mjs +0 -17
- package/_mjs/Fiber/api/evalOn.mjs.map +0 -1
- package/_mjs/Fiber/api/evalOnIO.mjs +0 -16
- package/_mjs/Fiber/api/evalOnIO.mjs.map +0 -1
- package/_mjs/Fiber/api/interruptAsFork.mjs +0 -8
- package/_mjs/Fiber/api/interruptAsFork.mjs.map +0 -1
- package/_mjs/FiberState/api.mjs +0 -15
- package/_mjs/FiberState/api.mjs.map +0 -1
- package/_mjs/FiberState/constructors.mjs +0 -26
- package/_mjs/FiberState/constructors.mjs.map +0 -1
- package/_mjs/FiberState/definition.mjs +0 -26
- package/_mjs/FiberState/definition.mjs.map +0 -1
- package/_mjs/FiberState.mjs +0 -5
- package/_mjs/FiberState.mjs.map +0 -1
- package/_mjs/IO/api/foreachC.mjs +0 -118
- package/_mjs/IO/api/foreachC.mjs.map +0 -1
- package/_mjs/IO/api/withRuntimeConfig.mjs +0 -13
- package/_mjs/IO/api/withRuntimeConfig.mjs.map +0 -1
- package/_mjs/IO/api/zipC.mjs +0 -39
- package/_mjs/IO/api/zipC.mjs.map +0 -1
- package/_mjs/Ref/Atomic/Atomic.mjs +0 -47
- package/_mjs/Ref/Atomic/Atomic.mjs.map +0 -1
- package/_mjs/Ref/Atomic/api.mjs +0 -127
- package/_mjs/Ref/Atomic/api.mjs.map +0 -1
- package/_src/Channel/api/mapOutIOC.ts +0 -63
- package/_src/Channel/api/zipC.ts +0 -104
- package/_src/Fiber/FiberContext.ts +0 -1019
- package/_src/Fiber/api/evalOn.ts +0 -17
- package/_src/Fiber/api/evalOnIO.ts +0 -19
- package/_src/Fiber/api/interruptAsFork.ts +0 -7
- package/_src/FiberState/api.ts +0 -12
- package/_src/FiberState/constructors.ts +0 -33
- package/_src/FiberState/definition.ts +0 -44
- package/_src/FiberState.ts +0 -5
- package/_src/IO/api/withRuntimeConfig.ts +0 -20
- package/_src/IO/api/zipC.ts +0 -74
- package/_src/Ref/Atomic/Atomic.ts +0 -56
- package/_src/Ref/Atomic/api.ts +0 -124
package/Stream/api.d.ts
CHANGED
@@ -10,9 +10,8 @@ import { Fiber } from "@fncts/io/Fiber/definition";
|
|
10
10
|
import { Lazy } from "@fncts/base/data/function/definition";
|
11
11
|
import { Exit } from "@fncts/base/data/Exit/definition";
|
12
12
|
import { Scope } from "@fncts/io/Scope/definition";
|
13
|
-
import { Hub } from "@fncts/io/Hub/definition";
|
14
13
|
import { Future } from "@fncts/io/Future";
|
15
|
-
import { Ref } from "@fncts/io/Ref";
|
14
|
+
import { Ref } from "@fncts/io/Ref/definition";
|
16
15
|
import { Environment } from "@fncts/base/data/Environment/definition";
|
17
16
|
import { Duration } from "@fncts/base/data/Duration/definition";
|
18
17
|
import { HashMap } from "@fncts/base/collection/immutable/HashMap/definition";
|
@@ -21,8 +20,9 @@ import { Refinement } from "@fncts/base/data/Refinement/definition";
|
|
21
20
|
import { Layer } from "@fncts/io/Layer";
|
22
21
|
import type { PHub } from "../Hub.js";
|
23
22
|
import type { Canceler } from "../IO.js";
|
24
|
-
import type { PQueue } from "../Queue.js";
|
23
|
+
import type { PDequeue, PEnqueue, PQueue } from "../Queue.js";
|
25
24
|
import { MergeDecision } from "../Channel/internal/MergeDecision.js";
|
25
|
+
import { Hub } from "../Hub.js";
|
26
26
|
import { Queue } from "../Queue.js";
|
27
27
|
import { Stream } from "./definition.js";
|
28
28
|
import { Take } from "./internal/Take.js";
|
@@ -43,16 +43,16 @@ export declare function absolve<R, E, E2, A>(self: Stream<R, E, Either<E2, A>>,
|
|
43
43
|
*
|
44
44
|
* Any sink can be used here, but see `Sink.foldWeightedM` and `Sink.foldUntilM` for
|
45
45
|
* sinks that cover the common usecases.
|
46
|
-
* @tsplus
|
46
|
+
* @tsplus pipeable fncts.io.Stream aggregateAsync
|
47
47
|
* @tsplus location "@fncts/io/Stream/api"
|
48
48
|
*/
|
49
|
-
export declare function
|
49
|
+
export declare function aggregateAsync<R1, E1, A1, B>(sink: Sink<R1, E1, A1, A1, B>, __tsplusTrace?: string): <R, E, A extends A1>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
50
50
|
/**
|
51
51
|
* Like `aggregateAsyncWithinEither`, but only returns the `Right` results.
|
52
|
-
* @tsplus
|
52
|
+
* @tsplus pipeable fncts.io.Stream aggregateAsyncWithin
|
53
53
|
* @tsplus location "@fncts/io/Stream/api"
|
54
54
|
*/
|
55
|
-
export declare function
|
55
|
+
export declare function aggregateAsyncWithin<R1, E1, A1, B, R2, C>(sink: Sink<R1, E1, A1, A1, B>, schedule: Schedule<R2, Maybe<B>, C>, __tsplusTrace?: string): <R, E, A extends A1>(stream: Stream<R, E, A>) => Stream<R1 | R2 | R, E1 | E, B>;
|
56
56
|
/**
|
57
57
|
* Aggregates elements using the provided sink until it completes, or until the
|
58
58
|
* delay signalled by the schedule has passed.
|
@@ -64,32 +64,32 @@ export declare function aggregateAsyncWithin_<R, E, A extends A1, R1, E1, A1, B,
|
|
64
64
|
*
|
65
65
|
* Aggregated elements will be fed into the schedule to determine the delays between
|
66
66
|
* pulls.
|
67
|
-
* @tsplus
|
67
|
+
* @tsplus pipeable fncts.io.Stream aggregateAsyncWithinEither
|
68
68
|
* @tsplus location "@fncts/io/Stream/api"
|
69
69
|
*/
|
70
|
-
export declare function
|
70
|
+
export declare function aggregateAsyncWithinEither<R1, E1, A1, B, R2, C>(sink: Sink<R1, E1, A1, A1, B>, schedule: Schedule<R2, Maybe<B>, C>, __tsplusTrace?: string): <R, E, A extends A1>(stream: Stream<R, E, A>) => Stream<R1 | R2 | R, E1 | E, import("@fncts/base/data/Either.js").Either<C, B>>;
|
71
71
|
/**
|
72
72
|
* Composes this stream with the specified stream to create a cartesian product of elements,
|
73
73
|
* but keeps only elements from this stream.
|
74
74
|
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
75
|
-
* @tsplus
|
75
|
+
* @tsplus pipeable fncts.io.Stream zipLeft
|
76
76
|
* @tsplus location "@fncts/io/Stream/api"
|
77
77
|
*/
|
78
|
-
export declare function
|
78
|
+
export declare function zipLeft<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
79
79
|
/**
|
80
80
|
* Composes this stream with the specified stream to create a cartesian product of elements,
|
81
81
|
* but keeps only elements from the other stream.
|
82
82
|
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
83
|
-
* @tsplus
|
83
|
+
* @tsplus pipeable fncts.io.Stream zipRight
|
84
84
|
* @tsplus location "@fncts/io/Stream/api"
|
85
85
|
*/
|
86
|
-
export declare function
|
86
|
+
export declare function zipRight<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A1>;
|
87
87
|
/**
|
88
88
|
* Maps the success values of this stream to the specified constant value.
|
89
|
-
* @tsplus
|
89
|
+
* @tsplus pipeable fncts.io.Stream as
|
90
90
|
* @tsplus location "@fncts/io/Stream/api"
|
91
91
|
*/
|
92
|
-
export declare function
|
92
|
+
export declare function as<B>(b: Lazy<B>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, B>;
|
93
93
|
/**
|
94
94
|
* @tsplus static fncts.io.StreamOps asyncInterrupt
|
95
95
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -117,68 +117,70 @@ export declare function asyncIO<R, E, A, R1 = R, E1 = E>(register: (resolve: (ne
|
|
117
117
|
/**
|
118
118
|
* Returns a stream whose failure and success channels have been mapped by
|
119
119
|
* the specified pair of functions, `f` and `g`.
|
120
|
+
* @tsplus pipeable fncts.io.Stream bimap
|
121
|
+
* @tsplus location "@fncts/io/Stream/api"
|
120
122
|
*/
|
121
|
-
export declare function
|
123
|
+
export declare function bimap<E, E1, A, A1>(f: (e: E) => E1, g: (a: A) => A1, __tsplusTrace?: string): <R>(stream: Stream<R, E, A>) => Stream<R, E1, A1>;
|
122
124
|
/**
|
123
125
|
* Creates a stream from a single value that will get cleaned up after the
|
124
126
|
* stream is consumed
|
125
127
|
* @tsplus static fncts.io.StreamOps acquireRelease
|
126
128
|
* @tsplus location "@fncts/io/Stream/api"
|
127
129
|
*/
|
128
|
-
export declare function
|
130
|
+
export declare function acquireRelease<R, E, A, R1>(acquire: IO<R, E, A>, release: (a: A) => IO<R1, never, unknown>, __tsplusTrace?: string): Stream<R | R1, E, A>;
|
129
131
|
/**
|
130
132
|
* Creates a stream from a single value that will get cleaned up after the
|
131
133
|
* stream is consumed
|
132
134
|
* @tsplus static fncts.io.StreamOps acquireReleaseExit
|
133
135
|
* @tsplus location "@fncts/io/Stream/api"
|
134
136
|
*/
|
135
|
-
export declare function
|
137
|
+
export declare function acquireReleaseExit<R, E, A, R1>(acquire: IO<R, E, A>, release: (a: A, exit: Exit<any, any>) => IO<R1, never, unknown>, __tsplusTrace?: string): Stream<R | R1, E, A>;
|
136
138
|
/**
|
137
139
|
* Fan out the stream, producing a list of streams that have the same elements as this stream.
|
138
140
|
* The driver stream will only ever advance of the `maximumLag` chunks before the
|
139
141
|
* slowest downstream stream.
|
140
|
-
* @tsplus
|
142
|
+
* @tsplus pipeable fncts.io.Stream broadcast
|
141
143
|
* @tsplus location "@fncts/io/Stream/api"
|
142
144
|
*/
|
143
|
-
export declare function
|
145
|
+
export declare function broadcast(n: number, maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, import("@fncts/base/collection/immutable/Conc.js").Conc<Stream<unknown, E, A>>>;
|
144
146
|
/**
|
145
147
|
* Fan out the stream, producing a dynamic number of streams that have the same elements as this stream.
|
146
148
|
* The driver stream will only ever advance of the `maximumLag` chunks before the
|
147
149
|
* slowest downstream stream.
|
148
|
-
* @tsplus
|
150
|
+
* @tsplus pipeable fncts.io.Stream broadcastDynamic
|
149
151
|
* @tsplus location "@fncts/io/Stream/api"
|
150
152
|
*/
|
151
|
-
export declare function
|
153
|
+
export declare function broadcastDynamic(maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, Stream<unknown, E, A>>;
|
152
154
|
/**
|
153
155
|
* Converts the stream to a managed list of queues. Every value will be replicated to every queue with the
|
154
156
|
* slowest queue being allowed to buffer `maximumLag` chunks before the driver is backpressured.
|
155
157
|
*
|
156
158
|
* Queues can unsubscribe from upstream by shutting down.
|
157
|
-
* @tsplus
|
159
|
+
* @tsplus pipeable fncts.io.Stream broadcastedQueues
|
158
160
|
* @tsplus location "@fncts/io/Stream/api"
|
159
161
|
*/
|
160
|
-
export declare function
|
162
|
+
export declare function broadcastedQueues(n: number, maximumLag: number, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, import("@fncts/base/collection/immutable/Conc.js").Conc<Queue.Dequeue<Take<E, A>>>>;
|
161
163
|
/**
|
162
164
|
* Converts the stream to a managed dynamic amount of queues. Every chunk will be replicated to every queue with the
|
163
165
|
* slowest queue being allowed to buffer `maximumLag` chunks before the driver is backpressured.
|
164
166
|
*
|
165
167
|
* Queues can unsubscribe from upstream by shutting down.
|
166
|
-
* @tsplus
|
168
|
+
* @tsplus pipeable fncts.io.Stream broadcastedQueuesDynamic
|
167
169
|
* @tsplus location "@fncts/io/Stream/api"
|
168
170
|
*/
|
169
|
-
export declare function
|
171
|
+
export declare function broadcastedQueuesDynamic(maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, import("../IO.js").IO<import("../Scope.js").Scope, never, Queue.Dequeue<Take<E, A>>>>;
|
170
172
|
/**
|
171
173
|
* Allows a faster producer to progress independently of a slower consumer by buffering
|
172
174
|
* up to `capacity` elements in a queue.
|
173
|
-
* @tsplus
|
175
|
+
* @tsplus pipeable fncts.io.Stream buffer
|
174
176
|
* @tsplus location "@fncts/io/Stream/api"
|
175
177
|
*/
|
176
|
-
export declare function
|
178
|
+
export declare function buffer(capacity: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
177
179
|
/**
|
178
|
-
* @tsplus
|
180
|
+
* @tsplus pipeable fncts.io.Stream bufferChunks
|
179
181
|
* @tsplus location "@fncts/io/Stream/api"
|
180
182
|
*/
|
181
|
-
export declare function
|
183
|
+
export declare function bufferChunks(capacity: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
182
184
|
/**
|
183
185
|
* Allows a faster producer to progress independently of a slower consumer by buffering
|
184
186
|
* elements into an unbounded queue.
|
@@ -189,40 +191,40 @@ export declare function bufferUnbounded<R, E, A>(stream: Stream<R, E, A>, __tspl
|
|
189
191
|
/**
|
190
192
|
* Switches over to the stream produced by the provided function in case this one
|
191
193
|
* fails with a typed error.
|
192
|
-
* @tsplus
|
194
|
+
* @tsplus pipeable fncts.io.Stream catchAll
|
193
195
|
* @tsplus location "@fncts/io/Stream/api"
|
194
196
|
*/
|
195
|
-
export declare function
|
197
|
+
export declare function catchAll<R1, E, E1, A1>(f: (e: E) => Stream<R1, E1, A1>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1, A1 | A>;
|
196
198
|
/**
|
197
199
|
* Switches over to the stream produced by the provided function in case this one
|
198
200
|
* fails. Allows recovery from all causes of failure, including interruption if the
|
199
201
|
* stream is uninterruptible.
|
200
|
-
* @tsplus
|
202
|
+
* @tsplus pipeable fncts.io.Stream catchAllCause
|
201
203
|
* @tsplus location "@fncts/io/Stream/api"
|
202
204
|
*/
|
203
|
-
export declare function
|
205
|
+
export declare function catchAllCause<R1, E, E1, A1>(f: (cause: Cause<E>) => Stream<R1, E1, A1>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1, A1 | A>;
|
204
206
|
/**
|
205
207
|
* Switches over to the stream produced by the provided function in case this one
|
206
208
|
* fails with some typed error.
|
207
|
-
* @tsplus
|
209
|
+
* @tsplus pipeable fncts.io.Stream catchJust
|
208
210
|
* @tsplus location "@fncts/io/Stream/api"
|
209
211
|
*/
|
210
|
-
export declare function
|
212
|
+
export declare function catchJust<R1, E, E1, A1>(pf: (e: E) => Maybe<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E | E1, A1 | A>;
|
211
213
|
/**
|
212
214
|
* Switches over to the stream produced by the provided function in case this one
|
213
215
|
* fails with some errors. Allows recovery from all causes of failure, including interruption if the
|
214
216
|
* stream is uninterruptible.
|
215
|
-
* @tsplus
|
217
|
+
* @tsplus pipeable fncts.io.Stream catchJustCause
|
216
218
|
* @tsplus location "@fncts/io/Stream/api"
|
217
219
|
*/
|
218
|
-
export declare function
|
220
|
+
export declare function catchJustCause<R1, E, E1, A1>(pf: (e: Cause<E>) => Maybe<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E | E1, A1 | A>;
|
219
221
|
/**
|
220
222
|
* Returns a stream made of the concatenation in strict order of all the streams
|
221
223
|
* produced by passing each element of this stream to `f`
|
222
|
-
* @tsplus
|
224
|
+
* @tsplus pipeable fncts.io.Stream flatMap
|
223
225
|
* @tsplus location "@fncts/io/Stream/api"
|
224
226
|
*/
|
225
|
-
export declare function
|
227
|
+
export declare function flatMap<A, R1, E1, B>(f: (a: A) => Stream<R1, E1, B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
226
228
|
/**
|
227
229
|
* Exposes the underlying chunks of the stream as a stream of chunks of elements
|
228
230
|
* @tsplus getter fncts.io.Stream chunks
|
@@ -232,28 +234,28 @@ export declare function chunks<R, E, A>(stream: Stream<R, E, A>, __tsplusTrace?:
|
|
232
234
|
/**
|
233
235
|
* Performs the specified stream transformation with the chunk structure of
|
234
236
|
* the stream exposed.
|
235
|
-
* @tsplus
|
237
|
+
* @tsplus pipeable fncts.io.Stream chunksWith
|
236
238
|
* @tsplus location "@fncts/io/Stream/api"
|
237
239
|
*/
|
238
|
-
export declare function chunksWith<R, E, A, R1, E1, B>(
|
240
|
+
export declare function chunksWith<R, E, A, R1, E1, B>(f: (_: Stream<R, E, Conc<A>>) => Stream<R1, E1, Conc<B>>, __tsplusTrace?: string): (self: Stream<R, E, A>) => Stream<R1, E1, B>;
|
239
241
|
/**
|
240
242
|
* Returns a new stream that only emits elements that are not equal to the
|
241
243
|
* previous element emitted, using the specified function to determine
|
242
244
|
* whether two elements are equal.
|
243
|
-
* @tsplus
|
245
|
+
* @tsplus pipeable fncts.io.Stream changesWith
|
244
246
|
* @tsplus location "@fncts/io/Stream/api"
|
245
247
|
*/
|
246
|
-
export declare function
|
248
|
+
export declare function changesWith<A>(f: (x: A, y: A) => boolean, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
247
249
|
/**
|
248
250
|
* Transforms all elements of the stream for as long as the specified partial function is defined.
|
249
|
-
* @tsplus
|
251
|
+
* @tsplus pipeable fncts.io.Stream collectWhile
|
250
252
|
* @tsplus location "@fncts/io/Stream/api"
|
251
253
|
*/
|
252
|
-
export declare function
|
254
|
+
export declare function collectWhile<A, A1>(pf: (a: A) => Maybe<A1>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A1>;
|
253
255
|
/**
|
254
256
|
* Effectfully transforms all elements of the stream for as long as the specified partial function is defined.
|
255
257
|
*/
|
256
|
-
export declare function
|
258
|
+
export declare function collectWhileIO<R, E, A, R1, E1, B>(stream: Stream<R, E, A>, pf: (a: A) => Maybe<IO<R1, E1, B>>, __tsplusTrace?: string): Stream<R | R1, E | E1, B>;
|
257
259
|
/**
|
258
260
|
* Combines the elements from this stream and the specified stream by repeatedly applying the
|
259
261
|
* function `f` to extract an element using both sides and conceptually "offer"
|
@@ -261,67 +263,67 @@ export declare function collectWhileIO_<R, E, A, R1, E1, B>(stream: Stream<R, E,
|
|
261
263
|
* the combining process, with the initial state being specified by `s`.
|
262
264
|
*
|
263
265
|
* Where possible, prefer `Stream#combineChunks` for a more efficient implementation.
|
264
|
-
* @tsplus
|
266
|
+
* @tsplus pipeable fncts.io.Stream combine
|
265
267
|
* @tsplus location "@fncts/io/Stream/api"
|
266
268
|
*/
|
267
|
-
export declare function
|
269
|
+
export declare function combine<R, E, A, R1, E1, A1, S, R2, A2>(that: Stream<R1, E1, A1>, s: S, f: (s: S, eff1: IO<R, Maybe<E>, A>, eff2: IO<R1, Maybe<E1>, A1>) => IO<R2, never, Exit<Maybe<E | E1>, readonly [A2, S]>>, __tsplusTrace?: string): (stream: Stream<R, E, A>) => Stream<R | R1 | R2, E | E1, A2>;
|
268
270
|
/**
|
269
271
|
* Combines the chunks from this stream and the specified stream by repeatedly applying the
|
270
272
|
* function `f` to extract a chunk using both sides and conceptually "offer"
|
271
273
|
* it to the destination stream. `f` can maintain some internal state to control
|
272
274
|
* the combining process, with the initial state being specified by `s`.
|
273
|
-
* @tsplus
|
275
|
+
* @tsplus pipeable fncts.io.Stream combineChunks
|
274
276
|
* @tsplus location "@fncts/io/Stream/api"
|
275
277
|
*/
|
276
|
-
export declare function
|
278
|
+
export declare function combineChunks<R, E, A, R1, E1, A1, S, R2, A2>(that: Stream<R1, E1, A1>, s: S, f: (s: S, l: IO<R, Maybe<E>, Conc<A>>, r: IO<R1, Maybe<E1>, Conc<A1>>) => IO<R2, never, Exit<Maybe<E | E1>, readonly [Conc<A2>, S]>>, __tsplusTrace?: string): (stream: Stream<R, E, A>) => Stream<R1 | R | R2, E | E1, A2>;
|
277
279
|
/**
|
278
280
|
* Concatenates the specified stream with this stream, resulting in a stream
|
279
281
|
* that emits the elements from this stream and then the elements from the specified stream.
|
280
|
-
* @tsplus
|
282
|
+
* @tsplus pipeable fncts.io.Stream concat
|
281
283
|
* @tsplus location "@fncts/io/Stream/api"
|
282
284
|
*/
|
283
|
-
export declare function
|
285
|
+
export declare function concat<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A1 | A>;
|
284
286
|
/**
|
285
287
|
* Composes this stream with the specified stream to create a cartesian product of elements.
|
286
288
|
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
287
|
-
* @tsplus
|
289
|
+
* @tsplus pipeable fncts.io.Stream cross
|
288
290
|
* @tsplus location "@fncts/io/Stream/api"
|
289
291
|
*/
|
290
|
-
export declare function
|
292
|
+
export declare function cross<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, readonly [A, B]>;
|
291
293
|
/**
|
292
294
|
* Composes this stream with the specified stream to create a cartesian product of elements
|
293
295
|
* with a specified function.
|
294
296
|
* The `fb` stream would be run multiple times, for every element in the `fa` stream.
|
295
|
-
* @tsplus
|
297
|
+
* @tsplus pipeable fncts.io.Stream crossWith
|
296
298
|
* @tsplus location "@fncts/io/Stream/api"
|
297
299
|
*/
|
298
|
-
export declare function
|
300
|
+
export declare function crossWith<A, R1, E1, B, C>(fb: Stream<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, C>;
|
299
301
|
/**
|
300
302
|
* Provides some of the environment required to run this effect,
|
301
303
|
* leaving the remainder `R0`.
|
302
|
-
* @tsplus
|
304
|
+
* @tsplus pipeable fncts.io.Stream contramapEnvironment
|
303
305
|
* @tsplus location "@fncts/io/Stream/api"
|
304
306
|
*/
|
305
|
-
export declare function
|
307
|
+
export declare function contramapEnvironment<R, R0>(f: (r0: Environment<R0>) => Environment<R>, __tsplusTrace?: string): <E, A>(ra: Stream<R, E, A>) => Stream<R0, E, A>;
|
306
308
|
/**
|
307
|
-
* @tsplus
|
309
|
+
* @tsplus pipeable fncts.io.Stream debounce
|
308
310
|
* @tsplus location "@fncts/io/Stream/api"
|
309
311
|
*/
|
310
|
-
export declare function
|
312
|
+
export declare function debounce(duration: Lazy<Duration>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
311
313
|
/**
|
312
314
|
* Switches to the provided stream in case this one is empty.
|
313
|
-
* @tsplus
|
315
|
+
* @tsplus pipeable fncts.io.Stream defaultIfEmpty
|
314
316
|
* @tsplus location "@fncts/io/Stream/api"
|
315
317
|
*/
|
316
|
-
export declare function
|
318
|
+
export declare function defaultIfEmpty<R1, E1, B>(fb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B | A>;
|
317
319
|
/**
|
318
320
|
* More powerful version of `broadcast`. Allows to provide a function that determines what
|
319
321
|
* queues should receive which elements. The decide function will receive the indices of the queues
|
320
322
|
* in the resulting list.
|
321
|
-
* @tsplus
|
323
|
+
* @tsplus pipeable fncts.io.Stream distributedWith
|
322
324
|
* @tsplus location "@fncts/io/Stream/api"
|
323
325
|
*/
|
324
|
-
export declare function
|
326
|
+
export declare function distributedWith<A>(n: number, maximumLag: number, decide: (_: A) => UIO<(_: number) => boolean>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, import("@fncts/base/collection/immutable/Conc.js").Conc<Queue.Dequeue<import("@fncts/base/data/Exit.js").Exit<import("@fncts/base/data/Maybe.js").Maybe<E>, A>>>>;
|
325
327
|
/**
|
326
328
|
* More powerful version of `ZStream#distributedWith`. This returns a function that will produce
|
327
329
|
* new queues and corresponding indices.
|
@@ -329,10 +331,10 @@ export declare function distributedWith_<R, E, A>(self: Stream<R, E, A>, n: numb
|
|
329
331
|
* Shutdown of the queues is handled by the driver.
|
330
332
|
* Downstream users can also shutdown queues manually. In this case the driver will
|
331
333
|
* continue but no longer backpressure on them.
|
332
|
-
* @tsplus
|
334
|
+
* @tsplus pipeable fncts.io.Stream distributedWithDynamic
|
333
335
|
* @tsplus location "@fncts/io/Stream/api"
|
334
336
|
*/
|
335
|
-
export declare function
|
337
|
+
export declare function distributedWithDynamic<E, A>(maximumLag: number, decide: (a: A) => UIO<(_: symbol) => boolean>, done?: (exit: Exit<Maybe<E>, never>) => UIO<any>, __tsplusTrace?: string): <R>(self: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, import("../IO.js").UIO<readonly [symbol, Queue.Dequeue<import("@fncts/base/data/Exit.js").Exit<import("@fncts/base/data/Maybe.js").Maybe<E>, A>>]>>;
|
336
338
|
/**
|
337
339
|
* Converts this stream to a stream that executes its effects but emits no
|
338
340
|
* elements. Useful for sequencing effects using streams.
|
@@ -342,24 +344,24 @@ export declare function distributedWithDynamic_<R, E, A>(self: Stream<R, E, A>,
|
|
342
344
|
export declare function drain<R, E, A>(fa: Stream<R, E, A>, __tsplusTrace?: string): Stream<R, E, void>;
|
343
345
|
/**
|
344
346
|
* Drops the specified number of elements from this stream.
|
345
|
-
* @tsplus
|
347
|
+
* @tsplus pipeable fncts.io.Stream drop
|
346
348
|
* @tsplus location "@fncts/io/Stream/api"
|
347
349
|
*/
|
348
|
-
export declare function
|
350
|
+
export declare function drop(n: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
349
351
|
/**
|
350
352
|
* Drops all elements of the stream for as long as the specified predicate
|
351
353
|
* evaluates to `true`.
|
352
|
-
* @tsplus
|
354
|
+
* @tsplus pipeable fncts.io.Stream dropWhile
|
353
355
|
* @tsplus location "@fncts/io/Stream/api"
|
354
356
|
*/
|
355
|
-
export declare function
|
357
|
+
export declare function dropWhile<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
356
358
|
/**
|
357
359
|
* Drops all elements of the stream until the specified predicate evaluates
|
358
360
|
* to `true`.
|
359
|
-
* @tsplus
|
361
|
+
* @tsplus pipeable fncts.io.Stream dropUntil
|
360
362
|
* @tsplus location "@fncts/io/Stream/api"
|
361
363
|
*/
|
362
|
-
export declare function
|
364
|
+
export declare function dropUntil<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
363
365
|
/**
|
364
366
|
* Returns a stream whose failures and successes have been lifted into an
|
365
367
|
* `Either`. The resulting stream cannot fail, because the failures have
|
@@ -382,15 +384,15 @@ export declare const empty: Stream<never, never, never>;
|
|
382
384
|
* completes. See `interruptWhen` for this behavior.
|
383
385
|
*
|
384
386
|
* If the IO completes with a failure, the stream will emit that failure.
|
385
|
-
* @tsplus
|
387
|
+
* @tsplus pipeable fncts.io.Stream endWhen
|
386
388
|
* @tsplus location "@fncts/io/Stream/api"
|
387
389
|
*/
|
388
|
-
export declare function
|
390
|
+
export declare function endWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
389
391
|
/**
|
390
|
-
* @tsplus
|
392
|
+
* @tsplus pipeable fncts.io.Stream ensuring
|
391
393
|
* @tsplus location "@fncts/io/Stream/api"
|
392
394
|
*/
|
393
|
-
export declare function
|
395
|
+
export declare function ensuring<R1>(finalizer: IO<R1, never, any>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R1 | R, E, A>;
|
394
396
|
/**
|
395
397
|
* @tsplus static fncts.io.StreamOps environment
|
396
398
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -439,38 +441,38 @@ export declare function failCauseNow<E>(cause: Cause<E>, __tsplusTrace?: string)
|
|
439
441
|
*/
|
440
442
|
export declare function failCause<E>(cause: Lazy<Cause<E>>, __tsplusTrace?: string): Stream<never, E, never>;
|
441
443
|
/**
|
442
|
-
* @tsplus
|
444
|
+
* @tsplus pipeable fncts.io.Stream filter
|
443
445
|
* @tsplus location "@fncts/io/Stream/api"
|
444
446
|
*/
|
445
|
-
export declare function
|
446
|
-
export declare function
|
447
|
+
export declare function filter<A, B extends A>(refinement: Refinement<A, B>): <R, E>(fa: Stream<R, E, A>) => Stream<R, E, B>;
|
448
|
+
export declare function filter<A>(predicate: Predicate<A>): <R, E>(fa: Stream<R, E, A>) => Stream<R, E, A>;
|
447
449
|
/**
|
448
|
-
* @tsplus
|
450
|
+
* @tsplus pipeable fncts.io.Stream filterIO
|
449
451
|
* @tsplus location "@fncts/io/Stream/api"
|
450
452
|
*/
|
451
|
-
export declare function
|
453
|
+
export declare function filterIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
452
454
|
/**
|
453
|
-
* @tsplus
|
455
|
+
* @tsplus pipeable fncts.io.Stream filterMap
|
454
456
|
* @tsplus location "@fncts/io/Stream/api"
|
455
457
|
*/
|
456
|
-
export declare function
|
458
|
+
export declare function filterMap<A, B>(f: (a: A) => Maybe<B>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R, E, B>;
|
457
459
|
/**
|
458
|
-
* @tsplus
|
460
|
+
* @tsplus pipeable fncts.io.Stream filterMapIO
|
459
461
|
* @tsplus location "@fncts/io/Stream/api"
|
460
462
|
*/
|
461
|
-
export declare function
|
463
|
+
export declare function filterMapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Maybe<B>>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
462
464
|
/**
|
463
465
|
* Finds the first element emitted by this stream that satisfies the provided predicate.
|
464
|
-
* @tsplus
|
466
|
+
* @tsplus pipeable fncts.io.Stream find
|
465
467
|
* @tsplus location "@fncts/io/Stream/api"
|
466
468
|
*/
|
467
|
-
export declare function
|
469
|
+
export declare function find<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
468
470
|
/**
|
469
471
|
* Finds the first element emitted by this stream that satisfies the provided effectful predicate.
|
470
|
-
* @tsplus
|
472
|
+
* @tsplus pipeable fncts.io.Stream findIO
|
471
473
|
* @tsplus location "@fncts/io/Stream/api"
|
472
474
|
*/
|
473
|
-
export declare function
|
475
|
+
export declare function findIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
474
476
|
/**
|
475
477
|
* Flattens this stream-of-streams into a stream made of the concatenation in
|
476
478
|
* strict order of all the streams.
|
@@ -522,7 +524,7 @@ export declare function fromChunk<O>(c: Lazy<Conc<O>>, __tsplusTrace?: string):
|
|
522
524
|
* @tsplus static fncts.io.StreamOps scoped
|
523
525
|
* @tsplus location "@fncts/io/Stream/api"
|
524
526
|
*/
|
525
|
-
export declare function scoped<R, E, A>(stream: IO<R, E, A
|
527
|
+
export declare function scoped<R, E, A>(stream: Lazy<IO<R, E, A>>, __tsplusTrace?: string): Stream<Exclude<R, Scope>, E, A>;
|
526
528
|
/**
|
527
529
|
* Creates a stream from an effect producing a value of type `A`
|
528
530
|
* @tsplus static fncts.io.StreamOps fromIO
|
@@ -560,12 +562,22 @@ export declare function fromPull<R, E, A>(scopedPull: IO<R, never, IO<R, Maybe<E
|
|
560
562
|
* @tsplus static fncts.io.StreamOps fromQueue
|
561
563
|
* @tsplus location "@fncts/io/Stream/api"
|
562
564
|
*/
|
563
|
-
export declare function
|
565
|
+
export declare function fromQueue<RA, RB, EA, EB, A, B>(queue: PDequeue<RA, RB, EA, EB, A, B>, maxChunkSize?: number, __tsplusTrace?: string): Stream<RB, EB, B>;
|
564
566
|
/**
|
565
567
|
* @tsplus static fncts.io.StreamOps fromQueueWithShutdown
|
566
568
|
* @tsplus location "@fncts/io/Stream/api"
|
567
569
|
*/
|
568
|
-
export declare function fromQueueWithShutdown<
|
570
|
+
export declare function fromQueueWithShutdown<RA, RB, EA, EB, A, B>(queue: PDequeue<RA, RB, EA, EB, A, B>, maxChunkSize?: number, __tsplusTrace?: string): Stream<RB, EB, B>;
|
571
|
+
/**
|
572
|
+
* @tsplus static fncts.io.StreamOps fromHub
|
573
|
+
* @tsplus location "@fncts/io/Stream/api"
|
574
|
+
*/
|
575
|
+
export declare function fromHub<A>(hub: Lazy<Hub<A>>, maxChunkSize?: number, __tsplusTrace?: string): Stream<never, never, A>;
|
576
|
+
/**
|
577
|
+
* @tsplus static fncts.io.StreamOps fromHubScoped
|
578
|
+
* @tsplus location "@fncts/io/Stream/api"
|
579
|
+
*/
|
580
|
+
export declare function fromHubScoped<A>(hub: Lazy<Hub<A>>, maxChunkSize?: number, __tsplusTrace?: string): IO<Scope, never, Stream<never, never, A>>;
|
569
581
|
/**
|
570
582
|
* Halt a stream with the specified exception
|
571
583
|
* @tsplus static fncts.io.StreamOps haltNow
|
@@ -587,23 +599,23 @@ export declare function halt(u: Lazy<unknown>, __tsplusTrace?: string): Stream<n
|
|
587
599
|
* IO completes. See `interruptWhen` for this behavior.
|
588
600
|
*
|
589
601
|
* If the IO completes with a failure, the stream will emit that failure.
|
590
|
-
* @tsplus
|
602
|
+
* @tsplus pipeable fncts.io.Stream haltWhen
|
591
603
|
* @tsplus location "@fncts/io/Stream/api"
|
592
604
|
*/
|
593
|
-
export declare function
|
605
|
+
export declare function haltWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
594
606
|
/**
|
595
607
|
* Halts the evaluation of this stream when the provided promise resolves.
|
596
608
|
*
|
597
609
|
* If the promise completes with a failure, the stream will emit that failure.
|
598
|
-
* @tsplus
|
610
|
+
* @tsplus pipeable fncts.io.Stream haltWhen
|
599
611
|
* @tsplus location "@fncts/io/Stream/api"
|
600
612
|
*/
|
601
|
-
export declare function
|
613
|
+
export declare function haltWhenFuture<E1>(future: Future<E1, any>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R, E1 | E, A>;
|
602
614
|
/**
|
603
|
-
* @tsplus
|
615
|
+
* @tsplus pipeable fncts.io.Stream interleave
|
604
616
|
* @tsplus location "@fncts/io/Stream/api"
|
605
617
|
*/
|
606
|
-
export declare function
|
618
|
+
export declare function interleave<R1, E1, B>(sb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(sa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B | A>;
|
607
619
|
/**
|
608
620
|
* Combines this stream and the specified stream deterministically using the
|
609
621
|
* stream of boolean values `b` to control which stream to pull from next.
|
@@ -611,14 +623,14 @@ export declare function interleave_<R, E, A, R1, E1, B>(sa: Stream<R, E, A>, sb:
|
|
611
623
|
* from the specified stream. Only consumes as many elements as requested by
|
612
624
|
* `b`. If either this stream or the specified stream are exhausted further
|
613
625
|
* requests for values from that stream will be ignored.
|
614
|
-
* @tsplus
|
626
|
+
* @tsplus pipeable fncts.io.Stream interleaveWith
|
615
627
|
* @tsplus location "@fncts/io/Stream/api"
|
616
628
|
*/
|
617
|
-
export declare function
|
629
|
+
export declare function interleaveWith<R1, E1, B, R2, E2>(sb: Stream<R1, E1, B>, b: Stream<R2, E2, boolean>, __tsplusTrace?: string): <R, E, A>(sa: Stream<R, E, A>) => Stream<R1 | R2 | R, E1 | E2 | E, B | A>;
|
618
630
|
/**
|
619
631
|
* Intersperse stream with provided element
|
620
632
|
*/
|
621
|
-
export declare function
|
633
|
+
export declare function intersperse<R, E, A, A1>(stream: Stream<R, E, A>, middle: A1, __tsplusTrace?: string): Stream<R, E, A | A1>;
|
622
634
|
/**
|
623
635
|
* Interrupts the evaluation of this stream when the provided IO completes. The given
|
624
636
|
* IO will be forked as part of this stream, and its success will be discarded. This
|
@@ -626,204 +638,204 @@ export declare function intersperse_<R, E, A, A1>(stream: Stream<R, E, A>, middl
|
|
626
638
|
*
|
627
639
|
* If the IO completes with a failure before the stream completes, the returned stream
|
628
640
|
* will emit that failure.
|
629
|
-
* @tsplus
|
641
|
+
* @tsplus pipeable fncts.io.Stream interruptWhen
|
630
642
|
* @tsplus location "@fncts/io/Stream/api"
|
631
643
|
*/
|
632
|
-
export declare function
|
644
|
+
export declare function interruptWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
633
645
|
/**
|
634
|
-
* @tsplus
|
646
|
+
* @tsplus pipeable fncts.io.Stream interruptWhen
|
635
647
|
* @tsplus location "@fncts/io/Stream/api"
|
636
648
|
*/
|
637
|
-
export declare function
|
649
|
+
export declare function interruptWhenFuture<E1>(future: Future<E1, unknown>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R, E1 | E, A>;
|
638
650
|
/**
|
639
651
|
* Transforms the elements of this stream using the supplied function.
|
640
|
-
* @tsplus
|
652
|
+
* @tsplus pipeable fncts.io.Stream map
|
641
653
|
* @tsplus location "@fncts/io/Stream/api"
|
642
654
|
*/
|
643
|
-
export declare function
|
655
|
+
export declare function map<A, B>(f: (o: A) => B, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, B>;
|
644
656
|
/**
|
645
657
|
* Statefully maps over the elements of this stream to produce new elements.
|
646
|
-
* @tsplus
|
658
|
+
* @tsplus pipeable fncts.io.Stream mapAccum
|
647
659
|
* @tsplus location "@fncts/io/Stream/api"
|
648
660
|
*/
|
649
|
-
export declare function
|
661
|
+
export declare function mapAccum<A, S, B>(s: S, f: (s: S, a: A) => readonly [S, B], __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, B>;
|
650
662
|
/**
|
651
663
|
* Statefully and effectfully maps over the elements of this stream to produce
|
652
664
|
* new elements.
|
653
|
-
* @tsplus
|
665
|
+
* @tsplus pipeable fncts.io.Stream mapAccumIO
|
654
666
|
* @tsplus location "@fncts/io/Stream/api"
|
655
667
|
*/
|
656
|
-
export declare function
|
668
|
+
export declare function mapAccumIO<A, R1, E1, S, B>(s: S, f: (s: S, a: A) => IO<R1, E1, readonly [B, S]>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
657
669
|
/**
|
658
670
|
* Transforms the chunks emitted by this stream.
|
659
|
-
* @tsplus
|
671
|
+
* @tsplus pipeable fncts.io.Stream mapChunks
|
660
672
|
* @tsplus location "@fncts/io/Stream/api"
|
661
673
|
*/
|
662
|
-
export declare function
|
674
|
+
export declare function mapChunks<A, A1>(f: (chunk: Conc<A>) => Conc<A1>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A1>;
|
663
675
|
/**
|
664
676
|
* Effectfully transforms the chunks emitted by this stream.
|
665
|
-
* @tsplus
|
677
|
+
* @tsplus pipeable fncts.io.Stream mapChunksIO
|
666
678
|
* @tsplus location "@fncts/io/Stream/api"
|
667
679
|
*/
|
668
|
-
export declare function
|
680
|
+
export declare function mapChunksIO<A, R1, E1, B>(f: (chunk: Conc<A>) => IO<R1, E1, Conc<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
669
681
|
/**
|
670
682
|
* Maps each element to an iterable, and flattens the iterables into the
|
671
683
|
* output of this stream.
|
672
|
-
* @tsplus
|
684
|
+
* @tsplus pipeable fncts.io.Stream mapConcat
|
673
685
|
* @tsplus location "@fncts/io/Stream/api"
|
674
686
|
*/
|
675
|
-
export declare function
|
687
|
+
export declare function mapConcat<A, B>(f: (a: A) => Iterable<B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, B>;
|
676
688
|
/**
|
677
689
|
* Maps each element to a chunk, and flattens the chunks into the output of
|
678
690
|
* this stream.
|
679
|
-
* @tsplus
|
691
|
+
* @tsplus pipeable fncts.io.Stream mapConcatChunk
|
680
692
|
* @tsplus location "@fncts/io/Stream/api"
|
681
693
|
*/
|
682
|
-
export declare function
|
694
|
+
export declare function mapConcatChunk<A, B>(f: (a: A) => Conc<B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, B>;
|
683
695
|
/**
|
684
696
|
* Effectfully maps each element to a chunk, and flattens the chunks into
|
685
697
|
* the output of this stream.
|
686
|
-
* @tsplus
|
698
|
+
* @tsplus pipeable fncts.io.Stream mapConcatChunkIO
|
687
699
|
* @tsplus location "@fncts/io/Stream/api"
|
688
700
|
*/
|
689
|
-
export declare function
|
701
|
+
export declare function mapConcatChunkIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Conc<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
690
702
|
/**
|
691
703
|
* Effectfully maps each element to an iterable, and flattens the iterables into
|
692
704
|
* the output of this stream.
|
693
|
-
* @tsplus
|
705
|
+
* @tsplus pipeable fncts.io.Stream mapConcatIO
|
694
706
|
* @tsplus location "@fncts/io/Stream/api"
|
695
707
|
*/
|
696
|
-
export declare function
|
708
|
+
export declare function mapConcatIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Iterable<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
697
709
|
/**
|
698
710
|
* Transforms the errors emitted by this stream using `f`.
|
699
|
-
* @tsplus
|
711
|
+
* @tsplus pipeable fncts.io.Stream mapError
|
700
712
|
* @tsplus location "@fncts/io/Stream/api"
|
701
713
|
*/
|
702
|
-
export declare function
|
714
|
+
export declare function mapError<E, E1>(f: (e: E) => E1, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R, E1, A>;
|
703
715
|
/**
|
704
716
|
* Transforms the full causes of failures emitted by this stream.
|
705
|
-
* @tsplus
|
717
|
+
* @tsplus pipeable fncts.io.Stream mapErrorCause
|
706
718
|
* @tsplus location "@fncts/io/Stream/api"
|
707
719
|
*/
|
708
|
-
export declare function
|
720
|
+
export declare function mapErrorCause<E, E1>(f: (e: Cause<E>) => Cause<E1>, __tsplusTrace?: string): <R, A>(fa: Stream<R, E, A>) => Stream<R, E1, A>;
|
709
721
|
/**
|
710
722
|
* Maps over elements of the stream with the specified effectful function.
|
711
|
-
* @tsplus
|
723
|
+
* @tsplus pipeable fncts.io.Stream mapIO
|
712
724
|
* @tsplus location "@fncts/io/Stream/api"
|
713
725
|
*/
|
714
|
-
export declare function
|
726
|
+
export declare function mapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
715
727
|
/**
|
716
728
|
* Maps over elements of the stream with the specified effectful function,
|
717
729
|
* executing up to `n` invocations of `f` concurrently. Transformed elements
|
718
730
|
* will be emitted in the original order.
|
719
731
|
* @note This combinator destroys the chunking structure. It's recommended to use chunkN afterwards.
|
720
|
-
* @tsplus
|
732
|
+
* @tsplus pipeable fncts.io.Stream mapIOC
|
721
733
|
* @tsplus location "@fncts/io/Stream/api"
|
722
734
|
*/
|
723
|
-
export declare function
|
735
|
+
export declare function mapIOC<A, R1, E1, B>(n: number, f: (a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
724
736
|
/**
|
725
737
|
* Maps each element of this stream to another stream and returns the
|
726
738
|
* non-deterministic merge of those streams, executing up to `n` inner streams
|
727
739
|
* concurrently. Up to `bufferSize` elements of the produced streams may be
|
728
740
|
* buffered in memory by this operator.
|
729
|
-
* @tsplus
|
741
|
+
* @tsplus pipeable fncts.io.Stream mergeMap
|
730
742
|
* @tsplus location "@fncts/io/Stream/api"
|
731
743
|
*/
|
732
|
-
export declare function
|
744
|
+
export declare function mergeMap<A, R1, E1, B>(f: (a: A) => Stream<R1, E1, B>, n: number, bufferSize?: number, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
733
745
|
/**
|
734
746
|
* Maps over elements of the stream with the specified effectful function,
|
735
747
|
* executing up to `n` invocations of `f` concurrently. The element order
|
736
748
|
* is not enforced by this combinator, and elements may be reordered.
|
737
|
-
* @tsplus
|
749
|
+
* @tsplus pipeable fncts.io.Stream mergeMapIO
|
738
750
|
* @tsplus location "@fncts/io/Stream/api"
|
739
751
|
*/
|
740
|
-
export declare function
|
752
|
+
export declare function mergeMapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, B>, n: number, bufferSize?: number, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
741
753
|
/**
|
742
|
-
* @tsplus
|
754
|
+
* @tsplus pipeable fncts.io.Stream mergeEither
|
743
755
|
* @tsplus location "@fncts/io/Stream/api"
|
744
756
|
*/
|
745
|
-
export declare function
|
757
|
+
export declare function mergeEither<R1, E1, B>(fb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, import("@fncts/base/data/Either.js").Either<A, B>>;
|
746
758
|
export declare function mergeWithHandler<R, E>(terminate: boolean, __tsplusTrace?: string): (exit: Exit<E, unknown>) => MergeDecision<R, E, unknown, E, unknown>;
|
747
759
|
export type TerminationStrategy = "Left" | "Right" | "Both" | "Either";
|
748
760
|
/**
|
749
|
-
* @tsplus
|
761
|
+
* @tsplus pipeable fncts.io.Stream mergeWith
|
750
762
|
* @tsplus location "@fncts/io/Stream/api"
|
751
763
|
*/
|
752
|
-
export declare function
|
764
|
+
export declare function mergeWith<A, R1, E1, A1, B, C>(sb: Stream<R1, E1, A1>, l: (a: A) => B, r: (b: A1) => C, strategy?: TerminationStrategy, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B | C>;
|
753
765
|
/**
|
754
766
|
* Runs the specified effect if this stream fails, providing the error to the effect if it exists.
|
755
767
|
*
|
756
768
|
* Note: Unlike `IO.onError`, there is no guarantee that the provided effect will not be interrupted.
|
757
|
-
* @tsplus
|
769
|
+
* @tsplus pipeable fncts.io.Stream onError
|
758
770
|
* @tsplus location "@fncts/io/Stream/api"
|
759
771
|
*/
|
760
|
-
export declare function
|
772
|
+
export declare function onError<E, R1>(cleanup: (e: Cause<E>) => IO<R1, never, any>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E, A>;
|
761
773
|
/**
|
762
774
|
* Switches to the provided stream in case this one fails with a typed error.
|
763
775
|
*
|
764
776
|
* See also Stream#catchAll
|
765
|
-
* @tsplus
|
777
|
+
* @tsplus pipeable fncts.io.Stream orElse
|
766
778
|
* @tsplus location "@fncts/io/Stream/api"
|
767
779
|
*/
|
768
|
-
export declare function
|
780
|
+
export declare function orElse<R1, E1, A1>(that: Lazy<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1, A1 | A>;
|
769
781
|
/**
|
770
782
|
* Switches to the provided stream in case this one fails with a typed error.
|
771
783
|
*
|
772
784
|
* See also ZStream#catchAll
|
773
|
-
* @tsplus
|
785
|
+
* @tsplus pipeable fncts.io.Stream orElseEither
|
774
786
|
* @tsplus location "@fncts/io/Stream/api"
|
775
787
|
*/
|
776
|
-
export declare function
|
788
|
+
export declare function orElseEither<R1, E1, A1>(that: Lazy<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R1 | R, E1, import("@fncts/base/data/Either.js").Either<A, A1>>;
|
777
789
|
/**
|
778
790
|
* Fails with given error in case this one fails with a typed error.
|
779
791
|
*
|
780
792
|
* See also Stream#catchAll
|
781
|
-
* @tsplus
|
793
|
+
* @tsplus pipeable fncts.io.Stream orElseFail
|
782
794
|
* @tsplus location "@fncts/io/Stream/api"
|
783
795
|
*/
|
784
|
-
export declare function
|
796
|
+
export declare function orElseFail<E1>(e: Lazy<E1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E1, A>;
|
785
797
|
/**
|
786
798
|
* Switches to the provided stream in case this one fails with the `None` value.
|
787
799
|
*
|
788
800
|
* See also Stream#catchAll.
|
789
801
|
*/
|
790
|
-
export declare function
|
802
|
+
export declare function orElseOptional<R, E, A, R1, E1, A1>(stream: Stream<R, Maybe<E>, A>, that: Lazy<Stream<R1, Maybe<E1>, A1>>, __tsplusTrace?: string): Stream<R | R1, Maybe<E | E1>, A | A1>;
|
791
803
|
/**
|
792
804
|
* Succeeds with the specified value if this one fails with a typed error.
|
793
|
-
* @tsplus
|
805
|
+
* @tsplus pipeable fncts.io.Stream orElseSucceed
|
794
806
|
* @tsplus location "@fncts/io/Stream/api"
|
795
807
|
*/
|
796
|
-
export declare function
|
808
|
+
export declare function orElseSucceed<A1>(a: Lazy<A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, never, A1 | A>;
|
797
809
|
/**
|
798
|
-
* @tsplus
|
810
|
+
* @tsplus pipeable fncts.io.Stream pipeThrough
|
799
811
|
* @tsplus location "@fncts/io/Stream/api"
|
800
812
|
*/
|
801
|
-
export declare function
|
813
|
+
export declare function pipeThrough<A, R1, E1, L, Z>(sa: Sink<R1, E1, A, L, Z>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R1 | R, E1 | E, L>;
|
802
814
|
/**
|
803
815
|
* Provides the stream with its required environment, which eliminates
|
804
816
|
* its dependency on `R`.
|
805
|
-
* @tsplus
|
817
|
+
* @tsplus pipeable fncts.io.Stream provideEnvironment
|
806
818
|
* @tsplus location "@fncts/io/Stream/api"
|
807
819
|
*/
|
808
|
-
export declare function
|
820
|
+
export declare function provideEnvironment<R>(r: Environment<R>, __tsplusTrace?: string): <E, A>(ra: Stream<R, E, A>) => Stream<never, E, A>;
|
809
821
|
/**
|
810
|
-
* @tsplus
|
822
|
+
* @tsplus pipeable fncts.io.Stream provideLayer
|
811
823
|
* @tsplus location "@fncts/io/Stream/api"
|
812
824
|
*/
|
813
|
-
export declare function
|
825
|
+
export declare function provideLayer<RIn, ROut, E1>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <E, A>(self: Stream<ROut, E, A>) => Stream<RIn, E1 | E, A>;
|
814
826
|
/**
|
815
|
-
* @tsplus
|
827
|
+
* @tsplus pipeable fncts.io.Stream provideSomeLayer
|
816
828
|
* @tsplus location "@fncts/io/Stream/api"
|
817
829
|
*/
|
818
|
-
export declare function
|
830
|
+
export declare function provideSomeLayer<RIn, E1, ROut>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<RIn | Exclude<R, ROut>, E1 | E, A>;
|
819
831
|
/**
|
820
832
|
* Re-chunks the elements of the stream into chunks of
|
821
833
|
* `n` elements each.
|
822
834
|
* The last chunk might contain less than `n` elements
|
823
|
-
* @tsplus
|
835
|
+
* @tsplus pipeable fncts.io.Stream rechunk
|
824
836
|
* @tsplus location "@fncts/io/Stream/api"
|
825
837
|
*/
|
826
|
-
export declare function
|
838
|
+
export declare function rechunk(n: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
827
839
|
/**
|
828
840
|
* Repeats the provided value infinitely.
|
829
841
|
* @tsplus static fncts.io.StreamOps repeatValue
|
@@ -856,10 +868,10 @@ export declare function repeatIOChunk<R, E, A>(fa: IO<R, E, Conc<A>>, __tsplusTr
|
|
856
868
|
export declare function repeatIOChunkMaybe<R, E, A>(fa: IO<R, Maybe<E>, Conc<A>>, __tsplusTrace?: string): Stream<R, E, A>;
|
857
869
|
/**
|
858
870
|
* Runs the sink on the stream to produce either the sink's result or an error.
|
859
|
-
* @tsplus
|
871
|
+
* @tsplus pipeable fncts.io.Stream run
|
860
872
|
* @tsplus location "@fncts/io/Stream/api"
|
861
873
|
*/
|
862
|
-
export declare function
|
874
|
+
export declare function run<A, R2, E2, Z>(sink: Sink<R2, E2, A, unknown, Z>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => import("../IO.js").IO<R2 | R, E2 | E, Z>;
|
863
875
|
/**
|
864
876
|
* Runs the stream and collects all of its elements to a chunk.
|
865
877
|
* @tsplus getter fncts.io.Stream runCollect
|
@@ -873,65 +885,65 @@ export declare function runCollect<R, E, A>(stream: Stream<R, E, A>, __tsplusTra
|
|
873
885
|
*/
|
874
886
|
export declare function runDrain<R, E, A>(stream: Stream<R, E, A>, __tsplusTrace?: string): IO<R, E, void>;
|
875
887
|
/**
|
876
|
-
* @tsplus
|
888
|
+
* @tsplus pipeable fncts.io.Stream runForeachScoped
|
877
889
|
* @tsplus location "@fncts/io/Stream/api"
|
878
890
|
*/
|
879
|
-
export declare function
|
891
|
+
export declare function runForeachScoped<A, R2, E2>(f: (a: A) => IO<R2, E2, any>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R2 | R, E2 | E, void>;
|
880
892
|
/**
|
881
893
|
* Like `into`, but provides the result as a `Managed` to allow for scope
|
882
894
|
* composition.
|
883
|
-
* @tsplus
|
895
|
+
* @tsplus pipeable fncts.io.Stream runIntoElementsScoped
|
884
896
|
* @tsplus location "@fncts/io/Stream/api"
|
885
897
|
*/
|
886
|
-
export declare function runIntoElementsScoped_<
|
898
|
+
export declare function runIntoElementsScoped_<E, A, R1, E1>(queue: PQueue<R1, unknown, never, never, Exit<Maybe<E | E1>, A>, unknown>, __tsplusTrace?: string): <R>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R1 | R, E | E1, void>;
|
887
899
|
/**
|
888
900
|
* Like `Stream#into`, but provides the result as a `Managed` to allow for scope
|
889
901
|
* composition.
|
890
|
-
* @tsplus
|
902
|
+
* @tsplus pipeable fncts.io.Stream runIntoQueueScoped
|
891
903
|
* @tsplus location "@fncts/io/Stream/api"
|
892
904
|
*/
|
893
|
-
export declare function
|
905
|
+
export declare function runIntoQueueScoped<RA, RB, EA, EB, E1, A, B>(queue: PEnqueue<RA, RB, EA, EB, Take<E1, A>, B>, __tsplusTrace?: string): <R, E extends E1>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | RA | R, EA | E1 | E, void>;
|
894
906
|
/**
|
895
907
|
* Like `Stream#runIntoHub`, but provides the result as a `Managed` to allow for scope
|
896
908
|
* composition.
|
897
|
-
* @tsplus
|
909
|
+
* @tsplus pipeable fncts.io.Stream runIntoHubScoped
|
898
910
|
* @tsplus location "@fncts/io/Stream/api"
|
899
911
|
*/
|
900
|
-
export declare function
|
912
|
+
export declare function runIntoHubScoped<RA, RB, EA, EB, E1, A, B>(hub: PHub<RA, RB, EA, EB, Take<E1, A>, B>, __tsplusTrace?: string): <R, E extends E1>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | RA | R, EA | E1 | E, void>;
|
901
913
|
/**
|
902
914
|
* Runs the sink on the stream to produce either the sink's result or an error.
|
903
|
-
* @tsplus
|
915
|
+
* @tsplus pipeable fncts.io.Stream runScoped
|
904
916
|
* @tsplus location "@fncts/io/Stream/api"
|
905
917
|
*/
|
906
|
-
export declare function
|
918
|
+
export declare function runScoped<A, R2, E2, Z>(sink: Sink<R2, E2, A, unknown, Z>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R2 | R, E2 | E, Z>;
|
907
919
|
/**
|
908
920
|
* Statefully maps over the elements of this stream to produce all intermediate results
|
909
921
|
* of type `B` given an initial B.
|
910
|
-
* @tsplus
|
922
|
+
* @tsplus pipeable fncts.io.Stream scan
|
911
923
|
* @tsplus location "@fncts/io/Stream/api"
|
912
924
|
*/
|
913
|
-
export declare function
|
925
|
+
export declare function scan<A, B>(b: B, f: (b: B, a: A) => B, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<R, E, B>;
|
914
926
|
/**
|
915
927
|
* Statefully and effectfully maps over the elements of this stream to produce all
|
916
928
|
* intermediate results of type `B` given an initial B.
|
917
|
-
* @tsplus
|
929
|
+
* @tsplus pipeable fncts.io.Stream scanIO
|
918
930
|
* @tsplus location "@fncts/io/Stream/api"
|
919
931
|
*/
|
920
|
-
export declare function
|
932
|
+
export declare function scanIO<A, R1, E1, B>(b: B, f: (b: B, a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
921
933
|
/**
|
922
934
|
* Statefully maps over the elements of this stream to produce all
|
923
935
|
* intermediate results.
|
924
|
-
* @tsplus
|
936
|
+
* @tsplus pipeable fncts.io.Stream scanReduce
|
925
937
|
* @tsplus location "@fncts/io/Stream/api"
|
926
938
|
*/
|
927
|
-
export declare function
|
939
|
+
export declare function scanReduce<A extends B, B>(f: (b: B, a: A) => B, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R, E, B>;
|
928
940
|
/**
|
929
941
|
* Statefully and effectfully maps over the elements of this stream to produce
|
930
942
|
* all intermediate results.
|
931
|
-
* @tsplus
|
943
|
+
* @tsplus pipeable fncts.io.Stream scanReduceIO
|
932
944
|
* @tsplus location "@fncts/io/Stream/api"
|
933
945
|
*/
|
934
|
-
export declare function
|
946
|
+
export declare function scanReduceIO<A extends B, R1, E1, B>(f: (b: B, a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, B>;
|
935
947
|
/**
|
936
948
|
* Creates a single-valued pure stream
|
937
949
|
* @tsplus static fncts.io.StreamOps succeedNow
|
@@ -946,52 +958,52 @@ export declare function succeedNow<O>(o: O, __tsplusTrace?: string): Stream<neve
|
|
946
958
|
export declare function succeed<A>(a: Lazy<A>, __tsplusTrace?: string): Stream<never, never, A>;
|
947
959
|
/**
|
948
960
|
* Takes the specified number of elements from this stream.
|
949
|
-
* @tsplus
|
961
|
+
* @tsplus pipeable fncts.io.Stream take
|
950
962
|
* @tsplus location "@fncts/io/Stream/api"
|
951
963
|
*/
|
952
|
-
export declare function
|
964
|
+
export declare function take(n: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
953
965
|
/**
|
954
|
-
* @tsplus
|
966
|
+
* @tsplus pipeable fncts.io.Stream takeUntilIO
|
955
967
|
* @tsplus location "@fncts/io/Stream/api"
|
956
968
|
*/
|
957
|
-
export declare function
|
969
|
+
export declare function takeUntilIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
958
970
|
/**
|
959
971
|
* Takes all elements of the stream until the specified predicate evaluates
|
960
972
|
* to `true`.
|
961
|
-
* @tsplus
|
973
|
+
* @tsplus pipeable fncts.io.Stream takeUntil
|
962
974
|
* @tsplus location "@fncts/io/Stream/api"
|
963
975
|
*/
|
964
|
-
export declare function
|
976
|
+
export declare function takeUntil<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R, E, A>;
|
965
977
|
/**
|
966
|
-
* @tsplus
|
978
|
+
* @tsplus pipeable fncts.io.Stream tap
|
967
979
|
* @tsplus location "@fncts/io/Stream/api"
|
968
980
|
*/
|
969
|
-
export declare function
|
981
|
+
export declare function tap<A, R1, E1>(f: (a: A) => IO<R1, E1, any>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
970
982
|
/**
|
971
983
|
* Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket
|
972
984
|
* algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate
|
973
985
|
* tokens up to a `units + burst` threshold. Chunks that do not meet the bandwidth constraints are dropped.
|
974
986
|
* The weight of each chunk is determined by the `costFn` function.
|
975
|
-
* @tsplus
|
987
|
+
* @tsplus pipeable fncts.io.Stream throttleEnforce
|
976
988
|
* @tsplus location "@fncts/io/Stream/api"
|
977
989
|
*/
|
978
|
-
export declare function
|
990
|
+
export declare function throttleEnforce<A>(costFn: (chunk: Conc<A>) => number, units: number, duration: number, burst?: number, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<R, E, A>;
|
979
991
|
/**
|
980
992
|
* Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket
|
981
993
|
* algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate
|
982
994
|
* tokens up to a `units + burst` threshold. Chunks that do not meet the bandwidth constraints are dropped.
|
983
995
|
* The weight of each chunk is determined by the `costFn` effectful function.
|
984
|
-
* @tsplus
|
996
|
+
* @tsplus pipeable fncts.io.Stream throttleEnforceIO
|
985
997
|
* @tsplus location "@fncts/io/Stream/api"
|
986
998
|
*/
|
987
|
-
export declare function
|
999
|
+
export declare function throttleEnforceIO<A, R1, E1>(costFn: (chunk: Conc<A>) => IO<R1, E1, number>, units: number, duration: number, burst?: number, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, A>;
|
988
1000
|
/**
|
989
1001
|
* Converts the stream to a managed hub of chunks. After the managed hub is used,
|
990
1002
|
* the hub will never again produce values and should be discarded.
|
991
|
-
* @tsplus
|
1003
|
+
* @tsplus pipeable fncts.io.Stream toHub
|
992
1004
|
* @tsplus location "@fncts/io/Stream/api"
|
993
1005
|
*/
|
994
|
-
export declare function
|
1006
|
+
export declare function toHub(capacity: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, Hub<Take<E, A>>>;
|
995
1007
|
/**
|
996
1008
|
* Interpret the stream as a managed pull
|
997
1009
|
* @tsplus getter fncts.io.Stream toPull
|
@@ -1001,25 +1013,25 @@ export declare function toPull<R, E, A>(stream: Stream<R, E, A>, __tsplusTrace?:
|
|
1001
1013
|
/**
|
1002
1014
|
* Converts the stream to a managed queue of chunks. After the managed queue is used,
|
1003
1015
|
* the queue will never again produce values and should be discarded.
|
1004
|
-
* @tsplus
|
1016
|
+
* @tsplus pipeable fncts.io.Stream toQueue
|
1005
1017
|
* @tsplus location "@fncts/io/Stream/api"
|
1006
1018
|
*/
|
1007
|
-
export declare function
|
1019
|
+
export declare function toQueue(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, Queue.Dequeue<Take<E, A>>>;
|
1008
1020
|
/**
|
1009
|
-
* @tsplus
|
1021
|
+
* @tsplus pipeable fncts.io.Stream toQueueDropping
|
1010
1022
|
* @tsplus location "@fncts/io/Stream/api"
|
1011
1023
|
*/
|
1012
|
-
export declare function
|
1024
|
+
export declare function toQueueDropping(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, Queue.Dequeue<Take<E, A>>>;
|
1013
1025
|
/**
|
1014
|
-
* @tsplus
|
1026
|
+
* @tsplus pipeable fncts.io.Stream toQueueOfElements
|
1015
1027
|
* @tsplus location "@fncts/io/Stream/api"
|
1016
1028
|
*/
|
1017
|
-
export declare function
|
1029
|
+
export declare function toQueueOfElements(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, Queue.Dequeue<import("@fncts/base/data/Exit.js").Exit<import("@fncts/base/data/Maybe.js").Maybe<E>, A>>>;
|
1018
1030
|
/**
|
1019
|
-
* @tsplus
|
1031
|
+
* @tsplus pipeable fncts.io.Stream toQueueSliding
|
1020
1032
|
* @tsplus location "@fncts/io/Stream/api"
|
1021
1033
|
*/
|
1022
|
-
export declare function
|
1034
|
+
export declare function toQueueSliding(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => import("../IO.js").IO<import("../Scope.js").Scope | R, never, Queue.Dequeue<Take<E, A>>>;
|
1023
1035
|
/**
|
1024
1036
|
* Converts the stream into an unbounded managed queue. After the managed queue
|
1025
1037
|
* is used, the queue will never again produce values and should be discarded.
|
@@ -1074,7 +1086,7 @@ export declare function zipWithIndex_<R, E, A>(self: Stream<R, E, A>, __tsplusTr
|
|
1074
1086
|
* Note: tracking the latest value is done on a per-chunk basis. That means
|
1075
1087
|
* that emitted elements that are not the last value in chunks will never be
|
1076
1088
|
* used for zipping.
|
1077
|
-
* @tsplus
|
1089
|
+
* @tsplus pipeable fncts.io.Stream zipWithLatest
|
1078
1090
|
* @tsplus location "@fncts/io/Stream/api"
|
1079
1091
|
*/
|
1080
|
-
export declare function
|
1092
|
+
export declare function zipWithLatest<A, R1, E1, B, C>(fb: Stream<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R1 | R, E1 | E, C>;
|