@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/IOEnv/live.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live.mjs","names":[],"sources":["../../esm/IOEnv/live.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/IOEnv/live.ts\";\nimport * 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/Layer/api\";\nimport * as tsplus_module_4 from \"@fncts/io/Random/live\";\nimport * as tsplus_module_5 from \"@fncts/io/Random/definition\";\nimport * as tsplus_module_6 from \"@fncts/io/Clock/live\";\nimport * as tsplus_module_7 from \"@fncts/io/Clock/definition\";\n/**\n * @tsplus static fncts.io.IOEnvOps Live\n */\nexport 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\")));\n//# sourceMappingURL=live.js.map"],"mappings":";;;;;;;;AAAA,MAAM,aAAa;;;;AAWnB,MAAa,OAAO,gBAAgB,IAAI,gBAAgB,cAAc,gBAAgB,MAAM,gBAAgB,YAAY,aAAa,
|
|
1
|
+
{"version":3,"file":"live.mjs","names":[],"sources":["../../esm/IOEnv/live.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/IOEnv/live.ts\";\nimport * 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/Layer/api\";\nimport * as tsplus_module_4 from \"@fncts/io/Random/live\";\nimport * as tsplus_module_5 from \"@fncts/io/Random/definition\";\nimport * as tsplus_module_6 from \"@fncts/io/Clock/live\";\nimport * as tsplus_module_7 from \"@fncts/io/Clock/definition\";\n/**\n * @tsplus static fncts.io.IOEnvOps Live\n */\nexport 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\")));\n//# sourceMappingURL=live.js.map"],"mappings":";;;;;;;;AAAA,MAAM,aAAa;;;;AAWnB,MAAa,OAAO,gBAAgB,IAAI,gBAAgB,cAAc,gBAAgB,MAAM,gBAAgB,YAAY,aAAa,OAAO,GAAG,aAAa,MAAM,CAAC,CAAC,gBAAgB,IAAI,gBAAgB,cAAc,gBAAgB,MAAM,gBAAgB,WAAW,aAAa,OAAO,GAAG,aAAa,MAAM,CAAC,CAAC,gBAAgB,cAAc,gBAAgB,MAAM,gBAAgB,UAAU,aAAa,OAAO,CAAC,CAAC"}
|
package/_mjs/IOEnv/services.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as tsplus_module_1 from "@fncts/io/FiberRef/unsafe";
|
|
2
2
|
import { environment } from "@fncts/io/IOEnv/definition";
|
|
3
|
-
|
|
3
|
+
// build/esm/IOEnv/services.js
|
|
4
4
|
/**
|
|
5
5
|
* @tsplus static fncts.io.IOEnvOps services
|
|
6
6
|
*/
|
|
7
7
|
const services = tsplus_module_1.unsafeMakeEnvironment(environment);
|
|
8
|
-
//#endregion
|
|
9
8
|
export { services };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=services.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.mjs","names":[],"sources":["../../esm/IOEnv/services.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/io/FiberRef/unsafe\";\nimport { environment } from \"@fncts/io/IOEnv/definition\";\n/**\n * @tsplus static fncts.io.IOEnvOps services\n */\nexport const services = tsplus_module_1.unsafeMakeEnvironment(environment);\n//# sourceMappingURL=services.js.map"],"mappings":";;;;;;AAKA,MAAa,WAAW,gBAAgB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"services.mjs","names":[],"sources":["../../esm/IOEnv/services.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/io/FiberRef/unsafe\";\nimport { environment } from \"@fncts/io/IOEnv/definition\";\n/**\n * @tsplus static fncts.io.IOEnvOps services\n */\nexport const services = tsplus_module_1.unsafeMakeEnvironment(environment);\n//# sourceMappingURL=services.js.map"],"mappings":";;;;;;AAKA,MAAa,WAAW,gBAAgB,sBAAsB,WAAW"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InterruptStatus } from "./definition.mjs";
|
|
2
|
-
|
|
2
|
+
// build/esm/InterruptStatus/constructors.js
|
|
3
3
|
/**
|
|
4
4
|
* @tsplus static fncts.InterruptStatusOps interruptible
|
|
5
5
|
*/
|
|
@@ -16,7 +16,6 @@ const uninterruptible = uninterruptible_1;
|
|
|
16
16
|
function fromBoolean(b) {
|
|
17
17
|
return b ? interruptible_1 : uninterruptible_1;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { fromBoolean, interruptible, uninterruptible };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=constructors.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constructors.mjs","names":[],"sources":["../../esm/InterruptStatus/constructors.js"],"sourcesContent":["import { InterruptStatus } from \"./definition.js\";\n/**\n * @tsplus static fncts.InterruptStatusOps interruptible\n */\nconst interruptible_1 = new InterruptStatus(true);\nexport const interruptible = interruptible_1;\n/**\n * @tsplus static fncts.InterruptStatusOps uninterruptible\n */\nconst uninterruptible_1 = new InterruptStatus(false);\nexport const uninterruptible = uninterruptible_1;\n/**\n * @tsplus static fncts.InterruptStatusOps fromBoolean\n */\nexport function fromBoolean(b) {\n return b ? interruptible_1 : uninterruptible_1;\n}\n//# sourceMappingURL=constructors.js.map"],"mappings":";;;;;AAIA,MAAM,kBAAkB,IAAI,gBAAgB,
|
|
1
|
+
{"version":3,"file":"constructors.mjs","names":[],"sources":["../../esm/InterruptStatus/constructors.js"],"sourcesContent":["import { InterruptStatus } from \"./definition.js\";\n/**\n * @tsplus static fncts.InterruptStatusOps interruptible\n */\nconst interruptible_1 = new InterruptStatus(true);\nexport const interruptible = interruptible_1;\n/**\n * @tsplus static fncts.InterruptStatusOps uninterruptible\n */\nconst uninterruptible_1 = new InterruptStatus(false);\nexport const uninterruptible = uninterruptible_1;\n/**\n * @tsplus static fncts.InterruptStatusOps fromBoolean\n */\nexport function fromBoolean(b) {\n return b ? interruptible_1 : uninterruptible_1;\n}\n//# sourceMappingURL=constructors.js.map"],"mappings":";;;;;AAIA,MAAM,kBAAkB,IAAI,gBAAgB,IAAI;AAChD,MAAa,gBAAgB;;;;AAI7B,MAAM,oBAAoB,IAAI,gBAAgB,KAAK;AACnD,MAAa,kBAAkB;;;;AAI/B,SAAgB,YAAY,GAAG;CAC3B,OAAO,IAAI,kBAAkB;AACjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// build/esm/InterruptStatus/definition.js
|
|
2
2
|
/**
|
|
3
3
|
* InterruptStatus tracks interruptability of the current stack region
|
|
4
4
|
*
|
|
@@ -17,7 +17,6 @@ var InterruptStatus = class {
|
|
|
17
17
|
return this.isInterruptible;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { InterruptStatus };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/InterruptStatus/definition.js"],"sourcesContent":["/**\n * InterruptStatus tracks interruptability of the current stack region\n *\n * @tsplus type fncts.InterruptStatus\n * @tsplus companion fncts.InterruptStatusOps\n */\nexport class InterruptStatus {\n isInterruptible;\n constructor(isInterruptible) {\n this.isInterruptible = isInterruptible;\n }\n get isUninteruptible() {\n return !this.isInterruptible;\n }\n get toBoolean() {\n return this.isInterruptible;\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";;;;;;;AAMA,IAAa,kBAAb,MAA6B;CACzB;CACA,YAAY,iBAAiB;
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/InterruptStatus/definition.js"],"sourcesContent":["/**\n * InterruptStatus tracks interruptability of the current stack region\n *\n * @tsplus type fncts.InterruptStatus\n * @tsplus companion fncts.InterruptStatusOps\n */\nexport class InterruptStatus {\n isInterruptible;\n constructor(isInterruptible) {\n this.isInterruptible = isInterruptible;\n }\n get isUninteruptible() {\n return !this.isInterruptible;\n }\n get toBoolean() {\n return this.isInterruptible;\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";;;;;;;AAMA,IAAa,kBAAb,MAA6B;CACzB;CACA,YAAY,iBAAiB;EACzB,KAAK,kBAAkB;CAC3B;CACA,IAAI,mBAAmB;EACnB,OAAO,CAAC,KAAK;CACjB;CACA,IAAI,YAAY;EACZ,OAAO,KAAK;CAChB;AACJ"}
|
package/_mjs/Layer/MemoMap.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import * as tsplus_module_20 from "@fncts/io/IO/api/zipConcurrent";
|
|
|
21
21
|
import * as tsplus_module_16 from "@fncts/io/Layer/definition";
|
|
22
22
|
import { LayerHash } from "@fncts/io/Layer/definition";
|
|
23
23
|
import * as tsplus_module_12 from "@fncts/io/Scope/Finalizer/definition";
|
|
24
|
-
|
|
24
|
+
// build/esm/Layer/MemoMap.js
|
|
25
25
|
const fileName_1 = "(@fncts/io) src/Layer/MemoMap.ts";
|
|
26
26
|
const isFresh = isFresh_1;
|
|
27
27
|
const build_ = build_1;
|
|
@@ -98,7 +98,6 @@ function scope_1(scope, __tsplusTrace) {
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
//#endregion
|
|
102
101
|
export { MemoMap, build, build_, isFresh, makeMemoMap, scope };
|
|
103
102
|
|
|
104
103
|
//# sourceMappingURL=MemoMap.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemoMap.mjs","names":[],"sources":["../../esm/Layer/MemoMap.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Layer/MemoMap.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/collection/immutable/HashMap/api\";\nimport * as tsplus_module_2 from \"@fncts/base/data/Maybe/definition\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_5 from \"@fncts/io/IO/api/interrupt\";\nimport * as tsplus_module_6 from \"@fncts/io/Ref/api/modify\";\nimport * as tsplus_module_7 from \"@fncts/io/Future/api\";\nimport * as tsplus_module_8 from \"@fncts/io/Scope/Finalizer\";\nimport * as tsplus_module_9 from \"@fncts/io/Ref/api/get\";\nimport * as tsplus_module_10 from \"@fncts/io/Ref/api/set\";\nimport * as tsplus_module_11 from \"@fncts/io/Scope/api\";\nimport * as tsplus_module_12 from \"@fncts/io/Scope/Finalizer/definition\";\nimport * as tsplus_module_13 from \"@fncts/io/Ref/constructors\";\nimport * as tsplus_module_14 from \"@fncts/io/Future/constructors\";\nimport * as tsplus_module_15 from \"@fncts/io/Ref/Synchronized/api\";\nimport * as tsplus_module_16 from \"@fncts/io/Layer/definition\";\nimport * as tsplus_module_17 from \"@fncts/io/Ref/Synchronized/constructors\";\nimport * as tsplus_module_18 from \"@fncts/io/Scope/definition\";\nimport * as tsplus_module_19 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_20 from \"@fncts/io/IO/api/zipConcurrent\";\nimport * as tsplus_module_21 from \"@fncts/base/data/ExecutionStrategy\";\nexport const isFresh = isFresh_1;\nexport const build_ = build_1;\nexport const scope = scope_1;\nimport { tuple } from \"@fncts/base/data/function\";\nimport { LayerHash } from \"@fncts/io/Layer/definition\";\n/**\n * A `MemoMap` memoizes dependencies.\n */\nexport class MemoMap {\n ref;\n constructor(ref) {\n this.ref = ref;\n }\n /**\n * Checks the memo map to see if a dependency exists. If it is, immediately\n * returns it. Otherwise, obtains the dependency, stores it in the memo map,\n * and adds a finalizer to the outer `Managed`.\n */\n getOrElseMemoize = (scope, layer, __tsplusTrace) => {\n return tsplus_module_3.flatten(tsplus_module_15.modifyIO((map) => {\n const inMap = tsplus_module_1.get(layer[LayerHash])(map);\n if (tsplus_module_2.isJust(inMap)) {\n const [acquire, release] = inMap.value;\n const cached = tsplus_module_5.onExit((exit) => tsplus_module_4.match(() => tsplus_module_3.unit, () => scope.addFinalizerExit(release))(exit), fileName_1 + \":24:66\")(acquire);\n return tsplus_module_3.succeedNow(tuple(cached, map), fileName_1 + \":31:29\");\n }\n else {\n return tsplus_module_3.flatMap(observers => tsplus_module_3.flatMap(future => tsplus_module_3.map(finalizerRef => {\n const resource = tsplus_module_5.uninterruptibleMask((restore) => (() => {\n const outerScope = scope;\n return tsplus_module_3.flatMap(innerScope => tsplus_module_3.map(tp => tp, fileName_1 + \":41:35\")(tsplus_module_3.flatMap((exit) => tsplus_module_4.match((cause) => tsplus_module_3.zipRight(tsplus_module_3.failCauseNow(cause, fileName_1 + \":44:98\"), fileName_1 + \":44:82\")(tsplus_module_3.zipRight(innerScope.close(() => exit), fileName_1 + \":44:57\")(tsplus_module_7.failCause(cause, fileName_1 + \":44:48\")(future))), (a) => tsplus_module_3.flatMap(() => tsplus_module_3.flatMap(() => tsplus_module_3.flatMap(() => tsplus_module_3.map(() => a, fileName_1 + \":58:26\")(tsplus_module_7.succeed_(a, fileName_1 + \":58:41\")(future)), fileName_1 + \":53:26\")(outerScope.addFinalizerExit(tsplus_module_8.Finalizer.get((e) => tsplus_module_3.flatMap((fin) => tsplus_module_8.Finalizer.reverseGet(fin)(e), fileName_1 + \":55:74\")(tsplus_module_9.get(finalizerRef, fileName_1 + \":55:62\"))))), fileName_1 + \":52:26\")(tsplus_module_6.update((n) => n + 1, fileName_1 + \":52:43\")(observers)), fileName_1 + \":47:26\")(tsplus_module_3.whenIO(tsplus_module_6.modify((n) => [n === 1, n - 1], fileName_1 + \":50:53\")(observers), fileName_1 + \":50:36\")(tsplus_module_10.set(tsplus_module_8.Finalizer.get((exit) => innerScope.close(() => exit)), fileName_1 + \":49:33\")(finalizerRef))))(exit), fileName_1 + \":42:88\")(tsplus_module_3.result(restore(tsplus_module_3.flatMap((f) => f(this), fileName_1 + \":42:56\")(scope_1(innerScope, fileName_1 + \":42:36\")(layer)), fileName_1 + \":42:24\"), fileName_1 + \":42:73\"))), fileName_1 + \":40:35\")(tsplus_module_11.make);\n })(), fileName_1 + \":37:54\");\n const memoized = tuple(tsplus_module_5.onExit((exit) => tsplus_module_4.match(() => tsplus_module_3.unit, () => tsplus_module_6.update((n) => n + 1, fileName_1 + \":72:39\")(observers))(exit), fileName_1 + \":69:32\")(tsplus_module_7.wait(future, fileName_1 + \":69:19\")), tsplus_module_8.Finalizer.get((exit) => tsplus_module_3.flatMap((f) => tsplus_module_8.Finalizer.reverseGet(f)(exit), fileName_1 + \":75:77\")(tsplus_module_9.get(finalizerRef, fileName_1 + \":75:65\"))));\n return tuple(resource, isFresh_1(layer) ? map : tsplus_module_1.set(layer[LayerHash], memoized)(map));\n }, fileName_1 + \":36:33\")(tsplus_module_13.make(() => tsplus_module_12.noop, fileName_1 + \":36:42\")), fileName_1 + \":35:33\")(tsplus_module_14.make(fileName_1 + \":35:45\")), fileName_1 + \":34:33\")(tsplus_module_13.make(() => 0, fileName_1 + \":34:42\"));\n }\n }, fileName_1 + \":18:29\")(this.ref), fileName_1 + \":81:7\");\n };\n}\n/**\n * @tsplus fluent fncts.io.Layer isFresh\n */\nfunction isFresh_1(self) {\n tsplus_module_16.concrete(self);\n return self._tag === 1 /* LayerTag.Fresh */;\n}\nexport function makeMemoMap(__tsplusTrace) {\n return tsplus_module_3.flatMap((ref) => tsplus_module_3.succeedNow(new MemoMap(ref), __tsplusTrace), __tsplusTrace)(tsplus_module_17.makeSynchronized(() => tsplus_module_1.empty(), __tsplusTrace));\n}\n/**\n * @tsplus getter fncts.io.Layer build\n */\nexport function build(self, __tsplusTrace) {\n return tsplus_module_19.serviceWithIO((scope) => build_1(scope, __tsplusTrace)(self), tsplus_module_18.ScopeTag, __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.Layer build\n */\nfunction build_1(scope, __tsplusTrace) {\n return (self) => {\n return tsplus_module_3.flatMap(memoMap => tsplus_module_3.flatMap(run => run(memoMap), __tsplusTrace)(scope_1(scope, __tsplusTrace)(self)), __tsplusTrace)(makeMemoMap(__tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer scope\n */\nfunction scope_1(scope, __tsplusTrace) {\n return (layer) => {\n tsplus_module_16.concrete(layer);\n switch (layer._tag) {\n case 0 /* LayerTag.Fold */: {\n return tsplus_module_3.succeed(() => (memoMap) => tsplus_module_3.matchCauseIO((cause) => memoMap.getOrElseMemoize(scope, layer.failure(cause), layer.trace), (r) => memoMap.getOrElseMemoize(scope, layer.success(r), __tsplusTrace), layer.trace)(memoMap.getOrElseMemoize(scope, layer.self, layer.trace)), __tsplusTrace);\n }\n case 1 /* LayerTag.Fresh */: {\n return tsplus_module_3.succeed(() => () => build_1(scope, layer.trace)(layer.self), __tsplusTrace);\n }\n case 2 /* LayerTag.Scoped */: {\n return tsplus_module_3.succeed(() => () => tsplus_module_11.extend(() => layer.self, layer.trace)(scope), __tsplusTrace);\n }\n case 3 /* LayerTag.Defer */: {\n return tsplus_module_3.succeed(() => (memoMap) => memoMap.getOrElseMemoize(scope, layer.self(), layer.trace), __tsplusTrace);\n }\n case 4 /* LayerTag.To */: {\n return tsplus_module_3.succeed(() => (memoMap) => tsplus_module_3.flatMap((r) => tsplus_module_19.provideEnvironment(r, __tsplusTrace)(memoMap.getOrElseMemoize(scope, layer.that, layer.trace)), layer.trace)(memoMap\n .getOrElseMemoize(scope, layer.self, layer.trace)), __tsplusTrace);\n }\n case 5 /* LayerTag.ZipWith */: {\n return tsplus_module_3.succeed(() => (memoMap) => tsplus_module_3.zipWith(memoMap.getOrElseMemoize(scope, layer.that, layer.trace), layer.f, layer.trace)(memoMap\n .getOrElseMemoize(scope, layer.self, layer.trace)), __tsplusTrace);\n }\n case 6 /* LayerTag.ZipWithConcurrent */: {\n return tsplus_module_3.succeed(() => (memoMap) => tsplus_module_3.flatMap(concurrent => tsplus_module_3.flatMap(left => tsplus_module_3.flatMap(right => tsplus_module_3.map(out => out, __tsplusTrace)(tsplus_module_20.zipWithConcurrent(memoMap.getOrElseMemoize(right, layer.that, layer.trace), layer.f, layer.trace)(memoMap\n .getOrElseMemoize(left, layer.self, layer.trace))), __tsplusTrace)(concurrent.forkWith(() => scope.executionStrategy)), __tsplusTrace)(concurrent.forkWith(() => scope.executionStrategy)), __tsplusTrace)(scope.forkWith(() => tsplus_module_21.concurrent)), __tsplusTrace);\n }\n }\n };\n}\n//# sourceMappingURL=MemoMap.js.map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAsBnB,MAAa,UAAU;AACvB,MAAa,SAAS;AACtB,MAAa,QAAQ;;;;AAMrB,IAAa,UAAb,MAAqB;CACjB;CACA,YAAY,KAAK;AACb,OAAK,MAAM;;;;;;;CAOf,oBAAoB,OAAO,OAAO,kBAAkB;AAChD,SAAO,gBAAgB,QAAQ,iBAAiB,UAAU,QAAQ;GAC9D,MAAM,QAAQ,gBAAgB,IAAI,MAAM,WAAW,CAAC,IAAI;AACxD,OAAI,gBAAgB,OAAO,MAAM,EAAE;IAC/B,MAAM,CAAC,SAAS,WAAW,MAAM;IACjC,MAAM,SAAS,gBAAgB,QAAQ,SAAS,gBAAgB,YAAY,gBAAgB,YAAY,MAAM,iBAAiB,QAAQ,CA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E,MAAM,MAAM,CAAC,QAC1M,iBAAiB,OAAO,MAAM,MAAM,MAAM,MAAM,CAAC,EAAE,cAAc;GAE1E,KAAK,EACD,QAAO,gBAAgB,eAAe,YAAY,gBAAgB,QAAQ,QAAQ,iBAAiB,OAAO,MAAM,MAAM,MAAM,MAAM,EAAE,MAAM,GAAG,MAAM,MAAM,CAAC,QACrJ,iBAAiB,OAAO,MAAM,MAAM,MAAM,MAAM,CAAC,EAAE,cAAc;GAE1E,KAAK,EACD,QAAO,gBAAgB,eAAe,YAAY,gBAAgB,SAAQ,eAAc,gBAAgB,SAAQ,SAAQ,gBAAgB,SAAQ,UAAS,gBAAgB,KAAI,QAAO,KAAK,cAAc,CAAC,iBAAiB,kBAAkB,QAAQ,iBAAiB,OAAO,MAAM,MAAM,MAAM,MAAM,EAAE,MAAM,GAAG,MAAM,MAAM,CAAC,QACtT,iBAAiB,MAAM,MAAM,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC,WAAW,eAAe,MAAM,kBAAkB,CAAC,EAAE,cAAc,CAAC,WAAW,eAAe,MAAM,kBAAkB,CAAC,EAAE,cAAc,CAAC,MAAM,eAAe,iBAAiB,WAAW,CAAC,EAAE,cAAc"}
|
|
1
|
+
{"version":3,"file":"MemoMap.mjs","names":[],"sources":["../../esm/Layer/MemoMap.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Layer/MemoMap.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/collection/immutable/HashMap/api\";\nimport * as tsplus_module_2 from \"@fncts/base/data/Maybe/definition\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Exit/api\";\nimport * as tsplus_module_5 from \"@fncts/io/IO/api/interrupt\";\nimport * as tsplus_module_6 from \"@fncts/io/Ref/api/modify\";\nimport * as tsplus_module_7 from \"@fncts/io/Future/api\";\nimport * as tsplus_module_8 from \"@fncts/io/Scope/Finalizer\";\nimport * as tsplus_module_9 from \"@fncts/io/Ref/api/get\";\nimport * as tsplus_module_10 from \"@fncts/io/Ref/api/set\";\nimport * as tsplus_module_11 from \"@fncts/io/Scope/api\";\nimport * as tsplus_module_12 from \"@fncts/io/Scope/Finalizer/definition\";\nimport * as tsplus_module_13 from \"@fncts/io/Ref/constructors\";\nimport * as tsplus_module_14 from \"@fncts/io/Future/constructors\";\nimport * as tsplus_module_15 from \"@fncts/io/Ref/Synchronized/api\";\nimport * as tsplus_module_16 from \"@fncts/io/Layer/definition\";\nimport * as tsplus_module_17 from \"@fncts/io/Ref/Synchronized/constructors\";\nimport * as tsplus_module_18 from \"@fncts/io/Scope/definition\";\nimport * as tsplus_module_19 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_20 from \"@fncts/io/IO/api/zipConcurrent\";\nimport * as tsplus_module_21 from \"@fncts/base/data/ExecutionStrategy\";\nexport const isFresh = isFresh_1;\nexport const build_ = build_1;\nexport const scope = scope_1;\nimport { tuple } from \"@fncts/base/data/function\";\nimport { LayerHash } from \"@fncts/io/Layer/definition\";\n/**\n * A `MemoMap` memoizes dependencies.\n */\nexport class MemoMap {\n ref;\n constructor(ref) {\n this.ref = ref;\n }\n /**\n * Checks the memo map to see if a dependency exists. If it is, immediately\n * returns it. Otherwise, obtains the dependency, stores it in the memo map,\n * and adds a finalizer to the outer `Managed`.\n */\n getOrElseMemoize = (scope, layer, __tsplusTrace) => {\n return tsplus_module_3.flatten(tsplus_module_15.modifyIO((map) => {\n const inMap = tsplus_module_1.get(layer[LayerHash])(map);\n if (tsplus_module_2.isJust(inMap)) {\n const [acquire, release] = inMap.value;\n const cached = tsplus_module_5.onExit((exit) => tsplus_module_4.match(() => tsplus_module_3.unit, () => scope.addFinalizerExit(release))(exit), fileName_1 + \":24:66\")(acquire);\n return tsplus_module_3.succeedNow(tuple(cached, map), fileName_1 + \":31:29\");\n }\n else {\n return tsplus_module_3.flatMap(observers => tsplus_module_3.flatMap(future => tsplus_module_3.map(finalizerRef => {\n const resource = tsplus_module_5.uninterruptibleMask((restore) => (() => {\n const outerScope = scope;\n return tsplus_module_3.flatMap(innerScope => tsplus_module_3.map(tp => tp, fileName_1 + \":41:35\")(tsplus_module_3.flatMap((exit) => tsplus_module_4.match((cause) => tsplus_module_3.zipRight(tsplus_module_3.failCauseNow(cause, fileName_1 + \":44:98\"), fileName_1 + \":44:82\")(tsplus_module_3.zipRight(innerScope.close(() => exit), fileName_1 + \":44:57\")(tsplus_module_7.failCause(cause, fileName_1 + \":44:48\")(future))), (a) => tsplus_module_3.flatMap(() => tsplus_module_3.flatMap(() => tsplus_module_3.flatMap(() => tsplus_module_3.map(() => a, fileName_1 + \":58:26\")(tsplus_module_7.succeed_(a, fileName_1 + \":58:41\")(future)), fileName_1 + \":53:26\")(outerScope.addFinalizerExit(tsplus_module_8.Finalizer.get((e) => tsplus_module_3.flatMap((fin) => tsplus_module_8.Finalizer.reverseGet(fin)(e), fileName_1 + \":55:74\")(tsplus_module_9.get(finalizerRef, fileName_1 + \":55:62\"))))), fileName_1 + \":52:26\")(tsplus_module_6.update((n) => n + 1, fileName_1 + \":52:43\")(observers)), fileName_1 + \":47:26\")(tsplus_module_3.whenIO(tsplus_module_6.modify((n) => [n === 1, n - 1], fileName_1 + \":50:53\")(observers), fileName_1 + \":50:36\")(tsplus_module_10.set(tsplus_module_8.Finalizer.get((exit) => innerScope.close(() => exit)), fileName_1 + \":49:33\")(finalizerRef))))(exit), fileName_1 + \":42:88\")(tsplus_module_3.result(restore(tsplus_module_3.flatMap((f) => f(this), fileName_1 + \":42:56\")(scope_1(innerScope, fileName_1 + \":42:36\")(layer)), fileName_1 + \":42:24\"), fileName_1 + \":42:73\"))), fileName_1 + \":40:35\")(tsplus_module_11.make);\n })(), fileName_1 + \":37:54\");\n const memoized = tuple(tsplus_module_5.onExit((exit) => tsplus_module_4.match(() => tsplus_module_3.unit, () => tsplus_module_6.update((n) => n + 1, fileName_1 + \":72:39\")(observers))(exit), fileName_1 + \":69:32\")(tsplus_module_7.wait(future, fileName_1 + \":69:19\")), tsplus_module_8.Finalizer.get((exit) => tsplus_module_3.flatMap((f) => tsplus_module_8.Finalizer.reverseGet(f)(exit), fileName_1 + \":75:77\")(tsplus_module_9.get(finalizerRef, fileName_1 + \":75:65\"))));\n return tuple(resource, isFresh_1(layer) ? map : tsplus_module_1.set(layer[LayerHash], memoized)(map));\n }, fileName_1 + \":36:33\")(tsplus_module_13.make(() => tsplus_module_12.noop, fileName_1 + \":36:42\")), fileName_1 + \":35:33\")(tsplus_module_14.make(fileName_1 + \":35:45\")), fileName_1 + \":34:33\")(tsplus_module_13.make(() => 0, fileName_1 + \":34:42\"));\n }\n }, fileName_1 + \":18:29\")(this.ref), fileName_1 + \":81:7\");\n };\n}\n/**\n * @tsplus fluent fncts.io.Layer isFresh\n */\nfunction isFresh_1(self) {\n tsplus_module_16.concrete(self);\n return self._tag === 1 /* LayerTag.Fresh */;\n}\nexport function makeMemoMap(__tsplusTrace) {\n return tsplus_module_3.flatMap((ref) => tsplus_module_3.succeedNow(new MemoMap(ref), __tsplusTrace), __tsplusTrace)(tsplus_module_17.makeSynchronized(() => tsplus_module_1.empty(), __tsplusTrace));\n}\n/**\n * @tsplus getter fncts.io.Layer build\n */\nexport function build(self, __tsplusTrace) {\n return tsplus_module_19.serviceWithIO((scope) => build_1(scope, __tsplusTrace)(self), tsplus_module_18.ScopeTag, __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.Layer build\n */\nfunction build_1(scope, __tsplusTrace) {\n return (self) => {\n return tsplus_module_3.flatMap(memoMap => tsplus_module_3.flatMap(run => run(memoMap), __tsplusTrace)(scope_1(scope, __tsplusTrace)(self)), __tsplusTrace)(makeMemoMap(__tsplusTrace));\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer scope\n */\nfunction scope_1(scope, __tsplusTrace) {\n return (layer) => {\n tsplus_module_16.concrete(layer);\n switch (layer._tag) {\n case 0 /* LayerTag.Fold */: {\n return tsplus_module_3.succeed(() => (memoMap) => tsplus_module_3.matchCauseIO((cause) => memoMap.getOrElseMemoize(scope, layer.failure(cause), layer.trace), (r) => memoMap.getOrElseMemoize(scope, layer.success(r), __tsplusTrace), layer.trace)(memoMap.getOrElseMemoize(scope, layer.self, layer.trace)), __tsplusTrace);\n }\n case 1 /* LayerTag.Fresh */: {\n return tsplus_module_3.succeed(() => () => build_1(scope, layer.trace)(layer.self), __tsplusTrace);\n }\n case 2 /* LayerTag.Scoped */: {\n return tsplus_module_3.succeed(() => () => tsplus_module_11.extend(() => layer.self, layer.trace)(scope), __tsplusTrace);\n }\n case 3 /* LayerTag.Defer */: {\n return tsplus_module_3.succeed(() => (memoMap) => memoMap.getOrElseMemoize(scope, layer.self(), layer.trace), __tsplusTrace);\n }\n case 4 /* LayerTag.To */: {\n return tsplus_module_3.succeed(() => (memoMap) => tsplus_module_3.flatMap((r) => tsplus_module_19.provideEnvironment(r, __tsplusTrace)(memoMap.getOrElseMemoize(scope, layer.that, layer.trace)), layer.trace)(memoMap\n .getOrElseMemoize(scope, layer.self, layer.trace)), __tsplusTrace);\n }\n case 5 /* LayerTag.ZipWith */: {\n return tsplus_module_3.succeed(() => (memoMap) => tsplus_module_3.zipWith(memoMap.getOrElseMemoize(scope, layer.that, layer.trace), layer.f, layer.trace)(memoMap\n .getOrElseMemoize(scope, layer.self, layer.trace)), __tsplusTrace);\n }\n case 6 /* LayerTag.ZipWithConcurrent */: {\n return tsplus_module_3.succeed(() => (memoMap) => tsplus_module_3.flatMap(concurrent => tsplus_module_3.flatMap(left => tsplus_module_3.flatMap(right => tsplus_module_3.map(out => out, __tsplusTrace)(tsplus_module_20.zipWithConcurrent(memoMap.getOrElseMemoize(right, layer.that, layer.trace), layer.f, layer.trace)(memoMap\n .getOrElseMemoize(left, layer.self, layer.trace))), __tsplusTrace)(concurrent.forkWith(() => scope.executionStrategy)), __tsplusTrace)(concurrent.forkWith(() => scope.executionStrategy)), __tsplusTrace)(scope.forkWith(() => tsplus_module_21.concurrent)), __tspl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BAAgB,eAAe,YAAY,gBAAgB,SAAQ,eAAc,gBAAgB,SAAQ,SAAQ,gBAAgB,SAAQ,UAAS,gBAAgB,KAAI,QAAO,KAAK,aAAa,CAAC,CAAC,iBAAiB,kBAAkB,QAAQ,iBAAiB,OAAO,MAAM,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,MAAM,KAAK,CAAC,CAAC,QACtT,iBAAiB,MAAM,MAAM,MAAM,MAAM,KAAK,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,WAAW,eAAe,MAAM,iBAAiB,CAAC,GAAG,aAAa,CAAC,CAAC,WAAW,eAAe,MAAM,iBAAiB,CAAC,GAAG,aAAa,CAAC,CAAC,MAAM,eAAe,iBAAiB,UAAU,CAAC,GAAG,aAAa;EAExR;CACJ;AACJ"}
|
package/_mjs/Layer/api.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import * as tsplus_module_9 from "@fncts/base/data/Tag/constructors";
|
|
|
13
13
|
import * as tsplus_module_10 from "@fncts/base/data/Intervals";
|
|
14
14
|
import * as tsplus_module_8 from "@fncts/io/IO/api/memoize";
|
|
15
15
|
import { Fold, Fresh, FromScoped, To, ZipWithConcurrent } from "@fncts/io/Layer/definition";
|
|
16
|
-
|
|
16
|
+
// build/esm/Layer/api.js
|
|
17
17
|
const fileName_1 = "(@fncts/io) src/Layer/api.ts";
|
|
18
18
|
const and = and_1;
|
|
19
19
|
const catchAll = catchAll_1;
|
|
@@ -311,7 +311,6 @@ function using(that, __tsplusTrace) {
|
|
|
311
311
|
function toRuntime(self) {
|
|
312
312
|
return tsplus_module_3.flatMap((environment) => tsplus_module_2.provideEnvironment(environment, fileName_1 + ":419:42")(tsplus_module_13.runtime(fileName_1 + ":419:15")), fileName_1 + ":418:60")(tsplus_module_14.scopeWith((scope) => tsplus_module_6.build_(scope, fileName_1 + ":418:44")(self), fileName_1 + ":418:22"));
|
|
313
313
|
}
|
|
314
|
-
//#endregion
|
|
315
314
|
export { and, andTo, andUsing, catchAll, compose, environment, fail, failCause, failCauseNow, failNow, flatMap, flatten, fresh, fromFunction, fromFunctionIO, fromIO, fromIOEnvironment, fromValue, halt, haltNow, map, mapError, matchCauseLayer, matchLayer, memoize, orElse, orHalt, passthrough, retry, scoped, scopedDiscard, scopedEnvironment, service, succeed, succeedEnvironment, succeedEnvironmentNow, succeedNow, to, toRuntime, using };
|
|
316
315
|
|
|
317
316
|
//# sourceMappingURL=api.mjs.map
|
package/_mjs/Layer/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/Layer/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Layer/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Environment/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_6 from \"@fncts/io/Layer/MemoMap\";\nimport * as tsplus_module_7 from \"@fncts/io/Scope/definition\";\nimport * as tsplus_module_8 from \"@fncts/io/IO/api/memoize\";\nimport * as tsplus_module_9 from \"@fncts/base/data/Tag/constructors\";\nimport * as tsplus_module_10 from \"@fncts/base/data/Intervals\";\nimport * as tsplus_module_11 from \"@fncts/base/data/Duration/api\";\nimport * as tsplus_module_12 from \"@fncts/io/Clock/api\";\nimport * as tsplus_module_13 from \"@fncts/io/IO/runtime\";\nimport * as tsplus_module_14 from \"@fncts/io/IO/api/scopeWith\";\nexport const and = and_1;\nexport const catchAll = catchAll_1;\nexport const flatMap = flatMap_1;\nexport const environment = environment_1;\nexport const failCauseNow = failCauseNow_1;\nexport const failNow = failNow_1;\nexport const fresh = fresh_1;\nexport const fromIOEnvironment = fromIOEnvironment_1;\nexport const fromIO = fromIO_1;\nexport const haltNow = haltNow_1;\nexport const matchCauseLayer = matchCauseLayer_1;\nexport const matchLayer = matchLayer_1;\nexport const scopedEnvironment = scopedEnvironment_1;\nexport const succeedEnvironmentNow = succeedEnvironmentNow_1;\nexport const succeedNow = succeedNow_1;\nexport const to = to_1;\nimport { Fold, Fresh, FromScoped, Layer, To, ZipWithConcurrent } from \"@fncts/io/Layer/definition\";\n/**\n * @tsplus pipeable fncts.io.Layer and\n */\nfunction and_1(that, __tsplusTrace) {\n return (self) => {\n return new ZipWithConcurrent(self, that, (a, b) => tsplus_module_1.union(b)(a), __tsplusTrace);\n };\n}\n/**\n * Feeds the output services of this layer into the input of the specified\n * layer, resulting in a new layer with the inputs of this layer, and the\n * outputs of both layers.\n *\n * @tsplus pipeable fncts.io.Layer andTo\n */\nexport function andTo(that, __tsplusTrace) {\n return (self) => {\n return and_1(to_1(that)(self), __tsplusTrace)(self);\n };\n}\n/**\n * Feeds the output services of this layer into the input of the specified\n * layer, resulting in a new layer with the inputs of this layer, and the\n * outputs of both layers.\n *\n * @tsplus pipeable fncts.io.Layer andTo\n */\nexport function andUsing(that, __tsplusTrace) {\n return (self) => {\n return and_1(to_1(self)(that), __tsplusTrace)(that);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer catchAll\n */\nfunction catchAll_1(f, __tsplusTrace) {\n return (self) => {\n return matchLayer_1(f, succeedEnvironmentNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer flatMap\n */\nfunction flatMap_1(f, __tsplusTrace) {\n return (self) => {\n return matchLayer_1(failNow_1, f, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer compose\n */\nexport function compose(that, __tsplusTrace) {\n return (self) => {\n return new To(self, that, __tsplusTrace);\n };\n}\n/**\n * @tsplus static fncts.io.LayerOps environment\n */\nfunction environment_1(__tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_2.environment(__tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fail\n */\nexport function fail(e, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.fail(e, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps failCause\n */\nexport function failCause(cause, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.failCause(cause, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps failCauseNow\n */\nfunction failCauseNow_1(cause, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.failCauseNow(cause, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps failNow\n */\nfunction failNow_1(e, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.failNow(e, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus getter fncts.io.Layer flatten\n */\nexport function flatten(self, tag, __tsplusTrace) {\n return flatMap_1((environment) => tsplus_module_1.get(tag)(environment), __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.Layer fresh\n */\nfunction fresh_1(self, __tsplusTrace) {\n return new Fresh(self);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromFunction\n */\nexport function fromFunction(f, \n/** @tsplus implicit local */ tagR, \n/** @tsplus implicit local */ tagA, __tsplusTrace) {\n const tagA_1 = \n /** @tsplus implicit local */ tagA;\n const tagR_1 = \n /** @tsplus implicit local */ tagR;\n return fromIOEnvironment_1(tsplus_module_2.serviceWith((service) => tsplus_module_1.add(f(service), tagA_1)(tsplus_module_1.empty), tagR_1, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromFunctionIO\n */\nexport function fromFunctionIO(f, tagR, tagA, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_2.serviceWithIO((service) => tsplus_module_3.map((a) => tsplus_module_1.add(a, tagA)(tsplus_module_1.empty), __tsplusTrace)(f(service)), tagR, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromIOEnvironment\n * @tsplus static fncts.io.LayerOps __call\n */\nfunction fromIOEnvironment_1(io, __tsplusTrace) {\n return new FromScoped(io, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromIO\n */\nfunction fromIO_1(resource, tag, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.map((a) => tsplus_module_1.add(a, tag)(tsplus_module_1.make()), __tsplusTrace)(resource), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromValue\n */\nexport function fromValue(value, tag, __tsplusTrace) {\n return fromIO_1(tsplus_module_3.succeed(value, __tsplusTrace), tag, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps halt\n */\nexport function halt(defect, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.halt(defect, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps haltNow\n */\nfunction haltNow_1(defect, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.haltNow(defect, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.Layer matchCauseLayer\n */\nfunction matchCauseLayer_1(failure, success, __tsplusTrace) {\n return (self) => {\n return new Fold(self, failure, success, __tsplusTrace);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer matchLayer\n */\nfunction matchLayer_1(failure, success, __tsplusTrace) {\n return (self) => {\n return matchCauseLayer_1((cause) => tsplus_module_5.match(failure, failCauseNow_1)(tsplus_module_4.failureOrCause(cause)), success, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer map\n */\nexport function map(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => succeedEnvironmentNow_1(f(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer mapError\n */\nexport function mapError(f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => failNow_1(f(e), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.Layer memoize\n */\nexport function memoize(self, __tsplusTrace) {\n return tsplus_module_3.map((_) => new FromScoped(_), __tsplusTrace)(tsplus_module_8.memoize(tsplus_module_2.serviceWithIO((scope) => tsplus_module_6.build_(scope, __tsplusTrace)(self), tsplus_module_7.ScopeTag, __tsplusTrace), __tsplusTrace));\n}\n/**\n * @tsplus pipeable fncts.io.Layer orElse\n */\nexport function orElse(that, __tsplusTrace) {\n return (self) => {\n return catchAll_1(() => that, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.Layer orHalt\n */\nexport function orHalt(self, __tsplusTrace) {\n return catchAll_1(haltNow_1, __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.Layer passthrough\n */\nexport function passthrough(self, __tsplusTrace) {\n return and_1(self, __tsplusTrace)(environment_1(__tsplusTrace));\n}\n/**\n * @tsplus pipeable fncts.io.Layer retry\n */\nexport function retry(schedule, __tsplusTrace) {\n return (self) => {\n const tag = tsplus_module_9.makeTag(\"fncts.io.Layer.retryState\");\n return flatMap_1((environment) => retryLoop(self, schedule, tsplus_module_1.get(tag)(environment).state, tag, __tsplusTrace), __tsplusTrace)(succeedNow_1({ state: schedule.initial }, tag, __tsplusTrace));\n };\n}\nfunction retryUpdate(schedule, e, s, tag, __tsplusTrace) {\n return fromIO_1(tsplus_module_3.flatMap((now) => tsplus_module_3.flatMap(([state, _, decision]) => decision._tag === \"Done\" /* DecisionTag.Done */\n ? tsplus_module_3.failNow(e, __tsplusTrace)\n : tsplus_module_3.as(() => ({ state }), __tsplusTrace)(tsplus_module_12.sleep(() => tsplus_module_11.fromInterval(now, tsplus_module_10.start(decision.interval)), __tsplusTrace)), __tsplusTrace)(schedule\n .step(now, e, s, __tsplusTrace)), __tsplusTrace)(tsplus_module_12.currentTime), tag, __tsplusTrace);\n}\nfunction retryLoop(self, schedule, s, tag, __tsplusTrace) {\n return catchAll_1((e) => flatMap_1((env) => fresh_1(retryLoop(self, schedule, tsplus_module_1.get(tag)(env).state, tag, __tsplusTrace), __tsplusTrace), __tsplusTrace)(retryUpdate(schedule, e, s, tag, __tsplusTrace)), __tsplusTrace)(self);\n}\n/**\n * @tsplus static fncts.io.LayerOps scopedDiscard\n */\nexport function scopedDiscard(io, __tsplusTrace) {\n return scopedEnvironment_1(() => tsplus_module_3.as(() => tsplus_module_1.empty, __tsplusTrace)(io()), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps scoped\n */\nexport function scoped(io, tag, __tsplusTrace) {\n return scopedEnvironment_1(() => tsplus_module_3.map((a) => tsplus_module_1.add(a, tag)(tsplus_module_1.empty), __tsplusTrace)(io()), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps scopedEnvironment\n */\nfunction scopedEnvironment_1(io, __tsplusTrace) {\n return new FromScoped(tsplus_module_3.defer(io, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps service\n */\nexport function service(tag, __tsplusTrace) {\n return fromIO_1(tsplus_module_2.service(tag, __tsplusTrace), tag, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps succeed\n */\nexport function succeed(resource, tag, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.succeed(() => tsplus_module_1.add(resource(), tag)(tsplus_module_1.empty), __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps succeedEnvironment\n */\nexport function succeedEnvironment(a, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.succeed(a, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps succeedEnvironmentNow\n */\nfunction succeedEnvironmentNow_1(a, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.succeedNow(a, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps succeedNow\n */\nfunction succeedNow_1(resource, tag, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.succeedNow(tsplus_module_1.add(resource, tag)(tsplus_module_1.empty), __tsplusTrace), __tsplusTrace);\n}\nfunction to_1(that, __tsplusTrace) {\n return (self) => {\n return new To(and_1(self, __tsplusTrace)(fromIOEnvironment_1(tsplus_module_2.environment(__tsplusTrace), __tsplusTrace)), that);\n };\n}\nexport function using(that, __tsplusTrace) {\n return (self) => {\n return new To(and_1(that, __tsplusTrace)(fromIOEnvironment_1(tsplus_module_2.environment(__tsplusTrace), __tsplusTrace)), self);\n };\n}\n/**\n * @tsplus getter fncts.io.Layer toRuntime\n */\nexport function toRuntime(self) {\n return tsplus_module_3.flatMap((environment) => tsplus_module_2.provideEnvironment(environment, fileName_1 + \":419:42\")(tsplus_module_13.runtime(fileName_1 + \":419:15\")), fileName_1 + \":418:60\")(tsplus_module_14.scopeWith((scope) => tsplus_module_6.build_(scope, fileName_1 + \":418:44\")(self), fileName_1 + \":418:22\"));\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAenB,MAAa,MAAM;AACnB,MAAa,WAAW;AACxB,MAAa,UAAU;AACvB,MAAa,cAAc;AAC3B,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,QAAQ;AACrB,MAAa,oBAAoB;AACjC,MAAa,SAAS;AACtB,MAAa,UAAU;AACvB,MAAa,kBAAkB;AAC/B,MAAa,aAAa;AAC1B,MAAa,oBAAoB;AACjC,MAAa,wBAAwB;AACrC,MAAa,aAAa;AAC1B,MAAa,KAAK;;;;AAKlB,SAAS,MAAM,MAAM,eAAe;AAChC,SAAQ,SAAS;AACb,SAAO,IAAI,kBAAkB,MAAM,OAAO,GAAG,MAAM,gBAAgB,MAAM,EAAE,CAAC,EAAE,EAAE,cAAc;;;;;;;;;;AAUtG,SAAgB,MAAM,MAAM,eAAe;AACvC,SAAQ,SAAS;AACb,SAAO,MAAM,KAAK,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK;;;;;;;;;;AAU3D,SAAgB,SAAS,MAAM,eAAe;AAC1C,SAA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Ac;;;;;AAK3F,SAAS,aAAa,UAAU,KAAK,eAAe;AAChD,QAAO,oBAAoB,gBAAgB,WAAW,gBAAgB,IAAI,UAAU,IAAI,CAAC,gBAAgB,MAAM,EAAE,cAAc,EAAE,cAAc;;AAEnJ,SAAS,KAAK,MAAM,eAAe;AAC/B,SAAQ,SAAS;AACb,SAAO,IAAI,GAAG,MAAM,MAAM,cAAc,CAAC,oBAAoB,gBAAgB,YAAY,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK;;;AAGvI,SAAgB,MAAM,MAAM,eAAe;AACvC,SAAQ,SAAS;AACb,SAAO,IAAI,GAAG,MAAM,MAAM,cAAc,CAAC,oBAAoB,gBAAgB,YAAY,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK;;;;;;AAMvI,SAAgB,UAAU,MAAM;AAC5B,QAAO,gBAAgB,SAAS,gBAAgB,gBAAgB,mBAAmB,aAAa,aAAa,UAAU,CAAC,iBAAiB,QAAQ,aAAa,UAAU,CAAC,EAAE,aAAa,UAAU,CAAC,iBAAiB,WAAW,UAAU,gBAAgB,OAAO,OAAO,aAAa,UAAU,CAAC,KAAK,EAAE,aAAa,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/Layer/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Layer/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Environment/api\";\nimport * as tsplus_module_2 from \"@fncts/io/IO/api/environment\";\nimport * as tsplus_module_3 from \"@fncts/io/IO/api\";\nimport * as tsplus_module_4 from \"@fncts/base/data/Cause/api\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Either/destructors\";\nimport * as tsplus_module_6 from \"@fncts/io/Layer/MemoMap\";\nimport * as tsplus_module_7 from \"@fncts/io/Scope/definition\";\nimport * as tsplus_module_8 from \"@fncts/io/IO/api/memoize\";\nimport * as tsplus_module_9 from \"@fncts/base/data/Tag/constructors\";\nimport * as tsplus_module_10 from \"@fncts/base/data/Intervals\";\nimport * as tsplus_module_11 from \"@fncts/base/data/Duration/api\";\nimport * as tsplus_module_12 from \"@fncts/io/Clock/api\";\nimport * as tsplus_module_13 from \"@fncts/io/IO/runtime\";\nimport * as tsplus_module_14 from \"@fncts/io/IO/api/scopeWith\";\nexport const and = and_1;\nexport const catchAll = catchAll_1;\nexport const flatMap = flatMap_1;\nexport const environment = environment_1;\nexport const failCauseNow = failCauseNow_1;\nexport const failNow = failNow_1;\nexport const fresh = fresh_1;\nexport const fromIOEnvironment = fromIOEnvironment_1;\nexport const fromIO = fromIO_1;\nexport const haltNow = haltNow_1;\nexport const matchCauseLayer = matchCauseLayer_1;\nexport const matchLayer = matchLayer_1;\nexport const scopedEnvironment = scopedEnvironment_1;\nexport const succeedEnvironmentNow = succeedEnvironmentNow_1;\nexport const succeedNow = succeedNow_1;\nexport const to = to_1;\nimport { Fold, Fresh, FromScoped, Layer, To, ZipWithConcurrent } from \"@fncts/io/Layer/definition\";\n/**\n * @tsplus pipeable fncts.io.Layer and\n */\nfunction and_1(that, __tsplusTrace) {\n return (self) => {\n return new ZipWithConcurrent(self, that, (a, b) => tsplus_module_1.union(b)(a), __tsplusTrace);\n };\n}\n/**\n * Feeds the output services of this layer into the input of the specified\n * layer, resulting in a new layer with the inputs of this layer, and the\n * outputs of both layers.\n *\n * @tsplus pipeable fncts.io.Layer andTo\n */\nexport function andTo(that, __tsplusTrace) {\n return (self) => {\n return and_1(to_1(that)(self), __tsplusTrace)(self);\n };\n}\n/**\n * Feeds the output services of this layer into the input of the specified\n * layer, resulting in a new layer with the inputs of this layer, and the\n * outputs of both layers.\n *\n * @tsplus pipeable fncts.io.Layer andTo\n */\nexport function andUsing(that, __tsplusTrace) {\n return (self) => {\n return and_1(to_1(self)(that), __tsplusTrace)(that);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer catchAll\n */\nfunction catchAll_1(f, __tsplusTrace) {\n return (self) => {\n return matchLayer_1(f, succeedEnvironmentNow_1, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer flatMap\n */\nfunction flatMap_1(f, __tsplusTrace) {\n return (self) => {\n return matchLayer_1(failNow_1, f, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer compose\n */\nexport function compose(that, __tsplusTrace) {\n return (self) => {\n return new To(self, that, __tsplusTrace);\n };\n}\n/**\n * @tsplus static fncts.io.LayerOps environment\n */\nfunction environment_1(__tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_2.environment(__tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fail\n */\nexport function fail(e, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.fail(e, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps failCause\n */\nexport function failCause(cause, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.failCause(cause, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps failCauseNow\n */\nfunction failCauseNow_1(cause, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.failCauseNow(cause, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps failNow\n */\nfunction failNow_1(e, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.failNow(e, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus getter fncts.io.Layer flatten\n */\nexport function flatten(self, tag, __tsplusTrace) {\n return flatMap_1((environment) => tsplus_module_1.get(tag)(environment), __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.Layer fresh\n */\nfunction fresh_1(self, __tsplusTrace) {\n return new Fresh(self);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromFunction\n */\nexport function fromFunction(f, \n/** @tsplus implicit local */ tagR, \n/** @tsplus implicit local */ tagA, __tsplusTrace) {\n const tagA_1 = \n /** @tsplus implicit local */ tagA;\n const tagR_1 = \n /** @tsplus implicit local */ tagR;\n return fromIOEnvironment_1(tsplus_module_2.serviceWith((service) => tsplus_module_1.add(f(service), tagA_1)(tsplus_module_1.empty), tagR_1, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromFunctionIO\n */\nexport function fromFunctionIO(f, tagR, tagA, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_2.serviceWithIO((service) => tsplus_module_3.map((a) => tsplus_module_1.add(a, tagA)(tsplus_module_1.empty), __tsplusTrace)(f(service)), tagR, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromIOEnvironment\n * @tsplus static fncts.io.LayerOps __call\n */\nfunction fromIOEnvironment_1(io, __tsplusTrace) {\n return new FromScoped(io, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromIO\n */\nfunction fromIO_1(resource, tag, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.map((a) => tsplus_module_1.add(a, tag)(tsplus_module_1.make()), __tsplusTrace)(resource), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps fromValue\n */\nexport function fromValue(value, tag, __tsplusTrace) {\n return fromIO_1(tsplus_module_3.succeed(value, __tsplusTrace), tag, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps halt\n */\nexport function halt(defect, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.halt(defect, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps haltNow\n */\nfunction haltNow_1(defect, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.haltNow(defect, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus pipeable fncts.io.Layer matchCauseLayer\n */\nfunction matchCauseLayer_1(failure, success, __tsplusTrace) {\n return (self) => {\n return new Fold(self, failure, success, __tsplusTrace);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer matchLayer\n */\nfunction matchLayer_1(failure, success, __tsplusTrace) {\n return (self) => {\n return matchCauseLayer_1((cause) => tsplus_module_5.match(failure, failCauseNow_1)(tsplus_module_4.failureOrCause(cause)), success, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer map\n */\nexport function map(f, __tsplusTrace) {\n return (self) => {\n return flatMap_1((a) => succeedEnvironmentNow_1(f(a), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus pipeable fncts.io.Layer mapError\n */\nexport function mapError(f, __tsplusTrace) {\n return (self) => {\n return catchAll_1((e) => failNow_1(f(e), __tsplusTrace), __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.Layer memoize\n */\nexport function memoize(self, __tsplusTrace) {\n return tsplus_module_3.map((_) => new FromScoped(_), __tsplusTrace)(tsplus_module_8.memoize(tsplus_module_2.serviceWithIO((scope) => tsplus_module_6.build_(scope, __tsplusTrace)(self), tsplus_module_7.ScopeTag, __tsplusTrace), __tsplusTrace));\n}\n/**\n * @tsplus pipeable fncts.io.Layer orElse\n */\nexport function orElse(that, __tsplusTrace) {\n return (self) => {\n return catchAll_1(() => that, __tsplusTrace)(self);\n };\n}\n/**\n * @tsplus getter fncts.io.Layer orHalt\n */\nexport function orHalt(self, __tsplusTrace) {\n return catchAll_1(haltNow_1, __tsplusTrace)(self);\n}\n/**\n * @tsplus getter fncts.io.Layer passthrough\n */\nexport function passthrough(self, __tsplusTrace) {\n return and_1(self, __tsplusTrace)(environment_1(__tsplusTrace));\n}\n/**\n * @tsplus pipeable fncts.io.Layer retry\n */\nexport function retry(schedule, __tsplusTrace) {\n return (self) => {\n const tag = tsplus_module_9.makeTag(\"fncts.io.Layer.retryState\");\n return flatMap_1((environment) => retryLoop(self, schedule, tsplus_module_1.get(tag)(environment).state, tag, __tsplusTrace), __tsplusTrace)(succeedNow_1({ state: schedule.initial }, tag, __tsplusTrace));\n };\n}\nfunction retryUpdate(schedule, e, s, tag, __tsplusTrace) {\n return fromIO_1(tsplus_module_3.flatMap((now) => tsplus_module_3.flatMap(([state, _, decision]) => decision._tag === \"Done\" /* DecisionTag.Done */\n ? tsplus_module_3.failNow(e, __tsplusTrace)\n : tsplus_module_3.as(() => ({ state }), __tsplusTrace)(tsplus_module_12.sleep(() => tsplus_module_11.fromInterval(now, tsplus_module_10.start(decision.interval)), __tsplusTrace)), __tsplusTrace)(schedule\n .step(now, e, s, __tsplusTrace)), __tsplusTrace)(tsplus_module_12.currentTime), tag, __tsplusTrace);\n}\nfunction retryLoop(self, schedule, s, tag, __tsplusTrace) {\n return catchAll_1((e) => flatMap_1((env) => fresh_1(retryLoop(self, schedule, tsplus_module_1.get(tag)(env).state, tag, __tsplusTrace), __tsplusTrace), __tsplusTrace)(retryUpdate(schedule, e, s, tag, __tsplusTrace)), __tsplusTrace)(self);\n}\n/**\n * @tsplus static fncts.io.LayerOps scopedDiscard\n */\nexport function scopedDiscard(io, __tsplusTrace) {\n return scopedEnvironment_1(() => tsplus_module_3.as(() => tsplus_module_1.empty, __tsplusTrace)(io()), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps scoped\n */\nexport function scoped(io, tag, __tsplusTrace) {\n return scopedEnvironment_1(() => tsplus_module_3.map((a) => tsplus_module_1.add(a, tag)(tsplus_module_1.empty), __tsplusTrace)(io()), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps scopedEnvironment\n */\nfunction scopedEnvironment_1(io, __tsplusTrace) {\n return new FromScoped(tsplus_module_3.defer(io, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps service\n */\nexport function service(tag, __tsplusTrace) {\n return fromIO_1(tsplus_module_2.service(tag, __tsplusTrace), tag, __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps succeed\n */\nexport function succeed(resource, tag, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.succeed(() => tsplus_module_1.add(resource(), tag)(tsplus_module_1.empty), __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps succeedEnvironment\n */\nexport function succeedEnvironment(a, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.succeed(a, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps succeedEnvironmentNow\n */\nfunction succeedEnvironmentNow_1(a, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.succeedNow(a, __tsplusTrace), __tsplusTrace);\n}\n/**\n * @tsplus static fncts.io.LayerOps succeedNow\n */\nfunction succeedNow_1(resource, tag, __tsplusTrace) {\n return fromIOEnvironment_1(tsplus_module_3.succeedNow(tsplus_module_1.add(resource, tag)(tsplus_module_1.empty), __tsplusTrace), __tsplusTrace);\n}\nfunction to_1(that, __tsplusTrace) {\n return (self) => {\n return new To(and_1(self, __tsplusTrace)(fromIOEnvironment_1(tsplus_module_2.environment(__tsplusTrace), __tsplusTrace)), that);\n };\n}\nexport function using(that, __tsplusTrace) {\n return (self) => {\n return new To(and_1(that, __tsplusTrace)(fromIOEnvironment_1(tsplus_module_2.environment(__tsplusTrace), __tsplusTrace)), self);\n };\n}\n/**\n * @tsplus getter fncts.io.Layer toRuntime\n */\nexport function toRuntime(self) {\n return tsplus_module_3.flatMap((environment) => tsplus_module_2.provideEnvironment(environment, fileName_1 + \":419:42\")(tsplus_module_13.runtime(fileName_1 + \":419:15\")), fileName_1 + \":418:60\")(tsplus_module_14.scopeWith((scope) => tsplus_module_6.build_(scope, fileName_1 + \":418:44\")(self), fileName_1 + \":418:22\"));\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,aAAa;AAenB,MAAa,MAAM;AACnB,MAAa,WAAW;AACxB,MAAa,UAAU;AACvB,MAAa,cAAc;AAC3B,MAAa,eAAe;AAC5B,MAAa,UAAU;AACvB,MAAa,QAAQ;AACrB,MAAa,oBAAoB;AACjC,MAAa,SAAS;AACtB,MAAa,UAAU;AACvB,MAAa,kBAAkB;AAC/B,MAAa,aAAa;A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AO,IAAI,GAAG,MAAM,MAAM,aAAa,CAAC,CAAC,oBAAoB,gBAAgB,YAAY,aAAa,GAAG,aAAa,CAAC,GAAG,IAAI;CAClI;AACJ;;;;AAIA,SAAgB,UAAU,MAAM;CAC5B,OAAO,gBAAgB,SAAS,gBAAgB,gBAAgB,mBAAmB,aAAa,aAAa,SAAS,CAAC,CAAC,iBAAiB,QAAQ,aAAa,SAAS,CAAC,GAAG,aAAa,SAAS,CAAC,CAAC,iBAAiB,WAAW,UAAU,gBAAgB,OAAO,OAAO,aAAa,SAAS,CAAC,CAAC,IAAI,GAAG,aAAa,SAAS,CAAC;AACjU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// build/esm/Layer/definition.js
|
|
2
2
|
const LayerVariance = Symbol.for("fncts.io.Layer.Variance");
|
|
3
3
|
const LayerHash = Symbol.for("fncts.io.Layer.Hash");
|
|
4
4
|
/**
|
|
@@ -100,7 +100,6 @@ var ZipWithConcurrent = class extends Layer {
|
|
|
100
100
|
this.trace = trace;
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
-
//#endregion
|
|
104
103
|
export { Defer, Fold, Fresh, FromScoped, Layer, LayerHash, LayerVariance, To, ZipWith, ZipWithConcurrent, concrete };
|
|
105
104
|
|
|
106
105
|
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/Layer/definition.js"],"sourcesContent":["export const LayerVariance = Symbol.for(\"fncts.io.Layer.Variance\");\nexport const LayerHash = Symbol.for(\"fncts.io.Layer.Hash\");\n/**\n * @tsplus type fncts.io.Layer\n * @tsplus companion fncts.io.LayerOps\n */\nexport class Layer {\n [LayerHash] = Symbol();\n setKey(hash) {\n this[LayerHash] = hash;\n return this;\n }\n}\n/**\n * @tsplus fluent fncts.io.Layer concrete\n */\nexport function concrete(self) {\n //\n}\nexport class Fold extends Layer {\n self;\n failure;\n success;\n trace;\n _tag = 0 /* LayerTag.Fold */;\n constructor(self, failure, success, trace) {\n super();\n this.self = self;\n this.failure = failure;\n this.success = success;\n this.trace = trace;\n }\n}\nexport class Fresh extends Layer {\n self;\n trace;\n _tag = 1 /* LayerTag.Fresh */;\n constructor(self, trace) {\n super();\n this.self = self;\n this.trace = trace;\n }\n}\nexport class FromScoped extends Layer {\n self;\n trace;\n _tag = 2 /* LayerTag.Scoped */;\n constructor(self, trace) {\n super();\n this.self = self;\n this.trace = trace;\n }\n}\nexport class Defer extends Layer {\n self;\n trace;\n _tag = 3 /* LayerTag.Defer */;\n constructor(self, trace) {\n super();\n this.self = self;\n this.trace = trace;\n }\n}\nexport class To extends Layer {\n self;\n that;\n trace;\n _tag = 4 /* LayerTag.To */;\n constructor(self, that, trace) {\n super();\n this.self = self;\n this.that = that;\n this.trace = trace;\n }\n}\nexport class ZipWith extends Layer {\n self;\n that;\n f;\n trace;\n _tag = 5 /* LayerTag.ZipWith */;\n constructor(self, that, f, trace) {\n super();\n this.self = self;\n this.that = that;\n this.f = f;\n this.trace = trace;\n }\n}\nexport class ZipWithConcurrent extends Layer {\n self;\n that;\n f;\n trace;\n _tag = 6 /* LayerTag.ZipWithConcurrent */;\n constructor(self, that, f, trace) {\n super();\n this.self = self;\n this.that = that;\n this.f = f;\n this.trace = trace;\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,gBAAgB,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/Layer/definition.js"],"sourcesContent":["export const LayerVariance = Symbol.for(\"fncts.io.Layer.Variance\");\nexport const LayerHash = Symbol.for(\"fncts.io.Layer.Hash\");\n/**\n * @tsplus type fncts.io.Layer\n * @tsplus companion fncts.io.LayerOps\n */\nexport class Layer {\n [LayerHash] = Symbol();\n setKey(hash) {\n this[LayerHash] = hash;\n return this;\n }\n}\n/**\n * @tsplus fluent fncts.io.Layer concrete\n */\nexport function concrete(self) {\n //\n}\nexport class Fold extends Layer {\n self;\n failure;\n success;\n trace;\n _tag = 0 /* LayerTag.Fold */;\n constructor(self, failure, success, trace) {\n super();\n this.self = self;\n this.failure = failure;\n this.success = success;\n this.trace = trace;\n }\n}\nexport class Fresh extends Layer {\n self;\n trace;\n _tag = 1 /* LayerTag.Fresh */;\n constructor(self, trace) {\n super();\n this.self = self;\n this.trace = trace;\n }\n}\nexport class FromScoped extends Layer {\n self;\n trace;\n _tag = 2 /* LayerTag.Scoped */;\n constructor(self, trace) {\n super();\n this.self = self;\n this.trace = trace;\n }\n}\nexport class Defer extends Layer {\n self;\n trace;\n _tag = 3 /* LayerTag.Defer */;\n constructor(self, trace) {\n super();\n this.self = self;\n this.trace = trace;\n }\n}\nexport class To extends Layer {\n self;\n that;\n trace;\n _tag = 4 /* LayerTag.To */;\n constructor(self, that, trace) {\n super();\n this.self = self;\n this.that = that;\n this.trace = trace;\n }\n}\nexport class ZipWith extends Layer {\n self;\n that;\n f;\n trace;\n _tag = 5 /* LayerTag.ZipWith */;\n constructor(self, that, f, trace) {\n super();\n this.self = self;\n this.that = that;\n this.f = f;\n this.trace = trace;\n }\n}\nexport class ZipWithConcurrent extends Layer {\n self;\n that;\n f;\n trace;\n _tag = 6 /* LayerTag.ZipWithConcurrent */;\n constructor(self, that, f, trace) {\n super();\n this.self = self;\n this.that = that;\n this.f = f;\n this.trace = trace;\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,gBAAgB,OAAO,IAAI,yBAAyB;AACjE,MAAa,YAAY,OAAO,IAAI,qBAAqB;;;;;AAKzD,IAAa,QAAb,MAAmB;CACf,CAAC,aAAa,OAAO;CACrB,OAAO,MAAM;EACT,KAAK,aAAa;EAClB,OAAO;CACX;AACJ;;;;AAIA,SAAgB,SAAS,MAAM,CAE/B;AACA,IAAa,OAAb,cAA0B,MAAM;CAC5B;CACA;CACA;CACA;CACA,OAAO;CACP,YAAY,MAAM,SAAS,SAAS,OAAO;EACvC,MAAM;EACN,KAA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,6 @@ const Trace = new LogLevel(0, "TRACE", 7);
|
|
|
81
81
|
* @tsplus static fncts.LogLevelOps None
|
|
82
82
|
*/
|
|
83
83
|
const None = new LogLevel(Number.MAX_SAFE_INTEGER, "NONE", 7);
|
|
84
|
-
//#endregion
|
|
85
84
|
export { All, Debug, Error, Fatal, Info, LogLevel, None, Trace, Warning, gt, gte, lt, lte };
|
|
86
85
|
|
|
87
86
|
//# sourceMappingURL=LogLevel.mjs.map
|
package/_mjs/LogLevel.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogLevel.mjs","names":[],"sources":["../esm/LogLevel.js"],"sourcesContent":["/**\n * @tsplus type fncts.LogLevel\n * @tsplus companion fncts.LogLevelOps\n */\nexport class LogLevel {\n ordinal;\n label;\n syslog;\n constructor(ordinal, label, syslog) {\n this.ordinal = ordinal;\n this.label = label;\n this.syslog = syslog;\n }\n}\n/**\n * @tsplus pipeable fncts.LogLevel lt\n * @tsplus pipeable-operator fncts.LogLevel <\n */\nexport function lt(that) {\n return (self) => {\n return self.ordinal < that.ordinal;\n };\n}\n/**\n * @tsplus pipeable fncts.LogLevel lte\n * @tsplus pipeable-operator fncts.LogLevel <=\n */\nexport function lte(that) {\n return (self) => {\n return self.ordinal <= that.ordinal;\n };\n}\n/**\n * @tsplus pipeable fncts.LogLevel gte\n * @tsplus pipeable-operator fncts.LogLevel >=\n */\nexport function gte(that) {\n return (self) => {\n return self.ordinal >= that.ordinal;\n };\n}\n/**\n * @tsplus pipeable fncts.LogLevel gt\n * @tsplus pipeable-operator fncts.LogLevel >\n */\nexport function gt(that) {\n return (self) => {\n return self.ordinal > that.ordinal;\n };\n}\n/**\n * @tsplus static fncts.LogLevelOps All\n */\nexport const All = new LogLevel(Number.MIN_SAFE_INTEGER, \"ALL\", 0);\n/**\n * @tsplus static fncts.LogLevelOps Fatal\n */\nexport const Fatal = new LogLevel(50000, \"FATAL\", 2);\n/**\n * @tsplus static fncts.LogLevelOps Error\n */\nexport const Error = new LogLevel(40000, \"ERROR\", 3);\n/**\n * @tsplus static fncts.LogLevelOps Warning\n */\nexport const Warning = new LogLevel(30000, \"WARN\", 4);\n/**\n * @tsplus static fncts.LogLevelOps Info\n */\nexport const Info = new LogLevel(20000, \"INFO\", 6);\n/**\n * @tsplus static fncts.LogLevelOps Debug\n */\nexport const Debug = new LogLevel(10000, \"DEBUG\", 7);\n/**\n * @tsplus static fncts.LogLevelOps Trace\n */\nexport const Trace = new LogLevel(0, \"TRACE\", 7);\n/**\n * @tsplus static fncts.LogLevelOps None\n */\nexport const None = new LogLevel(Number.MAX_SAFE_INTEGER, \"NONE\", 7);\n//# sourceMappingURL=LogLevel.js.map"],"mappings":";;;;;AAIA,IAAa,WAAb,MAAsB;CAClB;CACA;CACA;CACA,YAAY,SAAS,OAAO,QAAQ;
|
|
1
|
+
{"version":3,"file":"LogLevel.mjs","names":[],"sources":["../esm/LogLevel.js"],"sourcesContent":["/**\n * @tsplus type fncts.LogLevel\n * @tsplus companion fncts.LogLevelOps\n */\nexport class LogLevel {\n ordinal;\n label;\n syslog;\n constructor(ordinal, label, syslog) {\n this.ordinal = ordinal;\n this.label = label;\n this.syslog = syslog;\n }\n}\n/**\n * @tsplus pipeable fncts.LogLevel lt\n * @tsplus pipeable-operator fncts.LogLevel <\n */\nexport function lt(that) {\n return (self) => {\n return self.ordinal < that.ordinal;\n };\n}\n/**\n * @tsplus pipeable fncts.LogLevel lte\n * @tsplus pipeable-operator fncts.LogLevel <=\n */\nexport function lte(that) {\n return (self) => {\n return self.ordinal <= that.ordinal;\n };\n}\n/**\n * @tsplus pipeable fncts.LogLevel gte\n * @tsplus pipeable-operator fncts.LogLevel >=\n */\nexport function gte(that) {\n return (self) => {\n return self.ordinal >= that.ordinal;\n };\n}\n/**\n * @tsplus pipeable fncts.LogLevel gt\n * @tsplus pipeable-operator fncts.LogLevel >\n */\nexport function gt(that) {\n return (self) => {\n return self.ordinal > that.ordinal;\n };\n}\n/**\n * @tsplus static fncts.LogLevelOps All\n */\nexport const All = new LogLevel(Number.MIN_SAFE_INTEGER, \"ALL\", 0);\n/**\n * @tsplus static fncts.LogLevelOps Fatal\n */\nexport const Fatal = new LogLevel(50000, \"FATAL\", 2);\n/**\n * @tsplus static fncts.LogLevelOps Error\n */\nexport const Error = new LogLevel(40000, \"ERROR\", 3);\n/**\n * @tsplus static fncts.LogLevelOps Warning\n */\nexport const Warning = new LogLevel(30000, \"WARN\", 4);\n/**\n * @tsplus static fncts.LogLevelOps Info\n */\nexport const Info = new LogLevel(20000, \"INFO\", 6);\n/**\n * @tsplus static fncts.LogLevelOps Debug\n */\nexport const Debug = new LogLevel(10000, \"DEBUG\", 7);\n/**\n * @tsplus static fncts.LogLevelOps Trace\n */\nexport const Trace = new LogLevel(0, \"TRACE\", 7);\n/**\n * @tsplus static fncts.LogLevelOps None\n */\nexport const None = new LogLevel(Number.MAX_SAFE_INTEGER, \"NONE\", 7);\n//# sourceMappingURL=LogLevel.js.map"],"mappings":";;;;;AAIA,IAAa,WAAb,MAAsB;CAClB;CACA;CACA;CACA,YAAY,SAAS,OAAO,QAAQ;EAChC,KAAK,UAAU;EACf,KAAK,QAAQ;EACb,KAAK,SAAS;CAClB;AACJ;;;;;AAKA,SAAgB,GAAG,MAAM;CACrB,QAAQ,SAAS;EACb,OAAO,KAAK,UAAU,KAAK;CAC/B;AACJ;;;;;AAKA,SAAgB,IAAI,MAAM;CACtB,QAAQ,SAAS;EACb,OAAO,KAAK,WAAW,KAAK;CAChC;AACJ;;;;;AAKA,SAAgB,IAAI,MAAM;CACtB,QAAQ,SAAS;EACb,OAAO,KAAK,WAAW,KAAK;CAChC;AACJ;;;;;AAKA,SAAgB,GAAG,MAAM;CACrB,QAAQ,SAAS;EACb,OAAO,KAAK,UAAU,KAAK;CAC/B;AACJ;;;;AAIA,MAAa,MAAM,IAAI,SAAS,OAAO,kBAAkB,OAAO,CAAC;;;;AAIjE,MAAa,QAAQ,IAAI,SAAS,KAAO,SAAS,CAAC;;;;AAInD,MAAa,QAAQ,IAAI,SAAS,KAAO,SAAS,CAAC;;;;AAInD,MAAa,UAAU,IAAI,SAAS,KAAO,QAAQ,CAAC;;;;AAIpD,MAAa,OAAO,IAAI,SAAS,KAAO,QAAQ,CAAC;;;;AAIjD,MAAa,QAAQ,IAAI,SAAS,KAAO,SAAS,CAAC;;;;AAInD,MAAa,QAAQ,IAAI,SAAS,GAAG,SAAS,CAAC;;;;AAI/C,MAAa,OAAO,IAAI,SAAS,OAAO,kBAAkB,QAAQ,CAAC"}
|
package/_mjs/LogSpan.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// build/esm/LogSpan.js
|
|
2
2
|
/**
|
|
3
3
|
* @tsplus type fncts.LogSpan
|
|
4
4
|
* @tsplus companion fncts.LogSpanOps
|
|
@@ -29,7 +29,6 @@ function render(now) {
|
|
|
29
29
|
return s;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { LogSpan, render };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=LogSpan.mjs.map
|
package/_mjs/LogSpan.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogSpan.mjs","names":[],"sources":["../esm/LogSpan.js"],"sourcesContent":["/**\n * @tsplus type fncts.LogSpan\n * @tsplus companion fncts.LogSpanOps\n */\nexport class LogSpan {\n label;\n startTime;\n constructor(label, startTime) {\n this.label = label;\n this.startTime = startTime;\n }\n}\n/**\n * @tsplus pipeable fncts.LogSpan render\n */\nexport function render(now) {\n return (self) => {\n let s = \"\";\n if (self.label.indexOf(\" \") < 0) {\n s += self.label;\n }\n else {\n s += '\"';\n s += self.label;\n s += '\"';\n }\n s += \"=\";\n s += (now - self.startTime).toString();\n s += \"ms\";\n return s;\n };\n}\n//# sourceMappingURL=LogSpan.js.map"],"mappings":";;;;;AAIA,IAAa,UAAb,MAAqB;CACjB;CACA;CACA,YAAY,OAAO,WAAW;
|
|
1
|
+
{"version":3,"file":"LogSpan.mjs","names":[],"sources":["../esm/LogSpan.js"],"sourcesContent":["/**\n * @tsplus type fncts.LogSpan\n * @tsplus companion fncts.LogSpanOps\n */\nexport class LogSpan {\n label;\n startTime;\n constructor(label, startTime) {\n this.label = label;\n this.startTime = startTime;\n }\n}\n/**\n * @tsplus pipeable fncts.LogSpan render\n */\nexport function render(now) {\n return (self) => {\n let s = \"\";\n if (self.label.indexOf(\" \") < 0) {\n s += self.label;\n }\n else {\n s += '\"';\n s += self.label;\n s += '\"';\n }\n s += \"=\";\n s += (now - self.startTime).toString();\n s += \"ms\";\n return s;\n };\n}\n//# sourceMappingURL=LogSpan.js.map"],"mappings":";;;;;AAIA,IAAa,UAAb,MAAqB;CACjB;CACA;CACA,YAAY,OAAO,WAAW;EAC1B,KAAK,QAAQ;EACb,KAAK,YAAY;CACrB;AACJ;;;;AAIA,SAAgB,OAAO,KAAK;CACxB,QAAQ,SAAS;EACb,IAAI,IAAI;EACR,IAAI,KAAK,MAAM,QAAQ,GAAG,IAAI,GAC1B,KAAK,KAAK;OAET;GACD,KAAK;GACL,KAAK,KAAK;GACV,KAAK;EACT;EACA,KAAK;EACL,MAAM,MAAM,KAAK,UAAA,CAAW,SAAS;EACrC,KAAK;EACL,OAAO;CACX;AACJ"}
|
package/_mjs/Logger/api.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as tsplus_module_2 from "@fncts/base/data/Maybe/constructors";
|
|
2
2
|
import * as tsplus_module_1 from "@fncts/io/Logger/definition";
|
|
3
|
-
|
|
3
|
+
// build/esm/Logger/api.js
|
|
4
4
|
const fileName_1 = "(@fncts/io) src/Logger/api.ts";
|
|
5
5
|
/**
|
|
6
6
|
* @tsplus pipeable fncts.io.Logger filterLogLevel
|
|
@@ -21,7 +21,6 @@ function map(f) {
|
|
|
21
21
|
return new tsplus_module_1.Logger((trace, fiberId, logLevel, message, cause, context, spans, annotations) => f(self.log(trace, fiberId, logLevel, message, cause, context, spans, annotations)));
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { filterLogLevel, map };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=api.mjs.map
|
package/_mjs/Logger/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/Logger/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Logger/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/Logger/definition\";\nimport * as tsplus_module_2 from \"@fncts/base/data/Maybe/constructors\";\n/**\n * @tsplus pipeable fncts.io.Logger filterLogLevel\n */\nexport function filterLogLevel(p) {\n return (self) => {\n return new tsplus_module_1.Logger((trace, fiberId, logLevel, message, cause, context, spans, annotations) => {\n if (p(logLevel)) {\n return tsplus_module_2.just(self.log(trace, fiberId, logLevel, message, cause, context, spans, annotations), fileName_1 + \":8:20\");\n }\n else {\n return tsplus_module_2.nothing(fileName_1 + \":10:23\");\n }\n });\n };\n}\n/**\n * @tsplus pipeable fncts.io.Logger map\n */\nexport function map(f) {\n return (self) => {\n return new tsplus_module_1.Logger((trace, fiberId, logLevel, message, cause, context, spans, annotations) => f(self.log(trace, fiberId, logLevel, message, cause, context, spans, annotations)));\n };\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;AAAA,MAAM,aAAa;;;;AAMnB,SAAgB,eAAe,GAAG;
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/Logger/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/Logger/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/io/Logger/definition\";\nimport * as tsplus_module_2 from \"@fncts/base/data/Maybe/constructors\";\n/**\n * @tsplus pipeable fncts.io.Logger filterLogLevel\n */\nexport function filterLogLevel(p) {\n return (self) => {\n return new tsplus_module_1.Logger((trace, fiberId, logLevel, message, cause, context, spans, annotations) => {\n if (p(logLevel)) {\n return tsplus_module_2.just(self.log(trace, fiberId, logLevel, message, cause, context, spans, annotations), fileName_1 + \":8:20\");\n }\n else {\n return tsplus_module_2.nothing(fileName_1 + \":10:23\");\n }\n });\n };\n}\n/**\n * @tsplus pipeable fncts.io.Logger map\n */\nexport function map(f) {\n return (self) => {\n return new tsplus_module_1.Logger((trace, fiberId, logLevel, message, cause, context, spans, annotations) => f(self.log(trace, fiberId, logLevel, message, cause, context, spans, annotations)));\n };\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;AAAA,MAAM,aAAa;;;;AAMnB,SAAgB,eAAe,GAAG;CAC9B,QAAQ,SAAS;EACb,OAAO,IAAI,gBAAgB,QAAQ,OAAO,SAAS,UAAU,SAAS,OAAO,SAAS,OAAO,gBAAgB;GACzG,IAAI,EAAE,QAAQ,GACV,OAAO,gBAAgB,KAAK,KAAK,IAAI,OAAO,SAAS,UAAU,SAAS,OAAO,SAAS,OAAO,WAAW,GAAG,aAAa,OAAO;QAGjI,OAAO,gBAAgB,QAAQ,aAAa,QAAQ;EAE5D,CAAC;CACL;AACJ;;;;AAIA,SAAgB,IAAI,GAAG;CACnB,QAAQ,SAAS;EACb,OAAO,IAAI,gBAAgB,QAAQ,OAAO,SAAS,UAAU,SAAS,OAAO,SAAS,OAAO,gBAAgB,EAAE,KAAK,IAAI,OAAO,SAAS,UAAU,SAAS,OAAO,SAAS,OAAO,WAAW,CAAC,CAAC;CACnM;AACJ"}
|
|
@@ -3,7 +3,7 @@ import * as tsplus_module_3 from "@fncts/base/collection/immutable/List/definiti
|
|
|
3
3
|
import * as tsplus_module_1 from "@fncts/io/Logger/definition";
|
|
4
4
|
import * as tsplus_module_4 from "@fncts/io/LogSpan";
|
|
5
5
|
import * as tsplus_module_5 from "@fncts/base/data/TraceElement/definition";
|
|
6
|
-
|
|
6
|
+
// build/esm/Logger/constructors.js
|
|
7
7
|
/**
|
|
8
8
|
* @tsplus static fncts.io.LoggerOps defaultString
|
|
9
9
|
*/
|
|
@@ -48,7 +48,6 @@ function quoted(label) {
|
|
|
48
48
|
return s;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { defaultString, none };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=constructors.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constructors.mjs","names":[],"sources":["../../esm/Logger/constructors.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/io/Logger/definition\";\nimport * as tsplus_module_2 from \"@fncts/base/data/FiberId/api\";\nimport * as tsplus_module_3 from \"@fncts/base/collection/immutable/List/definition\";\nimport * as tsplus_module_4 from \"@fncts/io/LogSpan\";\nimport * as tsplus_module_5 from \"@fncts/base/data/TraceElement/definition\";\n/**\n * @tsplus static fncts.io.LoggerOps defaultString\n */\nexport const defaultString = new tsplus_module_1.Logger((trace, fiberId, logLevel, message, cause, context, spans, annotations) => {\n let s = \"\";\n const nowMillis = Date.now();\n const now = new Date(nowMillis);\n s += \"timestamp=\";\n s += now.toISOString();\n s += \" level=\";\n s += logLevel.label;\n s += \" thread=#\";\n s += tsplus_module_2.threadName(fiberId);\n s += ' message=\"';\n s += message();\n s += '\"';\n if (tsplus_module_3.isNonEmpty(spans)) {\n let first = true;\n for (const span of spans) {\n if (first) {\n first = false;\n }\n else {\n s += \" \";\n }\n s += tsplus_module_4.render(nowMillis)(span);\n }\n }\n if (trace._tag === \"SourceLocation\") {\n s += \" location=\";\n s += quoted(tsplus_module_5.show(trace));\n }\n // TODO: render Cause, and Annotations\n return s;\n});\n/**\n * @tsplus fncts.io.Logger none\n */\nexport const none = new tsplus_module_1.Logger(() => undefined);\nfunction quoted(label) {\n if (label.indexOf(\" \") < 0) {\n return label;\n }\n else {\n let s = \"\";\n s += '\"';\n s += label;\n s += '\"';\n return s;\n }\n}\n//# sourceMappingURL=constructors.js.map"],"mappings":";;;;;;;;;AAQA,MAAa,gBAAgB,IAAI,gBAAgB,QAAQ,OAAO,SAAS,UAAU,SAAS,OAAO,SAAS,OAAO,gBAAgB;CAC/H,IAAI,IAAI;CACR,MAAM,YAAY,KAAK,
|
|
1
|
+
{"version":3,"file":"constructors.mjs","names":[],"sources":["../../esm/Logger/constructors.js"],"sourcesContent":["import * as tsplus_module_1 from \"@fncts/io/Logger/definition\";\nimport * as tsplus_module_2 from \"@fncts/base/data/FiberId/api\";\nimport * as tsplus_module_3 from \"@fncts/base/collection/immutable/List/definition\";\nimport * as tsplus_module_4 from \"@fncts/io/LogSpan\";\nimport * as tsplus_module_5 from \"@fncts/base/data/TraceElement/definition\";\n/**\n * @tsplus static fncts.io.LoggerOps defaultString\n */\nexport const defaultString = new tsplus_module_1.Logger((trace, fiberId, logLevel, message, cause, context, spans, annotations) => {\n let s = \"\";\n const nowMillis = Date.now();\n const now = new Date(nowMillis);\n s += \"timestamp=\";\n s += now.toISOString();\n s += \" level=\";\n s += logLevel.label;\n s += \" thread=#\";\n s += tsplus_module_2.threadName(fiberId);\n s += ' message=\"';\n s += message();\n s += '\"';\n if (tsplus_module_3.isNonEmpty(spans)) {\n let first = true;\n for (const span of spans) {\n if (first) {\n first = false;\n }\n else {\n s += \" \";\n }\n s += tsplus_module_4.render(nowMillis)(span);\n }\n }\n if (trace._tag === \"SourceLocation\") {\n s += \" location=\";\n s += quoted(tsplus_module_5.show(trace));\n }\n // TODO: render Cause, and Annotations\n return s;\n});\n/**\n * @tsplus fncts.io.Logger none\n */\nexport const none = new tsplus_module_1.Logger(() => undefined);\nfunction quoted(label) {\n if (label.indexOf(\" \") < 0) {\n return label;\n }\n else {\n let s = \"\";\n s += '\"';\n s += label;\n s += '\"';\n return s;\n }\n}\n//# sourceMappingURL=constructors.js.map"],"mappings":";;;;;;;;;AAQA,MAAa,gBAAgB,IAAI,gBAAgB,QAAQ,OAAO,SAAS,UAAU,SAAS,OAAO,SAAS,OAAO,gBAAgB;CAC/H,IAAI,IAAI;CACR,MAAM,YAAY,KAAK,IAAI;CAC3B,MAAM,MAAM,IAAI,KAAK,SAAS;CAC9B,KAAK;CACL,KAAK,IAAI,YAAY;CACrB,KAAK;CACL,KAAK,SAAS;CACd,KAAK;CACL,KAAK,gBAAgB,WAAW,OAAO;CACvC,KAAK;CACL,KAAK,QAAQ;CACb,KAAK;CACL,IAAI,gBAAgB,WAAW,KAAK,GAAG;EACnC,IAAI,QAAQ;EACZ,KAAK,MAAM,QAAQ,OAAO;GACtB,IAAI,OACA,QAAQ;QAGR,KAAK;GAET,KAAK,gBAAgB,OAAO,SAAS,CAAC,CAAC,IAAI;EAC/C;CACJ;CACA,IAAI,MAAM,SAAS,kBAAkB;EACjC,KAAK;EACL,KAAK,OAAO,gBAAgB,KAAK,KAAK,CAAC;CAC3C;CAEA,OAAO;AACX,CAAC;;;;AAID,MAAa,OAAO,IAAI,gBAAgB,aAAa,KAAA,CAAS;AAC9D,SAAS,OAAO,OAAO;CACnB,IAAI,MAAM,QAAQ,GAAG,IAAI,GACrB,OAAO;MAEN;EACD,IAAI,IAAI;EACR,KAAK;EACL,KAAK;EACL,KAAK;EACL,OAAO;CACX;AACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// build/esm/Logger/definition.js
|
|
2
2
|
const LoggerVariance = Symbol.for("fncts.io.Logger");
|
|
3
3
|
/**
|
|
4
4
|
* @tsplus type fncts.io.Logger
|
|
@@ -10,7 +10,6 @@ var Logger = class {
|
|
|
10
10
|
this.log = log;
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
//#endregion
|
|
14
13
|
export { Logger, LoggerVariance };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/Logger/definition.js"],"sourcesContent":["export const LoggerVariance = Symbol.for(\"fncts.io.Logger\");\n/**\n * @tsplus type fncts.io.Logger\n * @tsplus companion fncts.io.LoggerOps\n */\nexport class Logger {\n log;\n constructor(log) {\n this.log = log;\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,iBAAiB,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/Logger/definition.js"],"sourcesContent":["export const LoggerVariance = Symbol.for(\"fncts.io.Logger\");\n/**\n * @tsplus type fncts.io.Logger\n * @tsplus companion fncts.io.LoggerOps\n */\nexport class Logger {\n log;\n constructor(log) {\n this.log = log;\n }\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,iBAAiB,OAAO,IAAI,iBAAiB;;;;;AAK1D,IAAa,SAAb,MAAoB;CAChB;CACA,YAAY,KAAK;EACb,KAAK,MAAM;CACf;AACJ"}
|
package/_mjs/MVar/api.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import * as tsplus_module_7 from "@fncts/io/STM/api";
|
|
|
10
10
|
import * as tsplus_module_1 from "@fncts/base/data/Maybe/constructors";
|
|
11
11
|
import * as tsplus_module_5 from "@fncts/base/data/Maybe/definition";
|
|
12
12
|
import * as tsplus_module_10 from "@fncts/base/data/function/api";
|
|
13
|
-
|
|
13
|
+
// build/esm/MVar/api.js
|
|
14
14
|
const fileName_1 = "(@fncts/io) src/MVar/api.ts";
|
|
15
15
|
/**
|
|
16
16
|
* @tsplus static fncts.io.MVarOps empty
|
|
@@ -137,7 +137,6 @@ function unsafeEmpty() {
|
|
|
137
137
|
function unsafeMake(value) {
|
|
138
138
|
return new MVarInternal(tsplus_module_2.unsafeMake(tsplus_module_1.just(value, fileName_1 + ":184:57")));
|
|
139
139
|
}
|
|
140
|
-
//#endregion
|
|
141
140
|
export { empty, isEmpty, make, modify, put, read, swap, take, tryPut, tryRead, tryTake, unsafeEmpty, unsafeMake, update };
|
|
142
141
|
|
|
143
142
|
//# sourceMappingURL=api.mjs.map
|
package/_mjs/MVar/api.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/MVar/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/MVar/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_2 from \"@fncts/io/TRef/constructors\";\nimport * as tsplus_module_3 from \"@fncts/io/STM/api/core-api\";\nimport * as tsplus_module_4 from \"@fncts/io/STM/api/atomically\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Maybe/definition\";\nimport * as tsplus_module_6 from \"@fncts/io/TRef/api\";\nimport * as tsplus_module_7 from \"@fncts/io/STM/api\";\nimport * as tsplus_module_8 from \"@fncts/base/data/Maybe/api\";\nimport * as tsplus_module_9 from \"@fncts/base/data/Maybe/destructors\";\nimport * as tsplus_module_10 from \"@fncts/base/data/function/api\";\nimport * as tsplus_module_11 from \"@fncts/io/STM/api/core-constructors\";\nimport { concrete } from \"./definition.js\";\nimport { MVarInternal } from \"./definition.js\";\n/**\n * @tsplus static fncts.io.MVarOps empty\n */\nexport function empty() {\n return tsplus_module_4.atomically(tsplus_module_3.map((content) => new MVarInternal(content), fileName_1 + \":10:44\")(tsplus_module_2.make(() => tsplus_module_1.nothing(fileName_1 + \":10:37\"), fileName_1 + \":10:19\")), fileName_1 + \":10:84\");\n}\n/**\n * @tsplus static fncts.io.MVarOps make\n * @tsplus static fncts.io.MVarOps __call\n */\nexport function make(value) {\n return tsplus_module_4.atomically(tsplus_module_3.map((content) => new MVarInternal(content), fileName_1 + \":18:36\")(tsplus_module_2.make(() => tsplus_module_1.just(value, fileName_1 + \":18:24\"), fileName_1 + \":18:19\")), fileName_1 + \":18:76\");\n}\n/**\n * Check whether the `MVar` is empty.\n *\n * Notice that the boolean value returned is just a snapshot of the state of\n * the `MVar`. By the time you get to react on its result, the `MVar` may have\n * been filled (or emptied) - so be extremely careful when using this\n * operation. Use `tryTake` instead if possible.\n *\n * @tsplus getter fncts.io.MVar isEmpty\n */\nexport function isEmpty(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.map((value) => tsplus_module_5.isNothing(value), fileName_1 + \":33:30\")(tsplus_module_6.get(self.content, fileName_1 + \":33:22\")), fileName_1 + \":33:60\");\n}\n/**\n * A slight variation on `update` that allows a value to be returned (`b`) in\n * addition to the modified value of the `MVar`.\n *\n * @tsplus fluent fncts.io.MVar modify\n */\nexport function modify(self, f) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap(([b, newA]) => tsplus_module_7.as(() => b, fileName_1 + \":51:54\")(tsplus_module_6.set(newA, fileName_1 + \":51:45\")(self.content)), fileName_1 + \":51:13\")(tsplus_module_7.filterMap((value) => tsplus_module_8.map((a) => {\n const [b, newA] = f(a);\n return [b, tsplus_module_1.just(newA, fileName_1 + \":48:24\")];\n })(value), fileName_1 + \":45:15\")(tsplus_module_6.get(self.content, fileName_1 + \":44:22\"))), fileName_1 + \":51:58\");\n}\n/**\n * Put a value into an `MVar`. If the `MVar` is currently full, `put` will\n * wait until it becomes empty.\n *\n * @tsplus fluent fncts.io.MVar put\n */\nexport function put(self, value) {\n void 0;\n return tsplus_module_4.atomically((tsplus_module_7.zipRight(tsplus_module_6.set(tsplus_module_1.just(value, fileName_1 + \":68:30\"), fileName_1 + \":68:25\")(self.content), fileName_1 + \":68:8\")(tsplus_module_7.filterMap((value) => tsplus_module_9.match(() => tsplus_module_1.just(undefined, fileName_1 + \":65:19\"), () => tsplus_module_1.nothing(fileName_1 + \":66:22\"))(value), fileName_1 + \":63:31\")(tsplus_module_6.get(self.content, fileName_1 + \":63:17\")))), fileName_1 + \":69:4\");\n}\n/**\n * Atomically read the contents of an `MVar`. If the `MVar` is currently\n * empty, `read` will wait until it is full. `read` is guaranteed to receive\n * the next `put`.\n *\n * @tsplus getter fncts.io.MVar read\n */\nexport function read(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_7.filterMap(tsplus_module_10.identity, fileName_1 + \":81:36\")(tsplus_module_6.get(self.content, fileName_1 + \":81:22\")), fileName_1 + \":81:55\");\n}\n/**\n * Take a value from an `MVar`, put a new value into the `MVar` and return the\n * value taken.\n *\n * @tsplus fluent fncts.io.MVar swap\n */\nexport function swap(self, value) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap(ref => tsplus_module_9.match(() => tsplus_module_11.retry, (y) => tsplus_module_7.as(() => y, fileName_1 + \":97:48\")(tsplus_module_6.set(tsplus_module_1.just(value, fileName_1 + \":97:37\"), fileName_1 + \":97:32\")(self.content)))(ref), fileName_1 + \":93:18\")(tsplus_module_6.get(self.content, fileName_1 + \":93:31\")), fileName_1 + \":100:5\");\n}\n/**\n * Return the contents of the `MVar`. If the `MVar` is currently empty, `take`\n * will wait until it is full. After a `take`, the `MVar` is left empty.\n *\n * @tsplus getter fncts.io.MVar take\n */\nexport function take(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap((a) => tsplus_module_7.as(() => a, fileName_1 + \":111:101\")(tsplus_module_6.set(tsplus_module_1.nothing(fileName_1 + \":111:95\"), fileName_1 + \":111:87\")(self.content)), fileName_1 + \":111:63\")(tsplus_module_7.filterMap(tsplus_module_10.identity, fileName_1 + \":111:36\")(tsplus_module_6.get(self.content, fileName_1 + \":111:22\"))), fileName_1 + \":111:105\");\n}\n/**\n * A non-blocking version of `put`. The `tryPut` function attempts to put the\n * value into the `MVar`, returning `true` if it was successful, or\n * `false` otherwise.\n *\n * @tsplus fluent fncts.io.MVar tryPut\n */\nexport function tryPut(self, value) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap((v) => tsplus_module_9.match(() => tsplus_module_7.as(() => true, fileName_1 + \":125:45\")(tsplus_module_6.set(tsplus_module_1.just(value, fileName_1 + \":125:34\"), fileName_1 + \":125:29\")(self.content)), () => tsplus_module_11.succeedNow(false, fileName_1 + \":126:27\"))(v), fileName_1 + \":123:34\")(tsplus_module_6.get(self.content, fileName_1 + \":123:22\")), fileName_1 + \":128:4\");\n}\n/**\n * A non-blocking version of `read`. The `tryRead` function returns\n * immediately, with `None` if the `MVar` was empty, or `Some(x)` if the\n * `MVar` was full with contents `x`.\n *\n * @tsplus getter fncts.io.MVar tryRead\n */\nexport function tryRead(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_6.get(self.content, fileName_1 + \":140:22\"), fileName_1 + \":140:26\");\n}\n/**\n * A non-blocking version of `take`. The `tryTake` action returns immediately,\n * with `None` if the `MVar` was empty, or `Some(x)` if the `MVar` was full\n * with contents `x`. After `tryTake`, the `MVar` is left empty.\n *\n * @tsplus getter fncts.io.MVar tryTake\n */\nexport function tryTake(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap(c => tsplus_module_9.match(() => tsplus_module_11.succeedNow(tsplus_module_1.nothing(fileName_1 + \":156:37\"), fileName_1 + \":156:29\"), (a) => tsplus_module_7.zipRight(tsplus_module_11.succeedNow(tsplus_module_1.just(a, fileName_1 + \":157:65\"), fileName_1 + \":157:60\"), fileName_1 + \":157:45\")(tsplus_module_6.set(tsplus_module_1.nothing(fileName_1 + \":157:40\"), fileName_1 + \":157:32\")(self.content)))(c), fileName_1 + \":153:16\")(tsplus_module_6.get(self.content, fileName_1 + \":153:29\")), fileName_1 + \":160:5\");\n}\n/**\n * Replaces the contents of an `MVar` with the result of `f(a)`.\n *\n * @tsplus fluent fncts.io.MVar update\n */\nexport function update(self, f) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap((a) => tsplus_module_6.set(tsplus_module_1.just(a, fileName_1 + \":170:98\"), fileName_1 + \":170:93\")(self.content), fileName_1 + \":170:69\")(tsplus_module_7.filterMap((value) => tsplus_module_8.map(f)(value), fileName_1 + \":170:36\")(tsplus_module_6.get(self.content, fileName_1 + \":170:22\"))), fileName_1 + \":170:103\");\n}\n/**\n * @tsplus static fncts.io.MVarOps unsafeEmpty\n */\nexport function unsafeEmpty() {\n return new MVarInternal(tsplus_module_2.unsafeMake(tsplus_module_1.nothing(fileName_1 + \":177:60\")));\n}\n/**\n * @tsplus static fncts.io.MVarOps unsafeM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,gBAAgB,WAAW,UAAU,gBAAgB,IAAI,EAAE,CAAC,MAAM,EAAE,aAAa,UAAU,CAAC,gBAAgB,IAAI,KAAK,SAAS,aAAa,UAAU,CAAC,CAAC,EAAE,aAAa,WAAW;;;;;AAK1X,SAAgB,cAAc;AAC1B,QAAO,IAAI,aAAa,gBAAgB,WAAW,gBAAgB,QAAQ,aAAa,UAAU,CAAC,CAAC;;;;;AAKxG,SAAgB,WAAW,OAAO;AAC9B,QAAO,IAAI,aAAa,gBAAgB,WAAW,gBAAgB,KAAK,OAAO,aAAa,UAAU,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"api.mjs","names":[],"sources":["../../esm/MVar/api.js"],"sourcesContent":["const fileName_1 = \"(@fncts/io) src/MVar/api.ts\";\nimport * as tsplus_module_1 from \"@fncts/base/data/Maybe/constructors\";\nimport * as tsplus_module_2 from \"@fncts/io/TRef/constructors\";\nimport * as tsplus_module_3 from \"@fncts/io/STM/api/core-api\";\nimport * as tsplus_module_4 from \"@fncts/io/STM/api/atomically\";\nimport * as tsplus_module_5 from \"@fncts/base/data/Maybe/definition\";\nimport * as tsplus_module_6 from \"@fncts/io/TRef/api\";\nimport * as tsplus_module_7 from \"@fncts/io/STM/api\";\nimport * as tsplus_module_8 from \"@fncts/base/data/Maybe/api\";\nimport * as tsplus_module_9 from \"@fncts/base/data/Maybe/destructors\";\nimport * as tsplus_module_10 from \"@fncts/base/data/function/api\";\nimport * as tsplus_module_11 from \"@fncts/io/STM/api/core-constructors\";\nimport { concrete } from \"./definition.js\";\nimport { MVarInternal } from \"./definition.js\";\n/**\n * @tsplus static fncts.io.MVarOps empty\n */\nexport function empty() {\n return tsplus_module_4.atomically(tsplus_module_3.map((content) => new MVarInternal(content), fileName_1 + \":10:44\")(tsplus_module_2.make(() => tsplus_module_1.nothing(fileName_1 + \":10:37\"), fileName_1 + \":10:19\")), fileName_1 + \":10:84\");\n}\n/**\n * @tsplus static fncts.io.MVarOps make\n * @tsplus static fncts.io.MVarOps __call\n */\nexport function make(value) {\n return tsplus_module_4.atomically(tsplus_module_3.map((content) => new MVarInternal(content), fileName_1 + \":18:36\")(tsplus_module_2.make(() => tsplus_module_1.just(value, fileName_1 + \":18:24\"), fileName_1 + \":18:19\")), fileName_1 + \":18:76\");\n}\n/**\n * Check whether the `MVar` is empty.\n *\n * Notice that the boolean value returned is just a snapshot of the state of\n * the `MVar`. By the time you get to react on its result, the `MVar` may have\n * been filled (or emptied) - so be extremely careful when using this\n * operation. Use `tryTake` instead if possible.\n *\n * @tsplus getter fncts.io.MVar isEmpty\n */\nexport function isEmpty(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.map((value) => tsplus_module_5.isNothing(value), fileName_1 + \":33:30\")(tsplus_module_6.get(self.content, fileName_1 + \":33:22\")), fileName_1 + \":33:60\");\n}\n/**\n * A slight variation on `update` that allows a value to be returned (`b`) in\n * addition to the modified value of the `MVar`.\n *\n * @tsplus fluent fncts.io.MVar modify\n */\nexport function modify(self, f) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap(([b, newA]) => tsplus_module_7.as(() => b, fileName_1 + \":51:54\")(tsplus_module_6.set(newA, fileName_1 + \":51:45\")(self.content)), fileName_1 + \":51:13\")(tsplus_module_7.filterMap((value) => tsplus_module_8.map((a) => {\n const [b, newA] = f(a);\n return [b, tsplus_module_1.just(newA, fileName_1 + \":48:24\")];\n })(value), fileName_1 + \":45:15\")(tsplus_module_6.get(self.content, fileName_1 + \":44:22\"))), fileName_1 + \":51:58\");\n}\n/**\n * Put a value into an `MVar`. If the `MVar` is currently full, `put` will\n * wait until it becomes empty.\n *\n * @tsplus fluent fncts.io.MVar put\n */\nexport function put(self, value) {\n void 0;\n return tsplus_module_4.atomically((tsplus_module_7.zipRight(tsplus_module_6.set(tsplus_module_1.just(value, fileName_1 + \":68:30\"), fileName_1 + \":68:25\")(self.content), fileName_1 + \":68:8\")(tsplus_module_7.filterMap((value) => tsplus_module_9.match(() => tsplus_module_1.just(undefined, fileName_1 + \":65:19\"), () => tsplus_module_1.nothing(fileName_1 + \":66:22\"))(value), fileName_1 + \":63:31\")(tsplus_module_6.get(self.content, fileName_1 + \":63:17\")))), fileName_1 + \":69:4\");\n}\n/**\n * Atomically read the contents of an `MVar`. If the `MVar` is currently\n * empty, `read` will wait until it is full. `read` is guaranteed to receive\n * the next `put`.\n *\n * @tsplus getter fncts.io.MVar read\n */\nexport function read(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_7.filterMap(tsplus_module_10.identity, fileName_1 + \":81:36\")(tsplus_module_6.get(self.content, fileName_1 + \":81:22\")), fileName_1 + \":81:55\");\n}\n/**\n * Take a value from an `MVar`, put a new value into the `MVar` and return the\n * value taken.\n *\n * @tsplus fluent fncts.io.MVar swap\n */\nexport function swap(self, value) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap(ref => tsplus_module_9.match(() => tsplus_module_11.retry, (y) => tsplus_module_7.as(() => y, fileName_1 + \":97:48\")(tsplus_module_6.set(tsplus_module_1.just(value, fileName_1 + \":97:37\"), fileName_1 + \":97:32\")(self.content)))(ref), fileName_1 + \":93:18\")(tsplus_module_6.get(self.content, fileName_1 + \":93:31\")), fileName_1 + \":100:5\");\n}\n/**\n * Return the contents of the `MVar`. If the `MVar` is currently empty, `take`\n * will wait until it is full. After a `take`, the `MVar` is left empty.\n *\n * @tsplus getter fncts.io.MVar take\n */\nexport function take(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap((a) => tsplus_module_7.as(() => a, fileName_1 + \":111:101\")(tsplus_module_6.set(tsplus_module_1.nothing(fileName_1 + \":111:95\"), fileName_1 + \":111:87\")(self.content)), fileName_1 + \":111:63\")(tsplus_module_7.filterMap(tsplus_module_10.identity, fileName_1 + \":111:36\")(tsplus_module_6.get(self.content, fileName_1 + \":111:22\"))), fileName_1 + \":111:105\");\n}\n/**\n * A non-blocking version of `put`. The `tryPut` function attempts to put the\n * value into the `MVar`, returning `true` if it was successful, or\n * `false` otherwise.\n *\n * @tsplus fluent fncts.io.MVar tryPut\n */\nexport function tryPut(self, value) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap((v) => tsplus_module_9.match(() => tsplus_module_7.as(() => true, fileName_1 + \":125:45\")(tsplus_module_6.set(tsplus_module_1.just(value, fileName_1 + \":125:34\"), fileName_1 + \":125:29\")(self.content)), () => tsplus_module_11.succeedNow(false, fileName_1 + \":126:27\"))(v), fileName_1 + \":123:34\")(tsplus_module_6.get(self.content, fileName_1 + \":123:22\")), fileName_1 + \":128:4\");\n}\n/**\n * A non-blocking version of `read`. The `tryRead` function returns\n * immediately, with `None` if the `MVar` was empty, or `Some(x)` if the\n * `MVar` was full with contents `x`.\n *\n * @tsplus getter fncts.io.MVar tryRead\n */\nexport function tryRead(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_6.get(self.content, fileName_1 + \":140:22\"), fileName_1 + \":140:26\");\n}\n/**\n * A non-blocking version of `take`. The `tryTake` action returns immediately,\n * with `None` if the `MVar` was empty, or `Some(x)` if the `MVar` was full\n * with contents `x`. After `tryTake`, the `MVar` is left empty.\n *\n * @tsplus getter fncts.io.MVar tryTake\n */\nexport function tryTake(self) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap(c => tsplus_module_9.match(() => tsplus_module_11.succeedNow(tsplus_module_1.nothing(fileName_1 + \":156:37\"), fileName_1 + \":156:29\"), (a) => tsplus_module_7.zipRight(tsplus_module_11.succeedNow(tsplus_module_1.just(a, fileName_1 + \":157:65\"), fileName_1 + \":157:60\"), fileName_1 + \":157:45\")(tsplus_module_6.set(tsplus_module_1.nothing(fileName_1 + \":157:40\"), fileName_1 + \":157:32\")(self.content)))(c), fileName_1 + \":153:16\")(tsplus_module_6.get(self.content, fileName_1 + \":153:29\")), fileName_1 + \":160:5\");\n}\n/**\n * Replaces the contents of an `MVar` with the result of `f(a)`.\n *\n * @tsplus fluent fncts.io.MVar update\n */\nexport function update(self, f) {\n void 0;\n return tsplus_module_4.atomically(tsplus_module_3.flatMap((a) => tsplus_module_6.set(tsplus_module_1.just(a, fileName_1 + \":170:98\"), fileName_1 + \":170:93\")(self.content), fileName_1 + \":170:69\")(tsplus_module_7.filterMap((value) => tsplus_module_8.map(f)(value), fileName_1 + \":170:36\")(tsplus_module_6.get(self.content, fileName_1 + \":170:22\"))), fileName_1 + \":170:103\");\n}\n/**\n * @tsplus static fncts.io.MVarOps unsafeEmpty\n */\nexport function unsafeEmpty() {\n return new MVarInternal(tsplus_module_2.unsafeMake(tsplus_module_1.nothing(fileName_1 + \":177:60\")));\n}\n/**\n * @tsplus static fncts.io.MVarOps unsafeMake\n */\nexport function unsafeMake(value) {\n return new MVarInternal(tsplus_module_2.unsafeMake(tsplus_module_1.just(value, fileName_1 + \":184:57\")));\n}\n//# sourceMappingURL=api.js.map"],"mappings":";;;;;;;;;;;;;AAAA,MAAM,aAAa;;;;AAiBnB,SAAgB,QAAQ;CACpB,OAAO,gBAAgB,WAAW,gBAAgB,KAAK,YAAY,IAAI,aAAa,OAAO,GAAG,aAAa,QAAQ,CAAC,CAAC,gBAAgB,WAAW,gBAAgB,QAAQ,aAAa,QAAQ,GAAG,aAAa,QAAQ,CAAC,GAAG,aAAa,QAAQ;AAClP;;;;;AAKA,SAAgB,KAAK,OAAO;CACxB,OAAO,gBAAgB,WAAW,gBAAgB,KAAK,YAAY,IAAI,aAAa,OAAO,GAAG,aAAa,QAAQ,CAAC,CAAC,gBAAgB,WAAW,gBAAgB,KAAK,OAAO,aAAa,QAAQ,GAAG,aAAa,QAAQ,CAAC,GAAG,aAAa,QAAQ;AACtP;;;;;;;;;;;AAWA,SAAgB,QAAQ,MAAM;CAE1B,OAAO,gBAAgB,WAAW,gBAAgB,KAAK,UAAU,gBAAgB,UAAU,KAAK,GAAG,aAAa,QAAQ,CAAC,CAAC,gBAAgB,IAAI,KAAK,SAAS,aAAa,QAAQ,CAAC,GAAG,aAAa,QAAQ;AAC9M;;;;;;;AAO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VarTypeId = Symbol.for("fncts.io.MVar");
|
|
4
4
|
var MVarInternal = class {
|
|
@@ -13,7 +13,6 @@ var MVarInternal = class {
|
|
|
13
13
|
* @tsplus macro remove
|
|
14
14
|
*/
|
|
15
15
|
function concrete(_) {}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { MVarInternal, MVarTypeId, MVarVariance, concrete };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=definition.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/MVar/definition.js"],"sourcesContent":["export const MVarVariance = Symbol.for(\"fncts.io.MVar.Variance\");\nexport const MVarTypeId = Symbol.for(\"fncts.io.MVar\");\nexport class MVarInternal {\n content;\n [MVarTypeId] = MVarTypeId;\n constructor(content) {\n this.content = content;\n }\n}\n/**\n * @tsplus static fncts.io.MVarOps concrete\n * @tsplus macro remove\n */\nexport function concrete(_) {\n //\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,eAAe,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"definition.mjs","names":[],"sources":["../../esm/MVar/definition.js"],"sourcesContent":["export const MVarVariance = Symbol.for(\"fncts.io.MVar.Variance\");\nexport const MVarTypeId = Symbol.for(\"fncts.io.MVar\");\nexport class MVarInternal {\n content;\n [MVarTypeId] = MVarTypeId;\n constructor(content) {\n this.content = content;\n }\n}\n/**\n * @tsplus static fncts.io.MVarOps concrete\n * @tsplus macro remove\n */\nexport function concrete(_) {\n //\n}\n//# sourceMappingURL=definition.js.map"],"mappings":";AAAA,MAAa,eAAe,OAAO,IAAI,wBAAwB;AAC/D,MAAa,aAAa,OAAO,IAAI,eAAe;AACpD,IAAa,eAAb,MAA0B;CACtB;CACA,CAAC,cAAc;CACf,YAAY,SAAS;EACjB,KAAK,UAAU;CACnB;AACJ;;;;;AAKA,SAAgB,SAAS,GAAG,CAE5B"}
|
|
@@ -17,7 +17,7 @@ import * as tsplus_module_1 from "@fncts/io/IO/api/forkIn";
|
|
|
17
17
|
import * as tsplus_module_7 from "@fncts/io/Fiber/constructors";
|
|
18
18
|
import * as tsplus_module_11 from "@fncts/io/FiberSet";
|
|
19
19
|
import * as tsplus_module_12 from "@fncts/io/Fiber/api/joinAll";
|
|
20
|
-
|
|
20
|
+
// build/esm/Push/FlattenStrategy.js
|
|
21
21
|
const fileName_1 = "(@fncts/io) src/Push/FlattenStrategy.ts";
|
|
22
22
|
/**
|
|
23
23
|
* @tsplus type fncts.io.Push.FlattenStrategy
|
|
@@ -76,7 +76,6 @@ var BoundedStrategy = class extends FlattenStrategy {
|
|
|
76
76
|
}, fileName_1 + ":126:26")(tsplus_module_6.get(ref, fileName_1 + ":126:14")), fileName_1 + ":125:19")(tsplus_module_3.flatMap((ref) => tsplus_module_3.flatMap((semaphore) => tsplus_module_3.map(() => ref, fileName_1 + ":113:12")(f((io) => tsplus_module_3.flatMap((fiber) => tsplus_module_3.flatMap(() => tsplus_module_3.map(() => void 0, fileName_1 + ":119:20")(tsplus_module_16.addFinalizer(() => tsplus_module_15.update((set) => tsplus_module_14.remove(fiber)(set), fileName_1 + ":119:50")(ref), fileName_1 + ":119:39")(scope)), fileName_1 + ":118:20")(tsplus_module_15.update((set) => tsplus_module_14.add(fiber)(set), fileName_1 + ":118:31")(ref)), fileName_1 + ":117:34")(fork(semaphore.withPermit(io))), scope)), fileName_1 + ":112:30")(tsplus_module_17.makeSemaphore(this.capacity, fileName_1 + ":112:45")), fileName_1 + ":111:30")(tsplus_module_18.make(() => tsplus_module_14.empty(), fileName_1 + ":111:39"))), executionStrategy);
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
-
//#endregion
|
|
80
79
|
export { ExhaustStrategy, FlattenStrategy, SwitchStrategy, UnboundedStrategy, makeBounded };
|
|
81
80
|
|
|
82
81
|
//# sourceMappingURL=FlattenStrategy.mjs.map
|