@fncts/io 0.0.52 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/IO/api/asyncIterable.d.ts +27 -0
- package/IO.d.ts +1 -0
- package/_cjs/Cached/api.cjs +11 -12
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/definition.cjs +1 -3
- package/_cjs/Cached/definition.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +3 -4
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/CancellerState.cjs +1 -2
- package/_cjs/CancellerState.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs +1 -2
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs +1 -2
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +1 -3
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs +1 -2
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs +1 -2
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +7 -8
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +21 -22
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAll.cjs +3 -4
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +3 -4
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +28 -29
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +4 -5
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +16 -17
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +5 -7
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runCollect.cjs +4 -5
- package/_cjs/Channel/api/runCollect.cjs.map +1 -1
- package/_cjs/Channel/api/runDrain.cjs +4 -5
- package/_cjs/Channel/api/runDrain.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +12 -13
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +6 -7
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipConcurrent.cjs +7 -8
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +28 -29
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +1 -3
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +1 -2
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +47 -43
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +3 -4
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeDecision.cjs +1 -2
- package/_cjs/Channel/internal/MergeDecision.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeState.cjs +1 -2
- package/_cjs/Channel/internal/MergeState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +15 -16
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +3 -3
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +3 -4
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +6 -7
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Console/api.cjs +4 -6
- package/_cjs/Console/api.cjs.map +1 -1
- package/_cjs/Console/definition.cjs +3 -4
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +3 -4
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +8 -9
- package/_cjs/CountdownLatch.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +5 -6
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Differ/definition.cjs +1 -2
- package/_cjs/Differ/definition.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +1 -2
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -1
- package/_cjs/Fiber/FiberRuntime.cjs +57 -70
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -1
- package/_cjs/Fiber/api/await.cjs +1 -2
- package/_cjs/Fiber/api/await.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +5 -6
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/children.cjs +1 -2
- package/_cjs/Fiber/api/children.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +20 -21
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +4 -5
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/id.cjs +1 -2
- 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 +4 -5
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +5 -6
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +1 -2
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +4 -5
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +4 -5
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +5 -6
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/location.cjs +1 -2
- package/_cjs/Fiber/api/location.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +6 -7
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +12 -13
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/poll.cjs +1 -2
- package/_cjs/Fiber/api/poll.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +14 -15
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +8 -10
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +5 -7
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/FiberDescriptor.cjs +1 -2
- package/_cjs/FiberDescriptor.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +5 -6
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +4 -5
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +1 -2
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +6 -7
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +6 -7
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/operations.cjs +5 -6
- package/_cjs/FiberRef/operations.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +13 -14
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRefs/Patch.cjs +8 -11
- package/_cjs/FiberRefs/Patch.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +10 -11
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +3 -4
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberScope/constructors.cjs +1 -3
- package/_cjs/FiberScope/constructors.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +15 -14
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberSet.cjs +11 -12
- package/_cjs/FiberSet.cjs.map +1 -1
- package/_cjs/FiberStatus/constructors.cjs +1 -2
- package/_cjs/FiberStatus/constructors.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +3 -4
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/Future/State.cjs +5 -5
- package/_cjs/Future/State.cjs.map +1 -1
- package/_cjs/Future/api.cjs +9 -14
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +4 -5
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +1 -2
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +12 -13
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/definition.cjs +1 -3
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +17 -18
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +3 -4
- package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs +5 -6
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +3 -4
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +5 -6
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizer.cjs +3 -4
- package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +6 -7
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/all.cjs +6 -7
- package/_cjs/IO/api/all.cjs.map +1 -1
- package/_cjs/IO/api/array.cjs +4 -5
- package/_cjs/IO/api/array.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +9 -10
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/asyncInterrupt.cjs +8 -9
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -1
- package/_cjs/IO/api/asyncIterable.cjs +84 -0
- package/_cjs/IO/api/asyncIterable.cjs.map +1 -0
- package/_cjs/IO/api/awaitAllChildren.cjs +5 -7
- package/_cjs/IO/api/awaitAllChildren.cjs.map +1 -1
- package/_cjs/IO/api/blocking.cjs +5 -6
- package/_cjs/IO/api/blocking.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +3 -4
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +6 -7
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/cachedInvalidate.cjs +15 -16
- package/_cjs/IO/api/cachedInvalidate.cjs.map +1 -1
- package/_cjs/IO/api/clockWith.cjs +8 -10
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +7 -8
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +10 -11
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +8 -10
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/daemonChildren.cjs +6 -7
- package/_cjs/IO/api/daemonChildren.cjs.map +1 -1
- package/_cjs/IO/api/delay.cjs +4 -5
- package/_cjs/IO/api/delay.cjs.map +1 -1
- package/_cjs/IO/api/descriptor.cjs +6 -7
- package/_cjs/IO/api/descriptor.cjs.map +1 -1
- package/_cjs/IO/api/diffFiberRefs.cjs +4 -5
- package/_cjs/IO/api/diffFiberRefs.cjs.map +1 -1
- package/_cjs/IO/api/disconnect.cjs +6 -7
- package/_cjs/IO/api/disconnect.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +6 -7
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +6 -7
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachConcurrent.cjs +20 -21
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +7 -8
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/fork.cjs +10 -12
- package/_cjs/IO/api/fork.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +5 -6
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkDaemon.cjs +4 -5
- package/_cjs/IO/api/forkDaemon.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +7 -8
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +7 -8
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +5 -6
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +8 -9
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +9 -10
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +6 -7
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +5 -6
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/patchFiberRefs.cjs +5 -7
- package/_cjs/IO/api/patchFiberRefs.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +7 -8
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideScope.cjs +5 -7
- package/_cjs/IO/api/provideScope.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +4 -5
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeRuntime.cjs +8 -9
- package/_cjs/IO/api/provideSomeRuntime.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +10 -11
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +4 -5
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/raceWith.cjs +5 -6
- package/_cjs/IO/api/raceWith.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +8 -10
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +7 -8
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +6 -7
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +4 -5
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +4 -4
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +4 -5
- package/_cjs/IO/api/scopeWith.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +4 -5
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +3 -4
- package/_cjs/IO/api/sleep.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs +5 -6
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +5 -6
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +9 -10
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/transplant.cjs +8 -9
- package/_cjs/IO/api/transplant.cjs.map +1 -1
- package/_cjs/IO/api/whenFiberRef.cjs +4 -5
- package/_cjs/IO/api/whenFiberRef.cjs.map +1 -1
- package/_cjs/IO/api/whenRef.cjs +4 -5
- package/_cjs/IO/api/whenRef.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +6 -7
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +6 -7
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +3 -4
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +3 -4
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/zipConcurrent.cjs +15 -16
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/IO/api.cjs +28 -27
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +3 -4
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +21 -20
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +6 -0
- package/_cjs/IOEnv/definition.cjs +9 -10
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +9 -10
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +3 -4
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/InterruptStatus/constructors.cjs +1 -2
- package/_cjs/InterruptStatus/constructors.cjs.map +1 -1
- package/_cjs/InterruptStatus/definition.cjs +1 -2
- package/_cjs/InterruptStatus/definition.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +23 -24
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +16 -17
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs +1 -2
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +1 -2
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs +1 -2
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +4 -5
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +7 -8
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Logger/definition.cjs +1 -2
- package/_cjs/Logger/definition.cjs.map +1 -1
- package/_cjs/MVar/api.cjs +13 -14
- package/_cjs/MVar/api.cjs.map +1 -1
- package/_cjs/MVar/definition.cjs +1 -2
- package/_cjs/MVar/definition.cjs.map +1 -1
- package/_cjs/Push/FlattenStrategy.cjs +20 -21
- package/_cjs/Push/FlattenStrategy.cjs.map +1 -1
- package/_cjs/Push/IndexedBuffer.cjs +6 -7
- package/_cjs/Push/IndexedBuffer.cjs.map +1 -1
- package/_cjs/Push/MergeStrategy.cjs +6 -7
- package/_cjs/Push/MergeStrategy.cjs.map +1 -1
- package/_cjs/Push/Operator/IOLoopOperator.cjs +9 -10
- package/_cjs/Push/Operator/IOLoopOperator.cjs.map +1 -1
- package/_cjs/Push/Operator/IOOperator.cjs +6 -7
- package/_cjs/Push/Operator/IOOperator.cjs.map +1 -1
- package/_cjs/Push/Operator/LoopOperator.cjs +6 -7
- package/_cjs/Push/Operator/LoopOperator.cjs.map +1 -1
- package/_cjs/Push/Operator/SyncOperator.cjs +6 -7
- package/_cjs/Push/Operator/SyncOperator.cjs.map +1 -1
- package/_cjs/Push/Producer/IOProducer.cjs +6 -7
- package/_cjs/Push/Producer/IOProducer.cjs.map +1 -1
- package/_cjs/Push/Producer/SyncProducer.cjs +6 -7
- package/_cjs/Push/Producer/SyncProducer.cjs.map +1 -1
- package/_cjs/Push/Sink.cjs +7 -8
- package/_cjs/Push/Sink.cjs.map +1 -1
- package/_cjs/Push/api.cjs +17 -18
- package/_cjs/Push/api.cjs.map +1 -1
- package/_cjs/Push/definition.cjs +7 -8
- package/_cjs/Push/definition.cjs.map +1 -1
- package/_cjs/Push/internal.cjs +18 -19
- package/_cjs/Push/internal.cjs.map +1 -1
- package/_cjs/Queue/api/dimapIO.cjs +3 -4
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +9 -10
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +12 -13
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/operations.cjs +1 -3
- package/_cjs/Queue/api/operations.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +4 -5
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +5 -6
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/takeN.cjs +3 -4
- package/_cjs/Queue/api/takeN.cjs.map +1 -1
- package/_cjs/Queue/api/zipWithIO.cjs +6 -7
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +3 -4
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +1 -2
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +11 -12
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +8 -9
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Random/api.cjs +3 -4
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +3 -4
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +3 -4
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +3 -4
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +6 -7
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +6 -7
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +5 -6
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +9 -9
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +3 -4
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/Ref/api/collect.cjs +5 -6
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +4 -5
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +5 -6
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/get.cjs +1 -2
- package/_cjs/Ref/api/get.cjs.map +1 -1
- package/_cjs/Ref/api/match.cjs +1 -2
- package/_cjs/Ref/api/match.cjs.map +1 -1
- package/_cjs/Ref/api/matchAll.cjs +1 -2
- package/_cjs/Ref/api/matchAll.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +3 -4
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api/set.cjs +1 -2
- package/_cjs/Ref/api/set.cjs.map +1 -1
- package/_cjs/Ref/api.cjs +5 -7
- package/_cjs/Ref/api.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +3 -4
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +1 -2
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Reloadable/api.cjs +3 -4
- package/_cjs/Reloadable/api.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +14 -14
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +5 -6
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/RuntimeFlags/Patch.cjs +3 -4
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -1
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +3 -4
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -1
- package/_cjs/STM/api/atomically.cjs +9 -10
- package/_cjs/STM/api/atomically.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +5 -6
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs +1 -2
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +12 -13
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +3 -4
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +7 -8
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +3 -4
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs +1 -2
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +16 -17
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM/internal/TryCommit.cjs +1 -2
- package/_cjs/STM/internal/TryCommit.cjs.map +1 -1
- package/_cjs/STM/internal/Versioned.cjs +1 -2
- package/_cjs/STM/internal/Versioned.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +4 -5
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/Driver.cjs +1 -2
- package/_cjs/Schedule/Driver.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +14 -15
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +20 -21
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Schedule/definition.cjs +1 -2
- package/_cjs/Schedule/definition.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +4 -5
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +10 -11
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +8 -9
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +5 -6
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +3 -4
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +13 -14
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +4 -5
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +14 -15
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +1 -2
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/Semaphore/Reservation.cjs +3 -4
- package/_cjs/Semaphore/Reservation.cjs.map +1 -1
- package/_cjs/Semaphore/constructors.cjs +4 -5
- package/_cjs/Semaphore/constructors.cjs.map +1 -1
- package/_cjs/Semaphore/definition.cjs +19 -20
- package/_cjs/Semaphore/definition.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +35 -36
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Sink/definition.cjs +1 -2
- package/_cjs/Sink/definition.cjs.map +1 -1
- package/_cjs/State/api.cjs +6 -7
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/State/definition.cjs +1 -2
- package/_cjs/State/definition.cjs.map +1 -1
- package/_cjs/State/internal.cjs +1 -2
- package/_cjs/State/internal.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +10 -11
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +3 -4
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +8 -9
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +73 -73
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs +1 -2
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +1 -2
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +8 -9
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +8 -9
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +1 -2
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +12 -13
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +5 -6
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Subject/Atomic.cjs +7 -8
- package/_cjs/Subject/Atomic.cjs.map +1 -1
- package/_cjs/Subject/DeferredRef.cjs +10 -11
- package/_cjs/Subject/DeferredRef.cjs.map +1 -1
- package/_cjs/Subject/Hold.cjs +8 -9
- package/_cjs/Subject/Hold.cjs.map +1 -1
- package/_cjs/Subject/RefSubject/Atomic.cjs +33 -38
- package/_cjs/Subject/RefSubject/Atomic.cjs.map +1 -1
- package/_cjs/Subject/RefSubject/Derived.cjs +5 -6
- package/_cjs/Subject/RefSubject/Derived.cjs.map +1 -1
- package/_cjs/Subject/RefSubject/RefSubject.cjs +1 -2
- package/_cjs/Subject/RefSubject/RefSubject.cjs.map +1 -1
- package/_cjs/Subject/RefSubject/constructors.cjs +9 -10
- package/_cjs/Subject/RefSubject/constructors.cjs.map +1 -1
- package/_cjs/Subject/api.cjs +4 -6
- package/_cjs/Subject/api.cjs.map +1 -1
- package/_cjs/Subject/definition.cjs +1 -2
- package/_cjs/Subject/definition.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +9 -10
- package/_cjs/SubscriptionRef.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +4 -5
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +6 -7
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +4 -6
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +6 -7
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/constructors.cjs +1 -2
- package/_cjs/TExit/constructors.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +7 -8
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +11 -12
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +7 -8
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +3 -4
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +13 -14
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +7 -8
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +4 -5
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +15 -9
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +9 -10
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +7 -8
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +6 -7
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +3 -4
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/TxnId.cjs +1 -3
- package/_cjs/TxnId.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +5 -6
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +5 -6
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +3 -4
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +4 -5
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +3 -4
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +5 -6
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +5 -6
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/BackgroundScheduler.cjs +1 -2
- package/_cjs/internal/BackgroundScheduler.cjs.map +1 -1
- package/_cjs/internal/HashedPair.cjs +6 -7
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +6 -7
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +1 -6
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +4 -5
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +3 -4
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +4 -5
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_cjs/{chunk.cjs → rolldown-runtime.cjs} +2 -3
- package/_mjs/Cached/api.mjs +1 -2
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Cached/definition.mjs +1 -2
- package/_mjs/Cached/definition.mjs.map +1 -1
- package/_mjs/Cached/internal.mjs +1 -2
- package/_mjs/Cached/internal.mjs.map +1 -1
- package/_mjs/CancellerState.mjs +1 -2
- package/_mjs/CancellerState.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs +1 -2
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs +1 -2
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +1 -2
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs +1 -2
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs +1 -2
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy.mjs +1 -2
- package/_mjs/Channel/api/interruptWhen.mjs +1 -2
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs +1 -2
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAll.mjs +1 -2
- package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +1 -2
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +1 -2
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeMap.mjs +1 -2
- package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +1 -2
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +2 -4
- package/_mjs/Channel/api/run.mjs.map +1 -1
- package/_mjs/Channel/api/runCollect.mjs +1 -2
- package/_mjs/Channel/api/runCollect.mjs.map +1 -1
- package/_mjs/Channel/api/runDrain.mjs +1 -2
- package/_mjs/Channel/api/runDrain.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +1 -2
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs +1 -2
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api/zipConcurrent.mjs +1 -2
- package/_mjs/Channel/api/zipConcurrent.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +1 -2
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +1 -2
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +1 -2
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +21 -17
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelState.mjs +1 -2
- package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeDecision.mjs +1 -2
- package/_mjs/Channel/internal/MergeDecision.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeState.mjs +1 -2
- package/_mjs/Channel/internal/MergeState.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +1 -2
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Clock/api.mjs +1 -1
- package/_mjs/Clock/api.mjs.map +1 -1
- package/_mjs/Clock/definition.mjs +1 -2
- package/_mjs/Clock/definition.mjs.map +1 -1
- package/_mjs/Clock/live.mjs +1 -2
- package/_mjs/Clock/live.mjs.map +1 -1
- package/_mjs/Console/api.mjs +2 -4
- package/_mjs/Console/api.mjs.map +1 -1
- package/_mjs/Console/definition.mjs +1 -2
- package/_mjs/Console/definition.mjs.map +1 -1
- package/_mjs/Console/live.mjs +1 -2
- package/_mjs/Console/live.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +1 -2
- package/_mjs/CountdownLatch.mjs.map +1 -1
- package/_mjs/Differ/api.mjs +1 -2
- package/_mjs/Differ/api.mjs.map +1 -1
- package/_mjs/Differ/definition.mjs +1 -2
- package/_mjs/Differ/definition.mjs.map +1 -1
- package/_mjs/Fiber/FiberMessage.mjs +1 -2
- package/_mjs/Fiber/FiberMessage.mjs.map +1 -1
- package/_mjs/Fiber/FiberRuntime.mjs +23 -36
- package/_mjs/Fiber/FiberRuntime.mjs.map +1 -1
- package/_mjs/Fiber/api/await.mjs +1 -2
- package/_mjs/Fiber/api/await.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +1 -2
- package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
- package/_mjs/Fiber/api/children.mjs +1 -2
- package/_mjs/Fiber/api/children.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +1 -2
- 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 +1 -2
- package/_mjs/Fiber/api/id.mjs.map +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs +1 -2
- package/_mjs/Fiber/api/inheritRefs.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +1 -2
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +1 -2
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +1 -2
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs +1 -2
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/api/join.mjs +1 -2
- 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 -2
- package/_mjs/Fiber/api/location.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +1 -2
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +1 -2
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/poll.mjs +1 -2
- package/_mjs/Fiber/api/poll.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +1 -2
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/constructors.mjs +2 -4
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs +2 -4
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/FiberDescriptor.mjs +1 -2
- package/_mjs/FiberDescriptor.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +1 -2
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +1 -2
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +1 -2
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +1 -2
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/definition.mjs +1 -2
- package/_mjs/FiberRef/definition.mjs.map +1 -1
- package/_mjs/FiberRef/operations.mjs +1 -2
- package/_mjs/FiberRef/operations.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +1 -2
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRefs/Patch.mjs +1 -4
- package/_mjs/FiberRefs/Patch.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +1 -2
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/definition.mjs +1 -2
- package/_mjs/FiberRefs/definition.mjs.map +1 -1
- package/_mjs/FiberScope/constructors.mjs +1 -2
- package/_mjs/FiberScope/constructors.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs +9 -8
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberSet.mjs +1 -2
- package/_mjs/FiberSet.mjs.map +1 -1
- package/_mjs/FiberStatus/constructors.mjs +1 -2
- package/_mjs/FiberStatus/constructors.mjs.map +1 -1
- package/_mjs/FiberStatus/definition.mjs +1 -2
- package/_mjs/FiberStatus/definition.mjs.map +1 -1
- package/_mjs/Future/State.mjs +5 -5
- package/_mjs/Future/State.mjs.map +1 -1
- package/_mjs/Future/api.mjs +3 -8
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +1 -2
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +1 -2
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +1 -2
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/Hub/definition.mjs +1 -2
- package/_mjs/Hub/definition.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +1 -2
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/IO/api/acquireRelease.mjs +1 -2
- 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 +1 -2
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +1 -2
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizer.mjs +1 -2
- 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/all.mjs +1 -2
- package/_mjs/IO/api/all.mjs.map +1 -1
- package/_mjs/IO/api/array.mjs +1 -2
- package/_mjs/IO/api/array.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +1 -2
- package/_mjs/IO/api/asyncIO.mjs.map +1 -1
- package/_mjs/IO/api/asyncInterrupt.mjs +1 -2
- package/_mjs/IO/api/asyncInterrupt.mjs.map +1 -1
- package/_mjs/IO/api/asyncIterable.mjs +74 -0
- package/_mjs/IO/api/asyncIterable.mjs.map +1 -0
- package/_mjs/IO/api/awaitAllChildren.mjs +2 -4
- package/_mjs/IO/api/awaitAllChildren.mjs.map +1 -1
- package/_mjs/IO/api/blocking.mjs +1 -2
- package/_mjs/IO/api/blocking.mjs.map +1 -1
- package/_mjs/IO/api/bracket.mjs +1 -2
- package/_mjs/IO/api/bracket.mjs.map +1 -1
- package/_mjs/IO/api/bracketExit.mjs +1 -2
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/cachedInvalidate.mjs +1 -2
- package/_mjs/IO/api/cachedInvalidate.mjs.map +1 -1
- package/_mjs/IO/api/clockWith.mjs +2 -4
- package/_mjs/IO/api/clockWith.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +1 -2
- 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 -4
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/daemonChildren.mjs +1 -2
- package/_mjs/IO/api/daemonChildren.mjs.map +1 -1
- package/_mjs/IO/api/delay.mjs +1 -2
- package/_mjs/IO/api/delay.mjs.map +1 -1
- package/_mjs/IO/api/descriptor.mjs +1 -2
- package/_mjs/IO/api/descriptor.mjs.map +1 -1
- package/_mjs/IO/api/diffFiberRefs.mjs +1 -2
- package/_mjs/IO/api/diffFiberRefs.mjs.map +1 -1
- package/_mjs/IO/api/disconnect.mjs +1 -2
- package/_mjs/IO/api/disconnect.mjs.map +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs +1 -2
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +1 -2
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/foreachConcurrent.mjs +1 -2
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -1
- package/_mjs/IO/api/foreachExec.mjs +1 -2
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs +2 -4
- package/_mjs/IO/api/fork.mjs.map +1 -1
- package/_mjs/IO/api/forkAll.mjs +1 -2
- package/_mjs/IO/api/forkAll.mjs.map +1 -1
- package/_mjs/IO/api/forkDaemon.mjs +1 -2
- package/_mjs/IO/api/forkDaemon.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +1 -2
- 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 +1 -2
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +1 -2
- 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/onTermination.mjs +1 -2
- 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/patchFiberRefs.mjs +2 -4
- package/_mjs/IO/api/patchFiberRefs.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +1 -2
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideScope.mjs +2 -4
- package/_mjs/IO/api/provideScope.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +1 -2
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeRuntime.mjs +1 -2
- package/_mjs/IO/api/provideSomeRuntime.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +1 -2
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +1 -2
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/raceWith.mjs +1 -2
- package/_mjs/IO/api/raceWith.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +2 -4
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +1 -2
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +1 -2
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +1 -2
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scope.mjs +1 -1
- package/_mjs/IO/api/scope.mjs.map +1 -1
- package/_mjs/IO/api/scopeWith.mjs +1 -2
- package/_mjs/IO/api/scopeWith.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +1 -2
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/sleep.mjs +1 -2
- package/_mjs/IO/api/sleep.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs +1 -2
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +1 -2
- package/_mjs/IO/api/supervised.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +1 -2
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/transplant.mjs +1 -2
- package/_mjs/IO/api/transplant.mjs.map +1 -1
- package/_mjs/IO/api/whenFiberRef.mjs +1 -2
- package/_mjs/IO/api/whenFiberRef.mjs.map +1 -1
- package/_mjs/IO/api/whenRef.mjs +1 -2
- package/_mjs/IO/api/whenRef.mjs.map +1 -1
- package/_mjs/IO/api/withChildren.mjs +1 -2
- 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 +1 -2
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +1 -2
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/zipConcurrent.mjs +1 -2
- package/_mjs/IO/api/zipConcurrent.mjs.map +1 -1
- package/_mjs/IO/api.mjs +5 -4
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +1 -2
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +5 -4
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +2 -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 +1 -2
- package/_mjs/IOEnv/services.mjs.map +1 -1
- package/_mjs/InterruptStatus/constructors.mjs +1 -2
- package/_mjs/InterruptStatus/constructors.mjs.map +1 -1
- package/_mjs/InterruptStatus/definition.mjs +1 -2
- package/_mjs/InterruptStatus/definition.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +1 -2
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +1 -2
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs +1 -2
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/LogLevel.mjs +1 -2
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs +1 -2
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs +1 -2
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs +1 -2
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Logger/definition.mjs +1 -2
- package/_mjs/Logger/definition.mjs.map +1 -1
- package/_mjs/MVar/api.mjs +1 -2
- package/_mjs/MVar/api.mjs.map +1 -1
- package/_mjs/MVar/definition.mjs +1 -2
- package/_mjs/MVar/definition.mjs.map +1 -1
- package/_mjs/Push/FlattenStrategy.mjs +1 -2
- package/_mjs/Push/FlattenStrategy.mjs.map +1 -1
- package/_mjs/Push/IndexedBuffer.mjs +1 -2
- package/_mjs/Push/IndexedBuffer.mjs.map +1 -1
- package/_mjs/Push/MergeStrategy.mjs +1 -2
- package/_mjs/Push/MergeStrategy.mjs.map +1 -1
- package/_mjs/Push/Operator/IOLoopOperator.mjs +1 -2
- package/_mjs/Push/Operator/IOLoopOperator.mjs.map +1 -1
- package/_mjs/Push/Operator/IOOperator.mjs +1 -2
- package/_mjs/Push/Operator/IOOperator.mjs.map +1 -1
- package/_mjs/Push/Operator/LoopOperator.mjs +1 -2
- package/_mjs/Push/Operator/LoopOperator.mjs.map +1 -1
- package/_mjs/Push/Operator/SyncOperator.mjs +1 -2
- package/_mjs/Push/Operator/SyncOperator.mjs.map +1 -1
- package/_mjs/Push/Producer/IOProducer.mjs +1 -2
- package/_mjs/Push/Producer/IOProducer.mjs.map +1 -1
- package/_mjs/Push/Producer/SyncProducer.mjs +1 -2
- package/_mjs/Push/Producer/SyncProducer.mjs.map +1 -1
- package/_mjs/Push/Sink.mjs +1 -2
- package/_mjs/Push/Sink.mjs.map +1 -1
- package/_mjs/Push/api.mjs +1 -2
- package/_mjs/Push/api.mjs.map +1 -1
- package/_mjs/Push/definition.mjs +1 -2
- package/_mjs/Push/definition.mjs.map +1 -1
- package/_mjs/Push/internal.mjs +1 -2
- package/_mjs/Push/internal.mjs.map +1 -1
- package/_mjs/Queue/api/dimapIO.mjs +1 -2
- package/_mjs/Queue/api/dimapIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterInputIO.mjs +5 -6
- package/_mjs/Queue/api/filterInputIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +8 -9
- package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -1
- package/_mjs/Queue/api/operations.mjs +1 -2
- 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 +1 -2
- package/_mjs/Queue/api/takeBetween.mjs.map +1 -1
- package/_mjs/Queue/api/takeN.mjs +1 -2
- package/_mjs/Queue/api/takeN.mjs.map +1 -1
- package/_mjs/Queue/api/zipWithIO.mjs +1 -2
- package/_mjs/Queue/api/zipWithIO.mjs.map +1 -1
- package/_mjs/Queue/constructors.mjs +1 -2
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/definition.mjs +1 -2
- package/_mjs/Queue/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +1 -2
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +1 -2
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Random/api.mjs +1 -2
- package/_mjs/Random/api.mjs.map +1 -1
- package/_mjs/Random/definition.mjs +1 -2
- package/_mjs/Random/definition.mjs.map +1 -1
- package/_mjs/Random/live.mjs +1 -2
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Ref/Atomic.mjs +1 -2
- package/_mjs/Ref/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Derived.mjs +1 -2
- package/_mjs/Ref/Derived.mjs.map +1 -1
- package/_mjs/Ref/DerivedAll.mjs +1 -2
- package/_mjs/Ref/DerivedAll.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/api.mjs +1 -2
- package/_mjs/Ref/Synchronized/api.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +3 -3
- package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs +1 -2
- package/_mjs/Ref/Synchronized/definition.mjs.map +1 -1
- package/_mjs/Ref/api/collect.mjs +1 -2
- package/_mjs/Ref/api/collect.mjs.map +1 -1
- package/_mjs/Ref/api/dimap.mjs +1 -2
- package/_mjs/Ref/api/dimap.mjs.map +1 -1
- package/_mjs/Ref/api/filter.mjs +1 -2
- package/_mjs/Ref/api/filter.mjs.map +1 -1
- package/_mjs/Ref/api/get.mjs +1 -2
- package/_mjs/Ref/api/get.mjs.map +1 -1
- package/_mjs/Ref/api/match.mjs +1 -2
- package/_mjs/Ref/api/match.mjs.map +1 -1
- package/_mjs/Ref/api/matchAll.mjs +1 -2
- package/_mjs/Ref/api/matchAll.mjs.map +1 -1
- package/_mjs/Ref/api/modify.mjs +1 -2
- package/_mjs/Ref/api/modify.mjs.map +1 -1
- package/_mjs/Ref/api/set.mjs +1 -2
- package/_mjs/Ref/api/set.mjs.map +1 -1
- package/_mjs/Ref/api.mjs +2 -4
- package/_mjs/Ref/api.mjs.map +1 -1
- package/_mjs/Ref/constructors.mjs +1 -2
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs +1 -2
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/Reloadable/api.mjs +1 -2
- package/_mjs/Reloadable/api.mjs.map +1 -1
- package/_mjs/Reloadable/constructors.mjs +3 -3
- package/_mjs/Reloadable/constructors.mjs.map +1 -1
- package/_mjs/Reloadable/definition.mjs +1 -2
- package/_mjs/Reloadable/definition.mjs.map +1 -1
- package/_mjs/RuntimeFlags/Patch.mjs +1 -2
- package/_mjs/RuntimeFlags/Patch.mjs.map +1 -1
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs +1 -2
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs.map +1 -1
- package/_mjs/STM/api/atomically.mjs +1 -2
- package/_mjs/STM/api/atomically.mjs.map +1 -1
- package/_mjs/STM/api/core-api.mjs +1 -2
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api/core-constructors.mjs +1 -2
- package/_mjs/STM/api/core-constructors.mjs.map +1 -1
- package/_mjs/STM/api.mjs +1 -2
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/definition.mjs +1 -2
- package/_mjs/STM/definition.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +1 -2
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/CommitState.mjs +1 -2
- package/_mjs/STM/internal/CommitState.mjs.map +1 -1
- package/_mjs/STM/internal/Entry.mjs +1 -2
- package/_mjs/STM/internal/Entry.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +11 -12
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM/internal/TryCommit.mjs +1 -2
- package/_mjs/STM/internal/TryCommit.mjs.map +1 -1
- package/_mjs/STM/internal/Versioned.mjs +1 -2
- package/_mjs/STM/internal/Versioned.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +1 -2
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/Driver.mjs +1 -2
- package/_mjs/Schedule/Driver.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +1 -2
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +1 -2
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Schedule/definition.mjs +1 -2
- package/_mjs/Schedule/definition.mjs.map +1 -1
- package/_mjs/Scope/Finalizer/definition.mjs +1 -2
- package/_mjs/Scope/Finalizer/definition.mjs.map +1 -1
- package/_mjs/Scope/Finalizer.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/constructors.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/constructors.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/definition.mjs +1 -2
- package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +1 -2
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/Scope/definition.mjs +1 -2
- package/_mjs/Scope/definition.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +1 -2
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef/definition.mjs +1 -2
- package/_mjs/ScopedRef/definition.mjs.map +1 -1
- package/_mjs/Semaphore/Reservation.mjs +1 -2
- package/_mjs/Semaphore/Reservation.mjs.map +1 -1
- package/_mjs/Semaphore/constructors.mjs +1 -2
- package/_mjs/Semaphore/constructors.mjs.map +1 -1
- package/_mjs/Semaphore/definition.mjs +1 -2
- package/_mjs/Semaphore/definition.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +1 -2
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/Sink/definition.mjs +1 -2
- package/_mjs/Sink/definition.mjs.map +1 -1
- package/_mjs/State/api.mjs +1 -2
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/State/definition.mjs +1 -2
- package/_mjs/State/definition.mjs.map +1 -1
- package/_mjs/State/internal.mjs +1 -2
- package/_mjs/State/internal.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +1 -2
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +1 -2
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +1 -2
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +3 -3
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs +1 -2
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +1 -2
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +1 -2
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +1 -2
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +1 -2
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +1 -2
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs +1 -2
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/Subject/Atomic.mjs +1 -2
- package/_mjs/Subject/Atomic.mjs.map +1 -1
- package/_mjs/Subject/DeferredRef.mjs +1 -2
- package/_mjs/Subject/DeferredRef.mjs.map +1 -1
- package/_mjs/Subject/Hold.mjs +1 -2
- package/_mjs/Subject/Hold.mjs.map +1 -1
- package/_mjs/Subject/RefSubject/Atomic.mjs +19 -24
- package/_mjs/Subject/RefSubject/Atomic.mjs.map +1 -1
- package/_mjs/Subject/RefSubject/Derived.mjs +1 -2
- package/_mjs/Subject/RefSubject/Derived.mjs.map +1 -1
- package/_mjs/Subject/RefSubject/RefSubject.mjs +1 -2
- package/_mjs/Subject/RefSubject/RefSubject.mjs.map +1 -1
- package/_mjs/Subject/RefSubject/constructors.mjs +1 -2
- package/_mjs/Subject/RefSubject/constructors.mjs.map +1 -1
- package/_mjs/Subject/api.mjs +2 -4
- package/_mjs/Subject/api.mjs.map +1 -1
- package/_mjs/Subject/definition.mjs +1 -2
- package/_mjs/Subject/definition.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +1 -2
- package/_mjs/SubscriptionRef.mjs.map +1 -1
- package/_mjs/Supervisor/api.mjs +1 -2
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +1 -2
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +2 -4
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +1 -2
- package/_mjs/SupervisorPatch.mjs.map +1 -1
- package/_mjs/TExit/constructors.mjs +1 -2
- package/_mjs/TExit/constructors.mjs.map +1 -1
- package/_mjs/TExit/definition.mjs +1 -2
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +1 -2
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +1 -2
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs +1 -2
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +1 -2
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +1 -2
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +1 -2
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/constructors.mjs +11 -5
- package/_mjs/TRef/constructors.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +1 -2
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +1 -2
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +1 -2
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/TSemaphore/definition.mjs +1 -2
- package/_mjs/TSemaphore/definition.mjs.map +1 -1
- package/_mjs/TxnId.mjs +1 -2
- package/_mjs/TxnId.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +1 -2
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +1 -2
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/internal/BackgroundScheduler.mjs +1 -2
- package/_mjs/internal/BackgroundScheduler.mjs.map +1 -1
- package/_mjs/internal/HashedPair.mjs +1 -2
- package/_mjs/internal/HashedPair.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs +1 -2
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +1 -6
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs +1 -2
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/Scheduler.mjs +1 -2
- package/_mjs/internal/Scheduler.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs +1 -2
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/IO/api/asyncIterable.ts +103 -0
- package/_src/IO.ts +1 -0
- package/_src/Queue/api/filterInputIO.ts +8 -3
- package/_src/Queue/api/filterOutputIO.ts +8 -3
- package/_src/Scope/Finalizer/definition.ts +6 -7
- package/_src/Scope/ReleaseMap/definition.ts +6 -7
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runScoped.mjs","names":[],"sources":["../../../esm/Channel/api/runScoped.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Channel/api/runScoped.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/fulfill\";\nimport * as tsplus_module_3 from \"@fncts/io/Future/api\";\nimport * as tsplus_module_4 from \"@fncts/io/Scope/api\";\nimport * as tsplus_module_5 from \"@fncts/io/IO/api/acquireReleaseExit\";\nimport * as tsplus_module_6 from \"@fncts/io/IO/api/addFinalizer\";\nimport * as tsplus_module_7 from \"@fncts/io/IO/api/forkScoped\";\nimport * as tsplus_module_8 from \"@fncts/io/Future/constructors\";\nimport * as tsplus_module_9 from \"@fncts/io/IO/api/scope\";\nimport * as tsplus_module_10 from \"@fncts/io/IO/api/interrupt\";\nimport { identity } from \"@fncts/base/data/function\";\nimport { ChannelExecutor, readUpstream } from \"@fncts/io/Channel/internal/ChannelExecutor\";\nfunction runScopedInterpret(channelState, exec) {\n // eslint-disable-next-line no-constant-condition\n while (1) {\n switch (channelState._tag) {\n case \"Effect\" /* ChannelStateTag.Effect */: {\n return tsplus_module_1.flatMap(() => runScopedInterpret(exec.run(), exec), fileName_1 + \":15:43\")(channelState.effect);\n }\n case \"Emit\" /* ChannelStateTag.Emit */: {\n channelState = exec.run();\n break;\n }\n case \"Done\" /* ChannelStateTag.Done */: {\n return tsplus_module_1.fromExit(() => exec.getDone(), fileName_1 + \":22:27\");\n }\n case \"Read\" /* ChannelStateTag.Read */: {\n return readUpstream(channelState, () => runScopedInterpret(exec.run(), exec), (cause) => tsplus_module_1.refailCause(() => cause, fileName_1 + \":28:36\"));\n }\n }\n }\n throw new Error(\"Bug\");\n}\n/**\n * Runs a channel until the end is received\n *\n * @tsplus getter fncts.io.Channel runScoped\n */\nexport function runScoped(self) {\n const run = (channelFuture, scopeFuture, scope) => tsplus_module_1.flatMap((exec) => tsplus_module_1.defer(() => tsplus_module_1.zipLeft(tsplus_module_3.wait(scopeFuture, fileName_1 + \":53:111\"), fileName_1 + \":53:99\")(tsplus_module_1.zipRight(tsplus_module_3.wait(channelFuture, fileName_1 + \":53:91\"), fileName_1 + \":53:77\")(tsplus_module_2.fulfill(channelFuture, fileName_1 + \":53:60\")(runScopedInterpret(exec.run(), exec)))), fileName_1 + \":53:15\"), fileName_1 + \":52:15\")(tsplus_module_5.acquireReleaseExit(() => tsplus_module_1.succeed(() => new ChannelExecutor(() => self, null, identity), fileName_1 + \":45:37\"), (exec, exit) => {\n const finalize = exec.close(exit);\n if (finalize !== null) {\n return tsplus_module_1.tapErrorCause((cause) => tsplus_module_4.addFinalizer(() => tsplus_module_1.refailCause(() => cause, fileName_1 + \":48:83\"), fileName_1 + \":48:68\")(scope), fileName_1 + \":48:38\")(finalize);\n }\n else {\n return tsplus_module_1.unit;\n }\n }, fileName_1 + \":45:26\"));\n return tsplus_module_10.uninterruptibleMask((restore) => tsplus_module_1.flatMap(parent => tsplus_module_1.flatMap(child => tsplus_module_1.flatMap(channelFuture => tsplus_module_1.flatMap(scopeFuture => tsplus_module_1.flatMap(fiber => tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(done => tsplus_module_1.map(() => done, fileName_1 + \":65:8\")(fiber.inheritAll), fileName_1 + \":64:21\")(restore(tsplus_module_3.wait(channelFuture, fileName_1 + \":64:43\"), fileName_1 + \":64:29\")), fileName_1 + \":63:8\")(tsplus_module_6.addFinalizer(() => tsplus_module_3.succeed_(undefined, fileName_1 + \":63:44\")(scopeFuture), fileName_1 + \":63:24\")), fileName_1 + \":62:30\")(tsplus_module_7.forkScoped(restore(run(channelFuture, scopeFuture, child), fileName_1 + \":62:38\"), fileName_1 + \":62:78\")), fileName_1 + \":61:30\")(tsplus_module_8.make(fileName_1 + \":61:42\")), fileName_1 + \":60:30\")(tsplus_module_8.make(fileName_1 + \":60:42\")), fileName_1 + \":59:30\")(tsplus_module_4.fork(parent)), fileName_1 + \":58:30\")(tsplus_module_9.scope), fileName_1 + \":56:32\");\n}\n//# sourceMappingURL=runScoped.js.map"],"mappings":";;;;;;;;;;;;;AAAA,MAAM,aAAa;AAanB,SAAS,mBAAmB,cAAc,MAAM;
|
|
1
|
+
{"version":3,"file":"runScoped.mjs","names":[],"sources":["../../../esm/Channel/api/runScoped.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Channel/api/runScoped.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/fulfill\";\nimport * as tsplus_module_3 from \"@fncts/io/Future/api\";\nimport * as tsplus_module_4 from \"@fncts/io/Scope/api\";\nimport * as tsplus_module_5 from \"@fncts/io/IO/api/acquireReleaseExit\";\nimport * as tsplus_module_6 from \"@fncts/io/IO/api/addFinalizer\";\nimport * as tsplus_module_7 from \"@fncts/io/IO/api/forkScoped\";\nimport * as tsplus_module_8 from \"@fncts/io/Future/constructors\";\nimport * as tsplus_module_9 from \"@fncts/io/IO/api/scope\";\nimport * as tsplus_module_10 from \"@fncts/io/IO/api/interrupt\";\nimport { identity } from \"@fncts/base/data/function\";\nimport { ChannelExecutor, readUpstream } from \"@fncts/io/Channel/internal/ChannelExecutor\";\nfunction runScopedInterpret(channelState, exec) {\n // eslint-disable-next-line no-constant-condition\n while (1) {\n switch (channelState._tag) {\n case \"Effect\" /* ChannelStateTag.Effect */: {\n return tsplus_module_1.flatMap(() => runScopedInterpret(exec.run(), exec), fileName_1 + \":15:43\")(channelState.effect);\n }\n case \"Emit\" /* ChannelStateTag.Emit */: {\n channelState = exec.run();\n break;\n }\n case \"Done\" /* ChannelStateTag.Done */: {\n return tsplus_module_1.fromExit(() => exec.getDone(), fileName_1 + \":22:27\");\n }\n case \"Read\" /* ChannelStateTag.Read */: {\n return readUpstream(channelState, () => runScopedInterpret(exec.run(), exec), (cause) => tsplus_module_1.refailCause(() => cause, fileName_1 + \":28:36\"));\n }\n }\n }\n throw new Error(\"Bug\");\n}\n/**\n * Runs a channel until the end is received\n *\n * @tsplus getter fncts.io.Channel runScoped\n */\nexport function runScoped(self) {\n const run = (channelFuture, scopeFuture, scope) => tsplus_module_1.flatMap((exec) => tsplus_module_1.defer(() => tsplus_module_1.zipLeft(tsplus_module_3.wait(scopeFuture, fileName_1 + \":53:111\"), fileName_1 + \":53:99\")(tsplus_module_1.zipRight(tsplus_module_3.wait(channelFuture, fileName_1 + \":53:91\"), fileName_1 + \":53:77\")(tsplus_module_2.fulfill(channelFuture, fileName_1 + \":53:60\")(runScopedInterpret(exec.run(), exec)))), fileName_1 + \":53:15\"), fileName_1 + \":52:15\")(tsplus_module_5.acquireReleaseExit(() => tsplus_module_1.succeed(() => new ChannelExecutor(() => self, null, identity), fileName_1 + \":45:37\"), (exec, exit) => {\n const finalize = exec.close(exit);\n if (finalize !== null) {\n return tsplus_module_1.tapErrorCause((cause) => tsplus_module_4.addFinalizer(() => tsplus_module_1.refailCause(() => cause, fileName_1 + \":48:83\"), fileName_1 + \":48:68\")(scope), fileName_1 + \":48:38\")(finalize);\n }\n else {\n return tsplus_module_1.unit;\n }\n }, fileName_1 + \":45:26\"));\n return tsplus_module_10.uninterruptibleMask((restore) => tsplus_module_1.flatMap(parent => tsplus_module_1.flatMap(child => tsplus_module_1.flatMap(channelFuture => tsplus_module_1.flatMap(scopeFuture => tsplus_module_1.flatMap(fiber => tsplus_module_1.flatMap(() => tsplus_module_1.flatMap(done => tsplus_module_1.map(() => done, fileName_1 + \":65:8\")(fiber.inheritAll), fileName_1 + \":64:21\")(restore(tsplus_module_3.wait(channelFuture, fileName_1 + \":64:43\"), fileName_1 + \":64:29\")), fileName_1 + \":63:8\")(tsplus_module_6.addFinalizer(() => tsplus_module_3.succeed_(undefined, fileName_1 + \":63:44\")(scopeFuture), fileName_1 + \":63:24\")), fileName_1 + \":62:30\")(tsplus_module_7.forkScoped(restore(run(channelFuture, scopeFuture, child), fileName_1 + \":62:38\"), fileName_1 + \":62:78\")), fileName_1 + \":61:30\")(tsplus_module_8.make(fileName_1 + \":61:42\")), fileName_1 + \":60:30\")(tsplus_module_8.make(fileName_1 + \":60:42\")), fileName_1 + \":59:30\")(tsplus_module_4.fork(parent)), fileName_1 + \":58:30\")(tsplus_module_9.scope), fileName_1 + \":56:32\");\n}\n//# sourceMappingURL=runScoped.js.map"],"mappings":";;;;;;;;;;;;;AAAA,MAAM,aAAa;AAanB,SAAS,mBAAmB,cAAc,MAAM;CAE5C,OAAO,GACH,QAAQ,aAAa,MAArB;EACI,KAAK,UACD,OAAO,gBAAgB,cAAc,mBAAmB,KAAK,IAAI,GAAG,IAAI,GAAG,aAAa,QAAQ,CAAC,CAAC,aAAa,MAAM;EAEzH,KAAK;GACD,eAAe,KAAK,IAAI;GACxB;EAEJ,KAAK,QACD,OAAO,gBAAgB,eAAe,KAAK,QAAQ,GAAG,aAAa,QAAQ;EAE/E,KAAK,QACD,OAAO,aAAa,oBAAoB,mBAAmB,KAAK,IAAI,GAAG,IAAI,IAAI,UAAU,gBAAgB,kBAAkB,OAAO,aAAa,QAAQ,CAAC;CAEhK;CAEJ,MAAM,IAAI,MAAM,KAAK;AACzB;;;;;;AAMA,SAAgB,UAAU,MAAM;CAC5B,MAAM,OAAO,eAAe,aAAa,UAAU,gBAAgB,SAAS,SAAS,gBAAgB,YAAY,gBAAgB,QAAQ,gBAAgB,KAAK,aAAa,aAAa,SAAS,GAAG,aAAa,QAAQ,CAAC,CAAC,gBAAgB,SAAS,gBAAgB,KAAK,eAAe,aAAa,QAAQ,GAAG,aAAa,QAAQ,CAAC,CAAC,gBAAgB,QAAQ,eAAe,aAAa,QAAQ,CAAC,CAAC,mBAAmB,KAAK,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,QAAQ,GAAG,aAAa,QAAQ,CAAC,CAAC,gBAAgB,yBAAyB,gBAAgB,cAAc,IAAI,sBAAsB,MAAM,MAAM,QAAQ,GA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from "@fncts/base/data/Exit/api";
|
|
5
5
|
import * as tsplus_module_2 from "@fncts/io/IO/api/acquireReleaseExit";
|
|
6
6
|
import { ChannelExecutor, readUpstream } from "@fncts/io/Channel/internal/ChannelExecutor";
|
|
7
|
-
|
|
7
|
+
// build/esm/Channel/api/toPull.js
|
|
8
8
|
const fileName_1 = "(@fncts/io) src/Channel/api/toPull.ts";
|
|
9
9
|
/**
|
|
10
10
|
* Interpret a channel to a managed Pull
|
|
@@ -25,7 +25,6 @@ function toPullInterpret(channelState, exec) {
|
|
|
25
25
|
case "Read": return readUpstream(channelState, () => toPullInterpret(exec.run(), exec), tsplus_module_1.refailCauseNow);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
//#endregion
|
|
29
28
|
export { toPull };
|
|
30
29
|
|
|
31
30
|
//# sourceMappingURL=toPull.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toPull.mjs","names":[],"sources":["../../../esm/Channel/api/toPull.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Channel/api/toPull.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/acquireReleaseExit\";\nimport * as tsplus_module_3 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Exit/api\";\nimport { identity } from \"@fncts/base/data/function\";\nimport { ChannelExecutor, readUpstream } from \"@fncts/io/Channel/internal/ChannelExecutor\";\n/**\n * Interpret a channel to a managed Pull\n *\n * @tsplus getter fncts.io.Channel toPull\n */\nexport function toPull(self) {\n return tsplus_module_1.map((exec) => tsplus_module_1.defer(() => toPullInterpret(exec.run(), exec), fileName_1 + \":18:27\"), fileName_1 + \":18:8\")(tsplus_module_2.acquireReleaseExit(() => tsplus_module_1.succeed(() => new ChannelExecutor(() => self, null, identity), fileName_1 + \":16:15\"), (exec, exit) => exec.close(exit) ?? tsplus_module_1.unit, fileName_1 + \":15:31\"));\n}\nfunction toPullInterpret(channelState, exec) {\n switch (channelState._tag) {\n case \"Effect\" /* ChannelStateTag.Effect */:\n return tsplus_module_1.flatMap(() => toPullInterpret(exec.run(), exec), fileName_1 + \":27:41\")(channelState.effect);\n case \"Emit\" /* ChannelStateTag.Emit */:\n return tsplus_module_1.succeed(() => tsplus_module_3.right(exec.getEmit(), fileName_1 + \":29:37\"), fileName_1 + \":29:24\");\n case \"Done\" /* ChannelStateTag.Done */: {\n const done = exec.getDone();\n return tsplus_module_4.match(tsplus_module_1.failCauseNow, (outDone) => tsplus_module_1.succeedNow(tsplus_module_3.left(outDone, fileName_1 + \":32:80\"), fileName_1 + \":32:68\"))(done);\n }\n case \"Read\" /* ChannelStateTag.Read */: {\n return readUpstream(channelState, () => toPullInterpret(exec.run(), exec), tsplus_module_1.refailCauseNow);\n }\n }\n}\n//# sourceMappingURL=toPull.js.map"],"mappings":";;;;;;;AAAA,MAAM,aAAa;;;;;;AAYnB,SAAgB,OAAO,MAAM;
|
|
1
|
+
{"version":3,"file":"toPull.mjs","names":[],"sources":["../../../esm/Channel/api/toPull.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Channel/api/toPull.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/acquireReleaseExit\";\nimport * as tsplus_module_3 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Exit/api\";\nimport { identity } from \"@fncts/base/data/function\";\nimport { ChannelExecutor, readUpstream } from \"@fncts/io/Channel/internal/ChannelExecutor\";\n/**\n * Interpret a channel to a managed Pull\n *\n * @tsplus getter fncts.io.Channel toPull\n */\nexport function toPull(self) {\n return tsplus_module_1.map((exec) => tsplus_module_1.defer(() => toPullInterpret(exec.run(), exec), fileName_1 + \":18:27\"), fileName_1 + \":18:8\")(tsplus_module_2.acquireReleaseExit(() => tsplus_module_1.succeed(() => new ChannelExecutor(() => self, null, identity), fileName_1 + \":16:15\"), (exec, exit) => exec.close(exit) ?? tsplus_module_1.unit, fileName_1 + \":15:31\"));\n}\nfunction toPullInterpret(channelState, exec) {\n switch (channelState._tag) {\n case \"Effect\" /* ChannelStateTag.Effect */:\n return tsplus_module_1.flatMap(() => toPullInterpret(exec.run(), exec), fileName_1 + \":27:41\")(channelState.effect);\n case \"Emit\" /* ChannelStateTag.Emit */:\n return tsplus_module_1.succeed(() => tsplus_module_3.right(exec.getEmit(), fileName_1 + \":29:37\"), fileName_1 + \":29:24\");\n case \"Done\" /* ChannelStateTag.Done */: {\n const done = exec.getDone();\n return tsplus_module_4.match(tsplus_module_1.failCauseNow, (outDone) => tsplus_module_1.succeedNow(tsplus_module_3.left(outDone, fileName_1 + \":32:80\"), fileName_1 + \":32:68\"))(done);\n }\n case \"Read\" /* ChannelStateTag.Read */: {\n return readUpstream(channelState, () => toPullInterpret(exec.run(), exec), tsplus_module_1.refailCauseNow);\n }\n }\n}\n//# sourceMappingURL=toPull.js.map"],"mappings":";;;;;;;AAAA,MAAM,aAAa;;;;;;AAYnB,SAAgB,OAAO,MAAM;CACzB,OAAO,gBAAgB,KAAK,SAAS,gBAAgB,YAAY,gBAAgB,KAAK,IAAI,GAAG,IAAI,GAAG,aAAa,QAAQ,GAAG,aAAa,OAAO,CAAC,CAAC,gBAAgB,yBAAyB,gBAAgB,cAAc,IAAI,sBAAsB,MAAM,MAAM,QAAQ,GAAG,aAAa,QAAQ,IAAI,MAAM,SAAS,KAAK,MAAM,IAAI,KAAK,gBAAgB,MAAM,aAAa,QAAQ,CAAC;AACtX;AACA,SAAS,gBAAgB,cAAc,MAAM;CACzC,QAAQ,aAAa,MAArB;EACI,KAAK,UACD,OAAO,gBAAgB,cAAc,gBAAgB,KAAK,IAAI,GAAG,IAAI,GAAG,aAAa,QAAQ,CAAC,CAAC,aAAa,MAAM;EACtH,KAAK,QACD,OAAO,gBAAgB,cAAc,gBAAgB,MAAM,KAAK,QAAQ,GAAG,aAAa,QAAQ,GAAG,aAAa,QAAQ;EAC5H,KAAK,QAAmC;GACpC,MAAM,OAAO,KAAK,QAAQ;GAC1B,OAAO,gBAAgB,MAAM,gBAAgB,eAAe,YAAY,gBAAgB,WAAW,gBAAgB,KAAK,SAAS,aAAa,QAAQ,GAAG,aAAa,QAAQ,CAAC,CAAC,CAAC,IAAI;EACzL;EACA,KAAK,QACD,OAAO,aAAa,oBAAoB,gBAAgB,KAAK,IAAI,GAAG,IAAI,GAAG,gBAAgB,cAAc;CAEjH;AACJ"}
|
|
@@ -3,7 +3,7 @@ import * as tsplus_module_1 from "@fncts/base/data/Exit/api";
|
|
|
3
3
|
import * as tsplus_module_5 from "@fncts/io/Channel/core-api";
|
|
4
4
|
import * as tsplus_module_4 from "@fncts/io/Channel/api/mergeWith";
|
|
5
5
|
import * as tsplus_module_3 from "@fncts/io/Channel/internal/MergeDecision";
|
|
6
|
-
|
|
6
|
+
// build/esm/Channel/api/zipConcurrent.js
|
|
7
7
|
const fileName_1 = "(@fncts/io) src/Channel/api/zipConcurrent.ts";
|
|
8
8
|
const zipConcurrent = zipConcurrent_1;
|
|
9
9
|
/**
|
|
@@ -30,7 +30,6 @@ function zipRightConcurrent(that) {
|
|
|
30
30
|
return tsplus_module_5.map(([_, d1]) => d1)(zipConcurrent_1(that)(self));
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { zipConcurrent, zipLeftConcurrent, zipRightConcurrent };
|
|
35
34
|
|
|
36
35
|
//# sourceMappingURL=zipConcurrent.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zipConcurrent.mjs","names":[],"sources":["../../../esm/Channel/api/zipConcurrent.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Channel/api/zipConcurrent.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_3 from \"@fncts/io/Channel/internal/MergeDecision\";\nimport * as tsplus_module_4 from \"@fncts/io/Channel/api/mergeWith\";\nimport * as tsplus_module_5 from \"@fncts/io/Channel/core-api\";\nexport const zipConcurrent = zipConcurrent_1;\n/**\n * @tsplus pipeable fncts.io.Channel zipConcurrent\n */\nfunction zipConcurrent_1(that) {\n return (self) => {\n return tsplus_module_4.mergeWith(that, (exit1) => tsplus_module_3.wait((exit2) => tsplus_module_2.fromExit(() => tsplus_module_1.zipConcurrent(exit2)(exit1), fileName_1 + \":22:60\")), (exit2) => tsplus_module_3.wait((exit1) => tsplus_module_2.fromExit(() => tsplus_module_1.zipConcurrent(exit2)(exit1), fileName_1 + \":23:60\")))(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel zipLeftConcurrent\n */\nexport function zipLeftConcurrent(that) {\n return (self) => {\n return tsplus_module_5.map(([d]) => d)(zipConcurrent_1(that)(self));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel zipRightConcurrent\n */\nexport function zipRightConcurrent(that) {\n return (self) => {\n return tsplus_module_5.map(([_, d1]) => d1)(zipConcurrent_1(that)(self));\n };\n}\n//# sourceMappingURL=zipConcurrent.js.map"],"mappings":";;;;;;AAAA,MAAM,aAAa;AAMnB,MAAa,gBAAgB;;;;AAI7B,SAAS,gBAAgB,MAAM;
|
|
1
|
+
{"version":3,"file":"zipConcurrent.mjs","names":[],"sources":["../../../esm/Channel/api/zipConcurrent.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Channel/api/zipConcurrent.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_3 from \"@fncts/io/Channel/internal/MergeDecision\";\nimport * as tsplus_module_4 from \"@fncts/io/Channel/api/mergeWith\";\nimport * as tsplus_module_5 from \"@fncts/io/Channel/core-api\";\nexport const zipConcurrent = zipConcurrent_1;\n/**\n * @tsplus pipeable fncts.io.Channel zipConcurrent\n */\nfunction zipConcurrent_1(that) {\n return (self) => {\n return tsplus_module_4.mergeWith(that, (exit1) => tsplus_module_3.wait((exit2) => tsplus_module_2.fromExit(() => tsplus_module_1.zipConcurrent(exit2)(exit1), fileName_1 + \":22:60\")), (exit2) => tsplus_module_3.wait((exit1) => tsplus_module_2.fromExit(() => tsplus_module_1.zipConcurrent(exit2)(exit1), fileName_1 + \":23:60\")))(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel zipLeftConcurrent\n */\nexport function zipLeftConcurrent(that) {\n return (self) => {\n return tsplus_module_5.map(([d]) => d)(zipConcurrent_1(that)(self));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel zipRightConcurrent\n */\nexport function zipRightConcurrent(that) {\n return (self) => {\n return tsplus_module_5.map(([_, d1]) => d1)(zipConcurrent_1(that)(self));\n };\n}\n//# sourceMappingURL=zipConcurrent.js.map"],"mappings":";;;;;;AAAA,MAAM,aAAa;AAMnB,MAAa,gBAAgB;;;;AAI7B,SAAS,gBAAgB,MAAM;CAC3B,QAAQ,SAAS;EACb,OAAO,gBAAgB,UAAU,OAAO,UAAU,gBAAgB,MAAM,UAAU,gBAAgB,eAAe,gBAAgB,cAAc,KAAK,CAAC,CAAC,KAAK,GAAG,aAAa,QAAQ,CAAC,IAAI,UAAU,gBAAgB,MAAM,UAAU,gBAAgB,eAAe,gBAAgB,cAAc,KAAK,CAAC,CAAC,KAAK,GAAG,aAAa,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI;CAC/U;AACJ;;;;AAIA,SAAgB,kBAAkB,MAAM;CACpC,QAAQ,SAAS;EACb,OAAO,gBAAgB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB,IAAI,CAAC,CAAC,IAAI,CAAC;CACtE;AACJ;;;;AAIA,SAAgB,mBAAmB,MAAM;CACrC,QAAQ,SAAS;EACb,OAAO,gBAAgB,KAAK,CAAC,GAAG,QAAQ,EAAE,CAAC,CAAC,gBAAgB,IAAI,CAAC,CAAC,IAAI,CAAC;CAC3E;AACJ"}
|
package/_mjs/Channel/api.mjs
CHANGED
|
@@ -26,7 +26,7 @@ import * as tsplus_module_23 from "@fncts/io/IO/api/asyncInterrupt";
|
|
|
26
26
|
import * as tsplus_module_15 from "@fncts/io/Channel/UpstreamPullStrategy/definition";
|
|
27
27
|
import * as tsplus_module_16 from "@fncts/io/Channel/ChildExecutorDecision/definition";
|
|
28
28
|
import { ChannelPrimitive } from "@fncts/io/Channel/definition";
|
|
29
|
-
|
|
29
|
+
// build/esm/Channel/api.js
|
|
30
30
|
const fileName_1 = "(@fncts/io) src/Channel/api.ts";
|
|
31
31
|
const acquireReleaseExitWith = acquireReleaseExitWith_1;
|
|
32
32
|
const acquireReleaseOutExitWith = acquireReleaseOutExitWith_1;
|
|
@@ -780,7 +780,6 @@ function unwrap_1(self) {
|
|
|
780
780
|
function unwrapScoped(self) {
|
|
781
781
|
return concatAllWith_1((d, _) => d, (d, _) => d)(scoped_1(self));
|
|
782
782
|
}
|
|
783
|
-
//#endregion
|
|
784
783
|
export { acquireReleaseExitWith, acquireReleaseOutExitWith, acquireReleaseOutWith, acquireReleaseWith, asUnit, as_, ask, buffer, bufferChunk, catchAll, catchAllCause, collectElements, concatAll, concatAllWith, concatMap, concatMapWith, concatMapWithCustom, contramap, contramapEnvironment, contramapIO, contramapIn, contramapInIO, defer, doneCollect, drain, embedInput, emitCollect, ensuring, ensuringWith, fail, failNow, flatten, fromEither, fromHubScoped, fromIO, fromInput, fromOption, fromQueue, halt, haltNow, id, interrupt, mapError, mapErrorCause, mapIO, mapOut, mapOutIO, matchCauseChannel, matchChannel, never, orElse, orHalt, orHaltWith, pipeTo, pipeToOrFail, provideEnvironment, read, readOrFail, readWith, readWithCause, repeated, scoped, toHub, toQueue, unit, unwrap, unwrapScoped, write, writeAll, writeChunk, writeNow };
|
|
785
784
|
|
|
786
785
|
//# sourceMappingURL=api.mjs.map
|
package/_mjs/Channel/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/Channel/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Channel/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/Ref/api/get\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_3 from \"@fncts/io/Ref/api/set\";\nimport * as tsplus_module_4 from \"@fncts/io/IO/api/interrupt\";\nimport * as tsplus_module_5 from \"@fncts/io/Channel/core-api\";\nimport * as tsplus_module_6 from \"@fncts/io/Ref/constructors\";\nimport * as tsplus_module_7 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_8 from \"@fncts/io/Ref/api/modify\";\nimport * as tsplus_module_9 from \"@fncts/base/collection/immutable/Conc/api/empty\";\nimport * as tsplus_module_10 from \"@fncts/base/collection/immutable/Conc/api\";\nimport * as tsplus_module_11 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_12 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_13 from \"@fncts/base/collection/immutable/Conc\";\nimport * as tsplus_module_14 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_15 from \"@fncts/io/Channel/UpstreamPullStrategy/definition\";\nimport * as tsplus_module_16 from \"@fncts/io/Channel/ChildExecutorDecision/definition\";\nimport * as tsplus_module_17 from \"@fncts/base/data/Maybe/destructors\";\nimport * as tsplus_module_18 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_19 from \"@fncts/io/Queue/api/operations\";\nimport * as tsplus_module_20 from \"@fncts/base/util/predicates\";\nimport * as tsplus_module_21 from \"@fncts/base/data/Exit/constructors\";\nimport * as tsplus_module_22 from \"@fncts/io/Scope/api\";\nimport * as tsplus_module_23 from \"@fncts/io/IO/api/asyncInterrupt\";\nimport * as tsplus_module_24 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_25 from \"@fncts/base/collection/immutable/Conc/constructors\";\nimport * as tsplus_module_26 from \"@fncts/io/Hub/api\";\nexport const acquireReleaseExitWith = acquireReleaseExitWith_1;\nexport const acquireReleaseOutExitWith = acquireReleaseOutExitWith_1;\nexport const as_ = as_1;\nexport const ask = ask_1;\nexport const buffer = buffer_1;\nexport const catchAll = catchAll_1;\nexport const catchAllCause = catchAllCause_1;\nexport const concatAllWith = concatAllWith_1;\nexport const concatMapWith = concatMapWith_1;\nexport const defer = defer_1;\nexport const doneCollect = doneCollect_1;\nexport const ensuringWith = ensuringWith_1;\nexport const failNow = failNow_1;\nexport const flatten = flatten_1;\nexport const fromInput = fromInput_1;\nexport const fromIO = fromIO_1;\nexport const fromQueue = fromQueue_1;\nexport const haltNow = haltNow_1;\nexport const id = id_1;\nexport const mapErrorCause = mapErrorCause_1;\nexport const mapIO = mapIO_1;\nexport const provideEnvironment = provideEnvironment_1;\nexport const scoped = scoped_1;\nexport const matchCauseChannel = matchCauseChannel_1;\nexport const orHaltWith = orHaltWith_1;\nexport const pipeTo = pipeTo_1;\nexport const readOrFail = readOrFail_1;\nexport const readWith = readWith_1;\nexport const readWithCause = readWithCause_1;\nexport const repeated = repeated_1;\nexport const toQueue = toQueue_1;\nexport const write = write_1;\nexport const writeChunk = writeChunk_1;\nexport const writeNow = writeNow_1;\nexport const unwrap = unwrap_1;\nimport { identity, tuple } from \"@fncts/base/data/function\";\nimport { ChannelPrimitive } from \"@fncts/io/Channel/definition\";\n/**\n * @tsplus static fncts.io.ChannelOps acquireReleaseExitWith\n */\nfunction acquireReleaseExitWith_1(acquire, use, release) {\n return tsplus_module_5.flatMap((ref) => ensuringWith_1((exit) => tsplus_module_2.flatMap((fin) => fin(exit), fileName_1 + \":21:46\")(tsplus_module_1.get(ref, fileName_1 + \":21:34\")))(tsplus_module_5.flatMap(use)(fromIO_1(() => tsplus_module_4.uninterruptible(tsplus_module_2.tap((a) => tsplus_module_3.set((exit) => release(a, exit), fileName_1 + \":19:46\")(ref), fileName_1 + \":19:31\")(acquire), fileName_1 + \":19:75\")))))(fromIO_1(() => tsplus_module_6.make(() => (_) => tsplus_module_2.unit, fileName_1 + \":18:33\")));\n}\n/**\n * Construct a resource Channel with Acquire / Release\n *\n * @tsplus static fncts.io.ChannelOps acquireReleaseOutExitWith\n */\nfunction acquireReleaseOutExitWith_1(self, release) {\n const op = new ChannelPrimitive(13 /* ChannelTag.BracketOut */);\n op.i0 = self;\n op.i1 = release;\n return op;\n}\n/**\n * Construct a resource Channel with Acquire / Release\n *\n * @tsplus static fncts.io.ChannelOps acquireReleaseOutWith\n */\nexport function acquireReleaseOutWith(acquire, release) {\n return acquireReleaseOutExitWith_1(acquire, (z, _) => release(z));\n}\n/**\n * @tsplus static fncts.io.ChannelOps acquireReleaseWith\n */\nexport function acquireReleaseWith(acquire, use, release) {\n return acquireReleaseExitWith_1(acquire, use, (a, _) => release(a));\n}\n/**\n * Returns a new channel that is the same as this one, except the terminal value of the channel\n * is the specified constant value.\n *\n * This method produces the same result as mapping this channel to the specified constant value.\n *\n * @tsplus pipeable fncts.io.Channel as\n */\nfunction as_1(z2) {\n return (self) => {\n return tsplus_module_5.map(() => z2())(self);\n };\n}\n/**\n * @tsplus static fncts.io.ChannelOps ask\n */\nfunction ask_1() {\n return fromIO_1(() => tsplus_module_7.environment(fileName_1 + \":83:39\"));\n}\n/**\n * @tsplus getter fncts.io.Channel asUnit\n */\nexport function asUnit(self) {\n return as_1(() => undefined)(self);\n}\n/**\n * Creates a channel backed by a buffer. When the buffer is empty, the channel will simply\n * passthrough its input as output. However, when the buffer is non-empty, the value inside\n * the buffer will be passed along as output.\n *\n * @tsplus static fncts.io.ChannelOps buffer\n */\nfunction buffer_1(empty, isEmpty, ref) {\n return unwrap_1(() => tsplus_module_8.modify((v) => {\n if (isEmpty(v)) {\n return tuple(readWith_1((_in) => tsplus_module_5.zipRight(buffer_1(empty, isEmpty, ref))(writeNow_1(_in)), (err) => failNow_1(err), (done) => tsplus_module_5.endNow(done)), v);\n }\n else {\n return tuple(tsplus_module_5.zipRight(buffer_1(empty, isEmpty, ref))(writeNow_1(v)), empty);\n }\n }, fileName_1 + \":108:15\")(ref));\n}\n/**\n * @tsplus static fncts.io.ChannelOps bufferChunk\n */\nexport function bufferChunk(ref) {\n return buffer_1(tsplus_module_9.empty(), (conc) => tsplus_module_10.isEmpty(conc), ref);\n}\n/**\n * Returns a new channel that is the same as this one, except if this channel errors for any\n * typed error, then the returned channel will switch over to using the fallback channel returned\n * by the specified error handler.\n *\n * @tsplus pipeable fncts.io.Channel catchAll\n */\nfunction catchAll_1(f) {\n return (self) => {\n return catchAllCause_1((cause) => tsplus_module_12.match((l) => f(l), (r) => tsplus_module_5.failCauseNow(r))(tsplus_module_11.failureOrCause(cause)))(self);\n };\n}\n/**\n * Returns a new channel that is the same as this one, except if this channel errors for any\n * typed error, then the returned channel will switch over to using the fallback channel returned\n * by the specified error handler.\n *\n * @tsplus pipeable fncts.io.Channel catchAllCause\n */\nfunction catchAllCause_1(f) {\n return (self) => {\n const op = new ChannelPrimitive(3 /* ChannelTag.Fold */);\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = tsplus_module_5.endNow;\n continuation.i1 = f;\n op.i0 = self;\n op.i1 = continuation;\n return op;\n };\n}\n/**\n * @tsplus getter fncts.io.Channel collectElements\n */\nexport function collectElements(self) {\n return defer_1(() => {\n const builder = new tsplus_module_13.ConcBuilder(tsplus_module_9.empty());\n const reader = readWith_1((out) => tsplus_module_5.zipRight(reader)(tsplus_module_5.succeed(() => builder.append(out))), failNow_1, tsplus_module_5.succeedNow);\n return tsplus_module_5.flatMap((z) => tsplus_module_5.succeedNow([builder.result(), z]))(pipeTo_1(reader)(self));\n });\n}\n/**\n * @tsplus getter fncts.io.Channel concatAll\n */\nexport function concatAll(channels) {\n return concatAllWith_1(() => void 0, () => void 0)(channels);\n}\n/**\n * Concat sequentially a channel of channels\n *\n * @tsplus pipeable fncts.io.Channel concatAllWith\n */\nfunction concatAllWith_1(f, g) {\n return (channels) => {\n const op = new ChannelPrimitive(12 /* ChannelTag.ConcatAll */);\n op.i0 = f;\n op.i1 = g;\n op.i2 = () => tsplus_module_15.PullAfterNext(tsplus_module_14.nothing(fileName_1 + \":250:64\"));\n op.i3 = () => tsplus_module_16.Continue;\n op.i4 = channels;\n op.i5 = identity;\n return op;\n };\n}\n/**\n * Returns a new channel whose outputs are fed to the specified factory function, which creates\n * new channels in response. These new channels are sequentially concatenated together, and all\n * their outputs appear as outputs of the newly returned channel.\n *\n * @tsplus pipeable fncts.io.Channel concatMap\n */\nexport function concatMap(f) {\n return (self) => {\n return concatMapWith_1(f, () => void 0, () => void 0)(self);\n };\n}\n/**\n * Returns a new channel whose outputs are fed to the specified factory function, which creates\n * new channels in response. These new channels are sequentially concatenated together, and all\n * their outputs appear as outputs of the newly returned channel. The provided merging function\n * is used to merge the terminal values of all channels into the single terminal value of the\n * returned channel.\n *\n * @tsplus pipeable fncts.io.Channel concatMapWith\n */\nfunction concatMapWith_1(f, g, h) {\n return (channel) => {\n const op = new ChannelPrimitive(12 /* ChannelTag.ConcatAll */);\n op.i0 = g;\n op.i1 = h;\n op.i2 = () => tsplus_module_15.PullAfterNext(tsplus_module_14.nothing(fileName_1 + \":299:64\"));\n op.i3 = () => tsplus_module_16.Continue;\n op.i4 = channel;\n op.i5 = f;\n return op;\n };\n}\n/**\n * Returns a new channel whose outputs are fed to the specified factory function, which creates\n * new channels in response. These new channels are sequentially concatenated together, and all\n * their outputs appear as outputs of the newly returned channel. The provided merging function\n * is used to merge the terminal values of all channels into the single terminal value of the\n * returned channel.\n *\n * @tsplus pipeable fncts.io.Channel concatMapWithCustom\n */\nexport function concatMapWithCustom(f, g, h, onPull, onEmit) {\n return (channel) => {\n const op = new ChannelPrimitive(12 /* ChannelTag.ConcatAll */);\n op.i0 = g;\n op.i1 = h;\n op.i2 = onPull;\n op.i3 = onEmit;\n op.i4 = channel;\n op.i5 = f;\n return op;\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramap\n */\nexport function contramap(f) {\n return (self) => {\n return pipeTo_1(self)(contramapReader(f));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramapEnvironment\n */\nexport function contramapEnvironment(f) {\n return (self) => {\n return tsplus_module_5.flatMap((env0) => provideEnvironment_1(() => f(env0))(self))(ask_1());\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramapIn\n */\nexport function contramapIn(f) {\n return (self) => {\n return pipeTo_1(self)(contramapInReader(f));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramapInIO\n */\nexport function contramapInIO(f) {\n return (self) => {\n return pipeTo_1(self)(contramapInIOReader(f));\n };\n}\nfunction contramapInIOReader(f) {\n return readWith_1((inp) => tsplus_module_5.zipRight(contramapInIOReader(f))(tsplus_module_5.flatMap(writeNow_1)(fromIO_1(() => f(inp)))), failNow_1, tsplus_module_5.endNow);\n}\nfunction contramapInReader(f) {\n return readWith_1((_in) => tsplus_module_5.zipRight(contramapInReader(f))(writeNow_1(f(_in))), failNow_1, (done) => tsplus_module_5.endNow(done));\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramapIO\n */\nexport function contramapIO(f) {\n return (self) => {\n return pipeTo_1(self)(contramapIOReader(f));\n };\n}\nfunction contramapIOReader(f) {\n return readWith_1((_in) => tsplus_module_5.zipRight(contramapIOReader(f))(writeNow_1(_in)), failNow_1, (done0) => fromIO_1(() => f(done0)));\n}\nfunction contramapReader(f) {\n return readWith_1((_in) => tsplus_module_5.zipRight(contramapReader(f))(writeNow_1(_in)), failNow_1, (done) => tsplus_module_5.endNow(f(done)));\n}\n/**\n * @tsplus static fncts.io.ChannelOps defer\n */\nfunction defer_1(effect) {\n const op = new ChannelPrimitive(10 /* ChannelTag.Defer */);\n op.i0 = effect;\n return op;\n}\n/**\n * Returns a new channel, which is the same as this one, except that all the outputs are\n * collected and bundled into a tuple together with the terminal value of this channel.\n *\n * As the channel returned from this channel collects all of this channels output into an in-\n * memory chunk, it is not safe to call this method on channels that output a large or unbounded\n * number of values.\n *\n * @tsplus getter fncts.io.Channel doneCollect\n */\nfunction doneCollect_1(self) {\n return unwrap_1(() => tsplus_module_2.succeed(() => {\n const builder = tsplus_module_10.builder();\n return mapIO_1((z) => tsplus_module_2.succeedNow(tuple(builder.result(), z), fileName_1 + \":470:80\"))(pipeTo_1(doneCollectReader(builder))(self));\n }, fileName_1 + \":468:15\"));\n}\nfunction doneCollectReader(builder) {\n return readWith_1((out) => tsplus_module_5.zipRight(doneCollectReader(builder))(fromIO_1(() => tsplus_module_2.succeed(() => {\n builder.append(out);\n }, fileName_1 + \":481:19\"))), failNow_1, tsplus_module_5.endNow);\n}\n/**\n * Returns a new channel which reads all the elements from upstream's output channel\n * and ignores them, then terminates with the upstream result value.\n *\n * @tsplus getter fncts.io.Channel drain\n */\nexport function drain(channel) {\n const drainer = readWithCause_1((_) => drainer, tsplus_module_5.failCauseNow, tsplus_module_5.endNow);\n return pipeTo_1(drainer)(channel);\n}\n/**\n * Embed inputs from continuos pulling of a producer\n *\n * @tsplus pipeable fncts.io.Channel embedInput\n */\nexport function embedInput(input) {\n return (self) => {\n const op = new ChannelPrimitive(4 /* ChannelTag.Bridge */);\n op.i0 = input;\n op.i1 = self;\n return op;\n };\n}\n/**\n * Returns a new channel that collects the output and terminal value of this channel, which it\n * then writes as output of the returned channel.\n *\n * @tsplus getter fncts.io.Channel emitCollect\n */\nexport function emitCollect(self) {\n return tsplus_module_5.flatMap((t) => writeNow_1(t))(doneCollect_1(self));\n}\n/**\n * @tsplus pipeable fncts.io.Channel ensuring\n */\nexport function ensuring(finalizer) {\n return (self) => {\n return ensuringWith_1(() => finalizer)(self);\n };\n}\n/**\n * Returns a new channel with an attached finalizer. The finalizer is guaranteed to be executed\n * so long as the channel begins execution (and regardless of whether or not it completes).\n *\n * @tsplus pipeable fncts.io.Channel ensuringWith\n */\nfunction ensuringWith_1(finalizer) {\n return (channel) => {\n const op = new ChannelPrimitive(11 /* ChannelTag.Ensuring */);\n op.i0 = channel;\n op.i1 = finalizer;\n return op;\n };\n}\n/**\n * Halt a channel with the specified error\n *\n * @tsplus static fncts.io.ChannelOps fail\n */\nexport function fail(error) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = () => tsplus_module_11.fail(error());\n return op;\n}\n/**\n * Halt a channel with the specified error\n *\n * @tsplus static fncts.io.ChannelOps failNow\n */\nfunction failNow_1(error) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = () => tsplus_module_11.fail(error);\n return op;\n}\n/**\n * Returns a new channel, which flattens the terminal value of this channel. This function may\n * only be called if the terminal value of this channel is another channel of compatible types.\n *\n * @tsplus getter fncts.io.Channel flatten\n */\nfunction flatten_1(self) {\n return tsplus_module_5.flatMap(identity)(self);\n}\n/**\n * @tsplus static fncts.io.ChannelOps fromEither\n */\nexport function fromEither(either) {\n return defer_1(() => tsplus_module_12.match(failNow_1, tsplus_module_5.succeedNow)(either()));\n}\n/**\n * @tsplus static fncts.io.ChannelOps fromInput\n */\nfunction fromInput_1(input) {\n return unwrap_1(() => input.takeWith(tsplus_module_5.failCauseNow, (elem) => tsplus_module_5.zipRight(fromInput_1(input))(writeNow_1(elem)), tsplus_module_5.endNow));\n}\n/**\n * Use an effect to end a channel\n *\n * @tsplus static fncts.io.ChannelOps fromIO\n */\nfunction fromIO_1(io) {\n return defer_1(() => {\n const op = new ChannelPrimitive(8 /* ChannelTag.FromIO */);\n op.i0 = io();\n return op;\n });\n}\n/**\n * @tsplus static fncts.io.ChannelOps fromOption\n */\nexport function fromOption(option) {\n return defer_1(() => tsplus_module_17.match(() => failNow_1(tsplus_module_14.nothing(fileName_1 + \":662:68\")), tsplus_module_5.succeedNow)(option()));\n}\n/**\n * @tsplus static fncts.io.ChannelOps fromQueue\n */\nfunction fromQueue_1(queue) {\n return tsplus_module_5.flatMap((_) => tsplus_module_12.match((_) => tsplus_module_18.match(tsplus_module_5.failCauseNow, tsplus_module_5.endNow)(_), (elem) => tsplus_module_5.zipRight(fromQueue_1(queue))(writeNow_1(elem)))(_))(fromIO_1(() => tsplus_module_19.take(queue, fileName_1 + \":671:30\")));\n}\n/**\n * Halt a channel with the specified exception\n *\n * @tsplus static fncts.io.ChannelOps halt\n */\nexport function halt(defect) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = () => tsplus_module_11.halt(defect());\n return op;\n}\n/**\n * Halt a channel with the specified exception\n *\n * @tsplus static fncts.io.ChannelOps haltNow\n */\nfunction haltNow_1(defect) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = () => tsplus_module_11.halt(defect);\n return op;\n}\n/**\n * @tsplus static fncts.io.ChannelOps id\n */\nfunction id_1() {\n return readWith_1((_in) => tsplus_module_5.zipRight(id_1())(write_1(() => _in)), failNow_1, tsplus_module_5.endNow);\n}\n/**\n * @tsplus static fncts.io.ChannelOps interrupt\n */\nexport function interrupt(fiberId) {\n return tsplus_module_5.failCauseNow(tsplus_module_11.interrupt(fiberId));\n}\nfunction isChannelFailure(u) {\n return tsplus_module_20.isObject(u) && ChannelFailureTypeId in u;\n}\n/**\n * Returns a new channel, which is the same as this one, except the failure value of the returned\n * channel is created by applying the specified function to the failure value of this channel.\n *\n * @tsplus pipeable fncts.io.Channel mapError\n */\nexport function mapError(f) {\n return (self) => {\n return mapErrorCause_1((cause) => tsplus_module_11.map(f)(cause))(self);\n };\n}\n/**\n * A more powerful version of `mapError` which also surfaces the `Cause` of the channel failure\n *\n * @tsplus pipeable fncts.io.Channel mapErrorCause\n */\nfunction mapErrorCause_1(f) {\n return (self) => {\n return catchAllCause_1((cause) => tsplus_module_5.failCauseNow(f(cause)))(self);\n };\n}\n/**\n * Returns a new channel, which is the same as this one, except the terminal value of the\n * returned channel is created by applying the specified effectful function to the terminal value\n * of this channel.\n *\n * @tsplus pipeable fncts.io.Channel mapIO\n */\nfunction mapIO_1(f) {\n return (self) => {\n return tsplus_module_5.flatMap((outDone) => fromIO_1(() => f(outDone)))(self);\n };\n}\n/**\n * Maps the output of this channel using f\n *\n * @tsplus pipeable fncts.io.Channel mapOut\n */\nexport function mapOut(f) {\n return (self) => {\n const reader = readWith_1((out) => tsplus_module_5.zipRight(reader)(writeNow_1(f(out))), failNow_1, tsplus_module_5.endNow);\n return pipeTo_1(reader)(self);\n };\n}\n/**\n * Provides the channel with its required environment, which eliminates\n * its dependency on `Env`.\n *\n * @tsplus pipeable fncts.io.Channel provideEnvironment\n */\nfunction provideEnvironment_1(env) {\n return (self) => {\n return defer_1(() => {\n const op = new ChannelPrimitive(14 /* ChannelTag.Provide */);\n op.i0 = env();\n op.i1 = self;\n return op;\n });\n };\n}\n/**\n * Use a managed to emit an output element\n *\n * @tsplus static fncts.io.ChannelOps scoped\n */\nfunction scoped_1(io) {\n return unwrap_1(() => tsplus_module_4.uninterruptibleMask((restore) => tsplus_module_2.map((scope) => acquireReleaseOutExitWith_1(tsplus_module_2.tapErrorCause((cause) => scope.close(() => tsplus_module_21.failCause(cause, fileName_1 + \":810:88\")), fileName_1 + \":810:50\")(restore(tsplus_module_22.extend(io, fileName_1 + \":810:31\")(scope), fileName_1 + \":810:18\")), (_, exit) => scope.close(() => exit)), fileName_1 + \":808:21\")(tsplus_module_22.make), fileName_1 + \":807:27\"));\n}\nconst mapOutIOReader = (f) => readWithCause_1((out) => tsplus_module_5.zipRight(mapOutIOReader(f))(tsplus_module_5.flatMap(writeNow_1)(fromIO_1(() => f(out)))), tsplus_module_5.failCauseNow, tsplus_module_5.succeedNow);\n/**\n * @tsplus pipeable fncts.io.Channel mapOutIO\n */\nexport function mapOutIO(f) {\n return (self) => {\n return pipeTo_1(mapOutIOReader(f))(self);\n };\n}\n/**\n * Fold the channel exposing success and full error cause\n *\n * @tsplus pipeable fncts.io.Channel matchCauseChannel\n */\nfunction matchCauseChannel_1(onError, onSuccess) {\n return (channel) => {\n const op = new ChannelPrimitive(3 /* ChannelTag.Fold */);\n op.i0 = channel;\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = onSuccess;\n continuation.i1 = onError;\n op.i1 = continuation;\n return op;\n };\n}\n/**\n * Fold the channel exposing success and full error cause\n *\n * @tsplus pipeable fncts.io.Channel matchChannel\n */\nexport function matchChannel(onError, onSuccess) {\n return (channel) => {\n return matchCauseChannel_1((cause) => tsplus_module_12.match(onError, tsplus_module_5.failCauseNow)(tsplus_module_11.failureOrCause(cause)), onSuccess)(channel);\n };\n}\nexport const never = fromIO_1(() => tsplus_module_23.never);\n/**\n * Returns a new channel that will perform the operations of this one, until failure, and then\n * it will switch over to the operations of the specified fallback channel.\n *\n * @tsplus pipeable fncts.io.Channel orElse\n */\nexport function orElse(that) {\n return (self) => {\n return catchAll_1((_) => that)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel orHalt\n */\nexport function orHalt(err) {\n return (self) => {\n return orHaltWith_1(() => err)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel orHaltWith\n */\nfunction orHaltWith_1(f) {\n return (self) => {\n return catchAll_1((e) => haltNow_1(f(e)))(self);\n };\n}\n/**\n * Pipe the output of a channel into the input of another\n *\n * @tsplus pipeable fncts.io.Channel pipeTo\n * @tsplus pipeable-operator fncts.io.Channel >>>\n */\nfunction pipeTo_1(right) {\n return (left) => {\n const op = new ChannelPrimitive(0 /* ChannelTag.PipeTo */);\n op.i0 = () => left;\n op.i1 = () => right;\n return op;\n };\n}\nconst ChannelFailureTypeId = Symbol.for(\"@principia/base/Channel/ChannelFailure\");\nclass ChannelFailure {\n error;\n [ChannelFailureTypeId] = ChannelFailureTypeId;\n constructor(error) {\n this.error = error;\n }\n}\n/**\n * @tsplus pipeable fncts.io.Channel pipeToOrFail\n * @tsplus pipeable-operator fncts.io.Channel >>>\n */\nexport function pipeToOrFail(right) {\n return (left) => {\n return catchAllCause_1((cause) => tsplus_module_11.isHalt(cause) && isChannelFailure(cause.value)\n ? failNow_1(cause.value.error)\n : haltNow_1(cause))(pipeTo_1(right)(catchAll_1((err) => tsplus_module_5.failCauseNow(tsplus_module_11.halt(new ChannelFailure(err))))(left)));\n };\n}\n/**\n * @tsplus static fncts.io.ChannelOps read\n */\nexport function read() {\n return readOrFail_1(tsplus_module_14.nothing(fileName_1 + \":1027:36\"));\n}\n/**\n * @tsplus static fncts.io.ChannelOps readOrFail\n */\nfunction readOrFail_1(e) {\n const op = new ChannelPrimitive(5 /* ChannelTag.Read */);\n op.i0 = tsplus_module_5.endNow;\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = () => failNow_1(e);\n continuation.i1 = () => failNow_1(e);\n op.i1 = continuation;\n return op;\n}\n/**\n * Reads an input and continue exposing both error and completion\n *\n * @tsplus static fncts.io.ChannelOps readWith\n */\nfunction readWith_1(inp, error, done) {\n return readWithCause_1(inp, (c) => tsplus_module_12.match(error, tsplus_module_5.failCauseNow)(tsplus_module_11.failureOrCause(c)), done);\n}\n/**\n * Reads an input and continue exposing both full error cause and completion\n *\n * @tsplus static fncts.io.ChannelOps readWithCause\n */\nfunction readWithCause_1(inp, halt, done) {\n const op = new ChannelPrimitive(5 /* ChannelTag.Read */);\n op.i0 = inp;\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = done;\n continuation.i1 = halt;\n op.i1 = continuation;\n return op;\n}\n/**\n * Repeats this channel forever\n *\n * @tsplus getter fncts.io.Channel repeated\n */\nfunction repeated_1(self) {\n return tsplus_module_5.flatMap(() => repeated_1(self))(self);\n}\n/**\n * @tsplus static fncts.io.ChannelOps toQueue\n */\nfunction toQueue_1(queue) {\n return defer_1(() => {\n function toQueue(queue) {\n return readWithCause_1((inp) => tsplus_module_5.zipRight(toQueue(queue))(fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.right(inp, fileName_1 + \":1151:57\"), fileName_1 + \":1151:44\")(queue))), (cause) => fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.left(tsplus_module_21.failCause(cause, fileName_1 + \":1152:73\"), fileName_1 + \":1152:58\"), fileName_1 + \":1152:46\")(queue)), (done) => fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.left(tsplus_module_21.succeed(done, fileName_1 + \":1153:70\"), fileName_1 + \":1153:57\"), fileName_1 + \":1153:45\")(queue)));\n }\n return toQueue(queue());\n });\n}\n/**\n * Writes an output to the channel\n *\n * @tsplus static fncts.io.ChannelOps write\n */\nfunction write_1(out) {\n const op = new ChannelPrimitive(9 /* ChannelTag.Emit */);\n op.i0 = out;\n return op;\n}\n/**\n * @tsplus static fncts.io.ChannelOps writeAll\n */\nexport function writeAll(outs) {\n return writeChunk_1(tsplus_module_25.from(outs));\n}\n/**\n * @tsplus static fncts.io.ChannelOps writeChunk\n */\nfunction writeChunk_1(outs) {\n return writeChunkWriter(outs, 0, outs.length);\n}\nfunction writeChunkWriter(outs, idx, len) {\n if (idx === len)\n return unit_1;\n return tsplus_module_5.zipRight(writeChunkWriter(outs, idx + 1, len))(writeNow_1(tsplus_module_10.unsafeGet(idx)(outs)));\n}\n/**\n * Writes an output to the channel\n *\n * @tsplus static fncts.io.ChannelOps writeNow\n */\nfunction writeNow_1(out) {\n const op = new ChannelPrimitive(9 /* ChannelTag.Emit */);\n op.i0 = () => out;\n return op;\n}\n/**\n * @tsplus static fncts.io.ChannelOps unit\n */\nconst unit_1 = tsplus_module_5.endNow(undefined);\nexport const unit = unit_1;\n/**\n * @tsplus static fncts.io.ChannelOps fromHubScoped\n */\nexport function fromHubScoped(hub) {\n return tsplus_module_2.defer(() => tsplus_module_2.map(fromQueue_1, fileName_1 + \":1216:38\")(tsplus_module_26.subscribe(hub(), fileName_1 + \":1216:24\")), fileName_1 + \":1216:18\");\n}\n/**\n * @tsplus static fncts.io.ChannelOps toHub\n */\nexport function toHub(hub) {\n return toQueue_1(hub);\n}\n/**\n * Makes a channel from an effect that returns a channel in case of success\n *\n * @tsplus static fncts.io.ChannelOps unwrap\n */\nfunction unwrap_1(self) {\n return flatten_1(fromIO_1(self));\n}\n/**\n * Makes a channel from a managed that returns a channel in case of success\n *\n * @tsplus static fncts.io.ChannelOps unwrapScoped\n */\nexport function unwrapScoped(self) {\n return concatAllWith_1((d, _) => d, (d, _) => d)(scoped_1(self));\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AA2BnB,MAAa,yBAAyB;AACtC,MAAa,4BAA4B;AACzC,MAAa,MAAM;AACnB,MAAa,MAAM;AACnB,MAAa,SAAS;AACtB,MAAa,WAAW;AACxB,MAAa,gBAAgB;AAC7B,MAAa,gBAAgB;AAC7B,MAAa,gBAAgB;AAC7B,MAAa,QAAQ;AACrB,MAAa,cAAc;AAC3B,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,UAAU;AACvB,MAAa,YAAY;AACzB,MAAa,SAAS;AACtB,MAAa,YAAY;AACzB,MAAa,UAAU;AACvB,MAAa,KAAK;AAClB,MAAa,gBAAgB;AAC7B,MAAa,QAAQ;AACrB,MAAa,qBAAqB;AAClC,MAAa,SAAS;AACtB,MAAa,oBAAoB;AACjC,MAAa,aAAa;AAC1B,MAAa,SAAS;AACtB,MAAa,aAAa;AAC1B,MAAa,WAAW;AACxB,MAAa,gBAAgB;AAC7B,MAAa,WAAW;AACxB,MAAa,UAAU;AACvB,MAAa,QAAQ;AACrB,MAAa,aAAa;AAC1B,MAAa,WAAW;AACxB,MAAa,SAAS;;;;AAMtB,SAAS,yBAAyB,SAAS,KAAK,SAAS;AACrD,QAAO,gBAAgB,SAAS,QAAQ,gBAAgB,SAAS,gBAAgB,SAAS,QAAQ,IAAI,KAAK,EAAE,aAAa,SAAS,CAAC,gBAAgB,IAAI,KAAK,aAAa,SAAS,CAAC,CAAC,CAAC,gBAAgB,QAAQ,IAAI,CAAC,eAAe,gBAAgB,gBAAgB,gBAAgB,KAAK,MAAM,gBAAgB,KAAK,SAAS,QAAQ,GAAG,KAAK,EAAE,aAAa,SAAS,CAAC,IAAI,EAAE,aAAa,SAAS,CAAC,QAAQ,EAAE,aAAa,SAAS,CAA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sourcesContent":["const fileName_1 = \"(@fncts/io) src/Channel/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/Ref/api/get\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_3 from \"@fncts/io/Ref/api/set\";\nimport * as tsplus_module_4 from \"@fncts/io/IO/api/interrupt\";\nimport * as tsplus_module_5 from \"@fncts/io/Channel/core-api\";\nimport * as tsplus_module_6 from \"@fncts/io/Ref/constructors\";\nimport * as tsplus_module_7 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_8 from \"@fncts/io/Ref/api/modify\";\nimport * as tsplus_module_9 from \"@fncts/base/collection/immutable/Conc/api/empty\";\nimport * as tsplus_module_10 from \"@fncts/base/collection/immutable/Conc/api\";\nimport * as tsplus_module_11 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_12 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_13 from \"@fncts/base/collection/immutable/Conc\";\nimport * as tsplus_module_14 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_15 from \"@fncts/io/Channel/UpstreamPullStrategy/definition\";\nimport * as tsplus_module_16 from \"@fncts/io/Channel/ChildExecutorDecision/definition\";\nimport * as tsplus_module_17 from \"@fncts/base/data/Maybe/destructors\";\nimport * as tsplus_module_18 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_19 from \"@fncts/io/Queue/api/operations\";\nimport * as tsplus_module_20 from \"@fncts/base/util/predicates\";\nimport * as tsplus_module_21 from \"@fncts/base/data/Exit/constructors\";\nimport * as tsplus_module_22 from \"@fncts/io/Scope/api\";\nimport * as tsplus_module_23 from \"@fncts/io/IO/api/asyncInterrupt\";\nimport * as tsplus_module_24 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_25 from \"@fncts/base/collection/immutable/Conc/constructors\";\nimport * as tsplus_module_26 from \"@fncts/io/Hub/api\";\nexport const acquireReleaseExitWith = acquireReleaseExitWith_1;\nexport const acquireReleaseOutExitWith = acquireReleaseOutExitWith_1;\nexport const as_ = as_1;\nexport const ask = ask_1;\nexport const buffer = buffer_1;\nexport const catchAll = catchAll_1;\nexport const catchAllCause = catchAllCause_1;\nexport const concatAllWith = concatAllWith_1;\nexport const concatMapWith = concatMapWith_1;\nexport const defer = defer_1;\nexport const doneCollect = doneCollect_1;\nexport const ensuringWith = ensuringWith_1;\nexport const failNow = failNow_1;\nexport const flatten = flatten_1;\nexport const fromInput = fromInput_1;\nexport const fromIO = fromIO_1;\nexport const fromQueue = fromQueue_1;\nexport const haltNow = haltNow_1;\nexport const id = id_1;\nexport const mapErrorCause = mapErrorCause_1;\nexport const mapIO = mapIO_1;\nexport const provideEnvironment = provideEnvironment_1;\nexport const scoped = scoped_1;\nexport const matchCauseChannel = matchCauseChannel_1;\nexport const orHaltWith = orHaltWith_1;\nexport const pipeTo = pipeTo_1;\nexport const readOrFail = readOrFail_1;\nexport const readWith = readWith_1;\nexport const readWithCause = readWithCause_1;\nexport const repeated = repeated_1;\nexport const toQueue = toQueue_1;\nexport const write = write_1;\nexport const writeChunk = writeChunk_1;\nexport const writeNow = writeNow_1;\nexport const unwrap = unwrap_1;\nimport { identity, tuple } from \"@fncts/base/data/function\";\nimport { ChannelPrimitive } from \"@fncts/io/Channel/definition\";\n/**\n * @tsplus static fncts.io.ChannelOps acquireReleaseExitWith\n */\nfunction acquireReleaseExitWith_1(acquire, use, release) {\n return tsplus_module_5.flatMap((ref) => ensuringWith_1((exit) => tsplus_module_2.flatMap((fin) => fin(exit), fileName_1 + \":21:46\")(tsplus_module_1.get(ref, fileName_1 + \":21:34\")))(tsplus_module_5.flatMap(use)(fromIO_1(() => tsplus_module_4.uninterruptible(tsplus_module_2.tap((a) => tsplus_module_3.set((exit) => release(a, exit), fileName_1 + \":19:46\")(ref), fileName_1 + \":19:31\")(acquire), fileName_1 + \":19:75\")))))(fromIO_1(() => tsplus_module_6.make(() => (_) => tsplus_module_2.unit, fileName_1 + \":18:33\")));\n}\n/**\n * Construct a resource Channel with Acquire / Release\n *\n * @tsplus static fncts.io.ChannelOps acquireReleaseOutExitWith\n */\nfunction acquireReleaseOutExitWith_1(self, release) {\n const op = new ChannelPrimitive(13 /* ChannelTag.BracketOut */);\n op.i0 = self;\n op.i1 = release;\n return op;\n}\n/**\n * Construct a resource Channel with Acquire / Release\n *\n * @tsplus static fncts.io.ChannelOps acquireReleaseOutWith\n */\nexport function acquireReleaseOutWith(acquire, release) {\n return acquireReleaseOutExitWith_1(acquire, (z, _) => release(z));\n}\n/**\n * @tsplus static fncts.io.ChannelOps acquireReleaseWith\n */\nexport function acquireReleaseWith(acquire, use, release) {\n return acquireReleaseExitWith_1(acquire, use, (a, _) => release(a));\n}\n/**\n * Returns a new channel that is the same as this one, except the terminal value of the channel\n * is the specified constant value.\n *\n * This method produces the same result as mapping this channel to the specified constant value.\n *\n * @tsplus pipeable fncts.io.Channel as\n */\nfunction as_1(z2) {\n return (self) => {\n return tsplus_module_5.map(() => z2())(self);\n };\n}\n/**\n * @tsplus static fncts.io.ChannelOps ask\n */\nfunction ask_1() {\n return fromIO_1(() => tsplus_module_7.environment(fileName_1 + \":83:39\"));\n}\n/**\n * @tsplus getter fncts.io.Channel asUnit\n */\nexport function asUnit(self) {\n return as_1(() => undefined)(self);\n}\n/**\n * Creates a channel backed by a buffer. When the buffer is empty, the channel will simply\n * passthrough its input as output. However, when the buffer is non-empty, the value inside\n * the buffer will be passed along as output.\n *\n * @tsplus static fncts.io.ChannelOps buffer\n */\nfunction buffer_1(empty, isEmpty, ref) {\n return unwrap_1(() => tsplus_module_8.modify((v) => {\n if (isEmpty(v)) {\n return tuple(readWith_1((_in) => tsplus_module_5.zipRight(buffer_1(empty, isEmpty, ref))(writeNow_1(_in)), (err) => failNow_1(err), (done) => tsplus_module_5.endNow(done)), v);\n }\n else {\n return tuple(tsplus_module_5.zipRight(buffer_1(empty, isEmpty, ref))(writeNow_1(v)), empty);\n }\n }, fileName_1 + \":108:15\")(ref));\n}\n/**\n * @tsplus static fncts.io.ChannelOps bufferChunk\n */\nexport function bufferChunk(ref) {\n return buffer_1(tsplus_module_9.empty(), (conc) => tsplus_module_10.isEmpty(conc), ref);\n}\n/**\n * Returns a new channel that is the same as this one, except if this channel errors for any\n * typed error, then the returned channel will switch over to using the fallback channel returned\n * by the specified error handler.\n *\n * @tsplus pipeable fncts.io.Channel catchAll\n */\nfunction catchAll_1(f) {\n return (self) => {\n return catchAllCause_1((cause) => tsplus_module_12.match((l) => f(l), (r) => tsplus_module_5.failCauseNow(r))(tsplus_module_11.failureOrCause(cause)))(self);\n };\n}\n/**\n * Returns a new channel that is the same as this one, except if this channel errors for any\n * typed error, then the returned channel will switch over to using the fallback channel returned\n * by the specified error handler.\n *\n * @tsplus pipeable fncts.io.Channel catchAllCause\n */\nfunction catchAllCause_1(f) {\n return (self) => {\n const op = new ChannelPrimitive(3 /* ChannelTag.Fold */);\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = tsplus_module_5.endNow;\n continuation.i1 = f;\n op.i0 = self;\n op.i1 = continuation;\n return op;\n };\n}\n/**\n * @tsplus getter fncts.io.Channel collectElements\n */\nexport function collectElements(self) {\n return defer_1(() => {\n const builder = new tsplus_module_13.ConcBuilder(tsplus_module_9.empty());\n const reader = readWith_1((out) => tsplus_module_5.zipRight(reader)(tsplus_module_5.succeed(() => builder.append(out))), failNow_1, tsplus_module_5.succeedNow);\n return tsplus_module_5.flatMap((z) => tsplus_module_5.succeedNow([builder.result(), z]))(pipeTo_1(reader)(self));\n });\n}\n/**\n * @tsplus getter fncts.io.Channel concatAll\n */\nexport function concatAll(channels) {\n return concatAllWith_1(() => void 0, () => void 0)(channels);\n}\n/**\n * Concat sequentially a channel of channels\n *\n * @tsplus pipeable fncts.io.Channel concatAllWith\n */\nfunction concatAllWith_1(f, g) {\n return (channels) => {\n const op = new ChannelPrimitive(12 /* ChannelTag.ConcatAll */);\n op.i0 = f;\n op.i1 = g;\n op.i2 = () => tsplus_module_15.PullAfterNext(tsplus_module_14.nothing(fileName_1 + \":250:64\"));\n op.i3 = () => tsplus_module_16.Continue;\n op.i4 = channels;\n op.i5 = identity;\n return op;\n };\n}\n/**\n * Returns a new channel whose outputs are fed to the specified factory function, which creates\n * new channels in response. These new channels are sequentially concatenated together, and all\n * their outputs appear as outputs of the newly returned channel.\n *\n * @tsplus pipeable fncts.io.Channel concatMap\n */\nexport function concatMap(f) {\n return (self) => {\n return concatMapWith_1(f, () => void 0, () => void 0)(self);\n };\n}\n/**\n * Returns a new channel whose outputs are fed to the specified factory function, which creates\n * new channels in response. These new channels are sequentially concatenated together, and all\n * their outputs appear as outputs of the newly returned channel. The provided merging function\n * is used to merge the terminal values of all channels into the single terminal value of the\n * returned channel.\n *\n * @tsplus pipeable fncts.io.Channel concatMapWith\n */\nfunction concatMapWith_1(f, g, h) {\n return (channel) => {\n const op = new ChannelPrimitive(12 /* ChannelTag.ConcatAll */);\n op.i0 = g;\n op.i1 = h;\n op.i2 = () => tsplus_module_15.PullAfterNext(tsplus_module_14.nothing(fileName_1 + \":299:64\"));\n op.i3 = () => tsplus_module_16.Continue;\n op.i4 = channel;\n op.i5 = f;\n return op;\n };\n}\n/**\n * Returns a new channel whose outputs are fed to the specified factory function, which creates\n * new channels in response. These new channels are sequentially concatenated together, and all\n * their outputs appear as outputs of the newly returned channel. The provided merging function\n * is used to merge the terminal values of all channels into the single terminal value of the\n * returned channel.\n *\n * @tsplus pipeable fncts.io.Channel concatMapWithCustom\n */\nexport function concatMapWithCustom(f, g, h, onPull, onEmit) {\n return (channel) => {\n const op = new ChannelPrimitive(12 /* ChannelTag.ConcatAll */);\n op.i0 = g;\n op.i1 = h;\n op.i2 = onPull;\n op.i3 = onEmit;\n op.i4 = channel;\n op.i5 = f;\n return op;\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramap\n */\nexport function contramap(f) {\n return (self) => {\n return pipeTo_1(self)(contramapReader(f));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramapEnvironment\n */\nexport function contramapEnvironment(f) {\n return (self) => {\n return tsplus_module_5.flatMap((env0) => provideEnvironment_1(() => f(env0))(self))(ask_1());\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramapIn\n */\nexport function contramapIn(f) {\n return (self) => {\n return pipeTo_1(self)(contramapInReader(f));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramapInIO\n */\nexport function contramapInIO(f) {\n return (self) => {\n return pipeTo_1(self)(contramapInIOReader(f));\n };\n}\nfunction contramapInIOReader(f) {\n return readWith_1((inp) => tsplus_module_5.zipRight(contramapInIOReader(f))(tsplus_module_5.flatMap(writeNow_1)(fromIO_1(() => f(inp)))), failNow_1, tsplus_module_5.endNow);\n}\nfunction contramapInReader(f) {\n return readWith_1((_in) => tsplus_module_5.zipRight(contramapInReader(f))(writeNow_1(f(_in))), failNow_1, (done) => tsplus_module_5.endNow(done));\n}\n/**\n * @tsplus pipeable fncts.io.Channel contramapIO\n */\nexport function contramapIO(f) {\n return (self) => {\n return pipeTo_1(self)(contramapIOReader(f));\n };\n}\nfunction contramapIOReader(f) {\n return readWith_1((_in) => tsplus_module_5.zipRight(contramapIOReader(f))(writeNow_1(_in)), failNow_1, (done0) => fromIO_1(() => f(done0)));\n}\nfunction contramapReader(f) {\n return readWith_1((_in) => tsplus_module_5.zipRight(contramapReader(f))(writeNow_1(_in)), failNow_1, (done) => tsplus_module_5.endNow(f(done)));\n}\n/**\n * @tsplus static fncts.io.ChannelOps defer\n */\nfunction defer_1(effect) {\n const op = new ChannelPrimitive(10 /* ChannelTag.Defer */);\n op.i0 = effect;\n return op;\n}\n/**\n * Returns a new channel, which is the same as this one, except that all the outputs are\n * collected and bundled into a tuple together with the terminal value of this channel.\n *\n * As the channel returned from this channel collects all of this channels output into an in-\n * memory chunk, it is not safe to call this method on channels that output a large or unbounded\n * number of values.\n *\n * @tsplus getter fncts.io.Channel doneCollect\n */\nfunction doneCollect_1(self) {\n return unwrap_1(() => tsplus_module_2.succeed(() => {\n const builder = tsplus_module_10.builder();\n return mapIO_1((z) => tsplus_module_2.succeedNow(tuple(builder.result(), z), fileName_1 + \":470:80\"))(pipeTo_1(doneCollectReader(builder))(self));\n }, fileName_1 + \":468:15\"));\n}\nfunction doneCollectReader(builder) {\n return readWith_1((out) => tsplus_module_5.zipRight(doneCollectReader(builder))(fromIO_1(() => tsplus_module_2.succeed(() => {\n builder.append(out);\n }, fileName_1 + \":481:19\"))), failNow_1, tsplus_module_5.endNow);\n}\n/**\n * Returns a new channel which reads all the elements from upstream's output channel\n * and ignores them, then terminates with the upstream result value.\n *\n * @tsplus getter fncts.io.Channel drain\n */\nexport function drain(channel) {\n const drainer = readWithCause_1((_) => drainer, tsplus_module_5.failCauseNow, tsplus_module_5.endNow);\n return pipeTo_1(drainer)(channel);\n}\n/**\n * Embed inputs from continuos pulling of a producer\n *\n * @tsplus pipeable fncts.io.Channel embedInput\n */\nexport function embedInput(input) {\n return (self) => {\n const op = new ChannelPrimitive(4 /* ChannelTag.Bridge */);\n op.i0 = input;\n op.i1 = self;\n return op;\n };\n}\n/**\n * Returns a new channel that collects the output and terminal value of this channel, which it\n * then writes as output of the returned channel.\n *\n * @tsplus getter fncts.io.Channel emitCollect\n */\nexport function emitCollect(self) {\n return tsplus_module_5.flatMap((t) => writeNow_1(t))(doneCollect_1(self));\n}\n/**\n * @tsplus pipeable fncts.io.Channel ensuring\n */\nexport function ensuring(finalizer) {\n return (self) => {\n return ensuringWith_1(() => finalizer)(self);\n };\n}\n/**\n * Returns a new channel with an attached finalizer. The finalizer is guaranteed to be executed\n * so long as the channel begins execution (and regardless of whether or not it completes).\n *\n * @tsplus pipeable fncts.io.Channel ensuringWith\n */\nfunction ensuringWith_1(finalizer) {\n return (channel) => {\n const op = new ChannelPrimitive(11 /* ChannelTag.Ensuring */);\n op.i0 = channel;\n op.i1 = finalizer;\n return op;\n };\n}\n/**\n * Halt a channel with the specified error\n *\n * @tsplus static fncts.io.ChannelOps fail\n */\nexport function fail(error) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = () => tsplus_module_11.fail(error());\n return op;\n}\n/**\n * Halt a channel with the specified error\n *\n * @tsplus static fncts.io.ChannelOps failNow\n */\nfunction failNow_1(error) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = () => tsplus_module_11.fail(error);\n return op;\n}\n/**\n * Returns a new channel, which flattens the terminal value of this channel. This function may\n * only be called if the terminal value of this channel is another channel of compatible types.\n *\n * @tsplus getter fncts.io.Channel flatten\n */\nfunction flatten_1(self) {\n return tsplus_module_5.flatMap(identity)(self);\n}\n/**\n * @tsplus static fncts.io.ChannelOps fromEither\n */\nexport function fromEither(either) {\n return defer_1(() => tsplus_module_12.match(failNow_1, tsplus_module_5.succeedNow)(either()));\n}\n/**\n * @tsplus static fncts.io.ChannelOps fromInput\n */\nfunction fromInput_1(input) {\n return unwrap_1(() => input.takeWith(tsplus_module_5.failCauseNow, (elem) => tsplus_module_5.zipRight(fromInput_1(input))(writeNow_1(elem)), tsplus_module_5.endNow));\n}\n/**\n * Use an effect to end a channel\n *\n * @tsplus static fncts.io.ChannelOps fromIO\n */\nfunction fromIO_1(io) {\n return defer_1(() => {\n const op = new ChannelPrimitive(8 /* ChannelTag.FromIO */);\n op.i0 = io();\n return op;\n });\n}\n/**\n * @tsplus static fncts.io.ChannelOps fromOption\n */\nexport function fromOption(option) {\n return defer_1(() => tsplus_module_17.match(() => failNow_1(tsplus_module_14.nothing(fileName_1 + \":662:68\")), tsplus_module_5.succeedNow)(option()));\n}\n/**\n * @tsplus static fncts.io.ChannelOps fromQueue\n */\nfunction fromQueue_1(queue) {\n return tsplus_module_5.flatMap((_) => tsplus_module_12.match((_) => tsplus_module_18.match(tsplus_module_5.failCauseNow, tsplus_module_5.endNow)(_), (elem) => tsplus_module_5.zipRight(fromQueue_1(queue))(writeNow_1(elem)))(_))(fromIO_1(() => tsplus_module_19.take(queue, fileName_1 + \":671:30\")));\n}\n/**\n * Halt a channel with the specified exception\n *\n * @tsplus static fncts.io.ChannelOps halt\n */\nexport function halt(defect) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = () => tsplus_module_11.halt(defect());\n return op;\n}\n/**\n * Halt a channel with the specified exception\n *\n * @tsplus static fncts.io.ChannelOps haltNow\n */\nfunction haltNow_1(defect) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = () => tsplus_module_11.halt(defect);\n return op;\n}\n/**\n * @tsplus static fncts.io.ChannelOps id\n */\nfunction id_1() {\n return readWith_1((_in) => tsplus_module_5.zipRight(id_1())(write_1(() => _in)), failNow_1, tsplus_module_5.endNow);\n}\n/**\n * @tsplus static fncts.io.ChannelOps interrupt\n */\nexport function interrupt(fiberId) {\n return tsplus_module_5.failCauseNow(tsplus_module_11.interrupt(fiberId));\n}\nfunction isChannelFailure(u) {\n return tsplus_module_20.isObject(u) && ChannelFailureTypeId in u;\n}\n/**\n * Returns a new channel, which is the same as this one, except the failure value of the returned\n * channel is created by applying the specified function to the failure value of this channel.\n *\n * @tsplus pipeable fncts.io.Channel mapError\n */\nexport function mapError(f) {\n return (self) => {\n return mapErrorCause_1((cause) => tsplus_module_11.map(f)(cause))(self);\n };\n}\n/**\n * A more powerful version of `mapError` which also surfaces the `Cause` of the channel failure\n *\n * @tsplus pipeable fncts.io.Channel mapErrorCause\n */\nfunction mapErrorCause_1(f) {\n return (self) => {\n return catchAllCause_1((cause) => tsplus_module_5.failCauseNow(f(cause)))(self);\n };\n}\n/**\n * Returns a new channel, which is the same as this one, except the terminal value of the\n * returned channel is created by applying the specified effectful function to the terminal value\n * of this channel.\n *\n * @tsplus pipeable fncts.io.Channel mapIO\n */\nfunction mapIO_1(f) {\n return (self) => {\n return tsplus_module_5.flatMap((outDone) => fromIO_1(() => f(outDone)))(self);\n };\n}\n/**\n * Maps the output of this channel using f\n *\n * @tsplus pipeable fncts.io.Channel mapOut\n */\nexport function mapOut(f) {\n return (self) => {\n const reader = readWith_1((out) => tsplus_module_5.zipRight(reader)(writeNow_1(f(out))), failNow_1, tsplus_module_5.endNow);\n return pipeTo_1(reader)(self);\n };\n}\n/**\n * Provides the channel with its required environment, which eliminates\n * its dependency on `Env`.\n *\n * @tsplus pipeable fncts.io.Channel provideEnvironment\n */\nfunction provideEnvironment_1(env) {\n return (self) => {\n return defer_1(() => {\n const op = new ChannelPrimitive(14 /* ChannelTag.Provide */);\n op.i0 = env();\n op.i1 = self;\n return op;\n });\n };\n}\n/**\n * Use a managed to emit an output element\n *\n * @tsplus static fncts.io.ChannelOps scoped\n */\nfunction scoped_1(io) {\n return unwrap_1(() => tsplus_module_4.uninterruptibleMask((restore) => tsplus_module_2.map((scope) => acquireReleaseOutExitWith_1(tsplus_module_2.tapErrorCause((cause) => scope.close(() => tsplus_module_21.failCause(cause, fileName_1 + \":810:88\")), fileName_1 + \":810:50\")(restore(tsplus_module_22.extend(io, fileName_1 + \":810:31\")(scope), fileName_1 + \":810:18\")), (_, exit) => scope.close(() => exit)), fileName_1 + \":808:21\")(tsplus_module_22.make), fileName_1 + \":807:27\"));\n}\nconst mapOutIOReader = (f) => readWithCause_1((out) => tsplus_module_5.zipRight(mapOutIOReader(f))(tsplus_module_5.flatMap(writeNow_1)(fromIO_1(() => f(out)))), tsplus_module_5.failCauseNow, tsplus_module_5.succeedNow);\n/**\n * @tsplus pipeable fncts.io.Channel mapOutIO\n */\nexport function mapOutIO(f) {\n return (self) => {\n return pipeTo_1(mapOutIOReader(f))(self);\n };\n}\n/**\n * Fold the channel exposing success and full error cause\n *\n * @tsplus pipeable fncts.io.Channel matchCauseChannel\n */\nfunction matchCauseChannel_1(onError, onSuccess) {\n return (channel) => {\n const op = new ChannelPrimitive(3 /* ChannelTag.Fold */);\n op.i0 = channel;\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = onSuccess;\n continuation.i1 = onError;\n op.i1 = continuation;\n return op;\n };\n}\n/**\n * Fold the channel exposing success and full error cause\n *\n * @tsplus pipeable fncts.io.Channel matchChannel\n */\nexport function matchChannel(onError, onSuccess) {\n return (channel) => {\n return matchCauseChannel_1((cause) => tsplus_module_12.match(onError, tsplus_module_5.failCauseNow)(tsplus_module_11.failureOrCause(cause)), onSuccess)(channel);\n };\n}\nexport const never = fromIO_1(() => tsplus_module_23.never);\n/**\n * Returns a new channel that will perform the operations of this one, until failure, and then\n * it will switch over to the operations of the specified fallback channel.\n *\n * @tsplus pipeable fncts.io.Channel orElse\n */\nexport function orElse(that) {\n return (self) => {\n return catchAll_1((_) => that)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel orHalt\n */\nexport function orHalt(err) {\n return (self) => {\n return orHaltWith_1(() => err)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Channel orHaltWith\n */\nfunction orHaltWith_1(f) {\n return (self) => {\n return catchAll_1((e) => haltNow_1(f(e)))(self);\n };\n}\n/**\n * Pipe the output of a channel into the input of another\n *\n * @tsplus pipeable fncts.io.Channel pipeTo\n * @tsplus pipeable-operator fncts.io.Channel >>>\n */\nfunction pipeTo_1(right) {\n return (left) => {\n const op = new ChannelPrimitive(0 /* ChannelTag.PipeTo */);\n op.i0 = () => left;\n op.i1 = () => right;\n return op;\n };\n}\nconst ChannelFailureTypeId = Symbol.for(\"@principia/base/Channel/ChannelFailure\");\nclass ChannelFailure {\n error;\n [ChannelFailureTypeId] = ChannelFailureTypeId;\n constructor(error) {\n this.error = error;\n }\n}\n/**\n * @tsplus pipeable fncts.io.Channel pipeToOrFail\n * @tsplus pipeable-operator fncts.io.Channel >>>\n */\nexport function pipeToOrFail(right) {\n return (left) => {\n return catchAllCause_1((cause) => tsplus_module_11.isHalt(cause) && isChannelFailure(cause.value)\n ? failNow_1(cause.value.error)\n : haltNow_1(cause))(pipeTo_1(right)(catchAll_1((err) => tsplus_module_5.failCauseNow(tsplus_module_11.halt(new ChannelFailure(err))))(left)));\n };\n}\n/**\n * @tsplus static fncts.io.ChannelOps read\n */\nexport function read() {\n return readOrFail_1(tsplus_module_14.nothing(fileName_1 + \":1027:36\"));\n}\n/**\n * @tsplus static fncts.io.ChannelOps readOrFail\n */\nfunction readOrFail_1(e) {\n const op = new ChannelPrimitive(5 /* ChannelTag.Read */);\n op.i0 = tsplus_module_5.endNow;\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = () => failNow_1(e);\n continuation.i1 = () => failNow_1(e);\n op.i1 = continuation;\n return op;\n}\n/**\n * Reads an input and continue exposing both error and completion\n *\n * @tsplus static fncts.io.ChannelOps readWith\n */\nfunction readWith_1(inp, error, done) {\n return readWithCause_1(inp, (c) => tsplus_module_12.match(error, tsplus_module_5.failCauseNow)(tsplus_module_11.failureOrCause(c)), done);\n}\n/**\n * Reads an input and continue exposing both full error cause and completion\n *\n * @tsplus static fncts.io.ChannelOps readWithCause\n */\nfunction readWithCause_1(inp, halt, done) {\n const op = new ChannelPrimitive(5 /* ChannelTag.Read */);\n op.i0 = inp;\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = done;\n continuation.i1 = halt;\n op.i1 = continuation;\n return op;\n}\n/**\n * Repeats this channel forever\n *\n * @tsplus getter fncts.io.Channel repeated\n */\nfunction repeated_1(self) {\n return tsplus_module_5.flatMap(() => repeated_1(self))(self);\n}\n/**\n * @tsplus static fncts.io.ChannelOps toQueue\n */\nfunction toQueue_1(queue) {\n return defer_1(() => {\n function toQueue(queue) {\n return readWithCause_1((inp) => tsplus_module_5.zipRight(toQueue(queue))(fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.right(inp, fileName_1 + \":1151:57\"), fileName_1 + \":1151:44\")(queue))), (cause) => fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.left(tsplus_module_21.failCause(cause, fileName_1 + \":1152:73\"), fileName_1 + \":1152:58\"), fileName_1 + \":1152:46\")(queue)), (done) => fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.left(tsplus_module_21.succeed(done, fileName_1 + \":1153:70\"), fileName_1 + \":1153:57\"), fileName_1 + \":1153:45\")(queue)));\n }\n return toQueue(queue());\n });\n}\n/**\n * Writes an output to the channel\n *\n * @tsplus static fncts.io.ChannelOps write\n */\nfunction write_1(out) {\n const op = new ChannelPrimitive(9 /* ChannelTag.Emit */);\n op.i0 = out;\n return op;\n}\n/**\n * @tsplus static fncts.io.ChannelOps writeAll\n */\nexport function writeAll(outs) {\n return writeChunk_1(tsplus_module_25.from(outs));\n}\n/**\n * @tsplus static fncts.io.ChannelOps writeChunk\n */\nfunction writeChunk_1(outs) {\n return writeChunkWriter(outs, 0, outs.length);\n}\nfunction writeChunkWriter(outs, idx, len) {\n if (idx === len)\n return unit_1;\n return tsplus_module_5.zipRight(writeChunkWriter(outs, idx + 1, len))(writeNow_1(tsplus_module_10.unsafeGet(idx)(outs)));\n}\n/**\n * Writes an output to the channel\n *\n * @tsplus static fncts.io.ChannelOps writeNow\n */\nfunction writeNow_1(out) {\n const op = new ChannelPrimitive(9 /* ChannelTag.Emit */);\n op.i0 = () => out;\n return op;\n}\n/**\n * @tsplus static fncts.io.ChannelOps unit\n */\nconst unit_1 = tsplus_module_5.endNow(undefined);\nexport const unit = unit_1;\n/**\n * @tsplus static fncts.io.ChannelOps fromHubScoped\n */\nexport function fromHubScoped(hub) {\n return tsplus_module_2.defer(() => tsplus_module_2.map(fromQueue_1, fileName_1 + \":1216:38\")(tsplus_module_26.subscribe(hub(), fileName_1 + \":1216:24\")), fileName_1 + \":1216:18\");\n}\n/**\n * @tsplus static fncts.io.ChannelOps toHub\n */\nexport function toHub(hub) {\n return toQueue_1(hub);\n}\n/**\n * Makes a channel from an effect that returns a channel in case of success\n *\n * @tsplus static fncts.io.ChannelOps unwrap\n */\nfunction unwrap_1(self) {\n return flatten_1(fromIO_1(self));\n}\n/**\n * Makes a channel from a managed that returns a channel in case of success\n *\n * @tsplus static fncts.io.ChannelOps unwrapScoped\n */\nexport function unwrapScoped(self) {\n return concatAll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;AAChD;AACA,SAAS,iBAAiB,MAAM,KAAK,KAAK;CACtC,IAAI,QAAQ,KACR,OAAO;CACX,OAAO,gBAAgB,SAAS,iBAAiB,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,WAAW,iBAAiB,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3H;;;;;;AAMA,SAAS,WAAW,KAAK;CACrB,MAAM,KAAK,IAAI,iBAAiB,CAAuB;CACvD,GAAG,WAAW;CACd,OAAO;AACX;;;;AAIA,MAAM,SAAS,gBAAgB,OAAO,KAAA,CAAS;AAC/C,MAAa,OAAO;;;;AAIpB,SAAgB,cAAc,KAAK;CAC/B,OAAO,gBAAgB,YAAY,gBAAgB,IAAI,aAAa,aAAa,UAAU,CAAC,CAAC,iBAAiB,UAAU,IAAI,GAAG,aAAa,UAAU,CAAC,GAAG,aAAa,UAAU;AACrL;;;;AAIA,SAAgB,MAAM,KAAK;CACvB,OAAO,UAAU,GAAG;AACxB;;;;;;AAMA,SAAS,SAAS,MAAM;CACpB,OAAO,UAAU,SAAS,IAAI,CAAC;AACnC;;;;;;AAMA,SAAgB,aAAa,MAAM;CAC/B,OAAO,iBAAiB,GAAG,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC;AACnE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChannelPrimitive } from "./definition.mjs";
|
|
2
2
|
import { tuple } from "@fncts/base/data/function";
|
|
3
|
-
|
|
3
|
+
// build/esm/Channel/core-api.js
|
|
4
4
|
const end = end_1;
|
|
5
5
|
const failCause = failCause_1;
|
|
6
6
|
const failCauseNow = failCauseNow_1;
|
|
@@ -124,7 +124,6 @@ function zipRight(that) {
|
|
|
124
124
|
return flatMap_1(() => that)(self);
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
//#endregion
|
|
128
127
|
export { cross, end, endNow, failCause, failCauseNow, flatMap, map, succeed, succeedNow, zipLeft, zipRight };
|
|
129
128
|
|
|
130
129
|
//# sourceMappingURL=core-api.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-api.mjs","names":[],"sources":["../../esm/Channel/core-api.js"],"sourcesContent":["export const end = end_1;\nexport const failCause = failCause_1;\nexport const failCauseNow = failCauseNow_1;\nexport const flatMap = flatMap_1;\nexport const map = map_1;\nexport const succeedNow = succeedNow_1;\nimport { tuple } from \"@fncts/base/data/function\";\nimport { ChannelPrimitive } from \"./definition.js\";\n/* eslint perfectionist/sort-modules: \"error\" */\n/**\n * Returns a new channel that is the sequential composition of this channel and the specified\n * channel. The returned channel terminates with a tuple of the terminal values of both channels.\n *\n * @tsplus pipeable fncts.io.Channel cross\n */\nexport function cross(that) {\n return (self) => {\n return flatMap_1((z) => map_1((z2) => tuple(z, z2))(that))(self);\n };\n}\n/**\n * End a channel with the specified result\n *\n * @tsplus static fncts.io.ChannelOps end\n */\nfunction end_1(result) {\n const op = new ChannelPrimitive(6 /* ChannelTag.Done */);\n op.i0 = result;\n return op;\n}\n/**\n * End a channel with the specified result\n *\n * @tsplus static fncts.io.ChannelOps endNow\n */\nexport function endNow(result) {\n return end_1(() => result);\n}\n/**\n * Halt a channel with the specified cause\n *\n * @tsplus static fncts.io.ChannelOps failCause\n */\nfunction failCause_1(result) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = result;\n return op;\n}\n/**\n * Halt a channel with the specified cause\n *\n * @tsplus static fncts.io.ChannelOps failCauseNow\n */\nfunction failCauseNow_1(result) {\n return failCause_1(() => result);\n}\n/**\n * Returns a new channel, which sequentially combines this channel, together with the provided\n * factory function, which creates a second channel based on the terminal value of this channel.\n * The result is a channel that will first perform the functions of this channel, before\n * performing the functions of the created channel (including yielding its terminal value).\n *\n * @tsplus pipeable fncts.io.Channel flatMap\n */\nfunction flatMap_1(f) {\n return (channel) => {\n const op = new ChannelPrimitive(3 /* ChannelTag.Fold */);\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = f;\n continuation.i1 = failCauseNow_1;\n op.i0 = channel;\n op.i1 = continuation;\n return op;\n };\n}\n/**\n * Returns a new channel, which is the same as this one, except the terminal value of the\n * returned channel is created by applying the specified function to the terminal value of this\n * channel.\n *\n * @tsplus pipeable fncts.io.Channel map\n */\nfunction map_1(f) {\n return (self) => {\n return flatMap_1((z) => succeedNow_1(f(z)))(self);\n };\n}\n/**\n * End a channel with the specified result\n *\n * @tsplus static fncts.io.ChannelOps succeed\n */\nexport function succeed(z) {\n return end_1(z);\n}\n/**\n * End a channel with the specified result\n *\n * @tsplus static fncts.io.ChannelOps succeedNow\n */\nfunction succeedNow_1(z) {\n return end_1(() => z);\n}\n/**\n * Returns a new channel that is the sequential composition of this channel and the specified\n * channel. The returned channel terminates with the terminal value of this channel.\n *\n * @tsplus pipeable fncts.io.Channel zipLeft\n */\nexport function zipLeft(that) {\n return (self) => {\n return flatMap_1((a) => map_1(() => a)(that))(self);\n };\n}\n/**\n * Returns a new channel that is the sequential composition of this channel and the specified\n * channel. The returned channel terminates with the terminal value of the other channel.\n *\n * @tsplus pipeable fncts.io.Channel zipRight\n * @tsplus pipeable-operator fncts.io.Channel >\n */\nexport function zipRight(that) {\n return (self) => {\n return flatMap_1(() => that)(self);\n };\n}\n//# sourceMappingURL=core-api.js.map"],"mappings":";;;AAAA,MAAa,MAAM;AACnB,MAAa,YAAY;AACzB,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,MAAM;AACnB,MAAa,aAAa;;;;;;;AAU1B,SAAgB,MAAM,MAAM;
|
|
1
|
+
{"version":3,"file":"core-api.mjs","names":[],"sources":["../../esm/Channel/core-api.js"],"sourcesContent":["export const end = end_1;\nexport const failCause = failCause_1;\nexport const failCauseNow = failCauseNow_1;\nexport const flatMap = flatMap_1;\nexport const map = map_1;\nexport const succeedNow = succeedNow_1;\nimport { tuple } from \"@fncts/base/data/function\";\nimport { ChannelPrimitive } from \"./definition.js\";\n/* eslint perfectionist/sort-modules: \"error\" */\n/**\n * Returns a new channel that is the sequential composition of this channel and the specified\n * channel. The returned channel terminates with a tuple of the terminal values of both channels.\n *\n * @tsplus pipeable fncts.io.Channel cross\n */\nexport function cross(that) {\n return (self) => {\n return flatMap_1((z) => map_1((z2) => tuple(z, z2))(that))(self);\n };\n}\n/**\n * End a channel with the specified result\n *\n * @tsplus static fncts.io.ChannelOps end\n */\nfunction end_1(result) {\n const op = new ChannelPrimitive(6 /* ChannelTag.Done */);\n op.i0 = result;\n return op;\n}\n/**\n * End a channel with the specified result\n *\n * @tsplus static fncts.io.ChannelOps endNow\n */\nexport function endNow(result) {\n return end_1(() => result);\n}\n/**\n * Halt a channel with the specified cause\n *\n * @tsplus static fncts.io.ChannelOps failCause\n */\nfunction failCause_1(result) {\n const op = new ChannelPrimitive(7 /* ChannelTag.Halt */);\n op.i0 = result;\n return op;\n}\n/**\n * Halt a channel with the specified cause\n *\n * @tsplus static fncts.io.ChannelOps failCauseNow\n */\nfunction failCauseNow_1(result) {\n return failCause_1(() => result);\n}\n/**\n * Returns a new channel, which sequentially combines this channel, together with the provided\n * factory function, which creates a second channel based on the terminal value of this channel.\n * The result is a channel that will first perform the functions of this channel, before\n * performing the functions of the created channel (including yielding its terminal value).\n *\n * @tsplus pipeable fncts.io.Channel flatMap\n */\nfunction flatMap_1(f) {\n return (channel) => {\n const op = new ChannelPrimitive(3 /* ChannelTag.Fold */);\n const continuation = new ChannelPrimitive(1 /* ChannelTag.ContinuationK */);\n continuation.i0 = f;\n continuation.i1 = failCauseNow_1;\n op.i0 = channel;\n op.i1 = continuation;\n return op;\n };\n}\n/**\n * Returns a new channel, which is the same as this one, except the terminal value of the\n * returned channel is created by applying the specified function to the terminal value of this\n * channel.\n *\n * @tsplus pipeable fncts.io.Channel map\n */\nfunction map_1(f) {\n return (self) => {\n return flatMap_1((z) => succeedNow_1(f(z)))(self);\n };\n}\n/**\n * End a channel with the specified result\n *\n * @tsplus static fncts.io.ChannelOps succeed\n */\nexport function succeed(z) {\n return end_1(z);\n}\n/**\n * End a channel with the specified result\n *\n * @tsplus static fncts.io.ChannelOps succeedNow\n */\nfunction succeedNow_1(z) {\n return end_1(() => z);\n}\n/**\n * Returns a new channel that is the sequential composition of this channel and the specified\n * channel. The returned channel terminates with the terminal value of this channel.\n *\n * @tsplus pipeable fncts.io.Channel zipLeft\n */\nexport function zipLeft(that) {\n return (self) => {\n return flatMap_1((a) => map_1(() => a)(that))(self);\n };\n}\n/**\n * Returns a new channel that is the sequential composition of this channel and the specified\n * channel. The returned channel terminates with the terminal value of the other channel.\n *\n * @tsplus pipeable fncts.io.Channel zipRight\n * @tsplus pipeable-operator fncts.io.Channel >\n */\nexport function zipRight(that) {\n return (self) => {\n return flatMap_1(() => that)(self);\n };\n}\n//# sourceMappingURL=core-api.js.map"],"mappings":";;;AAAA,MAAa,MAAM;AACnB,MAAa,YAAY;AACzB,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,MAAM;AACnB,MAAa,aAAa;;;;;;;AAU1B,SAAgB,MAAM,MAAM;CACxB,QAAQ,SAAS;EACb,OAAO,WAAW,MAAM,OAAO,OAAO,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;CACnE;AACJ;;;;;;AAMA,SAAS,MAAM,QAAQ;CACnB,MAAM,KAAK,IAAI,iBAAiB,CAAuB;CACvD,GAAG,KAAK;CACR,OAAO;AACX;;;;;;AAMA,SAAgB,OAAO,QAAQ;CAC3B,OAAO,YAAY,MAAM;AAC7B;;;;;;AAMA,SAAS,YAAY,QAAQ;CACzB,MAAM,KAAK,IAAI,iBAAiB,CAAuB;CACvD,GAAG,KAAK;CACR,OAAO;AACX;;;;;;AAMA,SAAS,eAAe,QAAQ;CAC5B,OAAO,kBAAkB,MAAM;AACnC;;;;;;;;;AASA,SAAS,UAAU,GAAG;CAClB,QAAQ,YAAY;EAChB,MAAM,KAAK,IAAI,iBAAiB,CAAuB;EACvD,MAAM,eAAe,IAAI,iBAAiB,CAAgC;EAC1E,aAAa,KAAK;EAClB,aAAa,KAAK;EAClB,GAAG,KAAK;EACR,GAAG,KAAK;EACR,OAAO;CACX;AACJ;;;;;;;;AAQA,SAAS,MAAM,GAAG;CACd,QAAQ,SAAS;EACb,OAAO,WAAW,MAAM,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;CACpD;AACJ;;;;;;AAMA,SAAgB,QAAQ,GAAG;CACvB,OAAO,MAAM,CAAC;AAClB;;;;;;AAMA,SAAS,aAAa,GAAG;CACrB,OAAO,YAAY,CAAC;AACxB;;;;;;;AAOA,SAAgB,QAAQ,MAAM;CAC1B,QAAQ,SAAS;EACb,OAAO,WAAW,MAAM,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;CACtD;AACJ;;;;;;;;AAQA,SAAgB,SAAS,MAAM;CAC3B,QAAQ,SAAS;EACb,OAAO,gBAAgB,IAAI,CAAC,CAAC,IAAI;CACrC;AACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// build/esm/Channel/definition.js
|
|
2
2
|
const ChannelVariance = Symbol.for("fncts.io.Channel.Variance");
|
|
3
3
|
const ChannelTypeId = Symbol.for("fncts.io.Channel");
|
|
4
4
|
/**
|
|
@@ -47,7 +47,6 @@ function concreteContinuation(_) {}
|
|
|
47
47
|
* @tsplus macro remove
|
|
48
48
|
*/
|
|
49
49
|
function concrete(_) {}
|
|
50
|
-
//#endregion
|
|
51
50
|
export { Channel, ChannelPrimitive, ChannelTypeId, ChannelVariance, Continuation, concrete, concreteContinuation, unifyChannel };
|
|
52
51
|
|
|
53
52
|
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/Channel/definition.js"],"sourcesContent":["export const ChannelVariance = Symbol.for(\"fncts.io.Channel.Variance\");\nexport const ChannelTypeId = Symbol.for(\"fncts.io.Channel\");\n/**\n * @tsplus type fncts.io.Channel\n * @tsplus companion fncts.io.ChannelOps\n */\nexport class Channel {\n [ChannelTypeId] = ChannelTypeId;\n}\n/**\n * @tsplus unify fncts.io.Channel\n */\nexport function unifyChannel(_) {\n return _;\n}\nexport class ChannelPrimitive {\n _tag;\n i0 = undefined;\n i1 = undefined;\n i2 = undefined;\n i3 = undefined;\n i4 = undefined;\n i5 = undefined;\n trace = undefined;\n [ChannelTypeId] = ChannelTypeId;\n constructor(_tag) {\n this._tag = _tag;\n }\n}\nexport class Continuation {\n _Env;\n _InErr;\n _InElem;\n _InDone;\n _OutErr;\n _OutErr2;\n _OutElem;\n _OutDone;\n _OutDone2;\n}\n/**\n * @optimize remove\n */\nexport function concreteContinuation(_) {\n //\n}\n/**\n * @tsplus macro remove\n */\nexport function concrete(_) {\n //\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,kBAAkB,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/Channel/definition.js"],"sourcesContent":["export const ChannelVariance = Symbol.for(\"fncts.io.Channel.Variance\");\nexport const ChannelTypeId = Symbol.for(\"fncts.io.Channel\");\n/**\n * @tsplus type fncts.io.Channel\n * @tsplus companion fncts.io.ChannelOps\n */\nexport class Channel {\n [ChannelTypeId] = ChannelTypeId;\n}\n/**\n * @tsplus unify fncts.io.Channel\n */\nexport function unifyChannel(_) {\n return _;\n}\nexport class ChannelPrimitive {\n _tag;\n i0 = undefined;\n i1 = undefined;\n i2 = undefined;\n i3 = undefined;\n i4 = undefined;\n i5 = undefined;\n trace = undefined;\n [ChannelTypeId] = ChannelTypeId;\n constructor(_tag) {\n this._tag = _tag;\n }\n}\nexport class Continuation {\n _Env;\n _InErr;\n _InElem;\n _InDone;\n _OutErr;\n _OutErr2;\n _OutElem;\n _OutDone;\n _OutDone2;\n}\n/**\n * @optimize remove\n */\nexport function concreteContinuation(_) {\n //\n}\n/**\n * @tsplus macro remove\n */\nexport function concrete(_) {\n //\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,kBAAkB,OAAO,IAAI,2BAA2B;AACrE,MAAa,gBAAgB,OAAO,IAAI,kBAAkB;;;;;AAK1D,IAAa,UAAb,MAAqB;CACjB,CAAC,iBAAiB;AACtB;;;;AAIA,SAAgB,aAAa,GAAG;CAC5B,OAAO;AACX;AACA,IAAa,mBAAb,MAA8B;CAC1B;CACA,KAAK,KAAA;CACL,KAAK,KAAA;CACL,KAAK,KAAA;CACL,KAAK,KAAA;CACL,KAAK,KAAA;CACL,KAAK,KAAA;CACL,QAAQ,KAAA;CACR,CAAC,iBAAiB;CAClB,YAAY,MAAM;EACd,KAAK,OAAO;CAChB;AACJ;AACA,IAAa,eAAb,MAA0B;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;;;;AAIA,SAAgB,qBAAqB,GAAG,CAExC;;;;AAIA,SAAgB,SAAS,GAAG,CAE5B"}
|
|
@@ -25,7 +25,7 @@ import * as tsplus_module_15 from "@fncts/base/collection/immutable/List/api/uns
|
|
|
25
25
|
import * as tsplus_module_21 from "@fncts/io/Channel/UpstreamPullRequest/api";
|
|
26
26
|
import * as tsplus_module_23 from "@fncts/io/Channel/ChildExecutorDecision/api";
|
|
27
27
|
import * as State from "@fncts/io/Channel/internal/ChannelState";
|
|
28
|
-
|
|
28
|
+
// build/esm/Channel/internal/ChannelExecutor.js
|
|
29
29
|
const fileName_1 = "(@fncts/io) src/Channel/internal/ChannelExecutor.ts";
|
|
30
30
|
var PullFromUpstream = class PullFromUpstream {
|
|
31
31
|
upstreamExecutor;
|
|
@@ -51,9 +51,10 @@ var PullFromUpstream = class PullFromUpstream {
|
|
|
51
51
|
const fin1 = this.upstreamExecutor.close(ex);
|
|
52
52
|
const fins = tsplus_module_1.enqueue(fin1)(tsplus_module_1.map((child) => child !== null ? child.childExecutor.close(ex) : null)(this.activeChildExecutors));
|
|
53
53
|
const finalizer = tsplus_module_1.foldLeft(null, (acc, next) => {
|
|
54
|
-
if (acc === null)
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
if (acc === null) {
|
|
55
|
+
if (next === null) return null;
|
|
56
|
+
else return tsplus_module_2.result(next, fileName_1 + ":57:24");
|
|
57
|
+
} else if (next === null) return acc;
|
|
57
58
|
else return tsplus_module_2.zipWith(tsplus_module_2.result(next, fileName_1 + ":63:36"), (a, b) => tsplus_module_3.zipRight(b)(a), fileName_1 + ":63:31")(acc);
|
|
58
59
|
})(fins);
|
|
59
60
|
if (finalizer) return tsplus_module_2.flatMap(tsplus_module_2.fromExitNow, fileName_1 + ":69:31")(finalizer);
|
|
@@ -76,9 +77,10 @@ var PullFromChild = class {
|
|
|
76
77
|
close(ex) {
|
|
77
78
|
const fin1 = this.childExecutor.close(ex);
|
|
78
79
|
const fin2 = this.parentSubexecutor.close(ex);
|
|
79
|
-
if (fin1 === null)
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
if (fin1 === null) {
|
|
81
|
+
if (fin2 === null) return null;
|
|
82
|
+
else return fin2;
|
|
83
|
+
} else if (fin2 === null) return fin1;
|
|
82
84
|
else return tsplus_module_2.flatMap(tsplus_module_2.fromExitNow, fileName_1 + ":110:81")(tsplus_module_2.zipWith(tsplus_module_2.result(fin2, fileName_1 + ":110:40"), (a, b) => tsplus_module_3.zipRight(b)(a), fileName_1 + ":110:35")(tsplus_module_2.result(fin1, fileName_1 + ":110:20")));
|
|
83
85
|
}
|
|
84
86
|
enqueuePullFromChild(_child) {
|
|
@@ -107,9 +109,10 @@ var DrainChildExecutors = class DrainChildExecutors {
|
|
|
107
109
|
const fin1 = this.upstreamExecutor.close(ex);
|
|
108
110
|
const fins = tsplus_module_1.enqueue(fin1)(tsplus_module_1.map((child) => child !== null ? child.childExecutor.close(ex) : null)(this.activeChildExecutors));
|
|
109
111
|
return tsplus_module_1.foldLeft(null, (acc, next) => {
|
|
110
|
-
if (acc === null)
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
if (acc === null) {
|
|
113
|
+
if (next === null) return null;
|
|
114
|
+
else return tsplus_module_2.result(next, fileName_1 + ":144:24");
|
|
115
|
+
} else if (next === null) return acc;
|
|
113
116
|
else return tsplus_module_2.zipWith(tsplus_module_2.result(next, fileName_1 + ":150:36"), (a, b) => tsplus_module_3.zipRight(b)(a), fileName_1 + ":150:31")(acc);
|
|
114
117
|
})(fins);
|
|
115
118
|
}
|
|
@@ -141,16 +144,18 @@ function readUpstream(r, cont, onFailure) {
|
|
|
141
144
|
switch (state._tag) {
|
|
142
145
|
case "Emit": {
|
|
143
146
|
const emitEffect = current.onEmit(current.upstream.getEmit());
|
|
144
|
-
if (readStack.isEmpty)
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
if (readStack.isEmpty) {
|
|
148
|
+
if (emitEffect === null) return tsplus_module_2.defer(() => cont(), fileName_1 + ":207:28");
|
|
149
|
+
else return tsplus_module_2.matchCauseIO(onFailure, () => cont(), fileName_1 + ":209:43")(emitEffect);
|
|
150
|
+
} else if (emitEffect === null) return tsplus_module_2.defer(() => read(), fileName_1 + ":213:28");
|
|
147
151
|
else return tsplus_module_2.matchCauseIO(onFailure, () => read(), fileName_1 + ":215:43")(emitEffect);
|
|
148
152
|
}
|
|
149
153
|
case "Done": {
|
|
150
154
|
const doneEffect = current.onDone(current.upstream.getDone());
|
|
151
|
-
if (readStack.isEmpty)
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
if (readStack.isEmpty) {
|
|
156
|
+
if (doneEffect === null) return tsplus_module_2.defer(() => cont(), fileName_1 + ":223:28");
|
|
157
|
+
else return tsplus_module_2.matchCauseIO(onFailure, () => cont(), fileName_1 + ":225:43")(doneEffect);
|
|
158
|
+
} else if (doneEffect === null) return tsplus_module_2.defer(() => read(), fileName_1 + ":229:28");
|
|
154
159
|
else return tsplus_module_2.matchCauseIO(onFailure, () => read(), fileName_1 + ":231:43")(doneEffect);
|
|
155
160
|
}
|
|
156
161
|
case "Effect":
|
|
@@ -611,7 +616,6 @@ var ChannelExecutor = class ChannelExecutor {
|
|
|
611
616
|
this.currentChannel = ensuring.i0;
|
|
612
617
|
}
|
|
613
618
|
};
|
|
614
|
-
//#endregion
|
|
615
619
|
export { ChannelExecutor, readUpstream };
|
|
616
620
|
|
|
617
621
|
//# sourceMappingURL=ChannelExecutor.mjs.map
|