@fncts/io 0.0.13 → 0.0.14
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/Cached/api.d.ts +2 -2
- package/Channel/UpstreamPullStrategy/definition.d.ts +1 -1
- package/Channel/api/mapOutIOC.d.ts +1 -1
- package/Channel/api/mergeAllWith.d.ts +2 -2
- package/Channel/api/mergeWith.d.ts +2 -2
- package/Channel/api/toPull.d.ts +1 -1
- package/Channel/api.d.ts +8 -8
- package/Channel/core-api.d.ts +2 -2
- package/Channel/definition.d.ts +24 -10
- package/Channel/internal/AsyncInputConsumer.d.ts +1 -1
- package/Channel/internal/AsyncInputProducer.d.ts +1 -1
- package/Channel/internal/ChannelExecutor.d.ts +5 -5
- package/Channel/internal/ChannelState.d.ts +1 -1
- package/Channel/internal/MergeDecision.d.ts +1 -1
- package/Channel/internal/MergeState.d.ts +2 -2
- package/Channel/internal/SingleProducerAsyncInput.d.ts +4 -4
- package/Clock/api.d.ts +2 -2
- package/Clock/definition.d.ts +2 -2
- package/Clock/live.d.ts +3 -3
- package/Console/api.d.ts +1 -1
- package/Fiber/FiberContext.d.ts +10 -10
- package/Fiber/api/await.d.ts +2 -2
- package/Fiber/api/awaitAll.d.ts +2 -2
- package/Fiber/api/children.d.ts +1 -1
- package/Fiber/api/collectAll.d.ts +3 -3
- package/Fiber/api/evalOn.d.ts +1 -1
- package/Fiber/api/evalOnIO.d.ts +1 -1
- package/Fiber/api/fromIO.d.ts +1 -1
- package/Fiber/api/id.d.ts +2 -2
- package/Fiber/api/inheritRefs.d.ts +1 -1
- package/Fiber/api/interrupt.d.ts +2 -2
- package/Fiber/api/interruptAll.d.ts +3 -3
- package/Fiber/api/interruptAs.d.ts +3 -3
- package/Fiber/api/join.d.ts +1 -1
- package/Fiber/api/joinAll.d.ts +1 -1
- package/Fiber/api/mapFiber.d.ts +1 -1
- package/Fiber/api/mapIO.d.ts +2 -2
- package/Fiber/api/poll.d.ts +3 -3
- package/Fiber/api/zipWith.d.ts +1 -1
- package/Fiber/constructors.d.ts +8 -8
- package/Fiber/definition.d.ts +3 -3
- package/FiberRef/api/locallyScoped.d.ts +1 -1
- package/FiberRef/api/locallyScopedWith.d.ts +1 -1
- package/FiberRef/api.d.ts +8 -8
- package/FiberRef/constructors.d.ts +2 -2
- package/FiberRef/unsafe.d.ts +5 -5
- package/FiberRefs/api.d.ts +4 -4
- package/FiberRefs/definition.d.ts +3 -3
- package/FiberRefs/join.d.ts +2 -2
- package/FiberScope/constructors.d.ts +1 -1
- package/FiberScope/definition.d.ts +1 -1
- package/FiberState/api.d.ts +1 -1
- package/FiberState/constructors.d.ts +3 -3
- package/FiberState/definition.d.ts +3 -3
- package/FiberStatus/constructors.d.ts +1 -1
- package/FiberStatus/definition.d.ts +1 -1
- package/Future/api.d.ts +18 -18
- package/Future/constructors.d.ts +3 -3
- package/Future/definition.d.ts +2 -2
- package/Hub/api.d.ts +22 -22
- package/Hub/internal.d.ts +1 -1
- package/IO/api/acquireRelease.d.ts +2 -2
- package/IO/api/acquireReleaseExit.d.ts +2 -2
- package/IO/api/acquireReleaseInterruptible.d.ts +1 -1
- package/IO/api/acquireReleaseInterruptibleExit.d.ts +2 -2
- package/IO/api/addFinalizer.d.ts +1 -1
- package/IO/api/addFinalizerExit.d.ts +2 -2
- package/IO/api/asyncIO.d.ts +1 -1
- package/IO/api/bracket.d.ts +2 -2
- package/IO/api/bracketExit.d.ts +3 -3
- package/IO/api/concurrency.d.ts +4 -4
- package/IO/api/concurrentFinalizers.d.ts +1 -1
- package/IO/api/consoleWith.d.ts +1 -1
- package/IO/api/core-scope.d.ts +3 -3
- package/IO/api/ensuringChildren.d.ts +1 -1
- package/IO/api/environment.d.ts +3 -3
- package/IO/api/foreachC.d.ts +2 -2
- package/IO/api/foreachExec.d.ts +1 -1
- package/IO/api/fulfill.d.ts +1 -1
- package/IO/api/interrupt.d.ts +7 -7
- package/IO/api/onExit.d.ts +2 -2
- package/IO/api/onTermination.d.ts +4 -4
- package/IO/api/provideLayer.d.ts +1 -1
- package/IO/api/race.d.ts +1 -1
- package/IO/api/raceFirst.d.ts +1 -1
- package/IO/api/randomWith.d.ts +1 -1
- package/IO/api/repeat.d.ts +6 -6
- package/IO/api/retry.d.ts +5 -5
- package/IO/api/schedule.d.ts +2 -2
- package/IO/api/scopeWith.d.ts +1 -1
- package/IO/api/scoped.d.ts +3 -3
- package/IO/api/sequenceT.d.ts +1 -1
- package/IO/api/sleep.d.ts +2 -2
- package/IO/api/stateful.d.ts +2 -2
- package/IO/api/timeout.d.ts +4 -4
- package/IO/api/withEarlyRelease.d.ts +1 -1
- package/IO/api/withFinalizer.d.ts +1 -1
- package/IO/api/withFinalizerExit.d.ts +2 -2
- package/IO/api/withRuntimeConfig.d.ts +2 -2
- package/IO/api/zipC.d.ts +4 -4
- package/IO/api.d.ts +53 -53
- package/IO/definition.d.ts +16 -10
- package/IO/runtime.d.ts +7 -7
- package/IOEnv/services.d.ts +1 -1
- package/IOSpec.d.ts +6 -6
- package/Layer/MemoMap.d.ts +8 -8
- package/Layer/api.d.ts +39 -39
- package/Layer/definition.d.ts +16 -9
- package/Logger/api.d.ts +2 -2
- package/Logger/definition.d.ts +4 -4
- package/Queue/api/dimapIO.d.ts +6 -6
- package/Queue/api/filterInputIO.d.ts +3 -3
- package/Queue/api/filterOutputIO.d.ts +3 -3
- package/Queue/api/operations.d.ts +10 -10
- package/Queue/api/poll.d.ts +2 -2
- package/Queue/api/takeBetween.d.ts +1 -1
- package/Queue/api/zipWithIO.d.ts +3 -3
- package/Queue/constructors.d.ts +4 -4
- package/Queue/definition.d.ts +3 -3
- package/Queue/strategy.d.ts +10 -10
- package/Random/api.d.ts +5 -5
- package/Random/definition.d.ts +5 -5
- package/Random/live.d.ts +4 -4
- package/Ref/Atomic/Atomic.d.ts +1 -1
- package/Ref/Atomic/api.d.ts +11 -11
- package/Ref/Derived.d.ts +1 -1
- package/Ref/DerivedAll.d.ts +1 -1
- package/Ref/Synchronized/api.d.ts +13 -13
- package/Ref/Synchronized/constructors.d.ts +2 -2
- package/Ref/Synchronized/definition.d.ts +1 -1
- package/Ref/api/collect.d.ts +2 -2
- package/Ref/api/dimap.d.ts +8 -8
- package/Ref/api/filter.d.ts +3 -3
- package/Ref/api/get.d.ts +1 -1
- package/Ref/api/match.d.ts +1 -1
- package/Ref/api/matchAll.d.ts +1 -1
- package/Ref/api/modify.d.ts +10 -10
- package/Ref/api/set.d.ts +1 -1
- package/Ref/constructors.d.ts +3 -3
- package/Ref/definition.d.ts +2 -2
- package/RuntimeConfig.d.ts +2 -2
- package/STM/api/core-api.d.ts +5 -5
- package/STM/api/core-constructors.d.ts +7 -7
- package/STM/api.d.ts +56 -56
- package/STM/definition.d.ts +2 -2
- package/STM/driver.d.ts +2 -2
- package/STM/internal/CommitState.d.ts +1 -1
- package/STM/internal/Journal.d.ts +3 -3
- package/STM/internal/TryCommit.d.ts +1 -1
- package/Schedule/Driver.d.ts +1 -1
- package/Schedule/api/driver.d.ts +1 -1
- package/Schedule/api.d.ts +73 -73
- package/Scope/Finalizer/definition.d.ts +1 -1
- package/Scope/ReleaseMap/api/releaseAll.d.ts +2 -2
- package/Scope/ReleaseMap/api.d.ts +7 -7
- package/Scope/ReleaseMap/definition.d.ts +2 -2
- package/Scope/api.d.ts +9 -9
- package/Scope/definition.d.ts +2 -2
- package/ScopedRef/api.d.ts +1 -1
- package/Sink/api.d.ts +18 -18
- package/State/api.d.ts +2 -2
- package/Stream/api/zipAllWith.d.ts +3 -3
- package/Stream/api/zipWith.d.ts +1 -1
- package/Stream/api/zipWithChunks.d.ts +4 -4
- package/Stream/api.d.ts +169 -162
- package/Stream/internal/Handoff.d.ts +2 -2
- package/Stream/internal/Pull.d.ts +2 -2
- package/Stream/internal/Take.d.ts +3 -3
- package/Stream/internal/util.d.ts +1 -1
- package/Supervisor/api.d.ts +3 -3
- package/Supervisor/constructors.d.ts +4 -4
- package/Supervisor/definition.d.ts +3 -3
- package/TExit/constructors.d.ts +1 -1
- package/TExit/definition.d.ts +1 -1
- package/TFuture/api.d.ts +7 -7
- package/TFuture/constructors.d.ts +4 -4
- package/TFuture/definition.d.ts +2 -2
- package/TReentrantLock/api.d.ts +16 -16
- package/TReentrantLock/definition.d.ts +2 -2
- package/TRef/api.d.ts +15 -15
- package/TRef/constructors.d.ts +5 -5
- package/TRef/definition.d.ts +2 -2
- package/TSemaphore/api.d.ts +7 -7
- package/TSemaphore/constructors.d.ts +1 -1
- package/_cjs/Cached/api.cjs +5 -5
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutIOC.cjs +2 -2
- package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +11 -11
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +5 -5
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +3 -1
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +7 -7
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +6 -6
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +2 -1
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +16 -16
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Console/api.cjs +5 -3
- package/_cjs/Console/api.cjs.map +1 -1
- package/_cjs/Fiber/FiberContext.cjs +3 -3
- package/_cjs/Fiber/FiberContext.cjs.map +1 -1
- package/_cjs/Fiber/api/await.cjs +1 -1
- package/_cjs/Fiber/api/await.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +2 -4
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/children.cjs +1 -1
- package/_cjs/Fiber/api/children.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +2 -4
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/evalOn.cjs +1 -1
- package/_cjs/Fiber/api/evalOn.cjs.map +1 -1
- package/_cjs/Fiber/api/evalOnIO.cjs +2 -4
- package/_cjs/Fiber/api/evalOnIO.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +2 -4
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/id.cjs +1 -1
- package/_cjs/Fiber/api/id.cjs.map +1 -1
- package/_cjs/Fiber/api/inheritRefs.cjs +1 -1
- package/_cjs/Fiber/api/inheritRefs.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +2 -4
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +4 -5
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +2 -4
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +2 -4
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +2 -4
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +4 -5
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/poll.cjs +1 -1
- package/_cjs/Fiber/api/poll.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +2 -4
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +10 -11
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +2 -4
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +2 -4
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +13 -14
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +4 -6
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/Future/api.cjs +30 -31
- 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/Hub/api.cjs +44 -44
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +14 -14
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +2 -4
- package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizer.cjs +1 -1
- package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +2 -4
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +5 -7
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +2 -2
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +2 -4
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +7 -7
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +2 -4
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +3 -3
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/core-scope.cjs +4 -4
- package/_cjs/IO/api/core-scope.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +2 -4
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +5 -6
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachC.cjs +25 -27
- package/_cjs/IO/api/foreachC.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +2 -4
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +1 -1
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +1 -1
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +2 -4
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +12 -12
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +1 -1
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onExit.cjs +2 -2
- package/_cjs/IO/api/onExit.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +2 -2
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +1 -1
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +2 -4
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +4 -6
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +2 -4
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +3 -3
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +10 -11
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +8 -9
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +6 -7
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +2 -4
- 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/stateful.cjs +1 -1
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +3 -4
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +2 -4
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +2 -2
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +2 -4
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/withRuntimeConfig.cjs +2 -4
- package/_cjs/IO/api/withRuntimeConfig.cjs.map +1 -1
- package/_cjs/IO/api/zipC.cjs +5 -6
- package/_cjs/IO/api/zipC.cjs.map +1 -1
- package/_cjs/IO/api.cjs +112 -112
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +3 -1
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +39 -40
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +80 -81
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs +14 -7
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/Queue/api/dimapIO.cjs +14 -14
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +6 -6
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +6 -6
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/operations.cjs +13 -13
- package/_cjs/Queue/api/operations.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +2 -4
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +10 -12
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/zipWithIO.cjs +12 -12
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +8 -10
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +15 -15
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +16 -16
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Random/api.cjs +15 -13
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/live.cjs +4 -4
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Ref/Atomic/api.cjs +19 -21
- package/_cjs/Ref/Atomic/api.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +1 -1
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +25 -26
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +2 -4
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/Ref/api/collect.cjs +1 -1
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +12 -12
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +2 -2
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/get.cjs +1 -1
- package/_cjs/Ref/api/get.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +29 -30
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api/set.cjs +1 -1
- package/_cjs/Ref/api/set.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +3 -4
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +8 -8
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs +6 -6
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +110 -110
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +3 -1
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +5 -9
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +156 -156
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +3 -5
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +14 -15
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +20 -20
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +5 -5
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +92 -88
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/State/api.cjs +5 -7
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +22 -24
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +2 -2
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +20 -22
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +436 -419
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +12 -12
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +1 -1
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +1 -1
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +3 -1
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +10 -10
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +4 -4
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +41 -42
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +40 -40
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +6 -6
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +16 -17
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +2 -2
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +5 -7
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +7 -9
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +3 -5
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +7 -9
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs +26 -0
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +2 -4
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/global.cjs +6 -0
- package/_cjs/global.cjs.map +1 -0
- package/_cjs/index.cjs +6 -0
- package/_cjs/index.cjs.map +1 -0
- package/_mjs/Cached/api.mjs +5 -5
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Channel/api/interruptWhen.mjs +1 -1
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutIOC.mjs +2 -2
- package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +11 -11
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +6 -5
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +2 -1
- package/_mjs/Channel/api/run.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +7 -7
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +6 -6
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelState.mjs +2 -1
- package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +16 -16
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Console/api.mjs +4 -3
- package/_mjs/Console/api.mjs.map +1 -1
- package/_mjs/Fiber/FiberContext.mjs +4 -3
- package/_mjs/Fiber/FiberContext.mjs.map +1 -1
- package/_mjs/Fiber/api/await.mjs +1 -1
- package/_mjs/Fiber/api/await.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +2 -3
- package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
- package/_mjs/Fiber/api/children.mjs +1 -1
- package/_mjs/Fiber/api/children.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +2 -3
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/evalOn.mjs +1 -1
- package/_mjs/Fiber/api/evalOn.mjs.map +1 -1
- package/_mjs/Fiber/api/evalOnIO.mjs +2 -3
- package/_mjs/Fiber/api/evalOnIO.mjs.map +1 -1
- package/_mjs/Fiber/api/fromIO.mjs +2 -3
- package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
- package/_mjs/Fiber/api/id.mjs +1 -1
- package/_mjs/Fiber/api/id.mjs.map +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +2 -3
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +4 -5
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/api/join.mjs +2 -3
- package/_mjs/Fiber/api/join.mjs.map +1 -1
- package/_mjs/Fiber/api/joinAll.mjs +2 -3
- package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +2 -3
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +4 -5
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/poll.mjs +1 -1
- package/_mjs/Fiber/api/poll.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +2 -3
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/constructors.mjs +10 -11
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +2 -3
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +2 -3
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +13 -14
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +4 -5
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/Future/api.mjs +30 -31
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +4 -5
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +44 -44
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +14 -14
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/IO/api/acquireRelease.mjs +2 -3
- package/_mjs/IO/api/acquireRelease.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizer.mjs +1 -1
- package/_mjs/IO/api/addFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs +2 -3
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +5 -6
- package/_mjs/IO/api/asyncIO.mjs.map +1 -1
- package/_mjs/IO/api/bracket.mjs +2 -2
- package/_mjs/IO/api/bracket.mjs.map +1 -1
- package/_mjs/IO/api/bracketExit.mjs +2 -3
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +7 -7
- package/_mjs/IO/api/concurrency.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +2 -3
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/consoleWith.mjs +3 -3
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/core-scope.mjs +4 -4
- package/_mjs/IO/api/core-scope.mjs.map +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs +2 -3
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +5 -6
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/foreachC.mjs +25 -26
- package/_mjs/IO/api/foreachC.mjs.map +1 -1
- package/_mjs/IO/api/foreachExec.mjs +2 -3
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +1 -1
- package/_mjs/IO/api/forkIn.mjs.map +1 -1
- package/_mjs/IO/api/forkScoped.mjs +1 -1
- package/_mjs/IO/api/forkScoped.mjs.map +1 -1
- package/_mjs/IO/api/fulfill.mjs +2 -3
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +12 -12
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/memoize.mjs +1 -1
- package/_mjs/IO/api/memoize.mjs.map +1 -1
- package/_mjs/IO/api/onExit.mjs +2 -2
- package/_mjs/IO/api/onExit.mjs.map +1 -1
- package/_mjs/IO/api/onTermination.mjs +2 -2
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/once.mjs +1 -1
- package/_mjs/IO/api/once.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +2 -3
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +4 -5
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +2 -3
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +3 -3
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +10 -11
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +8 -9
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +6 -7
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scopeWith.mjs +2 -3
- package/_mjs/IO/api/scopeWith.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +4 -5
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs +1 -1
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +3 -4
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +2 -3
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizer.mjs +2 -2
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +2 -3
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/withRuntimeConfig.mjs +2 -3
- package/_mjs/IO/api/withRuntimeConfig.mjs.map +1 -1
- package/_mjs/IO/api/zipC.mjs +5 -6
- package/_mjs/IO/api/zipC.mjs.map +1 -1
- package/_mjs/IO/api.mjs +112 -112
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IOEnv/live.mjs +2 -1
- package/_mjs/IOEnv/live.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +37 -38
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +81 -82
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs +14 -7
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/Queue/api/dimapIO.mjs +14 -14
- package/_mjs/Queue/api/dimapIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterInputIO.mjs +6 -6
- package/_mjs/Queue/api/filterInputIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +6 -6
- package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -1
- package/_mjs/Queue/api/operations.mjs +13 -13
- package/_mjs/Queue/api/operations.mjs.map +1 -1
- package/_mjs/Queue/api/poll.mjs +2 -3
- package/_mjs/Queue/api/poll.mjs.map +1 -1
- package/_mjs/Queue/api/takeBetween.mjs +10 -11
- package/_mjs/Queue/api/takeBetween.mjs.map +1 -1
- package/_mjs/Queue/api/zipWithIO.mjs +12 -12
- package/_mjs/Queue/api/zipWithIO.mjs.map +1 -1
- package/_mjs/Queue/constructors.mjs +8 -9
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +15 -15
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +16 -16
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Random/api.mjs +14 -13
- package/_mjs/Random/api.mjs.map +1 -1
- package/_mjs/Random/live.mjs +4 -4
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Ref/Atomic/api.mjs +19 -20
- package/_mjs/Ref/Atomic/api.mjs.map +1 -1
- package/_mjs/Ref/DerivedAll.mjs +1 -1
- package/_mjs/Ref/DerivedAll.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/api.mjs +25 -26
- package/_mjs/Ref/Synchronized/api.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +2 -3
- package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs.map +1 -1
- package/_mjs/Ref/api/collect.mjs +1 -1
- package/_mjs/Ref/api/collect.mjs.map +1 -1
- package/_mjs/Ref/api/dimap.mjs +12 -12
- package/_mjs/Ref/api/dimap.mjs.map +1 -1
- package/_mjs/Ref/api/filter.mjs +2 -2
- package/_mjs/Ref/api/filter.mjs.map +1 -1
- package/_mjs/Ref/api/get.mjs +1 -1
- package/_mjs/Ref/api/get.mjs.map +1 -1
- package/_mjs/Ref/api/modify.mjs +29 -30
- package/_mjs/Ref/api/modify.mjs.map +1 -1
- package/_mjs/Ref/api/set.mjs +1 -1
- package/_mjs/Ref/api/set.mjs.map +1 -1
- package/_mjs/Ref/constructors.mjs +3 -4
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/STM/api/core-api.mjs +8 -8
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api/core-constructors.mjs +6 -6
- package/_mjs/STM/api/core-constructors.mjs.map +1 -1
- package/_mjs/STM/api.mjs +110 -110
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +3 -1
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +6 -9
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +156 -156
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +3 -4
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +14 -15
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/constructors.mjs +1 -1
- package/_mjs/Scope/ReleaseMap/constructors.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +20 -20
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +5 -5
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +92 -88
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/State/api.mjs +5 -6
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +22 -23
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +2 -2
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +20 -21
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +430 -417
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +12 -12
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +1 -1
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +1 -1
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Supervisor/api.mjs +2 -1
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +10 -10
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +4 -4
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +41 -42
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +40 -40
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/constructors.mjs +6 -6
- package/_mjs/TRef/constructors.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +16 -17
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +2 -2
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +5 -6
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +7 -8
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +3 -4
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +7 -8
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs +2 -0
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +2 -3
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/global.mjs +2 -0
- package/_mjs/global.mjs.map +1 -0
- package/_mjs/index.mjs +2 -0
- package/_mjs/index.mjs.map +1 -0
- package/_src/Cached/api.ts +1 -0
- package/_src/Channel/api.ts +4 -4
- package/_src/Channel/core-api.ts +1 -3
- package/_src/Channel/definition.ts +7 -7
- package/_src/Console/api.ts +1 -1
- package/_src/Fiber/api/await.ts +1 -1
- package/_src/Fiber/api/awaitAll.ts +1 -1
- package/_src/Fiber/api/children.ts +1 -1
- package/_src/Fiber/api/collectAll.ts +4 -1
- package/_src/Fiber/api/evalOn.ts +6 -1
- package/_src/Fiber/api/evalOnIO.ts +1 -0
- package/_src/Fiber/api/fromIO.ts +1 -1
- package/_src/Fiber/api/id.ts +1 -1
- package/_src/Fiber/api/inheritRefs.ts +1 -1
- package/_src/Fiber/api/interrupt.ts +1 -1
- package/_src/Fiber/api/interruptAll.ts +2 -2
- package/_src/Fiber/api/interruptAs.ts +1 -1
- package/_src/Fiber/api/join.ts +1 -1
- package/_src/Fiber/api/joinAll.ts +1 -1
- package/_src/Fiber/api/mapFiber.ts +5 -1
- package/_src/Fiber/api/mapIO.ts +6 -2
- package/_src/Fiber/api/poll.ts +1 -1
- package/_src/Fiber/api/zipWith.ts +1 -0
- package/_src/Fiber/constructors.ts +5 -5
- package/_src/FiberRef/api/locallyScoped.ts +1 -1
- package/_src/FiberRef/api/locallyScopedWith.ts +5 -1
- package/_src/FiberRef/api.ts +7 -7
- package/_src/FiberRef/constructors.ts +2 -0
- package/_src/Future/api.ts +23 -15
- package/_src/Future/constructors.ts +2 -2
- package/_src/Hub/api.ts +39 -12
- package/_src/IO/api/acquireRelease.ts +1 -0
- package/_src/IO/api/addFinalizer.ts +1 -4
- package/_src/IO/api/addFinalizerExit.ts +4 -1
- package/_src/IO/api/asyncIO.ts +4 -1
- package/_src/IO/api/bracket.ts +1 -0
- package/_src/IO/api/bracketExit.ts +1 -0
- package/_src/IO/api/concurrency.ts +6 -3
- package/_src/IO/api/concurrentFinalizers.ts +1 -1
- package/_src/IO/api/consoleWith.ts +1 -1
- package/_src/IO/api/ensuringChildren.ts +1 -0
- package/_src/IO/api/environment.ts +1 -1
- package/_src/IO/api/foreachC.ts +33 -6
- package/_src/IO/api/foreachExec.ts +1 -0
- package/_src/IO/api/fulfill.ts +1 -1
- package/_src/IO/api/interrupt.ts +10 -2
- package/_src/IO/api/onExit.ts +1 -0
- package/_src/IO/api/onTermination.ts +1 -1
- package/_src/IO/api/provideLayer.ts +1 -0
- package/_src/IO/api/provideSomeLayer.ts +1 -2
- package/_src/IO/api/race.ts +6 -2
- package/_src/IO/api/raceFirst.ts +6 -2
- package/_src/IO/api/randomWith.ts +1 -1
- package/_src/IO/api/repeat.ts +3 -3
- package/_src/IO/api/retry.ts +3 -3
- package/_src/IO/api/schedule.ts +1 -0
- package/_src/IO/api/scopeWith.ts +1 -1
- package/_src/IO/api/scoped.ts +2 -2
- package/_src/IO/api/timeout.ts +5 -1
- package/_src/IO/api/withEarlyRelease.ts +4 -1
- package/_src/IO/api/withFinalizer.ts +1 -0
- package/_src/IO/api/withFinalizerExit.ts +1 -0
- package/_src/IO/api/withRuntimeConfig.ts +5 -1
- package/_src/IO/api/zipC.ts +6 -1
- package/_src/IO/api.ts +82 -32
- package/_src/IO/definition.ts +3 -3
- package/_src/Layer/MemoMap.ts +25 -18
- package/_src/Layer/api.ts +60 -27
- package/_src/Layer/definition.ts +7 -4
- package/_src/Queue/api/dimapIO.ts +11 -1
- package/_src/Queue/api/filterInputIO.ts +2 -0
- package/_src/Queue/api/filterOutputIO.ts +2 -0
- package/_src/Queue/api/operations.ts +28 -10
- package/_src/Queue/api/poll.ts +4 -1
- package/_src/Queue/api/takeBetween.ts +6 -1
- package/_src/Queue/api/zipWithIO.ts +3 -0
- package/_src/Queue/constructors.ts +4 -4
- package/_src/Queue/definition.ts +3 -3
- package/_src/Queue/internal.ts +3 -3
- package/_src/Queue/strategy.ts +14 -6
- package/_src/Random/api.ts +5 -5
- package/_src/Random/definition.ts +5 -5
- package/_src/Random/live.ts +4 -4
- package/_src/Ref/Atomic/api.ts +10 -10
- package/_src/Ref/Synchronized/api.ts +18 -3
- package/_src/Ref/Synchronized/constructors.ts +1 -1
- package/_src/Ref/api/collect.ts +1 -0
- package/_src/Ref/api/dimap.ts +7 -0
- package/_src/Ref/api/filter.ts +2 -0
- package/_src/Ref/api/get.ts +4 -1
- package/_src/Ref/api/modify.ts +13 -1
- package/_src/Ref/api/set.ts +5 -1
- package/_src/Ref/constructors.ts +2 -2
- package/_src/Ref/definition.ts +1 -1
- package/_src/STM/api/core-api.ts +17 -4
- package/_src/STM/api/core-constructors.ts +5 -5
- package/_src/STM/api.ts +106 -41
- package/_src/Schedule/api.ts +98 -18
- package/_src/Scope/ReleaseMap/api/releaseAll.ts +6 -1
- package/_src/Scope/ReleaseMap/api.ts +15 -5
- package/_src/Scope/api.ts +15 -7
- package/_src/Sink/api.ts +39 -10
- package/_src/State/api.ts +1 -1
- package/_src/Stream/api/zipAllWith.ts +3 -0
- package/_src/Stream/api/zipWith.ts +1 -0
- package/_src/Stream/api/zipWithChunks.ts +3 -0
- package/_src/Stream/api.ts +363 -96
- package/_src/TFuture/api.ts +5 -5
- package/_src/TFuture/constructors.ts +2 -2
- package/_src/TReentrantLock/api.ts +16 -16
- package/_src/TRef/api.ts +35 -13
- package/_src/TRef/constructors.ts +4 -4
- package/_src/TSemaphore/api.ts +7 -7
- package/_src/TSemaphore/constructors.ts +1 -1
- package/_src/collection/immutable/Conc/filterIO.ts +5 -1
- package/_src/collection/immutable/Conc/findIO.ts +6 -1
- package/_src/collection/immutable/Conc/mapIO.ts +1 -1
- package/_src/collection/immutable/Conc/takeWhileIO.ts +5 -1
- package/_src/collection/immutable/Conc.ts +2 -0
- package/_src/data/Exit/foreachIO.ts +1 -0
- package/_src/global.ts +149 -0
- package/_src/index.ts +42 -0
- package/collection/immutable/Conc/filterIO.d.ts +1 -1
- package/collection/immutable/Conc/findIO.d.ts +2 -2
- package/collection/immutable/Conc/mapIO.d.ts +1 -1
- package/collection/immutable/Conc/takeWhileIO.d.ts +1 -1
- package/collection/immutable/Conc.d.ts +2 -0
- package/data/Exit/foreachIO.d.ts +2 -2
- package/global.d.ts +149 -0
- package/index.d.ts +40 -0
- package/package.json +2 -2
package/_cjs/IO/api.cjs
CHANGED
|
@@ -395,8 +395,8 @@ function apSecond_1(self, fb, __tsplusTrace) {
|
|
|
395
395
|
*/
|
|
396
396
|
|
|
397
397
|
|
|
398
|
-
function as_1(self, b) {
|
|
399
|
-
return map_1(self, () => b(),
|
|
398
|
+
function as_1(self, b, __tsplusTrace) {
|
|
399
|
+
return map_1(self, () => b(), __tsplusTrace);
|
|
400
400
|
}
|
|
401
401
|
/**
|
|
402
402
|
* Maps the success value of this effect to an optional value.
|
|
@@ -423,8 +423,8 @@ function asJustError(ma, __tsplusTrace) {
|
|
|
423
423
|
*/
|
|
424
424
|
|
|
425
425
|
|
|
426
|
-
function asUnit_1(self) {
|
|
427
|
-
return as_1(self, () => undefined);
|
|
426
|
+
function asUnit_1(self, __tsplusTrace) {
|
|
427
|
+
return as_1(self, () => undefined, __tsplusTrace);
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
430
430
|
* Returns an IO whose failure and success channels have been mapped by
|
|
@@ -502,8 +502,8 @@ function catchJust_(ma, f, __tsplusTrace) {
|
|
|
502
502
|
*/
|
|
503
503
|
|
|
504
504
|
|
|
505
|
-
function catchJustCause_(ma, f) {
|
|
506
|
-
return matchCauseIO_1(ma, cause => tsplus_module_7.getOrElse_(f(cause), () => failCauseNow_1(cause,
|
|
505
|
+
function catchJustCause_(ma, f, __tsplusTrace) {
|
|
506
|
+
return matchCauseIO_1(ma, cause => tsplus_module_7.getOrElse_(f(cause), () => failCauseNow_1(cause, __tsplusTrace)), succeedNow_1, __tsplusTrace);
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* Recovers from some or all of the defects with provided partial function.
|
|
@@ -518,7 +518,7 @@ function catchJustCause_(ma, f) {
|
|
|
518
518
|
|
|
519
519
|
|
|
520
520
|
function catchJustDefect_(ma, f, __tsplusTrace) {
|
|
521
|
-
return catchAll_1(unrefineWith_1(ma, f, failNow_1, __tsplusTrace),
|
|
521
|
+
return catchAll_1(unrefineWith_1(ma, f, failNow_1, __tsplusTrace), a => a, __tsplusTrace);
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
524
|
* Recovers from the specified error
|
|
@@ -563,8 +563,8 @@ function flatMap_1(ma, f, __tsplusTrace) {
|
|
|
563
563
|
*/
|
|
564
564
|
|
|
565
565
|
|
|
566
|
-
function flatMapError_(ma, f) {
|
|
567
|
-
return swapWith_1(ma, effect => flatMap_1(effect, f,
|
|
566
|
+
function flatMapError_(ma, f, __tsplusTrace) {
|
|
567
|
+
return swapWith_1(ma, effect => flatMap_1(effect, f, __tsplusTrace), __tsplusTrace);
|
|
568
568
|
}
|
|
569
569
|
/**
|
|
570
570
|
* Checks the interrupt status, and produces the IO returned by the
|
|
@@ -598,8 +598,8 @@ function collectIO_1(ma, f, pf, __tsplusTrace) {
|
|
|
598
598
|
*/
|
|
599
599
|
|
|
600
600
|
|
|
601
|
-
function condIO_(b, onTrue, onFalse) {
|
|
602
|
-
return b ? onTrue : flatMap_1(onFalse, failNow_1,
|
|
601
|
+
function condIO_(b, onTrue, onFalse, __tsplusTrace) {
|
|
602
|
+
return b ? onTrue : flatMap_1(onFalse, failNow_1, __tsplusTrace);
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
605
|
* Returns a lazily constructed effect, whose construction may itself require
|
|
@@ -652,14 +652,14 @@ function deferTry(io, __tsplusTrace) {
|
|
|
652
652
|
*/
|
|
653
653
|
|
|
654
654
|
|
|
655
|
-
function deferTryWith(io) {
|
|
655
|
+
function deferTryWith(io, __tsplusTrace) {
|
|
656
656
|
return deferWith_1((runtimeConfig, id) => {
|
|
657
657
|
try {
|
|
658
658
|
return io(runtimeConfig, id);
|
|
659
659
|
} catch (u) {
|
|
660
660
|
throw new _definition2.IOError(tsplus_module_8.fail(u));
|
|
661
661
|
}
|
|
662
|
-
},
|
|
662
|
+
}, __tsplusTrace);
|
|
663
663
|
}
|
|
664
664
|
/**
|
|
665
665
|
* Returns a lazily constructed effect, whose construction may itself require effects,
|
|
@@ -671,14 +671,14 @@ function deferTryWith(io) {
|
|
|
671
671
|
*/
|
|
672
672
|
|
|
673
673
|
|
|
674
|
-
function deferTryCatch(io, onThrow) {
|
|
674
|
+
function deferTryCatch(io, onThrow, __tsplusTrace) {
|
|
675
675
|
return defer_1(() => {
|
|
676
676
|
try {
|
|
677
677
|
return io();
|
|
678
678
|
} catch (u) {
|
|
679
679
|
throw new _definition2.IOError(tsplus_module_8.fail(onThrow(u)));
|
|
680
680
|
}
|
|
681
|
-
},
|
|
681
|
+
}, __tsplusTrace);
|
|
682
682
|
}
|
|
683
683
|
/**
|
|
684
684
|
* Returns a lazily constructed effect, whose construction may itself require effects,
|
|
@@ -690,21 +690,21 @@ function deferTryCatch(io, onThrow) {
|
|
|
690
690
|
*/
|
|
691
691
|
|
|
692
692
|
|
|
693
|
-
function deferTryCatchWith(io, onThrow) {
|
|
693
|
+
function deferTryCatchWith(io, onThrow, __tsplusTrace) {
|
|
694
694
|
return deferWith_1((runtimeConfig, id) => {
|
|
695
695
|
try {
|
|
696
696
|
return io(runtimeConfig, id);
|
|
697
697
|
} catch (u) {
|
|
698
698
|
throw new _definition2.IOError(tsplus_module_8.fail(onThrow(u)));
|
|
699
699
|
}
|
|
700
|
-
},
|
|
700
|
+
}, __tsplusTrace);
|
|
701
701
|
}
|
|
702
702
|
/**
|
|
703
703
|
* @tsplus static fncts.io.IOOps descriptor
|
|
704
704
|
*/
|
|
705
705
|
|
|
706
706
|
|
|
707
|
-
const descriptor = /*#__PURE__*/descriptorWith_1(succeedNow_1, fileName_1 + ":
|
|
707
|
+
const descriptor = /*#__PURE__*/descriptorWith_1(succeedNow_1, fileName_1 + ":509:41");
|
|
708
708
|
/**
|
|
709
709
|
* Constructs an IO based on information about the current fiber, such as
|
|
710
710
|
* its identity.
|
|
@@ -802,7 +802,7 @@ function failCause_1(cause, __tsplusTrace) {
|
|
|
802
802
|
*/
|
|
803
803
|
|
|
804
804
|
|
|
805
|
-
const fiberId = /*#__PURE__*/descriptorWith_1(d => succeedNow_1(d.id, fileName_1 + ":
|
|
805
|
+
const fiberId = /*#__PURE__*/descriptorWith_1(d => succeedNow_1(d.id, fileName_1 + ":599:89"), fileName_1 + ":599:68");
|
|
806
806
|
/**
|
|
807
807
|
* Filters the collection using the specified effectual predicate.
|
|
808
808
|
*
|
|
@@ -818,7 +818,7 @@ function filter_1(as, f, __tsplusTrace) {
|
|
|
818
818
|
}
|
|
819
819
|
|
|
820
820
|
return builder;
|
|
821
|
-
})), b => b.result(), __tsplusTrace);
|
|
821
|
+
}, __tsplusTrace)), b => b.result(), __tsplusTrace);
|
|
822
822
|
}
|
|
823
823
|
/**
|
|
824
824
|
* @tsplus static fncts.io.IOOps filterMap
|
|
@@ -840,7 +840,7 @@ function filterMapWithIndex_1(as, f, __tsplusTrace) {
|
|
|
840
840
|
if (tsplus_module_12.isJust(b)) {
|
|
841
841
|
bs.push(b.value);
|
|
842
842
|
}
|
|
843
|
-
}, __tsplusTrace)), () => tsplus_module_11.from(bs));
|
|
843
|
+
}, __tsplusTrace), __tsplusTrace), () => tsplus_module_11.from(bs), __tsplusTrace);
|
|
844
844
|
}, __tsplusTrace);
|
|
845
845
|
}
|
|
846
846
|
/**
|
|
@@ -859,8 +859,8 @@ function filterOrElse_1(fa, predicate, or, __tsplusTrace) {
|
|
|
859
859
|
return flatMap_1(fa, a => predicate(a) ? succeedNow_1(a, __tsplusTrace) : defer_1(() => or(a), __tsplusTrace), __tsplusTrace);
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
function filterOrFail_(fa, predicate, failWith) {
|
|
863
|
-
return filterOrElse_1(fa, predicate, a => failNow_1(failWith(a),
|
|
862
|
+
function filterOrFail_(fa, predicate, failWith, __tsplusTrace) {
|
|
863
|
+
return filterOrElse_1(fa, predicate, a => failNow_1(failWith(a), __tsplusTrace), __tsplusTrace);
|
|
864
864
|
}
|
|
865
865
|
/**
|
|
866
866
|
* Returns an `IO` that yields the value of the first
|
|
@@ -870,8 +870,8 @@ function filterOrFail_(fa, predicate, failWith) {
|
|
|
870
870
|
*/
|
|
871
871
|
|
|
872
872
|
|
|
873
|
-
function firstSuccess(mas) {
|
|
874
|
-
return mas.reduce((b, a) => orElse_1(b, () => a,
|
|
873
|
+
function firstSuccess(mas, __tsplusTrace) {
|
|
874
|
+
return mas.reduce((b, a) => orElse_1(b, () => a, __tsplusTrace));
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
function filterOrHalt_(fa, predicate, haltWith, __tsplusTrace) {
|
|
@@ -882,8 +882,8 @@ function filterOrHalt_(fa, predicate, haltWith, __tsplusTrace) {
|
|
|
882
882
|
*/
|
|
883
883
|
|
|
884
884
|
|
|
885
|
-
function flatten(self) {
|
|
886
|
-
return flatMap_1(self, _function.identity,
|
|
885
|
+
function flatten(self, __tsplusTrace) {
|
|
886
|
+
return flatMap_1(self, _function.identity, __tsplusTrace);
|
|
887
887
|
}
|
|
888
888
|
/**
|
|
889
889
|
* Folds an `Iterable<A>` using an effectful function f, working sequentially from left to right.
|
|
@@ -905,12 +905,12 @@ function foldLeft_1(as, b, f, __tsplusTrace) {
|
|
|
905
905
|
function foldMap_(as, f,
|
|
906
906
|
/** @tsplus auto */
|
|
907
907
|
M) {
|
|
908
|
-
return foldLeft_1(as, M.nat, (m, a) => map_1(a, a => M.combine(m, f(a)), fileName_1 + ":
|
|
908
|
+
return foldLeft_1(as, M.nat, (m, a) => map_1(a, a => M.combine(m, f(a)), fileName_1 + ":788:48"), fileName_1 + ":788:21");
|
|
909
909
|
}
|
|
910
910
|
|
|
911
|
-
function foldRightLoop(iterator, b, f) {
|
|
911
|
+
function foldRightLoop(iterator, b, f, __tsplusTrace) {
|
|
912
912
|
const next = iterator.next();
|
|
913
|
-
return next.done ? b : f(next.value, foldRightLoop(iterator, b, f));
|
|
913
|
+
return next.done ? b : f(next.value, foldRightLoop(iterator, b, f, __tsplusTrace));
|
|
914
914
|
}
|
|
915
915
|
/**
|
|
916
916
|
* Performs a right-associative fold of an `Iterable<A>`
|
|
@@ -919,13 +919,13 @@ function foldRightLoop(iterator, b, f) {
|
|
|
919
919
|
*/
|
|
920
920
|
|
|
921
921
|
|
|
922
|
-
function foldRight_(as, b, f) {
|
|
923
|
-
return foldRightLoop(as[Symbol.iterator](), b, f);
|
|
922
|
+
function foldRight_(as, b, f, __tsplusTrace) {
|
|
923
|
+
return foldRightLoop(as[Symbol.iterator](), b, f, __tsplusTrace);
|
|
924
924
|
}
|
|
925
925
|
|
|
926
|
-
function foreachWithIndexDiscardLoop(iterator, f, i = 0) {
|
|
926
|
+
function foreachWithIndexDiscardLoop(iterator, f, i = 0, __tsplusTrace) {
|
|
927
927
|
const next = iterator.next();
|
|
928
|
-
return next.done ? unit_1 : flatMap_1(f(i, next.value), () => foreachWithIndexDiscardLoop(iterator, f, i + 1),
|
|
928
|
+
return next.done ? unit_1 : flatMap_1(f(i, next.value), () => foreachWithIndexDiscardLoop(iterator, f, i + 1, __tsplusTrace), __tsplusTrace);
|
|
929
929
|
}
|
|
930
930
|
/**
|
|
931
931
|
* Applies the function `f` to each element of the `Iterable<A>` and
|
|
@@ -944,7 +944,7 @@ function foreach_1(as, f, __tsplusTrace) {
|
|
|
944
944
|
return as_1(foreachWithIndexDiscard_1(as, (_, a) => flatMap_1(f(a), b => {
|
|
945
945
|
acc.push(b);
|
|
946
946
|
return unit_1;
|
|
947
|
-
}, __tsplusTrace)), () => tsplus_module_11.from(acc));
|
|
947
|
+
}, __tsplusTrace), __tsplusTrace), () => tsplus_module_11.from(acc), __tsplusTrace);
|
|
948
948
|
}, __tsplusTrace);
|
|
949
949
|
}
|
|
950
950
|
/**
|
|
@@ -958,22 +958,22 @@ function foreach_1(as, f, __tsplusTrace) {
|
|
|
958
958
|
*/
|
|
959
959
|
|
|
960
960
|
|
|
961
|
-
function foreachWithIndex_(as, f) {
|
|
961
|
+
function foreachWithIndex_(as, f, __tsplusTrace) {
|
|
962
962
|
return defer_1(() => {
|
|
963
963
|
const acc = [];
|
|
964
964
|
return as_1(foreachWithIndexDiscard_1(as, (i, a) => flatMap_1(f(i, a), b => {
|
|
965
965
|
acc.push(b);
|
|
966
966
|
return unit_1;
|
|
967
|
-
},
|
|
968
|
-
},
|
|
967
|
+
}, __tsplusTrace), __tsplusTrace), () => tsplus_module_11.from(acc), __tsplusTrace);
|
|
968
|
+
}, __tsplusTrace);
|
|
969
969
|
}
|
|
970
970
|
/**
|
|
971
971
|
* @tsplus static fncts.io.IOOps foreachWithIndexDiscard
|
|
972
972
|
*/
|
|
973
973
|
|
|
974
974
|
|
|
975
|
-
function foreachWithIndexDiscard_1(as, f) {
|
|
976
|
-
return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), f),
|
|
975
|
+
function foreachWithIndexDiscard_1(as, f, __tsplusTrace) {
|
|
976
|
+
return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), f), __tsplusTrace);
|
|
977
977
|
}
|
|
978
978
|
/**
|
|
979
979
|
* Applies the function `f` to each element of the `Iterable<A>` and runs
|
|
@@ -983,8 +983,8 @@ function foreachWithIndexDiscard_1(as, f) {
|
|
|
983
983
|
*/
|
|
984
984
|
|
|
985
985
|
|
|
986
|
-
function foreachDiscard_1(as, f) {
|
|
987
|
-
return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), (_, a) => f(a)),
|
|
986
|
+
function foreachDiscard_1(as, f, __tsplusTrace) {
|
|
987
|
+
return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), (_, a) => f(a)), __tsplusTrace);
|
|
988
988
|
}
|
|
989
989
|
/**
|
|
990
990
|
* Repeats this effect forever (until the first failure).
|
|
@@ -993,8 +993,8 @@ function foreachDiscard_1(as, f) {
|
|
|
993
993
|
*/
|
|
994
994
|
|
|
995
995
|
|
|
996
|
-
function forever_1(ma) {
|
|
997
|
-
return flatMap_1(apSecond_1(ma, yieldNow_1,
|
|
996
|
+
function forever_1(ma, __tsplusTrace) {
|
|
997
|
+
return flatMap_1(apSecond_1(ma, yieldNow_1, __tsplusTrace), () => forever_1(ma, __tsplusTrace), __tsplusTrace);
|
|
998
998
|
}
|
|
999
999
|
/**
|
|
1000
1000
|
* Returns an IO that forks this IO into its own separate fiber,
|
|
@@ -1137,8 +1137,8 @@ function fromPromiseHalt(promise, __tsplusTrace) {
|
|
|
1137
1137
|
*/
|
|
1138
1138
|
|
|
1139
1139
|
|
|
1140
|
-
function get(ma) {
|
|
1141
|
-
return matchCauseIO_1(ma, cause => failCauseNow_1(tsplus_module_5.map_(cause, tsplus_module_2.just),
|
|
1140
|
+
function get(ma, __tsplusTrace) {
|
|
1141
|
+
return matchCauseIO_1(ma, cause => failCauseNow_1(tsplus_module_5.map_(cause, tsplus_module_2.just), __tsplusTrace), ma => tsplus_module_4.match_(ma, () => failNow_1(tsplus_module_2.nothing(), __tsplusTrace), succeedNow_1), __tsplusTrace);
|
|
1142
1142
|
}
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Extracts the optional value, or returns the given 'orElse'.
|
|
@@ -1147,8 +1147,8 @@ function get(ma) {
|
|
|
1147
1147
|
*/
|
|
1148
1148
|
|
|
1149
1149
|
|
|
1150
|
-
function getOrElse_(ma, orElse) {
|
|
1151
|
-
return map_1(ma, ma => tsplus_module_7.getOrElse_(ma, orElse),
|
|
1150
|
+
function getOrElse_(ma, orElse, __tsplusTrace) {
|
|
1151
|
+
return map_1(ma, ma => tsplus_module_7.getOrElse_(ma, orElse), __tsplusTrace);
|
|
1152
1152
|
}
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Extracts the optional value, or executes the effect 'orElse'.
|
|
@@ -1157,8 +1157,8 @@ function getOrElse_(ma, orElse) {
|
|
|
1157
1157
|
*/
|
|
1158
1158
|
|
|
1159
1159
|
|
|
1160
|
-
function getOrElseIO_(ma, orElse) {
|
|
1161
|
-
return flatMap_1(ma, mab => tsplus_module_7.getOrElse_(tsplus_module_7.map_(mab, succeedNow_1), orElse),
|
|
1160
|
+
function getOrElseIO_(ma, orElse, __tsplusTrace) {
|
|
1161
|
+
return flatMap_1(ma, mab => tsplus_module_7.getOrElse_(tsplus_module_7.map_(mab, succeedNow_1), orElse), __tsplusTrace);
|
|
1162
1162
|
}
|
|
1163
1163
|
/**
|
|
1164
1164
|
* Lifts a Maybe into an IO. If the option is `Nothing`, fail with `onNothing`.
|
|
@@ -1167,8 +1167,8 @@ function getOrElseIO_(ma, orElse) {
|
|
|
1167
1167
|
*/
|
|
1168
1168
|
|
|
1169
1169
|
|
|
1170
|
-
function getOrFailWith_1(maybe, onNothing) {
|
|
1171
|
-
return defer_1(() => tsplus_module_4.match_(maybe, () => fail_1(onNothing,
|
|
1170
|
+
function getOrFailWith_1(maybe, onNothing, __tsplusTrace) {
|
|
1171
|
+
return defer_1(() => tsplus_module_4.match_(maybe, () => fail_1(onNothing, __tsplusTrace), succeedNow_1), __tsplusTrace);
|
|
1172
1172
|
}
|
|
1173
1173
|
/**
|
|
1174
1174
|
* Lifts a Maybe into a IO, if the Maybe is `Nothing` it fails with Unit.
|
|
@@ -1177,8 +1177,8 @@ function getOrFailWith_1(maybe, onNothing) {
|
|
|
1177
1177
|
*/
|
|
1178
1178
|
|
|
1179
1179
|
|
|
1180
|
-
function getOrFailUnit(option) {
|
|
1181
|
-
return getOrFailWith_1(option, () => undefined);
|
|
1180
|
+
function getOrFailUnit(option, __tsplusTrace) {
|
|
1181
|
+
return getOrFailWith_1(option, () => undefined, __tsplusTrace);
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Creates an `IO` that halts with the specified lazily-evaluated defect.
|
|
@@ -1209,8 +1209,8 @@ function haltNow_1(e, __tsplusTrace) {
|
|
|
1209
1209
|
*/
|
|
1210
1210
|
|
|
1211
1211
|
|
|
1212
|
-
function ifIO_1(self, onFalse, onTrue) {
|
|
1213
|
-
return flatMap_1(self, b => b ? onTrue() : onFalse(),
|
|
1212
|
+
function ifIO_1(self, onFalse, onTrue, __tsplusTrace) {
|
|
1213
|
+
return flatMap_1(self, b => b ? onTrue() : onFalse(), __tsplusTrace);
|
|
1214
1214
|
}
|
|
1215
1215
|
/**
|
|
1216
1216
|
* @tsplus static fncts.io.IOOps if
|
|
@@ -1218,15 +1218,15 @@ function ifIO_1(self, onFalse, onTrue) {
|
|
|
1218
1218
|
|
|
1219
1219
|
|
|
1220
1220
|
function if_(b, onTrue, onFalse, __tsplusTrace) {
|
|
1221
|
-
return ifIO_1(succeedNow_1(b, __tsplusTrace), onTrue, onFalse);
|
|
1221
|
+
return ifIO_1(succeedNow_1(b, __tsplusTrace), onTrue, onFalse, __tsplusTrace);
|
|
1222
1222
|
}
|
|
1223
1223
|
/**
|
|
1224
1224
|
* @tsplus getter fncts.io.IO ignore
|
|
1225
1225
|
*/
|
|
1226
1226
|
|
|
1227
1227
|
|
|
1228
|
-
function ignore(fa) {
|
|
1229
|
-
return match_1(fa, () => undefined, () => undefined,
|
|
1228
|
+
function ignore(fa, __tsplusTrace) {
|
|
1229
|
+
return match_1(fa, () => undefined, () => undefined, __tsplusTrace);
|
|
1230
1230
|
}
|
|
1231
1231
|
/**
|
|
1232
1232
|
* Folds a `IO` to a boolean describing whether or not it is a failure
|
|
@@ -1235,8 +1235,8 @@ function ignore(fa) {
|
|
|
1235
1235
|
*/
|
|
1236
1236
|
|
|
1237
1237
|
|
|
1238
|
-
function isFailure(ma) {
|
|
1239
|
-
return match_1(ma, () => true, () => false,
|
|
1238
|
+
function isFailure(ma, __tsplusTrace) {
|
|
1239
|
+
return match_1(ma, () => true, () => false, __tsplusTrace);
|
|
1240
1240
|
}
|
|
1241
1241
|
/**
|
|
1242
1242
|
* Folds a `IO` to a boolean describing whether or not it is a success
|
|
@@ -1245,8 +1245,8 @@ function isFailure(ma) {
|
|
|
1245
1245
|
*/
|
|
1246
1246
|
|
|
1247
1247
|
|
|
1248
|
-
function isSuccess(ma) {
|
|
1249
|
-
return match_1(ma, () => false, () => true,
|
|
1248
|
+
function isSuccess(ma, __tsplusTrace) {
|
|
1249
|
+
return match_1(ma, () => false, () => true, __tsplusTrace);
|
|
1250
1250
|
}
|
|
1251
1251
|
/**
|
|
1252
1252
|
* Iterates with the specified effectual function. The moral equivalent of:
|
|
@@ -1275,8 +1275,8 @@ function iterate_1(initial, cont, body, __tsplusTrace) {
|
|
|
1275
1275
|
*/
|
|
1276
1276
|
|
|
1277
1277
|
|
|
1278
|
-
function left(a) {
|
|
1279
|
-
return flatMap_1(succeed_1(a,
|
|
1278
|
+
function left(a, __tsplusTrace) {
|
|
1279
|
+
return flatMap_1(succeed_1(a, __tsplusTrace), a => succeedNow_1(tsplus_module_3.left(a), __tsplusTrace), __tsplusTrace);
|
|
1280
1280
|
}
|
|
1281
1281
|
/**
|
|
1282
1282
|
* @tsplus static fncts.io.IOOps log
|
|
@@ -1332,7 +1332,7 @@ function loop_1(initial, cont, inc, body, __tsplusTrace) {
|
|
|
1332
1332
|
|
|
1333
1333
|
function loopUnit_(initial, cont, inc, body, __tsplusTrace) {
|
|
1334
1334
|
if (cont(initial)) {
|
|
1335
|
-
return asUnit_1(flatMap_1(body(initial), () => loop_1(inc(initial), cont, inc, body, __tsplusTrace), __tsplusTrace));
|
|
1335
|
+
return asUnit_1(flatMap_1(body(initial), () => loop_1(inc(initial), cont, inc, body, __tsplusTrace), __tsplusTrace), __tsplusTrace);
|
|
1336
1336
|
} else {
|
|
1337
1337
|
return unit_1;
|
|
1338
1338
|
}
|
|
@@ -1455,7 +1455,7 @@ function merge(io, __tsplusTrace) {
|
|
|
1455
1455
|
|
|
1456
1456
|
|
|
1457
1457
|
function mergeAll_(fas, b, f, __tsplusTrace) {
|
|
1458
|
-
return tsplus_module_10.foldLeft_(fas, succeed_1(() => b, __tsplusTrace), (b, a) => zipWith_1(b, a, f));
|
|
1458
|
+
return tsplus_module_10.foldLeft_(fas, succeed_1(() => b, __tsplusTrace), (b, a) => zipWith_1(b, a, f, __tsplusTrace));
|
|
1459
1459
|
}
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Returns a `IO` that will never produce anything. The moral equivalent of
|
|
@@ -1470,8 +1470,8 @@ const never = /*#__PURE__*/defer_1(() => asyncInterrupt_1(() => {
|
|
|
1470
1470
|
}, 60000);
|
|
1471
1471
|
return tsplus_module_3.left(succeed_1(() => {
|
|
1472
1472
|
clearInterval(interval);
|
|
1473
|
-
}, fileName_1 + ":
|
|
1474
|
-
}), fileName_1 + ":
|
|
1473
|
+
}, fileName_1 + ":1444:17"));
|
|
1474
|
+
}), fileName_1 + ":1438:39");
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Converts an option on errors into an option on values.
|
|
1477
1477
|
*
|
|
@@ -1480,8 +1480,8 @@ const never = /*#__PURE__*/defer_1(() => asyncInterrupt_1(() => {
|
|
|
1480
1480
|
|
|
1481
1481
|
exports.never = never;
|
|
1482
1482
|
|
|
1483
|
-
function optional(ma) {
|
|
1484
|
-
return matchIO_1(ma, me => tsplus_module_4.match_(me, () => succeedNow_1(tsplus_module_2.nothing(),
|
|
1483
|
+
function optional(ma, __tsplusTrace) {
|
|
1484
|
+
return matchIO_1(ma, me => tsplus_module_4.match_(me, () => succeedNow_1(tsplus_module_2.nothing(), __tsplusTrace), failNow_1), a => succeedNow_1(tsplus_module_2.just(a), __tsplusTrace), __tsplusTrace);
|
|
1485
1485
|
}
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Returns the logical disjunction of the `Boolean` value returned by this
|
|
@@ -1517,8 +1517,8 @@ function orElseEither_(self, that, __tsplusTrace) {
|
|
|
1517
1517
|
*/
|
|
1518
1518
|
|
|
1519
1519
|
|
|
1520
|
-
function orElseFail_(ma, e) {
|
|
1521
|
-
return orElse_1(ma, () => fail_1(e,
|
|
1520
|
+
function orElseFail_(ma, e, __tsplusTrace) {
|
|
1521
|
+
return orElse_1(ma, () => fail_1(e, __tsplusTrace), __tsplusTrace);
|
|
1522
1522
|
}
|
|
1523
1523
|
/**
|
|
1524
1524
|
* @tsplus fluent fncts.io.IO orElseMaybe
|
|
@@ -1549,8 +1549,8 @@ function orHalt(ma, __tsplusTrace) {
|
|
|
1549
1549
|
*/
|
|
1550
1550
|
|
|
1551
1551
|
|
|
1552
|
-
function orHaltKeep(ma) {
|
|
1553
|
-
return matchCauseIO_1(ma, cause => failCauseNow_1(tsplus_module_5.flatMap_(cause, tsplus_module_5.halt),
|
|
1552
|
+
function orHaltKeep(ma, __tsplusTrace) {
|
|
1553
|
+
return matchCauseIO_1(ma, cause => failCauseNow_1(tsplus_module_5.flatMap_(cause, tsplus_module_5.halt), __tsplusTrace), succeedNow_1, __tsplusTrace);
|
|
1554
1554
|
}
|
|
1555
1555
|
/**
|
|
1556
1556
|
* @tsplus fluent fncts.io.IO orHaltWith
|
|
@@ -1567,16 +1567,16 @@ function orHaltWith_1(ma, f, __tsplusTrace) {
|
|
|
1567
1567
|
*/
|
|
1568
1568
|
|
|
1569
1569
|
|
|
1570
|
-
function parallelErrors(io) {
|
|
1570
|
+
function parallelErrors(io, __tsplusTrace) {
|
|
1571
1571
|
return matchCauseIO_1(io, cause => {
|
|
1572
1572
|
const f = tsplus_module_5.failures(cause);
|
|
1573
1573
|
|
|
1574
1574
|
if (tsplus_module_17.length(f) === 0) {
|
|
1575
|
-
return failCauseNow_1(cause,
|
|
1575
|
+
return failCauseNow_1(cause, __tsplusTrace);
|
|
1576
1576
|
} else {
|
|
1577
|
-
return failNow_1(f,
|
|
1577
|
+
return failNow_1(f, __tsplusTrace);
|
|
1578
1578
|
}
|
|
1579
|
-
}, succeedNow_1,
|
|
1579
|
+
}, succeedNow_1, __tsplusTrace);
|
|
1580
1580
|
}
|
|
1581
1581
|
/**
|
|
1582
1582
|
* Feeds elements of type `A` to a function `f` that returns an IO.
|
|
@@ -1597,7 +1597,7 @@ function partition_(as, f, __tsplusTrace) {
|
|
|
1597
1597
|
|
|
1598
1598
|
|
|
1599
1599
|
function refineOrHalt_(fa, pf, __tsplusTrace) {
|
|
1600
|
-
return refineOrHaltWith_1(fa, pf, _function.identity);
|
|
1600
|
+
return refineOrHaltWith_1(fa, pf, _function.identity, __tsplusTrace);
|
|
1601
1601
|
}
|
|
1602
1602
|
/**
|
|
1603
1603
|
* Keeps some of the errors, and terminates the fiber with the rest, using
|
|
@@ -1607,8 +1607,8 @@ function refineOrHalt_(fa, pf, __tsplusTrace) {
|
|
|
1607
1607
|
*/
|
|
1608
1608
|
|
|
1609
1609
|
|
|
1610
|
-
function refineOrHaltWith_1(fa, pf, f) {
|
|
1611
|
-
return catchAll_1(fa, e => tsplus_module_4.match_(pf(e), () => haltNow_1(f(e),
|
|
1610
|
+
function refineOrHaltWith_1(fa, pf, f, __tsplusTrace) {
|
|
1611
|
+
return catchAll_1(fa, e => tsplus_module_4.match_(pf(e), () => haltNow_1(f(e), __tsplusTrace), failNow_1), __tsplusTrace);
|
|
1612
1612
|
}
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Fail with the returned value if the partial function `pf` matches, otherwise
|
|
@@ -1670,8 +1670,8 @@ function repeatUntilIO_1(ma, f, __tsplusTrace) {
|
|
|
1670
1670
|
*/
|
|
1671
1671
|
|
|
1672
1672
|
|
|
1673
|
-
function repeatWhile_(ma, f) {
|
|
1674
|
-
return repeatWhileIO_1(ma, a => succeedNow_1(f(a),
|
|
1673
|
+
function repeatWhile_(ma, f, __tsplusTrace) {
|
|
1674
|
+
return repeatWhileIO_1(ma, a => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace);
|
|
1675
1675
|
}
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Repeats this effect while its error satisfies the specified effectful predicate.
|
|
@@ -1717,8 +1717,8 @@ function result(ma, __tsplusTrace) {
|
|
|
1717
1717
|
*/
|
|
1718
1718
|
|
|
1719
1719
|
|
|
1720
|
-
function resurrect(io) {
|
|
1721
|
-
return unrefineWith_1(io, tsplus_module_2.just, _function.identity,
|
|
1720
|
+
function resurrect(io, __tsplusTrace) {
|
|
1721
|
+
return unrefineWith_1(io, tsplus_module_2.just, _function.identity, __tsplusTrace);
|
|
1722
1722
|
}
|
|
1723
1723
|
/**
|
|
1724
1724
|
* Retries this effect until its error satisfies the specified predicate.
|
|
@@ -1767,7 +1767,7 @@ function retryWhileIO_1(fa, f, __tsplusTrace) {
|
|
|
1767
1767
|
*/
|
|
1768
1768
|
|
|
1769
1769
|
|
|
1770
|
-
const runtimeConfig = /*#__PURE__*/deferWith_1(runtimeConfig => succeedNow_1(runtimeConfig, fileName_1 + ":
|
|
1770
|
+
const runtimeConfig = /*#__PURE__*/deferWith_1(runtimeConfig => succeedNow_1(runtimeConfig, fileName_1 + ":1777:95"), fileName_1 + ":1777:62");
|
|
1771
1771
|
/**
|
|
1772
1772
|
* Exposes the full cause of failure of this effect.
|
|
1773
1773
|
*
|
|
@@ -1785,7 +1785,7 @@ function sandbox_1(fa, __tsplusTrace) {
|
|
|
1785
1785
|
|
|
1786
1786
|
|
|
1787
1787
|
function sandboxWith_(ma, f, __tsplusTrace) {
|
|
1788
|
-
return unsandbox_1(f(sandbox_1(ma, __tsplusTrace)));
|
|
1788
|
+
return unsandbox_1(f(sandbox_1(ma, __tsplusTrace)), __tsplusTrace);
|
|
1789
1789
|
}
|
|
1790
1790
|
/**
|
|
1791
1791
|
* Sets the runtime configuration to the specified value.
|
|
@@ -1801,8 +1801,8 @@ function setRuntimeConfig(runtimeConfig, __tsplusTrace) {
|
|
|
1801
1801
|
*/
|
|
1802
1802
|
|
|
1803
1803
|
|
|
1804
|
-
function sequenceIterable(as) {
|
|
1805
|
-
return foreach_1(as, _function.identity,
|
|
1804
|
+
function sequenceIterable(as, __tsplusTrace) {
|
|
1805
|
+
return foreach_1(as, _function.identity, __tsplusTrace);
|
|
1806
1806
|
}
|
|
1807
1807
|
/**
|
|
1808
1808
|
* @tsplus static fncts.io.IOOps sequenceIterableDiscard
|
|
@@ -1810,7 +1810,7 @@ function sequenceIterable(as) {
|
|
|
1810
1810
|
|
|
1811
1811
|
|
|
1812
1812
|
function sequenceIterableDiscard(as, __tsplusTrace) {
|
|
1813
|
-
return foreachDiscard_1(as, _function.identity);
|
|
1813
|
+
return foreachDiscard_1(as, _function.identity, __tsplusTrace);
|
|
1814
1814
|
}
|
|
1815
1815
|
/**
|
|
1816
1816
|
* Creates a `IO` that has succeeded with a pure value
|
|
@@ -1858,7 +1858,7 @@ function summarized_1(ma, summary, f, __tsplusTrace) {
|
|
|
1858
1858
|
const value = yield* _(ma, __tsplusTrace);
|
|
1859
1859
|
const end = yield* _(summary, __tsplusTrace);
|
|
1860
1860
|
return (0, _function.tuple)(f(start, end), value);
|
|
1861
|
-
});
|
|
1861
|
+
}, __tsplusTrace);
|
|
1862
1862
|
}
|
|
1863
1863
|
/**
|
|
1864
1864
|
* Swaps the positions of a Bifunctor's arguments
|
|
@@ -1867,8 +1867,8 @@ function summarized_1(ma, summary, f, __tsplusTrace) {
|
|
|
1867
1867
|
*/
|
|
1868
1868
|
|
|
1869
1869
|
|
|
1870
|
-
function swap_1(pab) {
|
|
1871
|
-
return matchIO_1(pab, succeedNow_1, failNow_1,
|
|
1870
|
+
function swap_1(pab, __tsplusTrace) {
|
|
1871
|
+
return matchIO_1(pab, succeedNow_1, failNow_1, __tsplusTrace);
|
|
1872
1872
|
}
|
|
1873
1873
|
/**
|
|
1874
1874
|
* Swaps the error/value parameters, applies the function `f` and flips the parameters back
|
|
@@ -1877,8 +1877,8 @@ function swap_1(pab) {
|
|
|
1877
1877
|
*/
|
|
1878
1878
|
|
|
1879
1879
|
|
|
1880
|
-
function swapWith_1(fa, f) {
|
|
1881
|
-
return swap_1(f(swap_1(fa)));
|
|
1880
|
+
function swapWith_1(fa, f, __tsplusTrace) {
|
|
1881
|
+
return swap_1(f(swap_1(fa, __tsplusTrace)), __tsplusTrace);
|
|
1882
1882
|
}
|
|
1883
1883
|
/**
|
|
1884
1884
|
* A more powerful variation of `timed` that allows specifying the clock.
|
|
@@ -1974,7 +1974,7 @@ function tryOrElse_1(ma, that, onSuccess, __tsplusTrace) {
|
|
|
1974
1974
|
*/
|
|
1975
1975
|
|
|
1976
1976
|
|
|
1977
|
-
const unit_1 = /*#__PURE__*/succeedNow_1(undefined, fileName_1 + ":
|
|
1977
|
+
const unit_1 = /*#__PURE__*/succeedNow_1(undefined, fileName_1 + ":2004:45");
|
|
1978
1978
|
const unit = unit_1;
|
|
1979
1979
|
/**
|
|
1980
1980
|
* Converts an option on errors into an option on values.
|
|
@@ -1984,8 +1984,8 @@ const unit = unit_1;
|
|
|
1984
1984
|
|
|
1985
1985
|
exports.unit = unit;
|
|
1986
1986
|
|
|
1987
|
-
function unjust(self) {
|
|
1988
|
-
return matchIO_1(self, e => tsplus_module_4.match_(e, () => succeedNow_1(tsplus_module_2.nothing(),
|
|
1987
|
+
function unjust(self, __tsplusTrace) {
|
|
1988
|
+
return matchIO_1(self, e => tsplus_module_4.match_(e, () => succeedNow_1(tsplus_module_2.nothing(), __tsplusTrace), failNow_1), a => succeedNow_1(tsplus_module_2.just(a), __tsplusTrace), __tsplusTrace);
|
|
1989
1989
|
}
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Takes some fiber failures and converts them into errors, using the
|
|
@@ -2005,8 +2005,8 @@ function unrefineWith_1(fa, pf, f, __tsplusTrace) {
|
|
|
2005
2005
|
*/
|
|
2006
2006
|
|
|
2007
2007
|
|
|
2008
|
-
function unsandbox_1(ma) {
|
|
2009
|
-
return mapErrorCause_1(ma, cause => tsplus_module_5.flatten(cause),
|
|
2008
|
+
function unsandbox_1(ma, __tsplusTrace) {
|
|
2009
|
+
return mapErrorCause_1(ma, cause => tsplus_module_5.flatten(cause), __tsplusTrace);
|
|
2010
2010
|
}
|
|
2011
2011
|
/**
|
|
2012
2012
|
* Updates the `FiberRef` values for the fiber running this effect using the
|
|
@@ -2032,7 +2032,7 @@ const via = _function.pipe;
|
|
|
2032
2032
|
exports.via = via;
|
|
2033
2033
|
|
|
2034
2034
|
function when_(ma, b, __tsplusTrace) {
|
|
2035
|
-
return whenIO_1(ma, succeed_1(b, __tsplusTrace));
|
|
2035
|
+
return whenIO_1(ma, succeed_1(b, __tsplusTrace), __tsplusTrace);
|
|
2036
2036
|
}
|
|
2037
2037
|
/**
|
|
2038
2038
|
* The moral equivalent of `if (p) exp` when `p` has side-effects
|
|
@@ -2041,8 +2041,8 @@ function when_(ma, b, __tsplusTrace) {
|
|
|
2041
2041
|
*/
|
|
2042
2042
|
|
|
2043
2043
|
|
|
2044
|
-
function whenIO_1(ma, mb) {
|
|
2045
|
-
return flatMap_1(mb, b => b ? asUnit_1(ma) : unit_1,
|
|
2044
|
+
function whenIO_1(ma, mb, __tsplusTrace) {
|
|
2045
|
+
return flatMap_1(mb, b => b ? asUnit_1(ma, __tsplusTrace) : unit_1, __tsplusTrace);
|
|
2046
2046
|
}
|
|
2047
2047
|
/**
|
|
2048
2048
|
* Returns an effect that yields to the runtime system, starting on a fresh
|
|
@@ -2061,16 +2061,16 @@ const yieldNow = yieldNow_1;
|
|
|
2061
2061
|
|
|
2062
2062
|
exports.yieldNow = yieldNow;
|
|
2063
2063
|
|
|
2064
|
-
function zip_(self, that) {
|
|
2065
|
-
return zipWith_1(self, that, _function.tuple);
|
|
2064
|
+
function zip_(self, that, __tsplusTrace) {
|
|
2065
|
+
return zipWith_1(self, that, _function.tuple, __tsplusTrace);
|
|
2066
2066
|
}
|
|
2067
2067
|
/**
|
|
2068
2068
|
* @tsplus fluent fncts.io.IO zipWith
|
|
2069
2069
|
*/
|
|
2070
2070
|
|
|
2071
2071
|
|
|
2072
|
-
function zipWith_1(self, that, f) {
|
|
2073
|
-
return flatMap_1(self, a => map_1(that, b => f(a, b),
|
|
2072
|
+
function zipWith_1(self, that, f, __tsplusTrace) {
|
|
2073
|
+
return flatMap_1(self, a => map_1(that, b => f(a, b), __tsplusTrace), __tsplusTrace);
|
|
2074
2074
|
}
|
|
2075
2075
|
|
|
2076
2076
|
class GenIO {
|
|
@@ -2122,14 +2122,14 @@ const adapter = (_, __tsplusTrace) => {
|
|
|
2122
2122
|
*/
|
|
2123
2123
|
|
|
2124
2124
|
|
|
2125
|
-
function gen_1(f) {
|
|
2125
|
+
function gen_1(f, __tsplusTrace) {
|
|
2126
2126
|
return defer_1(() => {
|
|
2127
2127
|
const iterator = f(adapter);
|
|
2128
2128
|
const state = iterator.next();
|
|
2129
2129
|
|
|
2130
2130
|
const run = state => {
|
|
2131
2131
|
if (state.done) {
|
|
2132
|
-
return succeed_1(() => state.value,
|
|
2132
|
+
return succeed_1(() => state.value, __tsplusTrace);
|
|
2133
2133
|
}
|
|
2134
2134
|
|
|
2135
2135
|
const f = val => {
|
|
@@ -2137,10 +2137,10 @@ function gen_1(f) {
|
|
|
2137
2137
|
return run(next);
|
|
2138
2138
|
};
|
|
2139
2139
|
|
|
2140
|
-
return flatMap_1(state.value.effect, f,
|
|
2140
|
+
return flatMap_1(state.value.effect, f, __tsplusTrace);
|
|
2141
2141
|
};
|
|
2142
2142
|
|
|
2143
2143
|
return run(state);
|
|
2144
|
-
},
|
|
2144
|
+
}, __tsplusTrace);
|
|
2145
2145
|
}
|
|
2146
2146
|
//# sourceMappingURL=api.cjs.map
|