@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
package/_mjs/IO/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/IO/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/IO/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_2 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_3 from \"@fncts/base/data/FiberId/constructors\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Maybe/api\";\nimport * as tsplus_module_6 from \"@fncts/base/util/predicates\";\nimport * as tsplus_module_7 from \"@fncts/io/RuntimeFlags/RuntimeFlags\";\nimport * as tsplus_module_8 from \"@fncts/io/InterruptStatus/constructors\";\nimport * as tsplus_module_9 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_10 from \"@fncts/base/data/Exit/constructors\";\nimport * as tsplus_module_11 from \"@fncts/base/collection/immutable/Conc/api\";\nimport * as tsplus_module_12 from \"@fncts/base/collection/Iterable/api\";\nimport * as tsplus_module_13 from \"@fncts/base/collection/immutable/Conc/constructors\";\nimport * as tsplus_module_14 from \"@fncts/base/data/Maybe/definition\";\nimport * as tsplus_module_15 from \"@fncts/base/control/Eval/run\";\nimport * as tsplus_module_16 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_17 from \"@fncts/base/data/Maybe/destructors\";\nimport * as tsplus_module_18 from \"@fncts/base/data/exceptions\";\nimport * as tsplus_module_19 from \"@fncts/base/data/Trace/constructors\";\nimport * as tsplus_module_20 from \"@fncts/base/collection/immutable/Conc/api/empty\";\nimport * as tsplus_module_21 from \"@fncts/base/collection/immutable/List/api\";\nimport * as tsplus_module_22 from \"@fncts/base/collection/immutable/ReadonlyArray/constructors\";\nexport const as = as_1;\nexport const asJust = asJust_1;\nexport const asUnit = asUnit_1;\nexport const async = async_1;\nexport const catchAll = catchAll_1;\nexport const catchAllCause = catchAllCause_1;\nexport const catchTagWith = catchTagWith_1;\nexport const collectIO = collectIO_1;\nexport const defer = defer_1;\nexport const either = either_1;\nexport const eventually = eventually_1;\nexport const fail = fail_1;\nexport const failCause = failCause_1;\nexport const failCauseNow = failCauseNow_1;\nexport const failNow = failNow_1;\nexport const fiberIdWith = fiberIdWith_1;\nexport const filter = filter_1;\nexport const filterMapWithIndex = filterMapWithIndex_1;\nexport const filterOrElse = filterOrElse_1;\nexport const flatMap = flatMap_1;\nexport const foldLeft = foldLeft_1;\nexport const foreach = foreach_1;\nexport const foreachDiscard = foreachDiscard_1;\nexport const foreachWithIndexDiscard = foreachWithIndexDiscard_1;\nexport const forever = forever_1;\nexport const fromPromiseCatch = fromPromiseCatch_1;\nexport const getOrFailWith = getOrFailWith_1;\nexport const haltNow = haltNow_1;\nexport const ifIO = ifIO_1;\nexport const iterate = iterate_1;\nexport const log = log_1;\nexport const loop = loop_1;\nexport const map = map_1;\nexport const mapError = mapError_1;\nexport const mapErrorCause = mapErrorCause_1;\nexport const match = match_1;\nexport const matchCauseIO = matchCauseIO_1;\nexport const matchIO = matchIO_1;\nexport const refailCause = refailCause_1;\nexport const orElse = orElse_1;\nexport const orHaltWith = orHaltWith_1;\nexport const refineOrHaltWith = refineOrHaltWith_1;\nexport const rejectIO = rejectIO_1;\nexport const repeatUntilIO = repeatUntilIO_1;\nexport const repeatWhileIO = repeatWhileIO_1;\nexport const retryUntilIO = retryUntilIO_1;\nexport const retryWhileIO = retryWhileIO_1;\nexport const sandbox = sandbox_1;\nexport const succeed = succeed_1;\nexport const succeedNow = succeedNow_1;\nexport const summarized = summarized_1;\nexport const swap = swap_1;\nexport const swapWith = swapWith_1;\nexport const tryCatch = tryCatch_1;\nexport const tryOrElse = tryOrElse_1;\nexport const unrefineWith = unrefineWith_1;\nexport const unsandbox = unsandbox_1;\nexport const stackTrace = stackTrace_1;\nexport const whenIO = whenIO_1;\nexport const whileLoop = whileLoop_1;\nexport const withFiberRuntime = withFiberRuntime_1;\nexport const zipRight = zipRight_1;\nexport const zipWith = zipWith_1;\nexport const gen = gen_1;\nimport { IOError } from \"@fncts/base/data/exceptions\";\nimport { identity, pipe, tuple } from \"@fncts/base/data/function\";\nimport { showWithOptions } from \"@fncts/base/data/Showable\";\nimport { IOPrimitive } from \"@fncts/io/IO/definition\";\n/**\n * Attempts to convert defects into a failure, throwing away all information\n * about the cause of the failure.\n *\n * @tsplus pipeable fncts.io.IO absorbWith\n */\nexport function absorbWith(f, __tsplusTrace) {\n return (ma) => matchIO_1((cause) => failNow_1(tsplus_module_1.squashWith(f)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(sandbox_1(ma, __tsplusTrace));\n}\n/**\n * @tsplus pipeable fncts.io.IO as\n */\nfunction as_1(b, __tsplusTrace) {\n return (self) => {\n return map_1(() => b(), __tsplusTrace)(self);\n };\n}\n/**\n * Maps the success value of this effect to an optional value.\n *\n * @tsplus getter fncts.io.IO asJust\n */\nfunction asJust_1(self, __tsplusTrace) {\n return map_1(tsplus_module_2.just, __tsplusTrace)(self);\n}\n/**\n * Maps the error value of this IO to an optional value.\n *\n * @tsplus getter fncts.io.IO asJustError\n */\nexport function asJustError(self, __tsplusTrace) {\n return mapError_1(tsplus_module_2.just, __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.IO asUnit\n */\nfunction asUnit_1(self, __tsplusTrace) {\n return as_1(() => undefined, __tsplusTrace)(self);\n}\n/**\n * Imports an asynchronous side-effect into a `IO`\n *\n * @tsplus static fncts.io.IOOps async\n */\nfunction async_1(register, blockingOn = tsplus_module_3.none, __tsplusTrace) {\n const io = new IOPrimitive(3 /* IOTag.Async */);\n io.i0 = register;\n io.i1 = () => blockingOn;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * Returns an IO whose failure and success channels have been mapped by\n * the specified pair of functions, `f` and `g`.\n *\n * @tsplus pipeable fncts.io.IO bimap\n */\nexport function bimap(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchIO_1((e) => failNow_1(onFailure(e), __tsplusTrace), (a) => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO that effectfully \"peeks\" at the failure or success of\n * this effect.\n *\n * @tsplus pipeable fncts.io.IO bitap\n */\nexport function bitap(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_4.match((e) => flatMap_1(() => failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(onFailure(e)), () => failCauseNow_1(cause, __tsplusTrace))(tsplus_module_1.failureOrCause(cause)), (a) => zipRight_1(succeedNow_1(a, __tsplusTrace), __tsplusTrace)(onSuccess(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Recovers from all errors\n *\n * @tsplus pipeable fncts.io.IO catchAll\n */\nfunction catchAll_1(onFailure, __tsplusTrace) {\n return (self) => {\n return matchIO_1(onFailure, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n *\n * Recovers from all errors with provided cause.\n *\n * @tsplus pipeable fncts.io.IO catchAllCause\n */\nfunction catchAllCause_1(onFailure, __tsplusTrace) {\n return (self) => matchCauseIO_1(onFailure, succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * Recovers from some or all of the error cases.\n *\n * @tsplus pipeable fncts.io.IO catchJust\n */\nexport function catchJust(onFailure, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_4.match((e) => tsplus_module_5.getOrElse(() => failCauseNow_1(cause, __tsplusTrace))(onFailure(e)), failCauseNow_1)(tsplus_module_1.failureOrCause(cause)), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Recovers from some or all of the error cases with provided cause.\n *\n * @tsplus pipeable fncts.io.IO catchJustCause\n */\nexport function catchJustCause(onFailure, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_5.getOrElse(() => failCauseNow_1(cause, __tsplusTrace))(onFailure(cause)), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Recovers from some or all of the defects with provided partial function.\n *\n * *WARNING*: There is no sensible way to recover from defects. This\n * method should be used only at the boundary between IO and an external\n * system, to transmit information on a defect for diagnostic or explanatory\n * purposes.\n *\n * @tsplus pipeable fncts.io.IO catchJustDefect\n */\nexport function catchJustDefect(onFailure, __tsplusTrace) {\n return (self) => {\n return catchAll_1((a) => a, __tsplusTrace)(unrefineWith_1(onFailure, failNow_1, __tsplusTrace)(self));\n };\n}\n/**\n * Recovers from the specified error\n *\n * @tsplus pipeable IO catchTag\n */\nexport function catchTag(tag, onFailure, __tsplusTrace) {\n return (self) => {\n return catchTagWith_1(\"_tag\", tag, onFailure, __tsplusTrace)(self);\n };\n}\n/**\n * Recovers from the specified error\n *\n * @tsplus pipeable fncts.io.IO catch\n */\nfunction catchTagWith_1(tagKey, tag, onFailure, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => {\n if (tsplus_module_6.isObject(e) && tagKey in e && e[tagKey] === tag) {\n return onFailure(e);\n }\n return failNow_1(e, __tsplusTrace);\n }, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO cause\n */\nexport function cause(self, __tsplusTrace) {\n return matchCauseIO_1(succeedNow_1, () => succeedNow_1(tsplus_module_1.empty(), __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO causeAsError\n */\nexport function causeAsError(__tsplusTrace) {\n return (self) => {\n return matchCauseIO_1(failNow_1, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Checks the interrupt status, and produces the IO returned by the\n * specified callback.\n *\n * @tsplus static fncts.io.IOOps checkInterruptible\n */\nexport function checkInterruptible(f, __tsplusTrace) {\n return withFiberRuntime_1((_, status) => f(tsplus_module_8.fromBoolean(tsplus_module_7.interruption(status.runtimeFlags))), __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.IO collect\n */\nexport function collect(f, pf, __tsplusTrace) {\n return (self) => {\n return collectIO_1(f, (a) => tsplus_module_5.map(succeedNow_1)(pf(a)), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO collectIO\n */\nfunction collectIO_1(onNothing, pf, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => tsplus_module_5.getOrElse(() => fail_1(onNothing, __tsplusTrace))(pf(a)), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps if\n */\nexport function cond(b, onTrue, onFalse, __tsplusTrace) {\n return ifIO_1(onTrue, onFalse, __tsplusTrace)(succeedNow_1(b, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.IOOps condIO\n */\nexport function condIO(b, onTrue, onFalse, __tsplusTrace) {\n return b ? onTrue : flatMap_1(failNow_1, __tsplusTrace)(onFalse);\n}\n/**\n * Returns a lazily constructed effect, whose construction may itself require\n * effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == never)\n * it is conceptually equivalent to `flatten(succeed(io))`. If you wonder if the effect throws exceptions,\n * do not use this method, use `IO.deferTryCatch`.\n *\n * @tsplus static fncts.io.IOOps defer\n */\nfunction defer_1(io, __tsplusTrace) {\n const out = new IOPrimitive(5 /* IOTag.OnSuccess */);\n out.i0 = unit_1;\n out.i1 = io;\n out.trace = __tsplusTrace;\n return out;\n}\n/**\n * Returns a lazily constructed effect, whose construction may itself require effects.\n * When no environment is required (i.e., when R == never) it is conceptually equivalent to `flatten(tryCatch(io))`.\n *\n * @tsplus static fncts.io.IOOps deferTry\n */\nexport function deferTry(io, __tsplusTrace) {\n return defer_1(() => {\n try {\n return io();\n }\n catch (u) {\n throw new IOError(tsplus_module_1.fail(u));\n }\n }, __tsplusTrace);\n}\n/**\n * Returns a lazily constructed effect, whose construction may itself require effects,\n * translating any thrown exceptions into typed failed effects and mapping the error.\n *\n * When no environment is required (i.e., when R == never) it is conceptually equivalent to `flatten(try(io))`.\n *\n * @tsplus static IOOps deferTryCatch\n */\nexport function deferTryCatch(io, onThrow, __tsplusTrace) {\n return defer_1(() => {\n try {\n return io();\n }\n catch (u) {\n throw new IOError(tsplus_module_1.fail(onThrow(u)));\n }\n }, __tsplusTrace);\n}\n/**\n * Folds an `IO` that may fail with `E` or succeed with `A` into one that never fails but succeeds with `Either<E, A>`\n *\n * @tsplus getter fncts.io.IO either\n */\nfunction either_1(self, __tsplusTrace) {\n return match_1(tsplus_module_9.left, tsplus_module_9.right, __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO errorAsCause\n */\nexport function errorAsCause(__tsplusTrace) {\n return (self) => {\n return matchIO_1(failCauseNow_1, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO eventually\n */\nfunction eventually_1(self, __tsplusTrace) {\n return orElse_1(() => eventually_1(self, __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO exitWith\n */\nexport function exitWith(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => f(tsplus_module_10.failCause(cause, __tsplusTrace)), (a) => f(tsplus_module_10.succeed(a, __tsplusTrace)), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO extend\n */\nexport function extend(f, __tsplusTrace) {\n return (self) => {\n return matchIO_1(failNow_1, (_) => succeed_1(() => f(self), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps fail\n */\nfunction fail_1(e, __tsplusTrace) {\n return failCause_1(() => tsplus_module_1.fail(e()), __tsplusTrace);\n}\n/**\n * Returns an effect that models failure with the specified lazily-evaluated `Cause`.\n *\n * @tsplus static fncts.io.IOOps failCause\n */\nfunction failCause_1(cause, __tsplusTrace) {\n return flatMap_1((trace) => refailCause_1(() => tsplus_module_1.traced(cause(), trace), __tsplusTrace), __tsplusTrace)(stackTrace_1(__tsplusTrace));\n}\n/**\n * Creates a `IO` that has failed with the specified `Cause`\n *\n * @tsplus static fncts.io.IOOps failCauseNow\n */\nfunction failCauseNow_1(cause, __tsplusTrace) {\n const io = new IOPrimitive(1 /* IOTag.Fail */);\n io.i0 = () => cause;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus static fncts.io.IOOps failNow\n */\nfunction failNow_1(e, __tsplusTrace) {\n return failCause_1(() => tsplus_module_1.fail(e), __tsplusTrace);\n}\n/**\n * Returns the `FiberId` of the `Fiber` on which this `IO` is running\n *\n * @tsplus static fncts.io.IOOps fiberId\n */\nexport const fiberId = fiberIdWith_1((id) => succeedNow_1(id, fileName_1 + \":435:87\"));\n/**\n * @tsplus static fncts.io.IOOps fiberIdWith\n */\nfunction fiberIdWith_1(f) {\n return withFiberRuntime_1((fiber) => f(fiber.id), fileName_1 + \":441:29\");\n}\n/**\n * Filters the collection using the specified effectual predicate.\n *\n * @tsplus static fncts.io.IOOps filter\n */\nfunction filter_1(as, f, __tsplusTrace) {\n return map_1((b) => b.result(), __tsplusTrace)(tsplus_module_12.foldLeft(succeedNow_1(tsplus_module_11.builder(), __tsplusTrace), (eff, a) => zipWith_1(f(a), (builder, p) => {\n if (p) {\n builder.append(a);\n }\n return builder;\n }, __tsplusTrace)(eff))(as));\n}\n/**\n * @tsplus static fncts.io.IOOps filterMap\n */\nexport function filterMap(as, f, __tsplusTrace) {\n return filterMapWithIndex_1(as, (_, a) => f(a), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps filterMapWithIndex\n */\nfunction filterMapWithIndex_1(as, f, __tsplusTrace) {\n return defer_1(() => {\n const bs = [];\n return as_1(() => tsplus_module_13.from(bs), __tsplusTrace)(foreachWithIndexDiscard_1(as, (i, a) => map_1((b) => {\n if (tsplus_module_14.isJust(b)) {\n bs.push(b.value);\n }\n }, __tsplusTrace)(f(i, a)), __tsplusTrace));\n }, __tsplusTrace);\n}\n/**\n * Filters the collection using the specified effectual predicate, removing\n * all elements that satisfy the predicate.\n *\n * @tsplus static fncts.io.IOOps filterNot\n */\nexport function filterNot(as, f, __tsplusTrace) {\n return filter_1(as, (a) => map_1((b) => !b, __tsplusTrace)(f(a)), __tsplusTrace);\n}\nfunction filterOrElse_1(predicate, or, __tsplusTrace) {\n return (fa) => {\n return flatMap_1((a) => (predicate(a) ? succeedNow_1(a, __tsplusTrace) : defer_1(() => or(a), __tsplusTrace)), __tsplusTrace)(fa);\n };\n}\nexport function filterOrFail(predicate, failWith, __tsplusTrace) {\n return (fa) => {\n return filterOrElse_1(predicate, (a) => failNow_1(failWith(a), __tsplusTrace), __tsplusTrace)(fa);\n };\n}\nexport function filterOrHalt(predicate, haltWith, __tsplusTrace) {\n return (fa) => {\n return filterOrElse_1(predicate, (a) => haltNow_1(haltWith(a), __tsplusTrace), __tsplusTrace)(fa);\n };\n}\n/**\n * Returns an `IO` that yields the value of the first\n * `IO` to succeed.\n *\n * @tsplus static fncts.io.IOOps firstSuccess\n */\nexport function firstSuccess(ios, __tsplusTrace) {\n return ios.reduce((b, a) => orElse_1(() => a, __tsplusTrace)(b));\n}\n/**\n * Returns an IO that models the execution of this effect, followed by\n * the passing of its value to the specified continuation function `f`,\n * followed by the effect that it returns.\n *\n * @tsplus pipeable fncts.io.IO flatMap\n */\nfunction flatMap_1(f, __tsplusTrace) {\n return (self) => {\n const io = new IOPrimitive(5 /* IOTag.OnSuccess */);\n io.i0 = self;\n io.i1 = f;\n io.trace = __tsplusTrace;\n return io;\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO flatMapError\n */\nexport function flatMapError(f, __tsplusTrace) {\n return (self) => {\n return swapWith_1((effect) => flatMap_1(f, __tsplusTrace)(effect), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO flatten\n */\nexport function flatten(self, __tsplusTrace) {\n return flatMap_1(identity, __tsplusTrace)(self);\n}\n/**\n * Folds an `Iterable<A>` using an effectful function f, working sequentially from left to right.\n *\n * @tsplus static fncts.io.IOOps foldLeft\n * @tsplus fluent fncts.Iterable foldLeftIO\n */\nfunction foldLeft_1(as, b, f, __tsplusTrace) {\n return tsplus_module_12.foldLeft(succeedNow_1(b, __tsplusTrace), (acc, el) => flatMap_1((a) => f(a, el), __tsplusTrace)(acc))(as);\n}\n/**\n * Combines an array of `IO`s using a `Monoid`\n *\n * @tsplus static fncts.io.IOOps foldMap\n * @tsplus fluent fncts.Iterable foldMapIO\n */\nexport function foldMap(ios, f, \n/** @tsplus auto */ M) {\n return foldLeft_1(ios, M.nat, (m, a) => map_1((a) => M.combine(f(a))(m), fileName_1 + \":640:49\")(a), fileName_1 + \":640:21\");\n}\n/**\n * Performs a right-associative fold of an `Iterable<A>`\n *\n * @tsplus static fncts.io.IOOps foldRight\n * @tsplus fluent fncts.Iterable foldRightIO\n */\nexport function foldRight(as, b, f, __tsplusTrace) {\n return foldRightLoop(as[Symbol.iterator](), b, f, __tsplusTrace);\n}\nfunction foldRightLoop(iterator, b, f, __tsplusTrace) {\n const next = iterator.next();\n return next.done ? b : f(next.value, foldRightLoop(iterator, b, f, __tsplusTrace));\n}\n/**\n * Applies the function `f` to each element of the `Iterable<A>` and\n * returns the results in a new `Conc<B>`.\n *\n * For a parallel version of this method, see `foreachC`.\n * If you do not need the results, see `foreachUnit` for a more efficient implementation.\n *\n * @tsplus static fncts.io.IOOps foreach\n * @tsplus fluent fncts.Iterable foreachIO\n */\nfunction foreach_1(as, f, __tsplusTrace) {\n return defer_1(() => {\n const acc = [];\n return as_1(() => tsplus_module_13.from(acc), __tsplusTrace)(foreachWithIndexDiscard_1(as, (_, a) => flatMap_1((b) => {\n acc.push(b);\n return unit_1;\n }, __tsplusTrace)(f(a)), __tsplusTrace));\n }, __tsplusTrace);\n}\n/**\n * Applies the function `f` to each element of the `Iterable<A>` and runs\n * produced IOs sequentially.\n *\n * @tsplus static fncts.io.IOOps foreachDiscard\n * @tsplus fluent fncts.Iterable foreachDiscardIO\n */\nfunction foreachDiscard_1(as, f, __tsplusTrace) {\n return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), (_, a) => f(a)), __tsplusTrace);\n}\n/**\n * Applies the function `f` to each element of the `Iterable<A>` and\n * returns the results in a new `Conc<B>`.\n *\n * For a parallel version of this method, see `foreachC`.\n * If you do not need the results, see `foreachUnit` for a more efficient implementation.\n *\n * @tsplus static fncts.io.IOOps foreachWithIndex\n * @tsplus fluent fncts.Iterable foreachWithIndexIO\n */\nexport function foreachWithIndex(as, f, __tsplusTrace) {\n return defer_1(() => {\n const acc = [];\n return as_1(() => tsplus_module_13.from(acc), __tsplusTrace)(foreachWithIndexDiscard_1(as, (i, a) => flatMap_1((b) => {\n acc.push(b);\n return unit_1;\n }, __tsplusTrace)(f(i, a)), __tsplusTrace));\n }, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps foreachWithIndexDiscard\n * @tsplus fluent fncts.Iterable foreachWithIndexDiscardIO\n */\nfunction foreachWithIndexDiscard_1(as, f, __tsplusTrace) {\n return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), f), __tsplusTrace);\n}\nfunction foreachWithIndexDiscardLoop(iterator, f, i = 0, __tsplusTrace) {\n const next = iterator.next();\n return next.done ? unit_1 : flatMap_1(() => foreachWithIndexDiscardLoop(iterator, f, i + 1, __tsplusTrace), __tsplusTrace)(f(i, next.value));\n}\n/**\n * Repeats this effect forever (until the first failure).\n *\n * @tsplus getter fncts.io.IO forever\n */\nfunction forever_1(ma, __tsplusTrace) {\n return flatMap_1(() => forever_1(ma, __tsplusTrace), __tsplusTrace)(zipRight_1(yieldNow_1, __tsplusTrace)(ma));\n}\n/**\n * Lifts an `Either` into an `IO`\n *\n * @tsplus static fncts.io.IOOps fromEither\n */\nexport function fromEither(either, __tsplusTrace) {\n return flatMap_1((ea) => tsplus_module_4.match(failNow_1, succeedNow_1)(ea), __tsplusTrace)(succeed_1(either, __tsplusTrace));\n}\n/**\n * Lifts an `Either` into an `IO`\n *\n * @tsplus static fncts.io.IOOps fromEitherNow\n * @tsplus getter fncts.Either toIO\n */\nexport function fromEitherNow(either, __tsplusTrace) {\n return tsplus_module_4.match(failNow_1, succeedNow_1)(either);\n}\n/**\n * Lifts an `Eval` into an `IO`\n *\n * @tsplus static fncts.io.IOOps fromEval\n * @tsplus getter fncts.Eval toIO\n */\nexport function fromEval(computation, __tsplusTrace) {\n return succeed_1(() => tsplus_module_15.run(computation), __tsplusTrace);\n}\n/**\n * Creates a `IO` from an exit value\n *\n * @tsplus static fncts.io.IOOps fromExit\n */\nexport function fromExit(exit, __tsplusTrace) {\n return defer_1(() => tsplus_module_16.match(failCauseNow_1, succeedNow_1)(exit()), __tsplusTrace);\n}\n/**\n * Creates a `IO` from an exit value\n *\n * @tsplus static fncts.io.IOOps fromExitNow\n * @tsplus getter fncts.Exit toIO\n */\nexport function fromExitNow(exit, __tsplusTrace) {\n return tsplus_module_16.match(failCauseNow_1, succeedNow_1)(exit);\n}\n/**\n * Lifts a `Maybe` into an `IO` but preserves the error as a `Maybe` in the error channel, making it easier to compose\n * in some scenarios.\n *\n * @tsplus static fncts.io.IOOps fromMaybe\n */\nexport function fromMaybe(maybe, __tsplusTrace) {\n return flatMap_1((m) => tsplus_module_17.match(() => failNow_1(tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace), succeedNow_1)(m), __tsplusTrace)(succeed_1(maybe, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.IOOps fromMaybeNow\n * @tsplus getter fncts.Maybe toIO\n */\nexport function fromMaybeNow(maybe, __tsplusTrace) {\n return tsplus_module_17.match(() => failNow_1(new tsplus_module_18.NoSuchElementError(\"IO.fromMaybeNow\"), __tsplusTrace), succeedNow_1)(maybe);\n}\n/**\n * Create an IO that when executed will construct `promise` and wait for its result,\n * errors will produce failure as `unknown`\n *\n * @tsplus static fncts.io.IOOps fromPromise\n */\nexport function fromPromise(promise, __tsplusTrace) {\n return fromPromiseCatch_1(promise, identity, __tsplusTrace);\n}\n/**\n * Create an IO that when executed will construct `promise` and wait for its result,\n * errors will be handled using `onReject`\n *\n * @tsplus static fncts.io.IOOps fromPromiseCatch\n */\nfunction fromPromiseCatch_1(promise, onReject, __tsplusTrace) {\n return async_1((k) => {\n promise()\n .then((a) => k(succeedNow_1(a, __tsplusTrace)))\n .catch((e) => k(failNow_1(onReject(e), __tsplusTrace)));\n });\n}\n/**\n * Like fromPromise but produces a defect in case of errors\n *\n * @tsplus static fncts.io.IOOps fromPromiseHalt\n */\nexport function fromPromiseHalt(promise, __tsplusTrace) {\n return async_1((k) => {\n promise()\n .then((a) => k(succeedNow_1(a, __tsplusTrace)))\n .catch((e) => k(haltNow_1(e, __tsplusTrace)));\n });\n}\n/**\n * Unwraps the optional success of an `IO`, but can fail with a `Nothing` value.\n *\n * @tsplus getter fncts.io.IO get\n */\nexport function get(ma, __tsplusTrace) {\n return matchCauseIO_1((cause) => failCauseNow_1(tsplus_module_1.map(tsplus_module_2.just)(cause), __tsplusTrace), (ma) => tsplus_module_17.match(() => failNow_1(tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace), succeedNow_1)(ma), __tsplusTrace)(ma);\n}\n/**\n * @tsplus static fncts.io.IOOps getFiberRefs\n */\nexport function getFiberRefs(__tsplusTrace) {\n return withFiberRuntime_1((fiberState) => succeed_1(() => fiberState.getFiberRefs(), __tsplusTrace), __tsplusTrace);\n}\n/**\n * Extracts the optional value, or returns the given 'orElse'.\n *\n * @tsplus pipeable fncts.io.IO getOrElse\n */\nexport function getOrElse(orElse, __tsplusTrace) {\n return (ma) => {\n return map_1((ma) => tsplus_module_5.getOrElse(orElse)(ma), __tsplusTrace)(ma);\n };\n}\n/**\n * Extracts the optional value, or executes the effect 'orElse'.\n *\n * @tsplus pipeable fncts.io.IO getOrElseIO\n */\nexport function getOrElseIO(orElse, __tsplusTrace) {\n return (ma) => {\n return flatMap_1((mab) => tsplus_module_5.getOrElse(orElse)(tsplus_module_5.map(succeedNow_1)(mab)), __tsplusTrace)(ma);\n };\n}\n/**\n * Lifts a Maybe into a IO, if the Maybe is `Nothing` it fails with Unit.\n *\n * @tsplus static fncts.io.IOOps getOrFailUnit\n */\nexport function getOrFailUnit(option, __tsplusTrace) {\n return getOrFailWith_1(option, () => undefined, __tsplusTrace);\n}\n/**\n * Lifts a Maybe into an IO. If the option is `Nothing`, fail with `onNothing`.\n *\n * @tsplus static fncts.io.IOOps getOrFailWith\n */\nfunction getOrFailWith_1(maybe, onNothing, __tsplusTrace) {\n return defer_1(() => tsplus_module_17.match(() => fail_1(onNothing, __tsplusTrace), succeedNow_1)(maybe), __tsplusTrace);\n}\n/**\n * Creates an `IO` that halts with the specified lazily-evaluated defect.\n * This method can be used for terminating a fiber because a defect has been\n * detected in the code.\n *\n * @tsplus static fncts.io.IOOps halt\n */\nexport function halt(e, __tsplusTrace) {\n return failCause_1(() => tsplus_module_1.halt(e(), tsplus_module_19.none), __tsplusTrace);\n}\n/**\n * Creates an `IO` that halts with the specified defect\n * This method can be used for terminating a fiber because a defect has been\n * detected in the code.\n *\n * @tsplus static fncts.io.IOOps haltNow\n */\nfunction haltNow_1(e, __tsplusTrace) {\n return failCauseNow_1(tsplus_module_1.halt(e, tsplus_module_19.none), __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.IO ifIO\n */\nfunction ifIO_1(onFalse, onTrue, __tsplusTrace) {\n return (self) => {\n return flatMap_1((b) => (b ? onTrue() : onFalse()), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO ignore\n */\nexport function ignore(self, __tsplusTrace) {\n return match_1(() => undefined, () => undefined, __tsplusTrace)(self);\n}\n/**\n * Folds a `IO` to a boolean describing whether or not it is a failure\n *\n * @tsplus getter fncts.io.IO isFailure\n */\nexport function isFailure(self, __tsplusTrace) {\n return match_1(() => true, () => false, __tsplusTrace)(self);\n}\n/**\n * Folds a `IO` to a boolean describing whether or not it is a success\n *\n * @tsplus getter fncts.io.IO isSuccess\n */\nexport function isSuccess(self, __tsplusTrace) {\n return match_1(() => false, () => true, __tsplusTrace)(self);\n}\n/**\n * Iterates with the specified effectual function. The moral equivalent of:\n *\n * ```typescript\n * let s = initial;\n *\n * while (cont(s)) {\n * s = body(s);\n * }\n *\n * return s;\n * ```\n *\n * @tsplus static fncts.io.IOOps iterate\n */\nfunction iterate_1(initial, cont, body, __tsplusTrace) {\n return cont(initial) ? flatMap_1((a) => iterate_1(a, cont, body, __tsplusTrace), __tsplusTrace)(body(initial)) : succeedNow_1(initial, __tsplusTrace);\n}\n/**\n * @tsplus getter fncts.io.IO just\n */\nexport function just(self) {\n return matchIO_1((e) => fail_1(() => tsplus_module_2.just(e, fileName_1 + \":1029:24\"), fileName_1 + \":1029:19\"), (a) => tsplus_module_17.match(() => fail_1(() => tsplus_module_2.nothing(fileName_1 + \":1030:41\"), fileName_1 + \":1030:33\"), succeedNow_1)(a), fileName_1 + \":1028:22\")(self);\n}\n/**\n * Returns an IO with the value on the left part.\n *\n * @tsplus static fncts.io.IOOps left\n */\nexport function left(a, __tsplusTrace) {\n return flatMap_1((a) => succeedNow_1(tsplus_module_9.left(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(succeed_1(a, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.IOOps log\n */\nfunction log_1(message, __tsplusTrace) {\n return withFiberRuntime_1((fiber) => {\n fiber.log(message, tsplus_module_1.empty(), tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace);\n return unit_1;\n }, __tsplusTrace);\n}\n/**\n * Loops with the specified effectual function, collecting the results into a\n * list. The moral equivalent of:\n *\n * ```typescript\n * let s = initial\n * let as = [] as readonly A[]\n *\n * while (cont(s)) {\n * as = [body(s), ...as]\n * s = inc(s)\n * }\n *\n * A.reverse(as)\n * ```\n *\n * @tsplus static fncts.io.IOOps loop\n */\nfunction loop_1(initial, cont, inc, body, __tsplusTrace) {\n if (cont(initial)) {\n return flatMap_1((a) => map_1((as) => tsplus_module_11.prepend(a)(as), __tsplusTrace)(loop_1(inc(initial), cont, inc, body, __tsplusTrace)), __tsplusTrace)(body(initial));\n }\n else {\n return succeedNow_1(tsplus_module_20.empty(), __tsplusTrace);\n }\n}\n/**\n * Loops with the specified effectual function purely for its effects. The\n * moral equivalent of:\n *\n * ```\n * var s = initial\n *\n * while (cont(s)) {\n * body(s)\n * s = inc(s)\n * }\n * ```\n *\n * @tsplus static fncts.io.IOOps loopUnit\n */\nexport function loopUnit(initial, cont, inc, body, __tsplusTrace) {\n if (cont(initial)) {\n return asUnit_1(flatMap_1(() => loop_1(inc(initial), cont, inc, body, __tsplusTrace), __tsplusTrace)(body(initial)), __tsplusTrace);\n }\n else {\n return unit_1;\n }\n}\n/**\n * Returns an `IO` whose success is mapped by the specified function `f`.\n *\n * @tsplus pipeable fncts.io.IO map\n */\nfunction map_1(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Map covariantly over the first argument.\n *\n * Returns an IO with its error channel mapped using the specified\n * function. This can be used to lift a \"smaller\" error into a \"larger\"\n * error.\n *\n * @tsplus pipeable fncts.io.IO mapError\n */\nfunction mapError_1(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => failCauseNow_1(tsplus_module_1.map(f)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO with its full cause of failure mapped using\n * the specified function. This can be used to transform errors\n * while preserving the original structure of Cause.\n *\n * @tsplus pipeable fncts.io.IO mapErrorCause\n */\nfunction mapErrorCause_1(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => failCauseNow_1(f(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps mapTryCatch\n * @tsplus pipeable fncts.io.IO mapTryCatch\n */\nexport function mapTryCatch(f, onThrow, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => tryCatch_1(() => f(a), onThrow, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Folds over the failure value or the success value to yield an IO that\n * does not fail, but succeeds with the value returned by the left or right\n * function passed to `match_`.\n *\n * @tsplus pipeable fncts.io.IO match\n */\nfunction match_1(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchIO_1((e) => succeedNow_1(onFailure(e), __tsplusTrace), (a) => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * A more powerful version of `match_` that allows recovering from any kind of failure except interruptions.\n *\n * @tsplus pipeable fncts.io.IO matchCause\n */\nexport function matchCause(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => succeedNow_1(onFailure(cause), __tsplusTrace), (a) => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * A more powerful version of `matchIO` that allows recovering from any kind of failure except interruptions.\n *\n * @tsplus pipeable fncts.io.IO matchCauseIO\n */\nfunction matchCauseIO_1(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n const io = new IOPrimitive(4 /* IOTag.OnSuccessAndFailure */);\n io.i0 = self;\n io.i1 = onFailure;\n io.i2 = onSuccess;\n io.trace = __tsplusTrace;\n return io;\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO matchIO\n */\nfunction matchIO_1(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_4.match(onFailure, failCauseNow_1)(tsplus_module_1.failureOrCause(cause)), onSuccess, __tsplusTrace)(self);\n };\n}\n/**\n * A version of `matchIO` that gives you the (optional) trace of the error.\n *\n * @tsplus pipeable fncts.io.IO matchTraceIO\n */\nexport function matchTraceIO(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_4.match(([e, trace]) => onFailure(e, trace), failCauseNow_1)(tsplus_module_1.failureTraceOrCause(cause)), onSuccess, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO maybe\n */\nexport function maybe(self, __tsplusTrace) {\n return match_1(() => tsplus_module_2.nothing(__tsplusTrace), tsplus_module_2.just, __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.IO merge\n */\nexport function merge(self, __tsplusTrace) {\n return matchIO_1(succeedNow_1, succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * Merges an `Iterable<IO>` to a single IO, working sequentially.\n *\n * @tsplus static fncts.io.IOOps mergeAll\n */\nexport function mergeAll(ios, b, f, __tsplusTrace) {\n return tsplus_module_12.foldLeft(succeed_1(() => b, __tsplusTrace), (b, a) => zipWith_1(a, f, __tsplusTrace)(b))(ios);\n}\n/**\n * @tsplus static fncts.io.IOOps refailCause\n */\nfunction refailCause_1(cause, __tsplusTrace) {\n const io = new IOPrimitive(1 /* IOTag.Fail */);\n io.i0 = cause;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus static fncts.io.IOOps refailCauseNow\n */\nexport function refailCauseNow(cause, __tsplusTrace) {\n const io = new IOPrimitive(1 /* IOTag.Fail */);\n io.i0 = () => cause;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus static fncts.io.IOOps show\n */\nexport function show(message, options, __tsplusTrace) {\n return log_1(() => showWithOptions(message, options), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps nothing\n */\nconst nothing_1 = succeedNow_1(tsplus_module_2.nothing(fileName_1 + \":1306:45\"), fileName_1 + \":1306:37\");\nexport const nothing = nothing_1;\n/**\n * Returns an `IO` that submerges an `Either` into the `IO`.\n *\n * @tsplus getter fncts.io.IO absolve\n */\nexport function absolve(self, __tsplusTrace) {\n return flatMap_1((ea) => tsplus_module_4.match(failNow_1, succeedNow_1)(ea), __tsplusTrace)(self);\n}\n/**\n * @tsplus static fncts.io.IOOps attempt\n */\nexport function attempt(effect, __tsplusTrace) {\n return defer_1(() => {\n try {\n return tsplus_module_10.succeed(effect(), __tsplusTrace);\n }\n catch (u) {\n return withFiberRuntime_1((fiberState) => {\n if (!fiberState.isFatal(u)) {\n throw new IOError(tsplus_module_1.fail(u));\n }\n else {\n throw u;\n }\n }, __tsplusTrace);\n }\n }, __tsplusTrace);\n}\n/**\n * Exposes all parallel errors in a single call\n *\n * @tsplus pipeable fncts.io.IO concurrentErrors\n */\nexport function concurrentErrors(__tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => {\n const f = tsplus_module_1.failures(cause);\n if (tsplus_module_21.length(f) === 0) {\n return failCauseNow_1(cause, __tsplusTrace);\n }\n else {\n return failNow_1(f, __tsplusTrace);\n }\n }, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Converts an option on errors into an option on values.\n *\n * @tsplus getter fncts.io.IO optional\n */\nexport function optional(self, __tsplusTrace) {\n return matchIO_1((me) => tsplus_module_17.match(() => succeedNow_1(tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace), failNow_1)(me), (a) => succeedNow_1(tsplus_module_2.just(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * Returns the logical disjunction of the `Boolean` value returned by this\n * effect and the `Boolean` value returned by the specified effect. This\n * operator has \"short circuiting\" behavior so if the value returned by this\n * effect is true the specified effect will not be evaluated.\n *\n * @tsplus pipeable fncts.io.IO or\n * @tsplus pipeable-operator fncts.io.IO ||\n */\nexport function or(or, __tsplusTrace) {\n return (self) => {\n return flatMap_1((b) => (b ? succeedNow_1(true, __tsplusTrace) : or), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElse\n */\nfunction orElse_1(that, __tsplusTrace) {\n return (self) => {\n return tryOrElse_1(that, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElseEither\n */\nexport function orElseEither(that, __tsplusTrace) {\n return (self) => {\n return tryOrElse_1(() => map_1(tsplus_module_9.right, __tsplusTrace)(that()), (a) => succeedNow_1(tsplus_module_9.left(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElseFail\n */\nexport function orElseFail(e, __tsplusTrace) {\n return (self) => {\n return orElse_1(() => fail_1(e, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElseMaybe\n */\nexport function orElseMaybe(that, __tsplusTrace) {\n return (self) => {\n return catchAll_1((me) => tsplus_module_17.match(that, (e) => fail_1(() => tsplus_module_2.just(e, __tsplusTrace), __tsplusTrace))(me), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElseSucceed\n */\nexport function orElseSucceed(a, __tsplusTrace) {\n return (self) => {\n return orElse_1(() => succeed_1(a, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO orHalt\n */\nexport function orHalt(self, __tsplusTrace) {\n return orHaltWith_1(identity, __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.IO orHaltKeep\n */\nexport function orHaltKeep(self, __tsplusTrace) {\n return matchCauseIO_1((cause) => failCauseNow_1(tsplus_module_1.flatMap(tsplus_module_1.halt)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO orHaltWith\n */\nfunction orHaltWith_1(f, __tsplusTrace) {\n return (self) => {\n return matchIO_1((e) => haltNow_1(f(e), __tsplusTrace), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Feeds elements of type `A` to a function `f` that returns an IO.\n * Collects all successes and failures in a separated fashion.\n *\n * @tsplus static fncts.io.IOOps partition\n */\nexport function partition(as, f, __tsplusTrace) {\n return map_1((c) => tsplus_module_11.separate(c), __tsplusTrace)(foreach_1(as, (a) => either_1(f(a), __tsplusTrace), __tsplusTrace));\n}\n/**\n * Keeps some of the errors, and terminates the fiber with the rest\n *\n * @tsplus pipeable fncts.io.IO refineOrHalt\n */\nexport function refineOrHalt(pf, __tsplusTrace) {\n return (self) => {\n return refineOrHaltWith_1(pf, identity, __tsplusTrace)(self);\n };\n}\n/**\n * Keeps some of the errors, and terminates the fiber with the rest, using\n * the specified function to convert the `E` into a `Throwable`.\n *\n * @tsplus pipeable fncts.io.IO refineOrHaltWith\n */\nfunction refineOrHaltWith_1(pf, f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => tsplus_module_17.match(() => haltNow_1(f(e), __tsplusTrace), failNow_1)(pf(e)), __tsplusTrace)(self);\n };\n}\n/**\n * Fail with the returned value if the partial function `pf` matches, otherwise\n * continue with the held value.\n *\n * @tsplus pipeable fncts.io.IO reject\n */\nexport function reject(pf, __tsplusTrace) {\n return (self) => {\n return rejectIO_1((a) => tsplus_module_5.map(failNow_1)(pf(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Continue with the returned computation if the partial function `pf` matches,\n * translating the successful match into a failure, otherwise continue with\n * the held value.\n *\n * @tsplus pipeable fncts.io.IO rejectIO\n */\nfunction rejectIO_1(pf, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => tsplus_module_17.match(() => succeedNow_1(a, __tsplusTrace), (io) => flatMap_1(failNow_1, __tsplusTrace)(io))(pf(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect the specified number of times.\n *\n * @tsplus pipeable fncts.io.IO repeatN\n */\nexport function repeatN_(n, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => {\n let i = n;\n let s = a;\n return as_1(() => s, __tsplusTrace)(whileLoop_1(() => i > 0, () => {\n i -= 1;\n return self;\n }, (a) => {\n s = a;\n }));\n }, __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect until its result satisfies the specified predicate.\n *\n * @tsplus pipeable fncts.io.IO repeatUntil\n */\nexport function repeatUntil(f, __tsplusTrace) {\n return (self) => {\n return repeatUntilIO_1((a) => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect until its error satisfies the specified effectful predicate.\n *\n * @tsplus pipeable fncts.io.IO repeatUntilIO\n */\nfunction repeatUntilIO_1(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => flatMap_1((b) => (b ? succeed_1(() => a, __tsplusTrace) : repeatUntilIO_1(f, __tsplusTrace)(self)), __tsplusTrace)(f(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect while its error satisfies the specified predicate.\n *\n * @tsplus pipeable fncts.io.IO repeatWhile\n */\nexport function repeatWhile(f, __tsplusTrace) {\n return (self) => {\n return repeatWhileIO_1((a) => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect while its error satisfies the specified effectful predicate.\n *\n * @tsplus pipeable fncts.io.IO repeatWhileIO\n */\nfunction repeatWhileIO_1(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => flatMap_1((b) => (b ? repeatWhileIO_1(f, __tsplusTrace)(self) : succeed_1(() => a, __tsplusTrace)), __tsplusTrace)(f(a)), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO replicate\n */\nexport function replicate(n, __tsplusTrace) {\n return (self) => {\n return tsplus_module_22.range(0, n).map(() => self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO require\n */\nexport function require(error, __tsplusTrace) {\n return (self) => {\n return flatMap_1((ma) => tsplus_module_17.match(() => fail_1(error, __tsplusTrace), succeedNow_1)(ma), __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO that semantically runs the IO on a fiber,\n * producing an `Exit` for the completion value of the fiber.\n *\n * @tsplus getter fncts.io.IO result\n */\nexport function result(self, __tsplusTrace) {\n return matchCauseIO_1((cause) => succeedNow_1(tsplus_module_10.failCause(cause, __tsplusTrace), __tsplusTrace), (a) => succeedNow_1(tsplus_module_10.succeed(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * Recover from the unchecked failure of the `IO`. (opposite of `orHalt`)\n *\n * @tsplus getter fncts.io.IO resurrect\n */\nexport function resurrect(self, __tsplusTrace) {\n return unrefineWith_1(tsplus_module_2.just, identity, __tsplusTrace)(self);\n}\n/**\n * Retries this effect until its error satisfies the specified predicate.\n *\n * @tsplus pipeable fncts.io.IO retryUntil\n */\nexport function retryUntil(f, __tsplusTrace) {\n return (self) => {\n return retryUntilIO_1((e) => succeedNow_1(f(e), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Retries this effect until its error satisfies the specified effectful predicate.\n *\n * @tsplus pipeable fncts.io.IO retryUntilIO\n */\nfunction retryUntilIO_1(f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => flatMap_1((b) => (b ? failNow_1(e, __tsplusTrace) : retryUntilIO_1(f, __tsplusTrace)(self)), __tsplusTrace)(f(e)), __tsplusTrace)(self);\n };\n}\n/**\n * Retries this effect while its error satisfies the specified predicate.\n *\n * @tsplus pipeable fncts.io.IO retryWhile\n */\nexport function retryWhile(f, __tsplusTrace) {\n return (self) => {\n return retryWhileIO_1((e) => succeedNow_1(f(e), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Retries this effect while its error satisfies the specified effectful predicate.\n *\n * @tsplus pipeable fncts.io.IO retryWhileIO\n */\nfunction retryWhileIO_1(f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => flatMap_1((b) => (b ? retryWhileIO_1(f, __tsplusTrace)(self) : fail_1(() => e, __tsplusTrace)), __tsplusTrace)(f(e)), __tsplusTrace)(self);\n };\n}\n/**\n * Exposes the full cause of failure of this effect.\n *\n * @tsplus getter fncts.io.IO sandbox\n */\nfunction sandbox_1(self, __tsplusTrace) {\n return matchCauseIO_1(failNow_1, succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO sandboxWith\n */\nexport function sandboxWith(f, __tsplusTrace) {\n return (self) => {\n return unsandbox_1(f(sandbox_1(self, __tsplusTrace)), __tsplusTrace);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps sequenceIterable\n */\nexport function sequenceIterable(as, __tsplusTrace) {\n return foreach_1(as, identity, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps sequenceIterableDiscard\n */\nexport function sequenceIterableDiscard(as, __tsplusTrace) {\n return foreachDiscard_1(as, identity, __tsplusTrace);\n}\n/**\n * Imports a total synchronous effect into a pure `IO` value.\n * The effect must not throw any exceptions. If you wonder if the effect\n * throws exceptions, then do not use this method, use `IO.tryCatch`\n *\n * @tsplus static fncts.io.IOOps succeed\n * @tsplus static fncts.io.IOOps __call\n */\nfunction succeed_1(effect, __tsplusTrace) {\n const io = new IOPrimitive(2 /* IOTag.Sync */);\n io.i0 = effect;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * Creates a `IO` that has succeeded with a pure value\n *\n * @tsplus static fncts.io.IOOps succeedNow\n */\nfunction succeedNow_1(value, __tsplusTrace) {\n const io = new IOPrimitive(0 /* IOTag.SucceedNow */);\n io.i0 = value;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus pipeable fncts.io.IO summarized\n */\nfunction summarized_1(summary, f, __tsplusTrace) {\n return (ma) => {\n return gen_1(function* (_) {\n const start = yield* _(summary, __tsplusTrace);\n const value = yield* _(ma, __tsplusTrace);\n const end = yield* _(summary, __tsplusTrace);\n return tuple(f(start, end), value);\n }, __tsplusTrace);\n };\n}\n/**\n * Swaps the positions of a Bifunctor's arguments\n *\n * @tsplus getter fncts.io.IO swap\n */\nfunction swap_1(self, __tsplusTrace) {\n return matchIO_1(succeedNow_1, failNow_1, __tsplusTrace)(self);\n}\n/**\n * Swaps the error/value parameters, applies the function `f` and flips the parameters back\n *\n * @tsplus pipeable fncts.io.IO swapWith\n */\nfunction swapWith_1(f, __tsplusTrace) {\n return (self) => swap_1(f(swap_1(self, __tsplusTrace)), __tsplusTrace);\n}\n/**\n * Composes computations in sequence, using the return value of one computation as input for the next\n * and keeping only the result of the first\n *\n * Returns an IO that effectfully \"peeks\" at the success of this effect.\n *\n * @tsplus pipeable fncts.io.IO tap\n */\nexport function tap(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => map_1(() => a, __tsplusTrace)(f(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO that effectually \"peeks\" at the cause of the failure of\n * this IO.\n *\n * @tsplus pipeable fncts.io.IO tapCause\n */\nexport function tapCause(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((c) => flatMap_1(() => failCauseNow_1(c, __tsplusTrace), __tsplusTrace)(f(c)), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO that effectfully \"peeks\" at the failure of this effect.\n *\n * @tsplus pipeable fncts.io.IO tapError\n */\nexport function tapError(f, __tsplusTrace) {\n return (self) => matchCauseIO_1((cause) => tsplus_module_4.match((e) => flatMap_1(() => failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(f(e)), (_) => failCauseNow_1(cause, __tsplusTrace))(tsplus_module_1.failureOrCause(cause)), succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * Returns an effect that effectually \"peeks\" at the cause of the failure of\n * this effect.\n *\n * @tsplus pipeable fncts.io.IO tapErrorCause\n */\nexport function tapErrorCause(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => zipRight_1(failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(f(cause)), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * A more powerful variation of `timed` that allows specifying the clock.\n *\n * @tsplus pipeable fncts.io.IO timedWith\n */\nexport function timedWith(msTime, __tsplusTrace) {\n return (self) => summarized_1(msTime, (start, end) => end - start, __tsplusTrace)(self);\n}\n/**\n * Creates a `IO` that has succeeded with a pure value\n *\n * @tsplus static fncts.io.IOOps tryCatch\n */\nfunction tryCatch_1(effect, onThrow, __tsplusTrace) {\n return defer_1(() => {\n try {\n return tsplus_module_10.succeed(effect(), __tsplusTrace);\n }\n catch (u) {\n return withFiberRuntime_1((fiberState) => {\n if (!fiberState.isFatal(u)) {\n throw new IOError(tsplus_module_1.fail(onThrow(u)));\n }\n else {\n throw u;\n }\n }, __tsplusTrace);\n }\n }, __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.IO tryOrElse\n */\nfunction tryOrElse_1(that, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_17.match(that, failCauseNow_1)(tsplus_module_1.keepDefects(cause)), onSuccess, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps unit\n */\nconst unit_1 = succeedNow_1(undefined, fileName_1 + \":1861:45\");\nexport const unit = unit_1;\n/**\n * Converts an option on errors into an option on values.\n *\n * @tsplus getter fncts.io.IO unjust\n */\nexport function unjust(self, __tsplusTrace) {\n return matchIO_1((e) => tsplus_module_17.match(() => succeedNow_1(tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace), failNow_1)(e), (a) => succeedNow_1(tsplus_module_2.just(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * Takes some fiber failures and converts them into errors, using the\n * specified function to convert the `E` into an `E1 | E2`.\n *\n * @tsplus pipeable fncts.io.IO unrefineWith\n */\nfunction unrefineWith_1(pf, f, __tsplusTrace) {\n return (self) => {\n return catchAllCause_1((cause) => tsplus_module_17.match(() => failCauseNow_1(tsplus_module_1.map(f)(cause), __tsplusTrace), failNow_1)(tsplus_module_1.find((c) => (tsplus_module_1.isHalt(c) ? pf(c.value) : tsplus_module_2.nothing(__tsplusTrace)))(cause)), __tsplusTrace)(self);\n };\n}\n/**\n * The inverse operation `sandbox`\n *\n * @tsplus getter fncts.io.IO unsandbox\n */\nfunction unsandbox_1(self, __tsplusTrace) {\n return mapErrorCause_1((cause) => tsplus_module_1.flatten(cause), __tsplusTrace)(self);\n}\n/**\n * Updates the `FiberRef` values for the fiber running this effect using the\n * specified function\n *\n * @tsplus static fncts.io.IOOps updateFiberRefs\n */\nexport function updateFiberRefs(f, __tsplusTrace) {\n return withFiberRuntime_1((state) => {\n state.setFiberRefs(f(state.id, state.getFiberRefs()));\n return unit_1;\n }, __tsplusTrace);\n}\n/**\n * @tsplus fluent fncts.io.IO __call\n */\nexport const via = pipe;\n/**\n * @tsplus static fncts.io.IOOps stackTrace\n */\nfunction stackTrace_1(__tsplusTrace) {\n return withFiberRuntime_1((state) => succeedNow_1(state.generateStackTrace(), __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps updateRuntimeFlags\n */\nexport function updateRuntimeFlags(patch, __tsplusTrace) {\n const io = new IOPrimitive(6 /* IOTag.UpdateRuntimeFlags */);\n io.i0 = patch;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus pipeable fncts.io.IO when\n */\nexport function when(b, __tsplusTrace) {\n return (self) => {\n return whenIO_1(succeed_1(b, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * The moral equivalent of `if (p) exp` when `p` has side-effects\n *\n * @tsplus pipeable fncts.io.IO whenIO\n * @tsplus static fncts.io.IOOps whenIO\n */\nfunction whenIO_1(mb, __tsplusTrace) {\n return (self) => {\n return flatMap_1((b) => (b ? asJust_1(self, __tsplusTrace) : nothing_1), __tsplusTrace)(mb);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps whileLoop\n */\nfunction whileLoop_1(check, body, process, __tsPlusTrace) {\n const io = new IOPrimitive(9 /* IOTag.WhileLoop */);\n io.i0 = check;\n io.i1 = body;\n io.i2 = process;\n return io;\n}\n/**\n * @tsplus static fncts.io.IOOps withFiberRuntime\n */\nfunction withFiberRuntime_1(onState, __tsplusTrace) {\n const io = new IOPrimitive(8 /* IOTag.Stateful */);\n io.i0 = onState;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * Returns an effect that yields to the runtime system, starting on a fresh\n * stack. Manual use of this method can improve fairness, at the cost of\n * overhead.\n *\n * @tsplus static fncts.io.IOOps yieldNow\n */\nconst yieldNow_1 = new IOPrimitive(10 /* IOTag.YieldNow */);\nexport const yieldNow = yieldNow_1;\n/**\n * @tsplus pipeable fncts.io.IO zip\n */\nexport function zip(that, __tsplusTrace) {\n return (self) => {\n return zipWith_1(that, tuple, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO zipLeft\n * @tsplus pipeable-operator fncts.io.IO <\n */\nexport function zipLeft(fb, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => map_1(() => a, __tsplusTrace)(fb), __tsplusTrace)(self);\n };\n}\n/**\n * Combine two effectful actions, keeping only the result of the second\n *\n * @tsplus pipeable fncts.io.IO zipRight\n * @tsplus pipeable-operator fncts.io.IO >\n */\nfunction zipRight_1(fb, __tsplusTrace) {\n return (self) => {\n return flatMap_1(() => fb, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO zipWith\n */\nfunction zipWith_1(that, f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => map_1((b) => f(a, b), __tsplusTrace)(that), __tsplusTrace)(self);\n };\n}\n/**\n * @internal\n */\nexport const __adapter = (_) => {\n return _;\n};\nexport class GenIO {\n effect;\n _trace;\n _R;\n _E;\n _A;\n constructor(effect, _trace) {\n this.effect = effect;\n this._trace = _trace;\n }\n *[Symbol.iterator]() {\n return yield this;\n }\n}\nconst adapter = (_, __tsplusTrace) => {\n return new GenIO(__adapter(_), __tsplusTrace);\n};\n/**\n * @tsplus static fncts.io.IOOps gen\n * @gen\n */\nfunction gen_1(f, __tsplusTrace) {\n return defer_1(() => {\n const iterator = f(adapter);\n const state = iterator.next();\n const run = (state) => {\n if (state.done) {\n return succeed_1(() => state.value, __tsplusTrace);\n }\n const f = (val) => {\n const next = iterator.next(val);\n return run(next);\n };\n return flatMap_1(f, __tsplusTrace)(state.value.effect);\n };\n return run(state);\n }, __tsplusTrace);\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAuBnB,MAAa,KAAK;AAClB,MAAa,SAAS;AACtB,MAAa,SAAS;AACtB,MAAa,QAAQ;AACrB,MAAa,WAAW;AACxB,MAAa,gBAAgB;AAC7B,MAAa,eAAe;AAC5B,MAAa,YAAY;AACzB,MAAa,QAAQ;AACrB,MAAa,SAAS;AACtB,MAAa,aAAa;AAC1B,MAAa,OAAO;AACpB,MA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KAAK;;;;;;;;;AASvF,SAAS,WAAW,IAAI,eAAe;AACnC,SAAQ,SAAS;AACb,SAAO,gBAAgB,IAAI,cAAc,CAAC,KAAK;;;;;;AAMvD,SAAS,UAAU,MAAM,GAAG,eAAe;AACvC,SAAQ,SAAS;AACb,SAAO,WAAW,MAAM,OAAO,MAAM,EAAE,GAAG,EAAE,EAAE,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK;;;;;;AAMhG,MAAa,aAAa,MAAM;AAC5B,QAAO;;AAEX,IAAa,QAAb,MAAmB;CACf;CACA;CACA;CACA;CACA;CACA,YAAY,QAAQ,QAAQ;AACxB,OAAK,SAAS;AACd,OAAK,SAAS;;CAElB,EAAE,OAAO,YAAY;AACjB,SAAO,MAAM;;;AAGrB,MAAM,WAAW,GAAG,kBAAkB;AAClC,QAAO,IAAI,MAAM,UAAU,EAAE,EAAE,cAAc;;;;;;AAMjD,SAAS,MAAM,GAAG,eAAe;AAC7B,QAAO,cAAc;EACjB,MAAM,WAAW,EAAE,QAAQ;EAC3B,MAAM,QAAQ,SAAS,MAAM;EAC7B,MAAM,OAAO,UAAU;AACnB,OAAI,MAAM,KACN,QAAO,gBAAgB,MAAM,OAAO,cAAc;GAEtD,MAAM,KAAK,QAAQ;AAEf,WAAO,IADM,SAAS,KAAK,IACZ,CAAC;;AAEpB,UAAO,UAAU,GAAG,cAAc,CAAC,MAAM,MAAM,OAAO;;AAE1D,SAAO,IAAI,MAAM;IAClB,cAAc"}
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/IO/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/IO/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_2 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_3 from \"@fncts/base/data/FiberId/constructors\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Maybe/api\";\nimport * as tsplus_module_6 from \"@fncts/base/util/predicates\";\nimport * as tsplus_module_7 from \"@fncts/io/RuntimeFlags/RuntimeFlags\";\nimport * as tsplus_module_8 from \"@fncts/io/InterruptStatus/constructors\";\nimport * as tsplus_module_9 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_10 from \"@fncts/base/data/Exit/constructors\";\nimport * as tsplus_module_11 from \"@fncts/base/collection/immutable/Conc/api\";\nimport * as tsplus_module_12 from \"@fncts/base/collection/Iterable/api\";\nimport * as tsplus_module_13 from \"@fncts/base/collection/immutable/Conc/constructors\";\nimport * as tsplus_module_14 from \"@fncts/base/data/Maybe/definition\";\nimport * as tsplus_module_15 from \"@fncts/base/control/Eval/run\";\nimport * as tsplus_module_16 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_17 from \"@fncts/base/data/Maybe/destructors\";\nimport * as tsplus_module_18 from \"@fncts/base/data/exceptions\";\nimport * as tsplus_module_19 from \"@fncts/base/data/Trace/constructors\";\nimport * as tsplus_module_20 from \"@fncts/base/collection/immutable/Conc/api/empty\";\nimport * as tsplus_module_21 from \"@fncts/base/collection/immutable/List/api\";\nimport * as tsplus_module_22 from \"@fncts/base/collection/immutable/ReadonlyArray/constructors\";\nexport const as = as_1;\nexport const asJust = asJust_1;\nexport const asUnit = asUnit_1;\nexport const async = async_1;\nexport const catchAll = catchAll_1;\nexport const catchAllCause = catchAllCause_1;\nexport const catchTagWith = catchTagWith_1;\nexport const collectIO = collectIO_1;\nexport const defer = defer_1;\nexport const either = either_1;\nexport const eventually = eventually_1;\nexport const fail = fail_1;\nexport const failCause = failCause_1;\nexport const failCauseNow = failCauseNow_1;\nexport const failNow = failNow_1;\nexport const fiberIdWith = fiberIdWith_1;\nexport const filter = filter_1;\nexport const filterMapWithIndex = filterMapWithIndex_1;\nexport const filterOrElse = filterOrElse_1;\nexport const flatMap = flatMap_1;\nexport const foldLeft = foldLeft_1;\nexport const foreach = foreach_1;\nexport const foreachDiscard = foreachDiscard_1;\nexport const foreachWithIndexDiscard = foreachWithIndexDiscard_1;\nexport const forever = forever_1;\nexport const fromPromiseCatch = fromPromiseCatch_1;\nexport const getOrFailWith = getOrFailWith_1;\nexport const haltNow = haltNow_1;\nexport const ifIO = ifIO_1;\nexport const iterate = iterate_1;\nexport const log = log_1;\nexport const loop = loop_1;\nexport const map = map_1;\nexport const mapError = mapError_1;\nexport const mapErrorCause = mapErrorCause_1;\nexport const match = match_1;\nexport const matchCauseIO = matchCauseIO_1;\nexport const matchIO = matchIO_1;\nexport const refailCause = refailCause_1;\nexport const orElse = orElse_1;\nexport const orHaltWith = orHaltWith_1;\nexport const refineOrHaltWith = refineOrHaltWith_1;\nexport const rejectIO = rejectIO_1;\nexport const repeatUntilIO = repeatUntilIO_1;\nexport const repeatWhileIO = repeatWhileIO_1;\nexport const retryUntilIO = retryUntilIO_1;\nexport const retryWhileIO = retryWhileIO_1;\nexport const sandbox = sandbox_1;\nexport const succeed = succeed_1;\nexport const succeedNow = succeedNow_1;\nexport const summarized = summarized_1;\nexport const swap = swap_1;\nexport const swapWith = swapWith_1;\nexport const tryCatch = tryCatch_1;\nexport const tryOrElse = tryOrElse_1;\nexport const unrefineWith = unrefineWith_1;\nexport const unsandbox = unsandbox_1;\nexport const stackTrace = stackTrace_1;\nexport const whenIO = whenIO_1;\nexport const whileLoop = whileLoop_1;\nexport const withFiberRuntime = withFiberRuntime_1;\nexport const zipRight = zipRight_1;\nexport const zipWith = zipWith_1;\nexport const gen = gen_1;\nimport { IOError } from \"@fncts/base/data/exceptions\";\nimport { identity, pipe, tuple } from \"@fncts/base/data/function\";\nimport { showWithOptions } from \"@fncts/base/data/Showable\";\nimport { IOPrimitive } from \"@fncts/io/IO/definition\";\n/**\n * Attempts to convert defects into a failure, throwing away all information\n * about the cause of the failure.\n *\n * @tsplus pipeable fncts.io.IO absorbWith\n */\nexport function absorbWith(f, __tsplusTrace) {\n return (ma) => matchIO_1((cause) => failNow_1(tsplus_module_1.squashWith(f)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(sandbox_1(ma, __tsplusTrace));\n}\n/**\n * @tsplus pipeable fncts.io.IO as\n */\nfunction as_1(b, __tsplusTrace) {\n return (self) => {\n return map_1(() => b(), __tsplusTrace)(self);\n };\n}\n/**\n * Maps the success value of this effect to an optional value.\n *\n * @tsplus getter fncts.io.IO asJust\n */\nfunction asJust_1(self, __tsplusTrace) {\n return map_1(tsplus_module_2.just, __tsplusTrace)(self);\n}\n/**\n * Maps the error value of this IO to an optional value.\n *\n * @tsplus getter fncts.io.IO asJustError\n */\nexport function asJustError(self, __tsplusTrace) {\n return mapError_1(tsplus_module_2.just, __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.IO asUnit\n */\nfunction asUnit_1(self, __tsplusTrace) {\n return as_1(() => undefined, __tsplusTrace)(self);\n}\n/**\n * Imports an asynchronous side-effect into a `IO`\n *\n * @tsplus static fncts.io.IOOps async\n */\nfunction async_1(register, blockingOn = tsplus_module_3.none, __tsplusTrace) {\n const io = new IOPrimitive(3 /* IOTag.Async */);\n io.i0 = register;\n io.i1 = () => blockingOn;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * Returns an IO whose failure and success channels have been mapped by\n * the specified pair of functions, `f` and `g`.\n *\n * @tsplus pipeable fncts.io.IO bimap\n */\nexport function bimap(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchIO_1((e) => failNow_1(onFailure(e), __tsplusTrace), (a) => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO that effectfully \"peeks\" at the failure or success of\n * this effect.\n *\n * @tsplus pipeable fncts.io.IO bitap\n */\nexport function bitap(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_4.match((e) => flatMap_1(() => failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(onFailure(e)), () => failCauseNow_1(cause, __tsplusTrace))(tsplus_module_1.failureOrCause(cause)), (a) => zipRight_1(succeedNow_1(a, __tsplusTrace), __tsplusTrace)(onSuccess(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Recovers from all errors\n *\n * @tsplus pipeable fncts.io.IO catchAll\n */\nfunction catchAll_1(onFailure, __tsplusTrace) {\n return (self) => {\n return matchIO_1(onFailure, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n *\n * Recovers from all errors with provided cause.\n *\n * @tsplus pipeable fncts.io.IO catchAllCause\n */\nfunction catchAllCause_1(onFailure, __tsplusTrace) {\n return (self) => matchCauseIO_1(onFailure, succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * Recovers from some or all of the error cases.\n *\n * @tsplus pipeable fncts.io.IO catchJust\n */\nexport function catchJust(onFailure, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_4.match((e) => tsplus_module_5.getOrElse(() => failCauseNow_1(cause, __tsplusTrace))(onFailure(e)), failCauseNow_1)(tsplus_module_1.failureOrCause(cause)), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Recovers from some or all of the error cases with provided cause.\n *\n * @tsplus pipeable fncts.io.IO catchJustCause\n */\nexport function catchJustCause(onFailure, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_5.getOrElse(() => failCauseNow_1(cause, __tsplusTrace))(onFailure(cause)), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Recovers from some or all of the defects with provided partial function.\n *\n * *WARNING*: There is no sensible way to recover from defects. This\n * method should be used only at the boundary between IO and an external\n * system, to transmit information on a defect for diagnostic or explanatory\n * purposes.\n *\n * @tsplus pipeable fncts.io.IO catchJustDefect\n */\nexport function catchJustDefect(onFailure, __tsplusTrace) {\n return (self) => {\n return catchAll_1((a) => a, __tsplusTrace)(unrefineWith_1(onFailure, failNow_1, __tsplusTrace)(self));\n };\n}\n/**\n * Recovers from the specified error\n *\n * @tsplus pipeable IO catchTag\n */\nexport function catchTag(tag, onFailure, __tsplusTrace) {\n return (self) => {\n return catchTagWith_1(\"_tag\", tag, onFailure, __tsplusTrace)(self);\n };\n}\n/**\n * Recovers from the specified error\n *\n * @tsplus pipeable fncts.io.IO catch\n */\nfunction catchTagWith_1(tagKey, tag, onFailure, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => {\n if (tsplus_module_6.isObject(e) && tagKey in e && e[tagKey] === tag) {\n return onFailure(e);\n }\n return failNow_1(e, __tsplusTrace);\n }, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO cause\n */\nexport function cause(self, __tsplusTrace) {\n return matchCauseIO_1(succeedNow_1, () => succeedNow_1(tsplus_module_1.empty(), __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO causeAsError\n */\nexport function causeAsError(__tsplusTrace) {\n return (self) => {\n return matchCauseIO_1(failNow_1, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Checks the interrupt status, and produces the IO returned by the\n * specified callback.\n *\n * @tsplus static fncts.io.IOOps checkInterruptible\n */\nexport function checkInterruptible(f, __tsplusTrace) {\n return withFiberRuntime_1((_, status) => f(tsplus_module_8.fromBoolean(tsplus_module_7.interruption(status.runtimeFlags))), __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.IO collect\n */\nexport function collect(f, pf, __tsplusTrace) {\n return (self) => {\n return collectIO_1(f, (a) => tsplus_module_5.map(succeedNow_1)(pf(a)), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO collectIO\n */\nfunction collectIO_1(onNothing, pf, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => tsplus_module_5.getOrElse(() => fail_1(onNothing, __tsplusTrace))(pf(a)), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps if\n */\nexport function cond(b, onTrue, onFalse, __tsplusTrace) {\n return ifIO_1(onTrue, onFalse, __tsplusTrace)(succeedNow_1(b, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.IOOps condIO\n */\nexport function condIO(b, onTrue, onFalse, __tsplusTrace) {\n return b ? onTrue : flatMap_1(failNow_1, __tsplusTrace)(onFalse);\n}\n/**\n * Returns a lazily constructed effect, whose construction may itself require\n * effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == never)\n * it is conceptually equivalent to `flatten(succeed(io))`. If you wonder if the effect throws exceptions,\n * do not use this method, use `IO.deferTryCatch`.\n *\n * @tsplus static fncts.io.IOOps defer\n */\nfunction defer_1(io, __tsplusTrace) {\n const out = new IOPrimitive(5 /* IOTag.OnSuccess */);\n out.i0 = unit_1;\n out.i1 = io;\n out.trace = __tsplusTrace;\n return out;\n}\n/**\n * Returns a lazily constructed effect, whose construction may itself require effects.\n * When no environment is required (i.e., when R == never) it is conceptually equivalent to `flatten(tryCatch(io))`.\n *\n * @tsplus static fncts.io.IOOps deferTry\n */\nexport function deferTry(io, __tsplusTrace) {\n return defer_1(() => {\n try {\n return io();\n }\n catch (u) {\n throw new IOError(tsplus_module_1.fail(u));\n }\n }, __tsplusTrace);\n}\n/**\n * Returns a lazily constructed effect, whose construction may itself require effects,\n * translating any thrown exceptions into typed failed effects and mapping the error.\n *\n * When no environment is required (i.e., when R == never) it is conceptually equivalent to `flatten(try(io))`.\n *\n * @tsplus static IOOps deferTryCatch\n */\nexport function deferTryCatch(io, onThrow, __tsplusTrace) {\n return defer_1(() => {\n try {\n return io();\n }\n catch (u) {\n throw new IOError(tsplus_module_1.fail(onThrow(u)));\n }\n }, __tsplusTrace);\n}\n/**\n * Folds an `IO` that may fail with `E` or succeed with `A` into one that never fails but succeeds with `Either<E, A>`\n *\n * @tsplus getter fncts.io.IO either\n */\nfunction either_1(self, __tsplusTrace) {\n return match_1(tsplus_module_9.left, tsplus_module_9.right, __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO errorAsCause\n */\nexport function errorAsCause(__tsplusTrace) {\n return (self) => {\n return matchIO_1(failCauseNow_1, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO eventually\n */\nfunction eventually_1(self, __tsplusTrace) {\n return orElse_1(() => eventually_1(self, __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO exitWith\n */\nexport function exitWith(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => f(tsplus_module_10.failCause(cause, __tsplusTrace)), (a) => f(tsplus_module_10.succeed(a, __tsplusTrace)), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO extend\n */\nexport function extend(f, __tsplusTrace) {\n return (self) => {\n return matchIO_1(failNow_1, (_) => succeed_1(() => f(self), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps fail\n */\nfunction fail_1(e, __tsplusTrace) {\n return failCause_1(() => tsplus_module_1.fail(e()), __tsplusTrace);\n}\n/**\n * Returns an effect that models failure with the specified lazily-evaluated `Cause`.\n *\n * @tsplus static fncts.io.IOOps failCause\n */\nfunction failCause_1(cause, __tsplusTrace) {\n return flatMap_1((trace) => refailCause_1(() => tsplus_module_1.traced(cause(), trace), __tsplusTrace), __tsplusTrace)(stackTrace_1(__tsplusTrace));\n}\n/**\n * Creates a `IO` that has failed with the specified `Cause`\n *\n * @tsplus static fncts.io.IOOps failCauseNow\n */\nfunction failCauseNow_1(cause, __tsplusTrace) {\n const io = new IOPrimitive(1 /* IOTag.Fail */);\n io.i0 = () => cause;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus static fncts.io.IOOps failNow\n */\nfunction failNow_1(e, __tsplusTrace) {\n return failCause_1(() => tsplus_module_1.fail(e), __tsplusTrace);\n}\n/**\n * Returns the `FiberId` of the `Fiber` on which this `IO` is running\n *\n * @tsplus static fncts.io.IOOps fiberId\n */\nexport const fiberId = fiberIdWith_1((id) => succeedNow_1(id, fileName_1 + \":435:87\"));\n/**\n * @tsplus static fncts.io.IOOps fiberIdWith\n */\nfunction fiberIdWith_1(f) {\n return withFiberRuntime_1((fiber) => f(fiber.id), fileName_1 + \":441:29\");\n}\n/**\n * Filters the collection using the specified effectual predicate.\n *\n * @tsplus static fncts.io.IOOps filter\n */\nfunction filter_1(as, f, __tsplusTrace) {\n return map_1((b) => b.result(), __tsplusTrace)(tsplus_module_12.foldLeft(succeedNow_1(tsplus_module_11.builder(), __tsplusTrace), (eff, a) => zipWith_1(f(a), (builder, p) => {\n if (p) {\n builder.append(a);\n }\n return builder;\n }, __tsplusTrace)(eff))(as));\n}\n/**\n * @tsplus static fncts.io.IOOps filterMap\n */\nexport function filterMap(as, f, __tsplusTrace) {\n return filterMapWithIndex_1(as, (_, a) => f(a), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps filterMapWithIndex\n */\nfunction filterMapWithIndex_1(as, f, __tsplusTrace) {\n return defer_1(() => {\n const bs = [];\n return as_1(() => tsplus_module_13.from(bs), __tsplusTrace)(foreachWithIndexDiscard_1(as, (i, a) => map_1((b) => {\n if (tsplus_module_14.isJust(b)) {\n bs.push(b.value);\n }\n }, __tsplusTrace)(f(i, a)), __tsplusTrace));\n }, __tsplusTrace);\n}\n/**\n * Filters the collection using the specified effectual predicate, removing\n * all elements that satisfy the predicate.\n *\n * @tsplus static fncts.io.IOOps filterNot\n */\nexport function filterNot(as, f, __tsplusTrace) {\n return filter_1(as, (a) => map_1((b) => !b, __tsplusTrace)(f(a)), __tsplusTrace);\n}\nfunction filterOrElse_1(predicate, or, __tsplusTrace) {\n return (fa) => {\n return flatMap_1((a) => (predicate(a) ? succeedNow_1(a, __tsplusTrace) : defer_1(() => or(a), __tsplusTrace)), __tsplusTrace)(fa);\n };\n}\nexport function filterOrFail(predicate, failWith, __tsplusTrace) {\n return (fa) => {\n return filterOrElse_1(predicate, (a) => failNow_1(failWith(a), __tsplusTrace), __tsplusTrace)(fa);\n };\n}\nexport function filterOrHalt(predicate, haltWith, __tsplusTrace) {\n return (fa) => {\n return filterOrElse_1(predicate, (a) => haltNow_1(haltWith(a), __tsplusTrace), __tsplusTrace)(fa);\n };\n}\n/**\n * Returns an `IO` that yields the value of the first\n * `IO` to succeed.\n *\n * @tsplus static fncts.io.IOOps firstSuccess\n */\nexport function firstSuccess(ios, __tsplusTrace) {\n return ios.reduce((b, a) => orElse_1(() => a, __tsplusTrace)(b));\n}\n/**\n * Returns an IO that models the execution of this effect, followed by\n * the passing of its value to the specified continuation function `f`,\n * followed by the effect that it returns.\n *\n * @tsplus pipeable fncts.io.IO flatMap\n */\nfunction flatMap_1(f, __tsplusTrace) {\n return (self) => {\n const io = new IOPrimitive(5 /* IOTag.OnSuccess */);\n io.i0 = self;\n io.i1 = f;\n io.trace = __tsplusTrace;\n return io;\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO flatMapError\n */\nexport function flatMapError(f, __tsplusTrace) {\n return (self) => {\n return swapWith_1((effect) => flatMap_1(f, __tsplusTrace)(effect), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO flatten\n */\nexport function flatten(self, __tsplusTrace) {\n return flatMap_1(identity, __tsplusTrace)(self);\n}\n/**\n * Folds an `Iterable<A>` using an effectful function f, working sequentially from left to right.\n *\n * @tsplus static fncts.io.IOOps foldLeft\n * @tsplus fluent fncts.Iterable foldLeftIO\n */\nfunction foldLeft_1(as, b, f, __tsplusTrace) {\n return tsplus_module_12.foldLeft(succeedNow_1(b, __tsplusTrace), (acc, el) => flatMap_1((a) => f(a, el), __tsplusTrace)(acc))(as);\n}\n/**\n * Combines an array of `IO`s using a `Monoid`\n *\n * @tsplus static fncts.io.IOOps foldMap\n * @tsplus fluent fncts.Iterable foldMapIO\n */\nexport function foldMap(ios, f, \n/** @tsplus auto */ M) {\n return foldLeft_1(ios, M.nat, (m, a) => map_1((a) => M.combine(f(a))(m), fileName_1 + \":640:49\")(a), fileName_1 + \":640:21\");\n}\n/**\n * Performs a right-associative fold of an `Iterable<A>`\n *\n * @tsplus static fncts.io.IOOps foldRight\n * @tsplus fluent fncts.Iterable foldRightIO\n */\nexport function foldRight(as, b, f, __tsplusTrace) {\n return foldRightLoop(as[Symbol.iterator](), b, f, __tsplusTrace);\n}\nfunction foldRightLoop(iterator, b, f, __tsplusTrace) {\n const next = iterator.next();\n return next.done ? b : f(next.value, foldRightLoop(iterator, b, f, __tsplusTrace));\n}\n/**\n * Applies the function `f` to each element of the `Iterable<A>` and\n * returns the results in a new `Conc<B>`.\n *\n * For a parallel version of this method, see `foreachC`.\n * If you do not need the results, see `foreachUnit` for a more efficient implementation.\n *\n * @tsplus static fncts.io.IOOps foreach\n * @tsplus fluent fncts.Iterable foreachIO\n */\nfunction foreach_1(as, f, __tsplusTrace) {\n return defer_1(() => {\n const acc = [];\n return as_1(() => tsplus_module_13.from(acc), __tsplusTrace)(foreachWithIndexDiscard_1(as, (_, a) => flatMap_1((b) => {\n acc.push(b);\n return unit_1;\n }, __tsplusTrace)(f(a)), __tsplusTrace));\n }, __tsplusTrace);\n}\n/**\n * Applies the function `f` to each element of the `Iterable<A>` and runs\n * produced IOs sequentially.\n *\n * @tsplus static fncts.io.IOOps foreachDiscard\n * @tsplus fluent fncts.Iterable foreachDiscardIO\n */\nfunction foreachDiscard_1(as, f, __tsplusTrace) {\n return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), (_, a) => f(a)), __tsplusTrace);\n}\n/**\n * Applies the function `f` to each element of the `Iterable<A>` and\n * returns the results in a new `Conc<B>`.\n *\n * For a parallel version of this method, see `foreachC`.\n * If you do not need the results, see `foreachUnit` for a more efficient implementation.\n *\n * @tsplus static fncts.io.IOOps foreachWithIndex\n * @tsplus fluent fncts.Iterable foreachWithIndexIO\n */\nexport function foreachWithIndex(as, f, __tsplusTrace) {\n return defer_1(() => {\n const acc = [];\n return as_1(() => tsplus_module_13.from(acc), __tsplusTrace)(foreachWithIndexDiscard_1(as, (i, a) => flatMap_1((b) => {\n acc.push(b);\n return unit_1;\n }, __tsplusTrace)(f(i, a)), __tsplusTrace));\n }, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps foreachWithIndexDiscard\n * @tsplus fluent fncts.Iterable foreachWithIndexDiscardIO\n */\nfunction foreachWithIndexDiscard_1(as, f, __tsplusTrace) {\n return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), f), __tsplusTrace);\n}\nfunction foreachWithIndexDiscardLoop(iterator, f, i = 0, __tsplusTrace) {\n const next = iterator.next();\n return next.done ? unit_1 : flatMap_1(() => foreachWithIndexDiscardLoop(iterator, f, i + 1, __tsplusTrace), __tsplusTrace)(f(i, next.value));\n}\n/**\n * Repeats this effect forever (until the first failure).\n *\n * @tsplus getter fncts.io.IO forever\n */\nfunction forever_1(ma, __tsplusTrace) {\n return flatMap_1(() => forever_1(ma, __tsplusTrace), __tsplusTrace)(zipRight_1(yieldNow_1, __tsplusTrace)(ma));\n}\n/**\n * Lifts an `Either` into an `IO`\n *\n * @tsplus static fncts.io.IOOps fromEither\n */\nexport function fromEither(either, __tsplusTrace) {\n return flatMap_1((ea) => tsplus_module_4.match(failNow_1, succeedNow_1)(ea), __tsplusTrace)(succeed_1(either, __tsplusTrace));\n}\n/**\n * Lifts an `Either` into an `IO`\n *\n * @tsplus static fncts.io.IOOps fromEitherNow\n * @tsplus getter fncts.Either toIO\n */\nexport function fromEitherNow(either, __tsplusTrace) {\n return tsplus_module_4.match(failNow_1, succeedNow_1)(either);\n}\n/**\n * Lifts an `Eval` into an `IO`\n *\n * @tsplus static fncts.io.IOOps fromEval\n * @tsplus getter fncts.Eval toIO\n */\nexport function fromEval(computation, __tsplusTrace) {\n return succeed_1(() => tsplus_module_15.run(computation), __tsplusTrace);\n}\n/**\n * Creates a `IO` from an exit value\n *\n * @tsplus static fncts.io.IOOps fromExit\n */\nexport function fromExit(exit, __tsplusTrace) {\n return defer_1(() => tsplus_module_16.match(failCauseNow_1, succeedNow_1)(exit()), __tsplusTrace);\n}\n/**\n * Creates a `IO` from an exit value\n *\n * @tsplus static fncts.io.IOOps fromExitNow\n * @tsplus getter fncts.Exit toIO\n */\nexport function fromExitNow(exit, __tsplusTrace) {\n return tsplus_module_16.match(failCauseNow_1, succeedNow_1)(exit);\n}\n/**\n * Lifts a `Maybe` into an `IO` but preserves the error as a `Maybe` in the error channel, making it easier to compose\n * in some scenarios.\n *\n * @tsplus static fncts.io.IOOps fromMaybe\n */\nexport function fromMaybe(maybe, __tsplusTrace) {\n return flatMap_1((m) => tsplus_module_17.match(() => failNow_1(tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace), succeedNow_1)(m), __tsplusTrace)(succeed_1(maybe, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.IOOps fromMaybeNow\n * @tsplus getter fncts.Maybe toIO\n */\nexport function fromMaybeNow(maybe, __tsplusTrace) {\n return tsplus_module_17.match(() => failNow_1(new tsplus_module_18.NoSuchElementError(\"IO.fromMaybeNow\"), __tsplusTrace), succeedNow_1)(maybe);\n}\n/**\n * Create an IO that when executed will construct `promise` and wait for its result,\n * errors will produce failure as `unknown`\n *\n * @tsplus static fncts.io.IOOps fromPromise\n */\nexport function fromPromise(promise, __tsplusTrace) {\n return fromPromiseCatch_1(promise, identity, __tsplusTrace);\n}\n/**\n * Create an IO that when executed will construct `promise` and wait for its result,\n * errors will be handled using `onReject`\n *\n * @tsplus static fncts.io.IOOps fromPromiseCatch\n */\nfunction fromPromiseCatch_1(promise, onReject, __tsplusTrace) {\n return async_1((k) => {\n promise()\n .then((a) => k(succeedNow_1(a, __tsplusTrace)))\n .catch((e) => k(failNow_1(onReject(e), __tsplusTrace)));\n });\n}\n/**\n * Like fromPromise but produces a defect in case of errors\n *\n * @tsplus static fncts.io.IOOps fromPromiseHalt\n */\nexport function fromPromiseHalt(promise, __tsplusTrace) {\n return async_1((k) => {\n promise()\n .then((a) => k(succeedNow_1(a, __tsplusTrace)))\n .catch((e) => k(haltNow_1(e, __tsplusTrace)));\n });\n}\n/**\n * Unwraps the optional success of an `IO`, but can fail with a `Nothing` value.\n *\n * @tsplus getter fncts.io.IO get\n */\nexport function get(ma, __tsplusTrace) {\n return matchCauseIO_1((cause) => failCauseNow_1(tsplus_module_1.map(tsplus_module_2.just)(cause), __tsplusTrace), (ma) => tsplus_module_17.match(() => failNow_1(tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace), succeedNow_1)(ma), __tsplusTrace)(ma);\n}\n/**\n * @tsplus static fncts.io.IOOps getFiberRefs\n */\nexport function getFiberRefs(__tsplusTrace) {\n return withFiberRuntime_1((fiberState) => succeed_1(() => fiberState.getFiberRefs(), __tsplusTrace), __tsplusTrace);\n}\n/**\n * Extracts the optional value, or returns the given 'orElse'.\n *\n * @tsplus pipeable fncts.io.IO getOrElse\n */\nexport function getOrElse(orElse, __tsplusTrace) {\n return (ma) => {\n return map_1((ma) => tsplus_module_5.getOrElse(orElse)(ma), __tsplusTrace)(ma);\n };\n}\n/**\n * Extracts the optional value, or executes the effect 'orElse'.\n *\n * @tsplus pipeable fncts.io.IO getOrElseIO\n */\nexport function getOrElseIO(orElse, __tsplusTrace) {\n return (ma) => {\n return flatMap_1((mab) => tsplus_module_5.getOrElse(orElse)(tsplus_module_5.map(succeedNow_1)(mab)), __tsplusTrace)(ma);\n };\n}\n/**\n * Lifts a Maybe into a IO, if the Maybe is `Nothing` it fails with Unit.\n *\n * @tsplus static fncts.io.IOOps getOrFailUnit\n */\nexport function getOrFailUnit(option, __tsplusTrace) {\n return getOrFailWith_1(option, () => undefined, __tsplusTrace);\n}\n/**\n * Lifts a Maybe into an IO. If the option is `Nothing`, fail with `onNothing`.\n *\n * @tsplus static fncts.io.IOOps getOrFailWith\n */\nfunction getOrFailWith_1(maybe, onNothing, __tsplusTrace) {\n return defer_1(() => tsplus_module_17.match(() => fail_1(onNothing, __tsplusTrace), succeedNow_1)(maybe), __tsplusTrace);\n}\n/**\n * Creates an `IO` that halts with the specified lazily-evaluated defect.\n * This method can be used for terminating a fiber because a defect has been\n * detected in the code.\n *\n * @tsplus static fncts.io.IOOps halt\n */\nexport function halt(e, __tsplusTrace) {\n return failCause_1(() => tsplus_module_1.halt(e(), tsplus_module_19.none), __tsplusTrace);\n}\n/**\n * Creates an `IO` that halts with the specified defect\n * This method can be used for terminating a fiber because a defect has been\n * detected in the code.\n *\n * @tsplus static fncts.io.IOOps haltNow\n */\nfunction haltNow_1(e, __tsplusTrace) {\n return failCauseNow_1(tsplus_module_1.halt(e, tsplus_module_19.none), __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.IO ifIO\n */\nfunction ifIO_1(onFalse, onTrue, __tsplusTrace) {\n return (self) => {\n return flatMap_1((b) => (b ? onTrue() : onFalse()), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO ignore\n */\nexport function ignore(self, __tsplusTrace) {\n return match_1(() => undefined, () => undefined, __tsplusTrace)(self);\n}\n/**\n * Folds a `IO` to a boolean describing whether or not it is a failure\n *\n * @tsplus getter fncts.io.IO isFailure\n */\nexport function isFailure(self, __tsplusTrace) {\n return match_1(() => true, () => false, __tsplusTrace)(self);\n}\n/**\n * Folds a `IO` to a boolean describing whether or not it is a success\n *\n * @tsplus getter fncts.io.IO isSuccess\n */\nexport function isSuccess(self, __tsplusTrace) {\n return match_1(() => false, () => true, __tsplusTrace)(self);\n}\n/**\n * Iterates with the specified effectual function. The moral equivalent of:\n *\n * ```typescript\n * let s = initial;\n *\n * while (cont(s)) {\n * s = body(s);\n * }\n *\n * return s;\n * ```\n *\n * @tsplus static fncts.io.IOOps iterate\n */\nfunction iterate_1(initial, cont, body, __tsplusTrace) {\n return cont(initial) ? flatMap_1((a) => iterate_1(a, cont, body, __tsplusTrace), __tsplusTrace)(body(initial)) : succeedNow_1(initial, __tsplusTrace);\n}\n/**\n * @tsplus getter fncts.io.IO just\n */\nexport function just(self) {\n return matchIO_1((e) => fail_1(() => tsplus_module_2.just(e, fileName_1 + \":1029:24\"), fileName_1 + \":1029:19\"), (a) => tsplus_module_17.match(() => fail_1(() => tsplus_module_2.nothing(fileName_1 + \":1030:41\"), fileName_1 + \":1030:33\"), succeedNow_1)(a), fileName_1 + \":1028:22\")(self);\n}\n/**\n * Returns an IO with the value on the left part.\n *\n * @tsplus static fncts.io.IOOps left\n */\nexport function left(a, __tsplusTrace) {\n return flatMap_1((a) => succeedNow_1(tsplus_module_9.left(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(succeed_1(a, __tsplusTrace));\n}\n/**\n * @tsplus static fncts.io.IOOps log\n */\nfunction log_1(message, __tsplusTrace) {\n return withFiberRuntime_1((fiber) => {\n fiber.log(message, tsplus_module_1.empty(), tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace);\n return unit_1;\n }, __tsplusTrace);\n}\n/**\n * Loops with the specified effectual function, collecting the results into a\n * list. The moral equivalent of:\n *\n * ```typescript\n * let s = initial\n * let as = [] as readonly A[]\n *\n * while (cont(s)) {\n * as = [body(s), ...as]\n * s = inc(s)\n * }\n *\n * A.reverse(as)\n * ```\n *\n * @tsplus static fncts.io.IOOps loop\n */\nfunction loop_1(initial, cont, inc, body, __tsplusTrace) {\n if (cont(initial)) {\n return flatMap_1((a) => map_1((as) => tsplus_module_11.prepend(a)(as), __tsplusTrace)(loop_1(inc(initial), cont, inc, body, __tsplusTrace)), __tsplusTrace)(body(initial));\n }\n else {\n return succeedNow_1(tsplus_module_20.empty(), __tsplusTrace);\n }\n}\n/**\n * Loops with the specified effectual function purely for its effects. The\n * moral equivalent of:\n *\n * ```\n * var s = initial\n *\n * while (cont(s)) {\n * body(s)\n * s = inc(s)\n * }\n * ```\n *\n * @tsplus static fncts.io.IOOps loopUnit\n */\nexport function loopUnit(initial, cont, inc, body, __tsplusTrace) {\n if (cont(initial)) {\n return asUnit_1(flatMap_1(() => loop_1(inc(initial), cont, inc, body, __tsplusTrace), __tsplusTrace)(body(initial)), __tsplusTrace);\n }\n else {\n return unit_1;\n }\n}\n/**\n * Returns an `IO` whose success is mapped by the specified function `f`.\n *\n * @tsplus pipeable fncts.io.IO map\n */\nfunction map_1(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Map covariantly over the first argument.\n *\n * Returns an IO with its error channel mapped using the specified\n * function. This can be used to lift a \"smaller\" error into a \"larger\"\n * error.\n *\n * @tsplus pipeable fncts.io.IO mapError\n */\nfunction mapError_1(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => failCauseNow_1(tsplus_module_1.map(f)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO with its full cause of failure mapped using\n * the specified function. This can be used to transform errors\n * while preserving the original structure of Cause.\n *\n * @tsplus pipeable fncts.io.IO mapErrorCause\n */\nfunction mapErrorCause_1(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => failCauseNow_1(f(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps mapTryCatch\n * @tsplus pipeable fncts.io.IO mapTryCatch\n */\nexport function mapTryCatch(f, onThrow, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => tryCatch_1(() => f(a), onThrow, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Folds over the failure value or the success value to yield an IO that\n * does not fail, but succeeds with the value returned by the left or right\n * function passed to `match_`.\n *\n * @tsplus pipeable fncts.io.IO match\n */\nfunction match_1(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchIO_1((e) => succeedNow_1(onFailure(e), __tsplusTrace), (a) => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * A more powerful version of `match_` that allows recovering from any kind of failure except interruptions.\n *\n * @tsplus pipeable fncts.io.IO matchCause\n */\nexport function matchCause(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => succeedNow_1(onFailure(cause), __tsplusTrace), (a) => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * A more powerful version of `matchIO` that allows recovering from any kind of failure except interruptions.\n *\n * @tsplus pipeable fncts.io.IO matchCauseIO\n */\nfunction matchCauseIO_1(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n const io = new IOPrimitive(4 /* IOTag.OnSuccessAndFailure */);\n io.i0 = self;\n io.i1 = onFailure;\n io.i2 = onSuccess;\n io.trace = __tsplusTrace;\n return io;\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO matchIO\n */\nfunction matchIO_1(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_4.match(onFailure, failCauseNow_1)(tsplus_module_1.failureOrCause(cause)), onSuccess, __tsplusTrace)(self);\n };\n}\n/**\n * A version of `matchIO` that gives you the (optional) trace of the error.\n *\n * @tsplus pipeable fncts.io.IO matchTraceIO\n */\nexport function matchTraceIO(onFailure, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_4.match(([e, trace]) => onFailure(e, trace), failCauseNow_1)(tsplus_module_1.failureTraceOrCause(cause)), onSuccess, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO maybe\n */\nexport function maybe(self, __tsplusTrace) {\n return match_1(() => tsplus_module_2.nothing(__tsplusTrace), tsplus_module_2.just, __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.IO merge\n */\nexport function merge(self, __tsplusTrace) {\n return matchIO_1(succeedNow_1, succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * Merges an `Iterable<IO>` to a single IO, working sequentially.\n *\n * @tsplus static fncts.io.IOOps mergeAll\n */\nexport function mergeAll(ios, b, f, __tsplusTrace) {\n return tsplus_module_12.foldLeft(succeed_1(() => b, __tsplusTrace), (b, a) => zipWith_1(a, f, __tsplusTrace)(b))(ios);\n}\n/**\n * @tsplus static fncts.io.IOOps refailCause\n */\nfunction refailCause_1(cause, __tsplusTrace) {\n const io = new IOPrimitive(1 /* IOTag.Fail */);\n io.i0 = cause;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus static fncts.io.IOOps refailCauseNow\n */\nexport function refailCauseNow(cause, __tsplusTrace) {\n const io = new IOPrimitive(1 /* IOTag.Fail */);\n io.i0 = () => cause;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus static fncts.io.IOOps show\n */\nexport function show(message, options, __tsplusTrace) {\n return log_1(() => showWithOptions(message, options), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps nothing\n */\nconst nothing_1 = succeedNow_1(tsplus_module_2.nothing(fileName_1 + \":1306:45\"), fileName_1 + \":1306:37\");\nexport const nothing = nothing_1;\n/**\n * Returns an `IO` that submerges an `Either` into the `IO`.\n *\n * @tsplus getter fncts.io.IO absolve\n */\nexport function absolve(self, __tsplusTrace) {\n return flatMap_1((ea) => tsplus_module_4.match(failNow_1, succeedNow_1)(ea), __tsplusTrace)(self);\n}\n/**\n * @tsplus static fncts.io.IOOps attempt\n */\nexport function attempt(effect, __tsplusTrace) {\n return defer_1(() => {\n try {\n return tsplus_module_10.succeed(effect(), __tsplusTrace);\n }\n catch (u) {\n return withFiberRuntime_1((fiberState) => {\n if (!fiberState.isFatal(u)) {\n throw new IOError(tsplus_module_1.fail(u));\n }\n else {\n throw u;\n }\n }, __tsplusTrace);\n }\n }, __tsplusTrace);\n}\n/**\n * Exposes all parallel errors in a single call\n *\n * @tsplus pipeable fncts.io.IO concurrentErrors\n */\nexport function concurrentErrors(__tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => {\n const f = tsplus_module_1.failures(cause);\n if (tsplus_module_21.length(f) === 0) {\n return failCauseNow_1(cause, __tsplusTrace);\n }\n else {\n return failNow_1(f, __tsplusTrace);\n }\n }, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Converts an option on errors into an option on values.\n *\n * @tsplus getter fncts.io.IO optional\n */\nexport function optional(self, __tsplusTrace) {\n return matchIO_1((me) => tsplus_module_17.match(() => succeedNow_1(tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace), failNow_1)(me), (a) => succeedNow_1(tsplus_module_2.just(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * Returns the logical disjunction of the `Boolean` value returned by this\n * effect and the `Boolean` value returned by the specified effect. This\n * operator has \"short circuiting\" behavior so if the value returned by this\n * effect is true the specified effect will not be evaluated.\n *\n * @tsplus pipeable fncts.io.IO or\n * @tsplus pipeable-operator fncts.io.IO ||\n */\nexport function or(or, __tsplusTrace) {\n return (self) => {\n return flatMap_1((b) => (b ? succeedNow_1(true, __tsplusTrace) : or), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElse\n */\nfunction orElse_1(that, __tsplusTrace) {\n return (self) => {\n return tryOrElse_1(that, succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElseEither\n */\nexport function orElseEither(that, __tsplusTrace) {\n return (self) => {\n return tryOrElse_1(() => map_1(tsplus_module_9.right, __tsplusTrace)(that()), (a) => succeedNow_1(tsplus_module_9.left(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElseFail\n */\nexport function orElseFail(e, __tsplusTrace) {\n return (self) => {\n return orElse_1(() => fail_1(e, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElseMaybe\n */\nexport function orElseMaybe(that, __tsplusTrace) {\n return (self) => {\n return catchAll_1((me) => tsplus_module_17.match(that, (e) => fail_1(() => tsplus_module_2.just(e, __tsplusTrace), __tsplusTrace))(me), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO orElseSucceed\n */\nexport function orElseSucceed(a, __tsplusTrace) {\n return (self) => {\n return orElse_1(() => succeed_1(a, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.IO orHalt\n */\nexport function orHalt(self, __tsplusTrace) {\n return orHaltWith_1(identity, __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.IO orHaltKeep\n */\nexport function orHaltKeep(self, __tsplusTrace) {\n return matchCauseIO_1((cause) => failCauseNow_1(tsplus_module_1.flatMap(tsplus_module_1.halt)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO orHaltWith\n */\nfunction orHaltWith_1(f, __tsplusTrace) {\n return (self) => {\n return matchIO_1((e) => haltNow_1(f(e), __tsplusTrace), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Feeds elements of type `A` to a function `f` that returns an IO.\n * Collects all successes and failures in a separated fashion.\n *\n * @tsplus static fncts.io.IOOps partition\n */\nexport function partition(as, f, __tsplusTrace) {\n return map_1((c) => tsplus_module_11.separate(c), __tsplusTrace)(foreach_1(as, (a) => either_1(f(a), __tsplusTrace), __tsplusTrace));\n}\n/**\n * Keeps some of the errors, and terminates the fiber with the rest\n *\n * @tsplus pipeable fncts.io.IO refineOrHalt\n */\nexport function refineOrHalt(pf, __tsplusTrace) {\n return (self) => {\n return refineOrHaltWith_1(pf, identity, __tsplusTrace)(self);\n };\n}\n/**\n * Keeps some of the errors, and terminates the fiber with the rest, using\n * the specified function to convert the `E` into a `Throwable`.\n *\n * @tsplus pipeable fncts.io.IO refineOrHaltWith\n */\nfunction refineOrHaltWith_1(pf, f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => tsplus_module_17.match(() => haltNow_1(f(e), __tsplusTrace), failNow_1)(pf(e)), __tsplusTrace)(self);\n };\n}\n/**\n * Fail with the returned value if the partial function `pf` matches, otherwise\n * continue with the held value.\n *\n * @tsplus pipeable fncts.io.IO reject\n */\nexport function reject(pf, __tsplusTrace) {\n return (self) => {\n return rejectIO_1((a) => tsplus_module_5.map(failNow_1)(pf(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Continue with the returned computation if the partial function `pf` matches,\n * translating the successful match into a failure, otherwise continue with\n * the held value.\n *\n * @tsplus pipeable fncts.io.IO rejectIO\n */\nfunction rejectIO_1(pf, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => tsplus_module_17.match(() => succeedNow_1(a, __tsplusTrace), (io) => flatMap_1(failNow_1, __tsplusTrace)(io))(pf(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect the specified number of times.\n *\n * @tsplus pipeable fncts.io.IO repeatN\n */\nexport function repeatN_(n, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => {\n let i = n;\n let s = a;\n return as_1(() => s, __tsplusTrace)(whileLoop_1(() => i > 0, () => {\n i -= 1;\n return self;\n }, (a) => {\n s = a;\n }));\n }, __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect until its result satisfies the specified predicate.\n *\n * @tsplus pipeable fncts.io.IO repeatUntil\n */\nexport function repeatUntil(f, __tsplusTrace) {\n return (self) => {\n return repeatUntilIO_1((a) => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect until its error satisfies the specified effectful predicate.\n *\n * @tsplus pipeable fncts.io.IO repeatUntilIO\n */\nfunction repeatUntilIO_1(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => flatMap_1((b) => (b ? succeed_1(() => a, __tsplusTrace) : repeatUntilIO_1(f, __tsplusTrace)(self)), __tsplusTrace)(f(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect while its error satisfies the specified predicate.\n *\n * @tsplus pipeable fncts.io.IO repeatWhile\n */\nexport function repeatWhile(f, __tsplusTrace) {\n return (self) => {\n return repeatWhileIO_1((a) => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Repeats this effect while its error satisfies the specified effectful predicate.\n *\n * @tsplus pipeable fncts.io.IO repeatWhileIO\n */\nfunction repeatWhileIO_1(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => flatMap_1((b) => (b ? repeatWhileIO_1(f, __tsplusTrace)(self) : succeed_1(() => a, __tsplusTrace)), __tsplusTrace)(f(a)), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO replicate\n */\nexport function replicate(n, __tsplusTrace) {\n return (self) => {\n return tsplus_module_22.range(0, n).map(() => self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO require\n */\nexport function require(error, __tsplusTrace) {\n return (self) => {\n return flatMap_1((ma) => tsplus_module_17.match(() => fail_1(error, __tsplusTrace), succeedNow_1)(ma), __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO that semantically runs the IO on a fiber,\n * producing an `Exit` for the completion value of the fiber.\n *\n * @tsplus getter fncts.io.IO result\n */\nexport function result(self, __tsplusTrace) {\n return matchCauseIO_1((cause) => succeedNow_1(tsplus_module_10.failCause(cause, __tsplusTrace), __tsplusTrace), (a) => succeedNow_1(tsplus_module_10.succeed(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * Recover from the unchecked failure of the `IO`. (opposite of `orHalt`)\n *\n * @tsplus getter fncts.io.IO resurrect\n */\nexport function resurrect(self, __tsplusTrace) {\n return unrefineWith_1(tsplus_module_2.just, identity, __tsplusTrace)(self);\n}\n/**\n * Retries this effect until its error satisfies the specified predicate.\n *\n * @tsplus pipeable fncts.io.IO retryUntil\n */\nexport function retryUntil(f, __tsplusTrace) {\n return (self) => {\n return retryUntilIO_1((e) => succeedNow_1(f(e), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Retries this effect until its error satisfies the specified effectful predicate.\n *\n * @tsplus pipeable fncts.io.IO retryUntilIO\n */\nfunction retryUntilIO_1(f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => flatMap_1((b) => (b ? failNow_1(e, __tsplusTrace) : retryUntilIO_1(f, __tsplusTrace)(self)), __tsplusTrace)(f(e)), __tsplusTrace)(self);\n };\n}\n/**\n * Retries this effect while its error satisfies the specified predicate.\n *\n * @tsplus pipeable fncts.io.IO retryWhile\n */\nexport function retryWhile(f, __tsplusTrace) {\n return (self) => {\n return retryWhileIO_1((e) => succeedNow_1(f(e), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * Retries this effect while its error satisfies the specified effectful predicate.\n *\n * @tsplus pipeable fncts.io.IO retryWhileIO\n */\nfunction retryWhileIO_1(f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => flatMap_1((b) => (b ? retryWhileIO_1(f, __tsplusTrace)(self) : fail_1(() => e, __tsplusTrace)), __tsplusTrace)(f(e)), __tsplusTrace)(self);\n };\n}\n/**\n * Exposes the full cause of failure of this effect.\n *\n * @tsplus getter fncts.io.IO sandbox\n */\nfunction sandbox_1(self, __tsplusTrace) {\n return matchCauseIO_1(failNow_1, succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * @tsplus pipeable fncts.io.IO sandboxWith\n */\nexport function sandboxWith(f, __tsplusTrace) {\n return (self) => {\n return unsandbox_1(f(sandbox_1(self, __tsplusTrace)), __tsplusTrace);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps sequenceIterable\n */\nexport function sequenceIterable(as, __tsplusTrace) {\n return foreach_1(as, identity, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps sequenceIterableDiscard\n */\nexport function sequenceIterableDiscard(as, __tsplusTrace) {\n return foreachDiscard_1(as, identity, __tsplusTrace);\n}\n/**\n * Imports a total synchronous effect into a pure `IO` value.\n * The effect must not throw any exceptions. If you wonder if the effect\n * throws exceptions, then do not use this method, use `IO.tryCatch`\n *\n * @tsplus static fncts.io.IOOps succeed\n * @tsplus static fncts.io.IOOps __call\n */\nfunction succeed_1(effect, __tsplusTrace) {\n const io = new IOPrimitive(2 /* IOTag.Sync */);\n io.i0 = effect;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * Creates a `IO` that has succeeded with a pure value\n *\n * @tsplus static fncts.io.IOOps succeedNow\n */\nfunction succeedNow_1(value, __tsplusTrace) {\n const io = new IOPrimitive(0 /* IOTag.SucceedNow */);\n io.i0 = value;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus pipeable fncts.io.IO summarized\n */\nfunction summarized_1(summary, f, __tsplusTrace) {\n return (ma) => {\n return gen_1(function* (_) {\n const start = yield* _(summary, __tsplusTrace);\n const value = yield* _(ma, __tsplusTrace);\n const end = yield* _(summary, __tsplusTrace);\n return tuple(f(start, end), value);\n }, __tsplusTrace);\n };\n}\n/**\n * Swaps the positions of a Bifunctor's arguments\n *\n * @tsplus getter fncts.io.IO swap\n */\nfunction swap_1(self, __tsplusTrace) {\n return matchIO_1(succeedNow_1, failNow_1, __tsplusTrace)(self);\n}\n/**\n * Swaps the error/value parameters, applies the function `f` and flips the parameters back\n *\n * @tsplus pipeable fncts.io.IO swapWith\n */\nfunction swapWith_1(f, __tsplusTrace) {\n return (self) => swap_1(f(swap_1(self, __tsplusTrace)), __tsplusTrace);\n}\n/**\n * Composes computations in sequence, using the return value of one computation as input for the next\n * and keeping only the result of the first\n *\n * Returns an IO that effectfully \"peeks\" at the success of this effect.\n *\n * @tsplus pipeable fncts.io.IO tap\n */\nexport function tap(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => map_1(() => a, __tsplusTrace)(f(a)), __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO that effectually \"peeks\" at the cause of the failure of\n * this IO.\n *\n * @tsplus pipeable fncts.io.IO tapCause\n */\nexport function tapCause(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((c) => flatMap_1(() => failCauseNow_1(c, __tsplusTrace), __tsplusTrace)(f(c)), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * Returns an IO that effectfully \"peeks\" at the failure of this effect.\n *\n * @tsplus pipeable fncts.io.IO tapError\n */\nexport function tapError(f, __tsplusTrace) {\n return (self) => matchCauseIO_1((cause) => tsplus_module_4.match((e) => flatMap_1(() => failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(f(e)), (_) => failCauseNow_1(cause, __tsplusTrace))(tsplus_module_1.failureOrCause(cause)), succeedNow_1, __tsplusTrace)(self);\n}\n/**\n * Returns an effect that effectually \"peeks\" at the cause of the failure of\n * this effect.\n *\n * @tsplus pipeable fncts.io.IO tapErrorCause\n */\nexport function tapErrorCause(f, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => zipRight_1(failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(f(cause)), succeedNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * A more powerful variation of `timed` that allows specifying the clock.\n *\n * @tsplus pipeable fncts.io.IO timedWith\n */\nexport function timedWith(msTime, __tsplusTrace) {\n return (self) => summarized_1(msTime, (start, end) => end - start, __tsplusTrace)(self);\n}\n/**\n * Creates a `IO` that has succeeded with a pure value\n *\n * @tsplus static fncts.io.IOOps tryCatch\n */\nfunction tryCatch_1(effect, onThrow, __tsplusTrace) {\n return defer_1(() => {\n try {\n return tsplus_module_10.succeed(effect(), __tsplusTrace);\n }\n catch (u) {\n return withFiberRuntime_1((fiberState) => {\n if (!fiberState.isFatal(u)) {\n throw new IOError(tsplus_module_1.fail(onThrow(u)));\n }\n else {\n throw u;\n }\n }, __tsplusTrace);\n }\n }, __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.IO tryOrElse\n */\nfunction tryOrElse_1(that, onSuccess, __tsplusTrace) {\n return (self) => {\n return matchCauseIO_1((cause) => tsplus_module_17.match(that, failCauseNow_1)(tsplus_module_1.keepDefects(cause)), onSuccess, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps unit\n */\nconst unit_1 = succeedNow_1(undefined, fileName_1 + \":1861:45\");\nexport const unit = unit_1;\n/**\n * Converts an option on errors into an option on values.\n *\n * @tsplus getter fncts.io.IO unjust\n */\nexport function unjust(self, __tsplusTrace) {\n return matchIO_1((e) => tsplus_module_17.match(() => succeedNow_1(tsplus_module_2.nothing(__tsplusTrace), __tsplusTrace), failNow_1)(e), (a) => succeedNow_1(tsplus_module_2.just(a, __tsplusTrace), __tsplusTrace), __tsplusTrace)(self);\n}\n/**\n * Takes some fiber failures and converts them into errors, using the\n * specified function to convert the `E` into an `E1 | E2`.\n *\n * @tsplus pipeable fncts.io.IO unrefineWith\n */\nfunction unrefineWith_1(pf, f, __tsplusTrace) {\n return (self) => {\n return catchAllCause_1((cause) => tsplus_module_17.match(() => failCauseNow_1(tsplus_module_1.map(f)(cause), __tsplusTrace), failNow_1)(tsplus_module_1.find((c) => (tsplus_module_1.isHalt(c) ? pf(c.value) : tsplus_module_2.nothing(__tsplusTrace)))(cause)), __tsplusTrace)(self);\n };\n}\n/**\n * The inverse operation `sandbox`\n *\n * @tsplus getter fncts.io.IO unsandbox\n */\nfunction unsandbox_1(self, __tsplusTrace) {\n return mapErrorCause_1((cause) => tsplus_module_1.flatten(cause), __tsplusTrace)(self);\n}\n/**\n * Updates the `FiberRef` values for the fiber running this effect using the\n * specified function\n *\n * @tsplus static fncts.io.IOOps updateFiberRefs\n */\nexport function updateFiberRefs(f, __tsplusTrace) {\n return withFiberRuntime_1((state) => {\n state.setFiberRefs(f(state.id, state.getFiberRefs()));\n return unit_1;\n }, __tsplusTrace);\n}\n/**\n * @tsplus fluent fncts.io.IO __call\n */\nexport const via = pipe;\n/**\n * @tsplus static fncts.io.IOOps stackTrace\n */\nfunction stackTrace_1(__tsplusTrace) {\n return withFiberRuntime_1((state) => succeedNow_1(state.generateStackTrace(), __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.IOOps updateRuntimeFlags\n */\nexport function updateRuntimeFlags(patch, __tsplusTrace) {\n const io = new IOPrimitive(6 /* IOTag.UpdateRuntimeFlags */);\n io.i0 = patch;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * @tsplus pipeable fncts.io.IO when\n */\nexport function when(b, __tsplusTrace) {\n return (self) => {\n return whenIO_1(succeed_1(b, __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * The moral equivalent of `if (p) exp` when `p` has side-effects\n *\n * @tsplus pipeable fncts.io.IO whenIO\n * @tsplus static fncts.io.IOOps whenIO\n */\nfunction whenIO_1(mb, __tsplusTrace) {\n return (self) => {\n return flatMap_1((b) => (b ? asJust_1(self, __tsplusTrace) : nothing_1), __tsplusTrace)(mb);\n };\n}\n/**\n * @tsplus static fncts.io.IOOps whileLoop\n */\nfunction whileLoop_1(check, body, process, __tsPlusTrace) {\n const io = new IOPrimitive(9 /* IOTag.WhileLoop */);\n io.i0 = check;\n io.i1 = body;\n io.i2 = process;\n return io;\n}\n/**\n * @tsplus static fncts.io.IOOps withFiberRuntime\n */\nfunction withFiberRuntime_1(onState, __tsplusTrace) {\n const io = new IOPrimitive(8 /* IOTag.Stateful */);\n io.i0 = onState;\n io.trace = __tsplusTrace;\n return io;\n}\n/**\n * Returns an effect that yields to the runtime system, starting on a fresh\n * stack. Manual use of this method can improve fairness, at the cost of\n * overhead.\n *\n * @tsplus static fncts.io.IOOps yieldNow\n */\nconst yieldNow_1 = new IOPrimitive(10 /* IOTag.YieldNow */);\nexport const yieldNow = yieldNow_1;\n/**\n * @tsplus pipeable fncts.io.IO zip\n */\nexport function zip(that, __tsplusTrace) {\n return (self) => {\n return zipWith_1(that, tuple, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO zipLeft\n * @tsplus pipeable-operator fncts.io.IO <\n */\nexport function zipLeft(fb, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => map_1(() => a, __tsplusTrace)(fb), __tsplusTrace)(self);\n };\n}\n/**\n * Combine two effectful actions, keeping only the result of the second\n *\n * @tsplus pipeable fncts.io.IO zipRight\n * @tsplus pipeable-operator fncts.io.IO >\n */\nfunction zipRight_1(fb, __tsplusTrace) {\n return (self) => {\n return flatMap_1(() => fb, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.IO zipWith\n */\nfunction zipWith_1(that, f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => map_1((b) => f(a, b), __tsplusTrace)(that), __tsplusTrace)(self);\n };\n}\n/**\n * @internal\n */\nexport const __adapter = (_) => {\n return _;\n};\nexport class GenIO {\n effect;\n _trace;\n _R;\n _E;\n _A;\n constructor(effect, _trace) {\n this.effect = effect;\n this._trace = _trace;\n }\n *[Symbol.iterator]() {\n return yield this;\n }\n}\nconst adapter = (_, __tsplusTrace) => {\n return new GenIO(__adapter(_), __tsplusTrace);\n};\n/**\n * @tsplus static fncts.io.IOOps gen\n * @gen\n */\nfunction gen_1(f, __tsplusTrace) {\n return defer_1(() => {\n const iterator = f(adapter);\n const state = iterator.next();\n const run = (state) => {\n if (state.done) {\n return succeed_1(() => state.value, __tsplusTrace);\n }\n const f = (val) => {\n const next = iterator.next(val);\n return run(next);\n };\n return flatMap_1(f, __tsplusTrace)(state.value.effect);\n };\n return run(state);\n }, __tsplusTrace);\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAuBnB,MAAa,KAAK;AAClB,MAAa,SAAS;AACtB,MAAa,SAAS;AACtB,MAAa,QAAQ;AACrB,MAAa,WAAW;AACxB,MAAa,gBAAgB;AAC7B,MAAa,eAAe;AAC5B,MAAa,YAAY;AACzB,MAAa,QAAQ;AACrB,MAAa,SAAS;AACtB,MAAa,aAAa;AAC1B,MAAa,OAAO;AACpB,MAAa,YAAY;AACzB,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,cAAc;AAC3B,MAAa,SAAS;AACtB,MAAa,qBAAqB;AAClC,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,WAAW;AACxB,MAAa,UAAU;AACvB,MAAa,iBAAiB;AAC9B,MAAa,0BAA0B;AACvC,MAAa,UAAU;AACvB,MAAa,mBAAmB;AAChC,MAAa,gBAAgB;AAC7B,MAAa,UAAU;AACvB,MAAa,OAAO;AACpB,MAAa,UAAU;AACvB,MAAa,MAAM;AACnB,MAAa,OAAO;AACpB,MAAa,MA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;;;;;AAKA,SAAS,MAAM,GAAG,eAAe;CAC7B,OAAO,cAAc;EACjB,MAAM,WAAW,EAAE,OAAO;EAC1B,MAAM,QAAQ,SAAS,KAAK;EAC5B,MAAM,OAAO,UAAU;GACnB,IAAI,MAAM,MACN,OAAO,gBAAgB,MAAM,OAAO,aAAa;GAErD,MAAM,KAAK,QAAQ;IACf,MAAM,OAAO,SAAS,KAAK,GAAG;IAC9B,OAAO,IAAI,IAAI;GACnB;GACA,OAAO,UAAU,GAAG,aAAa,CAAC,CAAC,MAAM,MAAM,MAAM;EACzD;EACA,OAAO,IAAI,KAAK;CACpB,GAAG,aAAa;AACpB"}
|
package/_mjs/IO/definition.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/base/util/predicates";
|
|
2
|
-
|
|
2
|
+
// build/esm/IO/definition.js
|
|
3
3
|
const IOVariance = Symbol.for("fncts.io.IO.Variance");
|
|
4
4
|
const IOTypeId = Symbol.for("fncts.io.IO");
|
|
5
5
|
/**
|
|
@@ -45,7 +45,6 @@ var External = class extends IOPrimitive {
|
|
|
45
45
|
super(13);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
//#endregion
|
|
49
48
|
export { External, IO, IOAspects, IOPrimitive, IOTypeId, IOVariance, concrete, isIO, unifyIO };
|
|
50
49
|
|
|
51
50
|
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/IO/definition.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/base/util/predicates\";\nexport const IOVariance = Symbol.for(\"fncts.io.IO.Variance\");\nexport const IOTypeId = Symbol.for(\"fncts.io.IO\");\n/**\n * @tsplus type fncts.io.IO\n * @tsplus companion fncts.io.IOOps\n */\nexport class IO {\n [IOTypeId] = IOTypeId;\n}\n/**\n * @tsplus static fncts.io.IOOps $\n */\nexport const IOAspects = {};\n/**\n * @tsplus unify fncts.io.IO\n */\nexport function unifyIO(self) {\n return self;\n}\nexport class IOPrimitive {\n _ioOpCode;\n i0 = undefined;\n i1 = undefined;\n i2 = undefined;\n trace = undefined;\n [IOTypeId] = IOTypeId;\n constructor(_ioOpCode) {\n this._ioOpCode = _ioOpCode;\n }\n}\nexport function isIO(u) {\n return tsplus_module_1.isObject(u) && IOTypeId in u;\n}\n/**\n * @tsplus static fncts.io.IOOps concrete\n * @tsplus macro identity\n */\nexport function concrete(io) {\n return io;\n}\nexport class External extends IOPrimitive {\n constructor() {\n super(13 /* IOTag.External */);\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";;AACA,MAAa,aAAa,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/IO/definition.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/base/util/predicates\";\nexport const IOVariance = Symbol.for(\"fncts.io.IO.Variance\");\nexport const IOTypeId = Symbol.for(\"fncts.io.IO\");\n/**\n * @tsplus type fncts.io.IO\n * @tsplus companion fncts.io.IOOps\n */\nexport class IO {\n [IOTypeId] = IOTypeId;\n}\n/**\n * @tsplus static fncts.io.IOOps $\n */\nexport const IOAspects = {};\n/**\n * @tsplus unify fncts.io.IO\n */\nexport function unifyIO(self) {\n return self;\n}\nexport class IOPrimitive {\n _ioOpCode;\n i0 = undefined;\n i1 = undefined;\n i2 = undefined;\n trace = undefined;\n [IOTypeId] = IOTypeId;\n constructor(_ioOpCode) {\n this._ioOpCode = _ioOpCode;\n }\n}\nexport function isIO(u) {\n return tsplus_module_1.isObject(u) && IOTypeId in u;\n}\n/**\n * @tsplus static fncts.io.IOOps concrete\n * @tsplus macro identity\n */\nexport function concrete(io) {\n return io;\n}\nexport class External extends IOPrimitive {\n constructor() {\n super(13 /* IOTag.External */);\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";;AACA,MAAa,aAAa,OAAO,IAAI,sBAAsB;AAC3D,MAAa,WAAW,OAAO,IAAI,aAAa;;;;;AAKhD,IAAa,KAAb,MAAgB;CACZ,CAAC,YAAY;AACjB;;;;AAIA,MAAa,YAAY,CAAC;;;;AAI1B,SAAgB,QAAQ,MAAM;CAC1B,OAAO;AACX;AACA,IAAa,cAAb,MAAyB;CACrB;CACA,KAAK,KAAA;CACL,KAAK,KAAA;CACL,KAAK,KAAA;CACL,QAAQ,KAAA;CACR,CAAC,YAAY;CACb,YAAY,WAAW;EACnB,KAAK,YAAY;CACrB;AACJ;AACA,SAAgB,KAAK,GAAG;CACpB,OAAO,gBAAgB,SAAS,CAAC,KAAK,YAAY;AACtD;;;;;AAKA,SAAgB,SAAS,IAAI;CACzB,OAAO;AACX;AACA,IAAa,WAAb,cAA8B,YAAY;CACtC,cAAc;EACV,MAAM,EAAuB;CACjC;AACJ"}
|
package/_mjs/IO/runtime.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import * as tsplus_module_9 from "@fncts/base/data/function/api";
|
|
|
17
17
|
import { FiberRuntime } from "@fncts/io/Fiber";
|
|
18
18
|
import "@fncts/io/FiberRefs";
|
|
19
19
|
import "@fncts/io/RuntimeFlags";
|
|
20
|
-
|
|
20
|
+
// build/esm/IO/runtime.js
|
|
21
21
|
const fileName_1 = "(@fncts/io) src/IO/runtime.ts";
|
|
22
22
|
var Runtime = class {
|
|
23
23
|
environment;
|
|
@@ -30,7 +30,8 @@ var Runtime = class {
|
|
|
30
30
|
}
|
|
31
31
|
makeFiber = (io, __tsplusTrace) => {
|
|
32
32
|
const fiberId = tsplus_module_1.unsafeMake(__tsplusTrace);
|
|
33
|
-
const
|
|
33
|
+
const fiberRefs = tsplus_module_3.updateAs(this.fiberRefs, fiberId, tsplus_module_2.currentEnvironment, this.environment);
|
|
34
|
+
const fiber = new FiberRuntime(fiberId, fiberRefs, tsplus_module_4.makeRuntimeFlags(1, 128));
|
|
34
35
|
const supervisor = fiber.getSupervisor();
|
|
35
36
|
if (supervisor != tsplus_module_5.none) {
|
|
36
37
|
supervisor.unsafeOnStart(this.environment, io, tsplus_module_6.nothing(fileName_1 + ":28:61"), fiber);
|
|
@@ -66,7 +67,8 @@ var Runtime = class {
|
|
|
66
67
|
unsafeRunOrFork = (io, __tsplusTrace) => {
|
|
67
68
|
const fiberId = tsplus_module_1.unsafeMake(__tsplusTrace);
|
|
68
69
|
const scheduler = new StagedScheduler();
|
|
69
|
-
const
|
|
70
|
+
const fiberRefs = tsplus_module_3.updateAs(this.fiberRefs, fiberId, tsplus_module_2.currentEnvironment, this.environment);
|
|
71
|
+
const fiber = new FiberRuntime(fiberId, fiberRefs, tsplus_module_4.makeRuntimeFlags(1, 128));
|
|
70
72
|
tsplus_module_7.global.unsafeAdd(null, fiber.runtimeFlags0, fiber);
|
|
71
73
|
const supervisor = fiber.getSupervisor();
|
|
72
74
|
if (supervisor != tsplus_module_5.none) {
|
|
@@ -112,7 +114,6 @@ const unsafeRunOrFork = defaultRuntime.unsafeRunOrFork;
|
|
|
112
114
|
* @tsplus getter fncts.io.IO unsafeRun
|
|
113
115
|
*/
|
|
114
116
|
const unsafeRun = defaultRuntime.unsafeRun;
|
|
115
|
-
//#endregion
|
|
116
117
|
export { Runtime, defaultRuntime, runtime, unsafeRun, unsafeRunFiber, unsafeRunOrFork, unsafeRunPromise, unsafeRunPromiseExit };
|
|
117
118
|
|
|
118
119
|
//# sourceMappingURL=runtime.mjs.map
|
package/_mjs/IO/runtime.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.mjs","names":[],"sources":["../../esm/IO/runtime.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/IO/runtime.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/FiberId/constructors\";\nimport * as tsplus_module_2 from \"@fncts/io/FiberRef/unsafe\";\nimport * as tsplus_module_3 from \"@fncts/io/FiberRefs/api\";\nimport * as tsplus_module_4 from \"@fncts/io/RuntimeFlags/RuntimeFlags\";\nimport * as tsplus_module_5 from \"@fncts/io/Supervisor/constructors\";\nimport * as tsplus_module_6 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_7 from \"@fncts/io/FiberScope/constructors\";\nimport * as tsplus_module_8 from \"@fncts/base/data/Exit/definition\";\nimport * as tsplus_module_9 from \"@fncts/base/data/function/api\";\nimport * as tsplus_module_10 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_11 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_12 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_13 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_14 from \"@fncts/base/data/Environment/api\";\nimport * as tsplus_module_15 from \"@fncts/base/collection/immutable/HashMap/api\";\nimport { FiberRuntime } from \"@fncts/io/Fiber\";\nimport { FiberRefs } from \"@fncts/io/FiberRefs\";\nimport { RuntimeFlags } from \"@fncts/io/RuntimeFlags\";\nimport { StagedScheduler } from \"../internal/Scheduler.js\";\nexport class Runtime {\n environment;\n runtimeFlags;\n fiberRefs;\n constructor(environment, runtimeFlags, fiberRefs) {\n this.environment = environment;\n this.runtimeFlags = runtimeFlags;\n this.fiberRefs = fiberRefs;\n }\n makeFiber = (io, __tsplusTrace) => {\n const fiberId = tsplus_module_1.unsafeMake(__tsplusTrace);\n const fiberRefs = tsplus_module_3.updateAs(this.fiberRefs, fiberId, tsplus_module_2.currentEnvironment, this.environment);\n const fiber = new FiberRuntime(fiberId, fiberRefs, tsplus_module_4.makeRuntimeFlags(1 /* RuntimeFlag.Interruption */, 128 /* RuntimeFlag.CooperativeYielding */));\n const supervisor = fiber.getSupervisor();\n if (supervisor != tsplus_module_5.none) {\n supervisor.unsafeOnStart(this.environment, io, tsplus_module_6.nothing(fileName_1 + \":28:61\"), fiber);\n fiber.addObserver((exit) => supervisor.unsafeOnEnd(exit, fiber));\n }\n tsplus_module_7.global.unsafeAdd(null, fiber.runtimeFlags0, fiber);\n return fiber;\n };\n unsafeRunFiber = (io, __tsplusTrace) => {\n const fiber = this.makeFiber(io, fileName_1 + \":38:33\");\n fiber.start(io);\n return fiber;\n };\n unsafeRunPromiseExit = (io, __tsplusTrace) => {\n return new Promise((resolve) => {\n const fiber = this.makeFiber(io, fileName_1 + \":45:35\");\n fiber.addObserver((exit) => {\n resolve(exit);\n });\n fiber.start(io);\n });\n };\n unsafeRunPromise = (io, __tsplusTrace) => {\n return new Promise((resolve, reject) => {\n const fiber = this.makeFiber(io, fileName_1 + \":55:35\");\n fiber.addObserver((exit) => {\n if (tsplus_module_8.isFailure(exit)) {\n reject(tsplus_module_10.squashWith(tsplus_module_9.identity)(exit.cause));\n }\n else {\n resolve(exit.value);\n }\n });\n fiber.start(io);\n });\n };\n unsafeRunOrFork = (io, __tsplusTrace) => {\n const fiberId = tsplus_module_1.unsafeMake(__tsplusTrace);\n const scheduler = new StagedScheduler();\n const fiberRefs = tsplus_module_3.updateAs(this.fiberRefs, fiberId, tsplus_module_2.currentEnvironment, this.environment);\n const fiber = new FiberRuntime(fiberId, fiberRefs, tsplus_module_4.makeRuntimeFlags(1 /* RuntimeFlag.Interruption */, 128 /* RuntimeFlag.CooperativeYielding */));\n tsplus_module_7.global.unsafeAdd(null, fiber.runtimeFlags0, fiber);\n const supervisor = fiber.getSupervisor();\n if (supervisor != tsplus_module_5.none) {\n supervisor.unsafeOnStart(this.environment, io, tsplus_module_6.nothing(fileName_1 + \":82:61\"), fiber);\n fiber.addObserver((exit) => supervisor.unsafeOnEnd(exit, fiber));\n }\n fiber.start(io);\n scheduler.flush();\n const result = fiber.exitValue();\n if (result !== null) {\n return tsplus_module_11.right(result, fileName_1 + \":91:26\");\n }\n return tsplus_module_11.left(fiber, fileName_1 + \":94:23\");\n };\n unsafeRun = (io, __tsplusTrace) => {\n return tsplus_module_12.match(() => {\n throw new Error(\"Encountered async boundary\");\n }, tsplus_module_9.identity)(this.unsafeRunOrFork(io, fileName_1 + \":98:32\"));\n };\n}\n/**\n * @tsplus static fncts.io.IOOps runtime\n */\nexport function runtime(__tsplusTrace) {\n return tsplus_module_13.withFiberRuntime((state, status) => tsplus_module_13.succeed(() => new Runtime(state.getFiberRef(tsplus_module_2.currentEnvironment), status.runtimeFlags, state.getFiberRefs()), __tsplusTrace), __tsplusTrace);\n}\nexport const defaultRuntime = new Runtime(tsplus_module_14.empty, tsplus_module_4.defaultRuntimeFlags, tsplus_module_15.make());\n/**\n * @tsplus fluent fncts.io.IO unsafeRunFiber\n */\nexport const unsafeRunFiber = defaultRuntime.unsafeRunFiber;\n/**\n * @tsplus fluent fncts.io.IO unsafeRunPromiseExit\n */\nexport const unsafeRunPromiseExit = defaultRuntime.unsafeRunPromiseExit;\n/**\n * @tsplus fluent fncts.io.IO unsafeRunPromise\n */\nexport const unsafeRunPromise = defaultRuntime.unsafeRunPromise;\n/**\n * @tsplus getter fncts.io.IO unsafeRunOrFork\n */\nexport const unsafeRunOrFork = defaultRuntime.unsafeRunOrFork;\n/**\n * @tsplus getter fncts.io.IO unsafeRun\n */\nexport const unsafeRun = defaultRuntime.unsafeRun;\n//# sourceMappingURL=runtime.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAoBnB,IAAa,UAAb,MAAqB;CACjB;CACA;CACA;CACA,YAAY,aAAa,cAAc,WAAW;
|
|
1
|
+
{"version":3,"file":"runtime.mjs","names":[],"sources":["../../esm/IO/runtime.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/IO/runtime.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/FiberId/constructors\";\nimport * as tsplus_module_2 from \"@fncts/io/FiberRef/unsafe\";\nimport * as tsplus_module_3 from \"@fncts/io/FiberRefs/api\";\nimport * as tsplus_module_4 from \"@fncts/io/RuntimeFlags/RuntimeFlags\";\nimport * as tsplus_module_5 from \"@fncts/io/Supervisor/constructors\";\nimport * as tsplus_module_6 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_7 from \"@fncts/io/FiberScope/constructors\";\nimport * as tsplus_module_8 from \"@fncts/base/data/Exit/definition\";\nimport * as tsplus_module_9 from \"@fncts/base/data/function/api\";\nimport * as tsplus_module_10 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_11 from \"@fncts/base/data/Either/constructors\";\nimport * as tsplus_module_12 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_13 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_14 from \"@fncts/base/data/Environment/api\";\nimport * as tsplus_module_15 from \"@fncts/base/collection/immutable/HashMap/api\";\nimport { FiberRuntime } from \"@fncts/io/Fiber\";\nimport { FiberRefs } from \"@fncts/io/FiberRefs\";\nimport { RuntimeFlags } from \"@fncts/io/RuntimeFlags\";\nimport { StagedScheduler } from \"../internal/Scheduler.js\";\nexport class Runtime {\n environment;\n runtimeFlags;\n fiberRefs;\n constructor(environment, runtimeFlags, fiberRefs) {\n this.environment = environment;\n this.runtimeFlags = runtimeFlags;\n this.fiberRefs = fiberRefs;\n }\n makeFiber = (io, __tsplusTrace) => {\n const fiberId = tsplus_module_1.unsafeMake(__tsplusTrace);\n const fiberRefs = tsplus_module_3.updateAs(this.fiberRefs, fiberId, tsplus_module_2.currentEnvironment, this.environment);\n const fiber = new FiberRuntime(fiberId, fiberRefs, tsplus_module_4.makeRuntimeFlags(1 /* RuntimeFlag.Interruption */, 128 /* RuntimeFlag.CooperativeYielding */));\n const supervisor = fiber.getSupervisor();\n if (supervisor != tsplus_module_5.none) {\n supervisor.unsafeOnStart(this.environment, io, tsplus_module_6.nothing(fileName_1 + \":28:61\"), fiber);\n fiber.addObserver((exit) => supervisor.unsafeOnEnd(exit, fiber));\n }\n tsplus_module_7.global.unsafeAdd(null, fiber.runtimeFlags0, fiber);\n return fiber;\n };\n unsafeRunFiber = (io, __tsplusTrace) => {\n const fiber = this.makeFiber(io, fileName_1 + \":38:33\");\n fiber.start(io);\n return fiber;\n };\n unsafeRunPromiseExit = (io, __tsplusTrace) => {\n return new Promise((resolve) => {\n const fiber = this.makeFiber(io, fileName_1 + \":45:35\");\n fiber.addObserver((exit) => {\n resolve(exit);\n });\n fiber.start(io);\n });\n };\n unsafeRunPromise = (io, __tsplusTrace) => {\n return new Promise((resolve, reject) => {\n const fiber = this.makeFiber(io, fileName_1 + \":55:35\");\n fiber.addObserver((exit) => {\n if (tsplus_module_8.isFailure(exit)) {\n reject(tsplus_module_10.squashWith(tsplus_module_9.identity)(exit.cause));\n }\n else {\n resolve(exit.value);\n }\n });\n fiber.start(io);\n });\n };\n unsafeRunOrFork = (io, __tsplusTrace) => {\n const fiberId = tsplus_module_1.unsafeMake(__tsplusTrace);\n const scheduler = new StagedScheduler();\n const fiberRefs = tsplus_module_3.updateAs(this.fiberRefs, fiberId, tsplus_module_2.currentEnvironment, this.environment);\n const fiber = new FiberRuntime(fiberId, fiberRefs, tsplus_module_4.makeRuntimeFlags(1 /* RuntimeFlag.Interruption */, 128 /* RuntimeFlag.CooperativeYielding */));\n tsplus_module_7.global.unsafeAdd(null, fiber.runtimeFlags0, fiber);\n const supervisor = fiber.getSupervisor();\n if (supervisor != tsplus_module_5.none) {\n supervisor.unsafeOnStart(this.environment, io, tsplus_module_6.nothing(fileName_1 + \":82:61\"), fiber);\n fiber.addObserver((exit) => supervisor.unsafeOnEnd(exit, fiber));\n }\n fiber.start(io);\n scheduler.flush();\n const result = fiber.exitValue();\n if (result !== null) {\n return tsplus_module_11.right(result, fileName_1 + \":91:26\");\n }\n return tsplus_module_11.left(fiber, fileName_1 + \":94:23\");\n };\n unsafeRun = (io, __tsplusTrace) => {\n return tsplus_module_12.match(() => {\n throw new Error(\"Encountered async boundary\");\n }, tsplus_module_9.identity)(this.unsafeRunOrFork(io, fileName_1 + \":98:32\"));\n };\n}\n/**\n * @tsplus static fncts.io.IOOps runtime\n */\nexport function runtime(__tsplusTrace) {\n return tsplus_module_13.withFiberRuntime((state, status) => tsplus_module_13.succeed(() => new Runtime(state.getFiberRef(tsplus_module_2.currentEnvironment), status.runtimeFlags, state.getFiberRefs()), __tsplusTrace), __tsplusTrace);\n}\nexport const defaultRuntime = new Runtime(tsplus_module_14.empty, tsplus_module_4.defaultRuntimeFlags, tsplus_module_15.make());\n/**\n * @tsplus fluent fncts.io.IO unsafeRunFiber\n */\nexport const unsafeRunFiber = defaultRuntime.unsafeRunFiber;\n/**\n * @tsplus fluent fncts.io.IO unsafeRunPromiseExit\n */\nexport const unsafeRunPromiseExit = defaultRuntime.unsafeRunPromiseExit;\n/**\n * @tsplus fluent fncts.io.IO unsafeRunPromise\n */\nexport const unsafeRunPromise = defaultRuntime.unsafeRunPromise;\n/**\n * @tsplus getter fncts.io.IO unsafeRunOrFork\n */\nexport const unsafeRunOrFork = defaultRuntime.unsafeRunOrFork;\n/**\n * @tsplus getter fncts.io.IO unsafeRun\n */\nexport const unsafeRun = defaultRuntime.unsafeRun;\n//# sourceMappingURL=runtime.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAoBnB,IAAa,UAAb,MAAqB;CACjB;CACA;CACA;CACA,YAAY,aAAa,cAAc,WAAW;EAC9C,KAAK,cAAc;EACnB,KAAK,eAAe;EACpB,KAAK,YAAY;CACrB;CACA,aAAa,IAAI,kBAAkB;EAC/B,MAAM,UAAU,gBAAgB,WAAW,aAAa;EACxD,MAAM,YAAY,gBAAgB,SAAS,KAAK,WAAW,SAAS,gBAAgB,oBAAoB,KAAK,WAAW;EACxH,MAAM,QAAQ,IAAI,aAAa,SAAS,WAAW,gBAAgB,iBAAiB,GAAkC,GAAyC,CAAC;EAChK,MAAM,aAAa,MAAM,cAAc;EACvC,IAAI,cAAc,gBAAgB,MAAM;GACpC,WAAW,cAAc,KAAK,aAAa,IAAI,gBAAgB,QAAQ,aAAa,QAAQ,GAAG,KAAK;GACpG,MAAM,aAAa,SAAS,WAAW,YAAY,MAAM,KAAK,CAAC;EACnE;EACA,gBAAgB,OAAO,UAAU,MAAM,MAAM,eAAe,KAAK;EACjE,OAAO;CACX;CACA,kBAAkB,IAAI,kBAAkB;EACpC,MAAM,QAAQ,KAAK,UAAU,IA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E/D,OAAO,iBAAiB,KAAK,OAAO,aAAa,QAAQ;CAC7D;CACA,aAAa,IAAI,kBAAkB;EAC/B,OAAO,iBAAiB,YAAY;GAChC,MAAM,IAAI,MAAM,4BAA4B;EAChD,GAAG,gBAAgB,QAAQ,CAAC,CAAC,KAAK,gBAAgB,IAAI,aAAa,QAAQ,CAAC;CAChF;AACJ;;;;AAIA,SAAgB,QAAQ,eAAe;CACnC,OAAO,iBAAiB,kBAAkB,OAAO,WAAW,iBAAiB,cAAc,IAAI,QAAQ,MAAM,YAAY,gBAAgB,kBAAkB,GAAG,OAAO,cAAc,MAAM,aAAa,CAAC,GAAG,aAAa,GAAG,aAAa;AAC3O;AACA,MAAa,iBAAiB,IAAI,QAAQ,iBAAiB,OAAO,gBAAgB,qBAAqB,iBAAiB,KAAK,CAAC;;;;AAI9H,MAAa,iBAAiB,eAAe;;;;AAI7C,MAAa,uBAAuB,eAAe;;;;AAInD,MAAa,mBAAmB,eAAe;;;;AAI/C,MAAa,kBAAkB,eAAe;;;;AAI9C,MAAa,YAAY,eAAe"}
|
package/_mjs/IO.mjs
CHANGED
|
@@ -11,6 +11,7 @@ import { all, allConcurrent } from "./IO/api/all.mjs";
|
|
|
11
11
|
import { foreachArray, foreachArrayDiscard, foreachArrayWithIndex, foreachArrayWithIndexDiscard } from "./IO/api/array.mjs";
|
|
12
12
|
import { asyncInterrupt, asyncMaybe, never } from "./IO/api/asyncInterrupt.mjs";
|
|
13
13
|
import { asyncIO } from "./IO/api/asyncIO.mjs";
|
|
14
|
+
import { foreachAsync, foreachDiscardAsync, foreachWithIndexAsync, foreachWithIndexDiscardAsync, fromAsyncIterable } from "./IO/api/asyncIterable.mjs";
|
|
14
15
|
import { awaitAllChildren } from "./IO/api/awaitAllChildren.mjs";
|
|
15
16
|
import { blocking } from "./IO/api/blocking.mjs";
|
|
16
17
|
import { bracket } from "./IO/api/bracket.mjs";
|
|
@@ -66,4 +67,4 @@ import { withEarlyRelease } from "./IO/api/withEarlyRelease.mjs";
|
|
|
66
67
|
import { withFinalizer } from "./IO/api/withFinalizer.mjs";
|
|
67
68
|
import { withFinalizerExit } from "./IO/api/withFinalizerExit.mjs";
|
|
68
69
|
import { zipConcurrent, zipWithConcurrent } from "./IO/api/zipConcurrent.mjs";
|
|
69
|
-
export { Concurrency, External, GenIO, Grafter, IO, IOAspects, IOPrimitive, IOTypeId, IOVariance, Runtime, __adapter, absolve, absorbWith, acquireRelease, acquireReleaseExit, acquireReleaseInterruptible, acquireReleaseInterruptibleExit, addFinalizer, addFinalizerExit, all, allConcurrent, as, asJust, asJustError, asUnit, async, asyncIO, asyncInterrupt, asyncMaybe, attempt, awaitAllChildren, bimap, bitap, blocking, bracket, bracketExit, cached, cachedInvalidate, catchAll, catchAllCause, catchJust, catchJustCause, catchJustDefect, catchTag, catchTagWith, cause, causeAsError, checkInterruptible, clock, clockWith, collect, collectIO, concrete, concurrency, concurrencyWith, concurrentErrors, concurrentFinalizers, concurrentFinalizersMask, cond, condIO, console, consoleWith, contramapEnvironment, daemonChildren, defaultRuntime, defer, deferTry, deferTryCatch, delay, descriptor, descriptorWith, diffFiberRefs, disconnect, either, ensuring, ensuringChildren, environment, environmentWith, environmentWithIO, errorAsCause, eventually, exitWith, extend, fail, failCause, failCauseNow, failNow, fiberId, fiberIdWith, filter, filterMap, filterMapWithIndex, filterNot, filterOrElse, filterOrFail, filterOrHalt, firstSuccess, flatMap, flatMapError, flatten, foldLeft, foldMap, foldRight, foreach, foreachArray, foreachArrayDiscard, foreachArrayWithIndex, foreachArrayWithIndexDiscard, foreachConcurrent, foreachConcurrentDiscard, foreachDiscard, foreachDiscardExec, foreachExec, foreachWithIndex, foreachWithIndexDiscard, foreachWithIndexDiscardExec, forever, fork, forkAll, forkDaemon, forkIn, forkScoped, forkWithScopeOverride, fromEither, fromEitherNow, fromEval, fromExit, fromExitNow, fromMaybe, fromMaybeNow, fromPromise, fromPromiseCatch, fromPromiseHalt, fulfill, gen, get, getFiberRefs, getOrElse, getOrElseIO, getOrFailUnit, getOrFailWith, halt, haltNow, ifIO, ignore, interrupt, interruptAs, interruptible, interruptibleMask, isFailure, isIO, isSuccess, iterate, just, left, log, loop, loopUnit, map, mapError, mapErrorCause, mapTryCatch, match, matchCause, matchCauseIO, matchIO, matchTraceIO, maybe, memoize, merge, mergeAll, never, nothing, onExit, onInterrupt, onInterruptWith, onTermination, once, optional, or, orElse, orElseEither, orElseFail, orElseMaybe, orElseSucceed, orHalt, orHaltKeep, orHaltWith, partition, patchFiberRefs, provideEnvironment, provideLayer, provideScope, provideService, provideSomeEnvironment, provideSomeLayer, provideSomeRuntime, provideSomeService, race, raceAwait, raceFibersWith, raceFirst, raceWith, random, randomWith, refailCause, refailCauseNow, refineOrHalt, refineOrHaltWith, reject, rejectIO, repeat, repeatN_, repeatOrElse, repeatOrElseEither, repeatUntil, repeatUntilIO, repeatWhile, repeatWhileIO, replicate, require, result, resurrect, retry, retryOrElse, retryOrElseEither, retryUntil, retryUntilIO, retryWhile, retryWhileIO, runtime, sandbox, sandboxWith, schedule, scheduleFrom, scope, scopeWith, scoped, scoped_, sequenceIterable, sequenceIterableDiscard, sequentialFinalizers, service, serviceWith, serviceWithIO, show, sleep, stackTrace, stateful, succeed, succeedNow, summarized, supervised, swap, swapWith, tap, tapCause, tapError, tapErrorCause, timedWith, timeout, timeoutFail, timeoutTo, transplant, tryCatch, tryOrElse, unifyIO, uninterruptible, uninterruptibleMask, unit, unjust, unrefineWith, unsafeFork, unsafeMakeChildFiber, unsafeRun, unsafeRunFiber, unsafeRunOrFork, unsafeRunPromise, unsafeRunPromiseExit, unsandbox, updateFiberRefs, updateRuntimeFlags, via, when, whenFiberRef, whenIO, whenRef, whileLoop, withChildren, withConcurrency, withConcurrencyMask, withConcurrencyUnbounded, withConcurrencyUnboundedMask, withEarlyRelease, withFiberRuntime, withFinalizer, withFinalizerExit, yieldNow, zip, zipConcurrent, zipLeft, zipRight, zipWith, zipWithConcurrent };
|
|
70
|
+
export { Concurrency, External, GenIO, Grafter, IO, IOAspects, IOPrimitive, IOTypeId, IOVariance, Runtime, __adapter, absolve, absorbWith, acquireRelease, acquireReleaseExit, acquireReleaseInterruptible, acquireReleaseInterruptibleExit, addFinalizer, addFinalizerExit, all, allConcurrent, as, asJust, asJustError, asUnit, async, asyncIO, asyncInterrupt, asyncMaybe, attempt, awaitAllChildren, bimap, bitap, blocking, bracket, bracketExit, cached, cachedInvalidate, catchAll, catchAllCause, catchJust, catchJustCause, catchJustDefect, catchTag, catchTagWith, cause, causeAsError, checkInterruptible, clock, clockWith, collect, collectIO, concrete, concurrency, concurrencyWith, concurrentErrors, concurrentFinalizers, concurrentFinalizersMask, cond, condIO, console, consoleWith, contramapEnvironment, daemonChildren, defaultRuntime, defer, deferTry, deferTryCatch, delay, descriptor, descriptorWith, diffFiberRefs, disconnect, either, ensuring, ensuringChildren, environment, environmentWith, environmentWithIO, errorAsCause, eventually, exitWith, extend, fail, failCause, failCauseNow, failNow, fiberId, fiberIdWith, filter, filterMap, filterMapWithIndex, filterNot, filterOrElse, filterOrFail, filterOrHalt, firstSuccess, flatMap, flatMapError, flatten, foldLeft, foldMap, foldRight, foreach, foreachArray, foreachArrayDiscard, foreachArrayWithIndex, foreachArrayWithIndexDiscard, foreachAsync, foreachConcurrent, foreachConcurrentDiscard, foreachDiscard, foreachDiscardAsync, foreachDiscardExec, foreachExec, foreachWithIndex, foreachWithIndexAsync, foreachWithIndexDiscard, foreachWithIndexDiscardAsync, foreachWithIndexDiscardExec, forever, fork, forkAll, forkDaemon, forkIn, forkScoped, forkWithScopeOverride, fromAsyncIterable, fromEither, fromEitherNow, fromEval, fromExit, fromExitNow, fromMaybe, fromMaybeNow, fromPromise, fromPromiseCatch, fromPromiseHalt, fulfill, gen, get, getFiberRefs, getOrElse, getOrElseIO, getOrFailUnit, getOrFailWith, halt, haltNow, ifIO, ignore, interrupt, interruptAs, interruptible, interruptibleMask, isFailure, isIO, isSuccess, iterate, just, left, log, loop, loopUnit, map, mapError, mapErrorCause, mapTryCatch, match, matchCause, matchCauseIO, matchIO, matchTraceIO, maybe, memoize, merge, mergeAll, never, nothing, onExit, onInterrupt, onInterruptWith, onTermination, once, optional, or, orElse, orElseEither, orElseFail, orElseMaybe, orElseSucceed, orHalt, orHaltKeep, orHaltWith, partition, patchFiberRefs, provideEnvironment, provideLayer, provideScope, provideService, provideSomeEnvironment, provideSomeLayer, provideSomeRuntime, provideSomeService, race, raceAwait, raceFibersWith, raceFirst, raceWith, random, randomWith, refailCause, refailCauseNow, refineOrHalt, refineOrHaltWith, reject, rejectIO, repeat, repeatN_, repeatOrElse, repeatOrElseEither, repeatUntil, repeatUntilIO, repeatWhile, repeatWhileIO, replicate, require, result, resurrect, retry, retryOrElse, retryOrElseEither, retryUntil, retryUntilIO, retryWhile, retryWhileIO, runtime, sandbox, sandboxWith, schedule, scheduleFrom, scope, scopeWith, scoped, scoped_, sequenceIterable, sequenceIterableDiscard, sequentialFinalizers, service, serviceWith, serviceWithIO, show, sleep, stackTrace, stateful, succeed, succeedNow, summarized, supervised, swap, swapWith, tap, tapCause, tapError, tapErrorCause, timedWith, timeout, timeoutFail, timeoutTo, transplant, tryCatch, tryOrElse, unifyIO, uninterruptible, uninterruptibleMask, unit, unjust, unrefineWith, unsafeFork, unsafeMakeChildFiber, unsafeRun, unsafeRunFiber, unsafeRunOrFork, unsafeRunPromise, unsafeRunPromiseExit, unsandbox, updateFiberRefs, updateRuntimeFlags, via, when, whenFiberRef, whenIO, whenRef, whileLoop, withChildren, withConcurrency, withConcurrencyMask, withConcurrencyUnbounded, withConcurrencyUnboundedMask, withEarlyRelease, withFiberRuntime, withFinalizer, withFinalizerExit, yieldNow, zip, zipConcurrent, zipLeft, zipRight, zipWith, zipWithConcurrent };
|
|
@@ -5,13 +5,12 @@ import * as tsplus_module_4 from "@fncts/io/Random/definition";
|
|
|
5
5
|
import * as tsplus_module_1 from "@fncts/io/Console/live";
|
|
6
6
|
import * as tsplus_module_3 from "@fncts/io/Random/live";
|
|
7
7
|
import * as tsplus_module_5 from "@fncts/io/Clock/live";
|
|
8
|
-
|
|
8
|
+
// build/esm/IOEnv/definition.js
|
|
9
9
|
const IOEnv = {};
|
|
10
10
|
/**
|
|
11
11
|
* @tsplus static fncts.io.IOEnvOps environment
|
|
12
12
|
*/
|
|
13
13
|
const environment = tsplus_module_7.add(tsplus_module_1.live, tsplus_module_2.ConsoleTag)(tsplus_module_7.add(tsplus_module_3.live, tsplus_module_4.RandomTag)(tsplus_module_7.add(tsplus_module_5.live, tsplus_module_6.ClockTag)(tsplus_module_7.make())));
|
|
14
|
-
//#endregion
|
|
15
14
|
export { IOEnv, environment };
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/IOEnv/definition.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/io/Console/live\";\nimport * as tsplus_module_2 from \"@fncts/io/Console/definition\";\nimport * as tsplus_module_3 from \"@fncts/io/Random/live\";\nimport * as tsplus_module_4 from \"@fncts/io/Random/definition\";\nimport * as tsplus_module_5 from \"@fncts/io/Clock/live\";\nimport * as tsplus_module_6 from \"@fncts/io/Clock/definition\";\nimport * as tsplus_module_7 from \"@fncts/base/data/Environment/api\";\nexport const IOEnv = {};\n/**\n * @tsplus static fncts.io.IOEnvOps environment\n */\nexport const environment = tsplus_module_7.add(tsplus_module_1.live, tsplus_module_2.ConsoleTag)(tsplus_module_7.add(tsplus_module_3.live, tsplus_module_4.RandomTag)(tsplus_module_7.add(tsplus_module_5.live, tsplus_module_6.ClockTag)(tsplus_module_7.make())));\n//# sourceMappingURL=definition.js.map"],"mappings":";;;;;;;;AAOA,MAAa,QAAQ,
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/IOEnv/definition.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/io/Console/live\";\nimport * as tsplus_module_2 from \"@fncts/io/Console/definition\";\nimport * as tsplus_module_3 from \"@fncts/io/Random/live\";\nimport * as tsplus_module_4 from \"@fncts/io/Random/definition\";\nimport * as tsplus_module_5 from \"@fncts/io/Clock/live\";\nimport * as tsplus_module_6 from \"@fncts/io/Clock/definition\";\nimport * as tsplus_module_7 from \"@fncts/base/data/Environment/api\";\nexport const IOEnv = {};\n/**\n * @tsplus static fncts.io.IOEnvOps environment\n */\nexport const environment = tsplus_module_7.add(tsplus_module_1.live, tsplus_module_2.ConsoleTag)(tsplus_module_7.add(tsplus_module_3.live, tsplus_module_4.RandomTag)(tsplus_module_7.add(tsplus_module_5.live, tsplus_module_6.ClockTag)(tsplus_module_7.make())));\n//# sourceMappingURL=definition.js.map"],"mappings":";;;;;;;;AAOA,MAAa,QAAQ,CAAC;;;;AAItB,MAAa,cAAc,gBAAgB,IAAI,gBAAgB,MAAM,gBAAgB,UAAU,CAAC,CAAC,gBAAgB,IAAI,gBAAgB,MAAM,gBAAgB,SAAS,CAAC,CAAC,gBAAgB,IAAI,gBAAgB,MAAM,gBAAgB,QAAQ,CAAC,CAAC,gBAAgB,KAAK,CAAC,CAAC,CAAC"}
|
package/_mjs/IOEnv/live.mjs
CHANGED
|
@@ -5,13 +5,12 @@ import * as tsplus_module_5 from "@fncts/io/Random/definition";
|
|
|
5
5
|
import * as tsplus_module_1 from "@fncts/io/Console/live";
|
|
6
6
|
import * as tsplus_module_4 from "@fncts/io/Random/live";
|
|
7
7
|
import * as tsplus_module_6 from "@fncts/io/Clock/live";
|
|
8
|
-
|
|
8
|
+
// build/esm/IOEnv/live.js
|
|
9
9
|
const fileName_1 = "(@fncts/io) src/IOEnv/live.ts";
|
|
10
10
|
/**
|
|
11
11
|
* @tsplus static fncts.io.IOEnvOps Live
|
|
12
12
|
*/
|
|
13
13
|
const live = tsplus_module_3.and(tsplus_module_3.succeed(() => tsplus_module_1.live, tsplus_module_2.ConsoleTag, fileName_1 + ":8:21"), fileName_1 + ":8:7")(tsplus_module_3.and(tsplus_module_3.succeed(() => tsplus_module_4.live, tsplus_module_5.RandomTag, fileName_1 + ":7:21"), fileName_1 + ":7:7")(tsplus_module_3.succeed(() => tsplus_module_6.live, tsplus_module_7.ClockTag, fileName_1 + ":6:34")));
|
|
14
|
-
//#endregion
|
|
15
14
|
export { live };
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=live.mjs.map
|