@fncts/io 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/Cached/api.d.ts +2 -2
- package/Channel/ChildExecutorDecision/api.d.ts +2 -2
- package/Channel/UpstreamPullRequest/api.d.ts +2 -2
- package/Channel/api/interruptWhen.d.ts +5 -5
- package/Channel/api/mapOutIOC.d.ts +3 -3
- package/Channel/api/mergeAll.d.ts +2 -2
- package/Channel/api/mergeAllUnboundedWith.d.ts +2 -2
- package/Channel/api/mergeAllWith.d.ts +2 -2
- package/Channel/api/mergeMap.d.ts +2 -2
- package/Channel/api/mergeWith.d.ts +2 -2
- package/Channel/api/zipC.d.ts +6 -6
- package/Channel/api.d.ts +64 -64
- package/Channel/core-api.d.ts +11 -11
- package/Channel/definition.d.ts +35 -21
- package/Differ/api.d.ts +24 -0
- package/Differ/definition.d.ts +15 -0
- package/Fiber/api/evalOn.d.ts +3 -3
- package/Fiber/api/evalOnIO.d.ts +3 -3
- package/Fiber/api/interruptAs.d.ts +3 -3
- package/Fiber/api/interruptAsFork.d.ts +3 -3
- package/Fiber/api/mapFiber.d.ts +2 -2
- package/Fiber/api/mapIO.d.ts +5 -5
- package/Fiber/api/zipWith.d.ts +2 -2
- package/Fiber.d.ts +1 -0
- package/FiberRef/api/locallyScoped.d.ts +2 -2
- package/FiberRef/api/locallyScopedWith.d.ts +2 -2
- package/FiberRef/api.d.ts +18 -18
- package/FiberRef/unsafe.d.ts +12 -6
- package/FiberRefs/api.d.ts +2 -2
- package/FiberRefs/join.d.ts +3 -3
- package/Future/api.d.ts +21 -21
- package/Hub/constructors.d.ts +49 -0
- package/Hub/definition.d.ts +37 -81
- package/Hub/internal.d.ts +4 -11
- package/Hub.d.ts +1 -1
- package/IO/api/acquireRelease.d.ts +1 -1
- package/IO/api/acquireReleaseExit.d.ts +1 -1
- package/IO/api/bracket.d.ts +1 -1
- package/IO/api/bracketExit.d.ts +1 -1
- package/IO/api/concurrency.d.ts +2 -2
- package/IO/api/core-scope.d.ts +5 -5
- package/IO/api/ensuringChildren.d.ts +3 -3
- package/IO/api/environment.d.ts +11 -15
- package/IO/api/foreachC.d.ts +2 -2
- package/IO/api/foreachExec.d.ts +1 -1
- package/IO/api/forkIn.d.ts +3 -3
- package/IO/api/fulfill.d.ts +3 -3
- package/IO/api/interrupt.d.ts +6 -6
- package/IO/api/onExit.d.ts +3 -3
- package/IO/api/onTermination.d.ts +4 -4
- package/IO/api/provideLayer.d.ts +3 -3
- package/IO/api/provideSomeLayer.d.ts +3 -7
- package/IO/api/race.d.ts +2 -2
- package/IO/api/raceFirst.d.ts +2 -2
- package/IO/api/repeat.d.ts +3 -3
- package/IO/api/retry.d.ts +7 -7
- package/IO/api/schedule.d.ts +5 -5
- package/IO/api/scoped.d.ts +2 -2
- package/IO/api/supervised.d.ts +3 -3
- package/IO/api/timeout.d.ts +5 -5
- package/IO/api/withFinalizer.d.ts +3 -3
- package/IO/api/withFinalizerExit.d.ts +3 -3
- package/IO/api/withRuntimeConfig.d.ts +3 -3
- package/IO/api/zipC.d.ts +4 -4
- package/IO/api.d.ts +179 -176
- package/IO/definition.d.ts +15 -9
- package/IOEnv/services.d.ts +2 -2
- package/Layer/MemoMap.d.ts +4 -4
- package/Layer/api.d.ts +28 -28
- package/LogLevel.d.ts +12 -12
- package/LogSpan.d.ts +2 -2
- package/Logger/api.d.ts +5 -5
- package/Queue/constructors.d.ts +2 -1
- package/Queue/definition.d.ts +91 -82
- package/Queue/internal.d.ts +7 -9
- package/Queue.d.ts +0 -2
- package/Ref/Atomic.d.ts +15 -2
- package/Ref/Synchronized.d.ts +72 -0
- package/Ref/constructors.d.ts +7 -0
- package/Ref/definition.d.ts +60 -58
- package/Ref.d.ts +1 -6
- package/STM/api/core-api.d.ts +10 -10
- package/STM/api.d.ts +61 -61
- package/STM/internal/Journal.d.ts +4 -4
- package/Schedule/Decision.d.ts +2 -2
- package/Schedule/api.d.ts +94 -94
- package/Scope/ReleaseMap/api/releaseAll.d.ts +2 -2
- package/Scope/ReleaseMap/api.d.ts +10 -10
- package/Scope/api.d.ts +8 -8
- package/Sink/api.d.ts +68 -68
- package/State/api.d.ts +4 -4
- package/State/internal.d.ts +1 -1
- package/Stream/api/zipAllWith.d.ts +2 -2
- package/Stream/api/zipWith.d.ts +2 -2
- package/Stream/api/zipWithChunks.d.ts +2 -2
- package/Stream/api.d.ts +216 -205
- package/Stream/internal/DebounceState.d.ts +3 -3
- package/Stream/internal/Handoff.d.ts +5 -5
- package/Stream/internal/Pull.d.ts +2 -2
- package/Stream/internal/SinkEndReason.d.ts +3 -3
- package/Stream/internal/Take.d.ts +8 -8
- package/SubscriptionRef.d.ts +29 -0
- package/Supervisor/api.d.ts +13 -7
- package/Supervisor/definition.d.ts +28 -0
- package/SupervisorPatch.d.ts +61 -0
- package/TFuture/api.d.ts +7 -7
- package/TReentrantLock/api.d.ts +4 -4
- package/TRef/api.d.ts +24 -24
- package/TSemaphore/api.d.ts +4 -4
- package/TSemaphore/constructors.d.ts +6 -0
- package/_cjs/Cached/api.cjs +9 -9
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs +19 -17
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +16 -14
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +14 -10
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutIOC.cjs +25 -25
- package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAll.cjs +6 -4
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +6 -4
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +48 -52
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +6 -4
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +48 -46
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +1 -1
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +2 -2
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +3 -3
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipC.cjs +20 -14
- package/_cjs/Channel/api/zipC.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +264 -218
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +34 -24
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +1 -1
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +83 -83
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +22 -24
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +108 -0
- package/_cjs/Differ/api.cjs.map +1 -0
- package/_cjs/Differ/definition.cjs +23 -0
- package/_cjs/Differ/definition.cjs.map +1 -0
- package/_cjs/Fiber/FiberContext.cjs +48 -48
- package/_cjs/Fiber/FiberContext.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +1 -1
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/evalOn.cjs +12 -10
- package/_cjs/Fiber/api/evalOn.cjs.map +1 -1
- package/_cjs/Fiber/api/evalOnIO.cjs +6 -4
- package/_cjs/Fiber/api/evalOnIO.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +1 -1
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +1 -1
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +2 -2
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +6 -4
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAsFork.cjs +6 -4
- package/_cjs/Fiber/api/interruptAsFork.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 +1 -1
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +1 -1
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +6 -4
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +14 -10
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +6 -4
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/Fiber.cjs +13 -0
- package/_cjs/Fiber.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +6 -4
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +5 -3
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +64 -47
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +1 -1
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +35 -21
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +15 -13
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/join.cjs +37 -35
- package/_cjs/FiberRefs/join.cjs.map +1 -1
- package/_cjs/FiberState/definition.cjs.map +1 -1
- package/_cjs/Future/api.cjs +97 -79
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +1 -1
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Hub/constructors.cjs +93 -0
- package/_cjs/Hub/constructors.cjs.map +1 -0
- package/_cjs/Hub/definition.cjs +104 -13
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +104 -129
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/Hub.cjs +4 -4
- 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/addFinalizerExit.cjs +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +4 -4
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +3 -3
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +3 -3
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/clockWith.cjs +2 -2
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +9 -7
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +2 -2
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/core-scope.cjs +45 -41
- package/_cjs/IO/api/core-scope.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +5 -3
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +35 -35
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachC.cjs +19 -23
- package/_cjs/IO/api/foreachC.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +3 -3
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +1 -1
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +8 -6
- 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 +8 -6
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +36 -30
- 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 +6 -4
- package/_cjs/IO/api/onExit.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +5 -3
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +3 -5
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +6 -4
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +5 -15
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +6 -4
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +6 -4
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +1 -1
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +12 -12
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +14 -14
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +15 -11
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +6 -6
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sequenceT.cjs +1 -1
- package/_cjs/IO/api/sequenceT.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +6 -4
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +10 -6
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +1 -1
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +6 -4
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +6 -4
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/withRuntimeConfig.cjs +6 -4
- package/_cjs/IO/api/withRuntimeConfig.cjs.map +1 -1
- package/_cjs/IO/api/zipC.cjs +21 -17
- package/_cjs/IO/api/zipC.cjs.map +1 -1
- package/_cjs/IO/api.cjs +634 -509
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +7 -7
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +1 -1
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +1 -1
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +86 -92
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +110 -81
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +24 -16
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs +18 -16
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +18 -14
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +1 -1
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +19 -5
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +191 -16
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +27 -181
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +19 -19
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Queue.cjs +0 -26
- package/_cjs/Queue.cjs.map +1 -1
- package/_cjs/Random/live.cjs +2 -2
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +47 -24
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Synchronized.cjs +140 -0
- package/_cjs/Ref/Synchronized.cjs.map +1 -0
- package/_cjs/Ref/constructors.cjs +21 -2
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +105 -10
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Ref.cjs +4 -69
- package/_cjs/Ref.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +10 -10
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/RuntimeConfig.cjs +2 -2
- package/_cjs/RuntimeConfig.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +36 -26
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api.cjs +217 -163
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +3 -3
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +33 -29
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +16 -14
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +16 -20
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +381 -290
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +14 -14
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +68 -61
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +34 -27
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +9 -13
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +1 -1
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +307 -249
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/State/api.cjs +18 -14
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +15 -13
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +6 -4
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +13 -11
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +992 -788
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +21 -19
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +35 -33
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +9 -11
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +16 -14
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +32 -24
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +3 -3
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +68 -0
- package/_cjs/SubscriptionRef.cjs.map +1 -0
- package/_cjs/Supervisor/api.cjs +49 -34
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +2 -2
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +66 -1
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +176 -0
- package/_cjs/SupervisorPatch.cjs.map +1 -0
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +21 -15
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +1 -1
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +32 -28
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +4 -4
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +233 -209
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +4 -4
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +27 -23
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +18 -3
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +21 -19
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +21 -19
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +16 -14
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +19 -17
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +11 -9
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +31 -29
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +6 -4
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +13 -11
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +18 -16
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +11 -9
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs +6 -6
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs +18 -16
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +14 -12
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/api/interruptWhen.mjs +11 -7
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutIOC.mjs +24 -23
- package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAll.mjs +5 -3
- package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +5 -3
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +45 -46
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeMap.mjs +5 -3
- package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +46 -44
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +1 -1
- package/_mjs/Channel/api/run.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +2 -2
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs +3 -3
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api/zipC.mjs +16 -10
- package/_mjs/Channel/api/zipC.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +224 -173
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +28 -18
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +1 -1
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +83 -83
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +22 -23
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Differ/api.mjs +90 -0
- package/_mjs/Differ/api.mjs.map +1 -0
- package/_mjs/Differ/definition.mjs +13 -0
- package/_mjs/Differ/definition.mjs.map +1 -0
- package/_mjs/Fiber/FiberContext.mjs +48 -48
- package/_mjs/Fiber/FiberContext.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +1 -1
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/evalOn.mjs +11 -9
- package/_mjs/Fiber/api/evalOn.mjs.map +1 -1
- package/_mjs/Fiber/api/evalOnIO.mjs +5 -3
- package/_mjs/Fiber/api/evalOnIO.mjs.map +1 -1
- package/_mjs/Fiber/api/fromIO.mjs +1 -1
- package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +1 -1
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +2 -2
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +6 -4
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAsFork.mjs +6 -4
- package/_mjs/Fiber/api/interruptAsFork.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 +1 -1
- package/_mjs/Fiber/api/join.mjs.map +1 -1
- package/_mjs/Fiber/api/joinAll.mjs +1 -1
- package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +5 -3
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +11 -7
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +5 -3
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/Fiber.mjs +1 -0
- package/_mjs/Fiber.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +5 -3
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +5 -3
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +52 -36
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +1 -1
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +31 -20
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +14 -12
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/join.mjs +35 -33
- package/_mjs/FiberRefs/join.mjs.map +1 -1
- package/_mjs/FiberState/definition.mjs.map +1 -1
- package/_mjs/Future/api.mjs +84 -66
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +1 -1
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Hub/constructors.mjs +66 -0
- package/_mjs/Hub/constructors.mjs.map +1 -0
- package/_mjs/Hub/definition.mjs +88 -9
- package/_mjs/Hub/definition.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +105 -122
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/Hub.mjs +1 -1
- package/_mjs/Hub.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/addFinalizerExit.mjs +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +4 -4
- 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 -2
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/clockWith.mjs +2 -2
- package/_mjs/IO/api/clockWith.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +8 -6
- package/_mjs/IO/api/concurrency.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/consoleWith.mjs +2 -2
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/core-scope.mjs +40 -36
- package/_mjs/IO/api/core-scope.mjs.map +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs +5 -3
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +29 -27
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/foreachC.mjs +17 -19
- package/_mjs/IO/api/foreachC.mjs.map +1 -1
- package/_mjs/IO/api/foreachExec.mjs +2 -2
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/forkAll.mjs +1 -1
- package/_mjs/IO/api/forkAll.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +7 -5
- 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 +7 -5
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +34 -28
- 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 +5 -3
- package/_mjs/IO/api/onExit.mjs.map +1 -1
- package/_mjs/IO/api/onTermination.mjs +5 -3
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/once.mjs +3 -4
- package/_mjs/IO/api/once.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +5 -3
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +5 -11
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +5 -3
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +5 -3
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +1 -1
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +8 -8
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +12 -12
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +15 -11
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +3 -3
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/sequenceT.mjs +1 -1
- package/_mjs/IO/api/sequenceT.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +5 -3
- package/_mjs/IO/api/supervised.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +10 -6
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/withChildren.mjs +1 -1
- package/_mjs/IO/api/withChildren.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizer.mjs +5 -3
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +5 -3
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/withRuntimeConfig.mjs +5 -3
- package/_mjs/IO/api/withRuntimeConfig.mjs.map +1 -1
- package/_mjs/IO/api/zipC.mjs +18 -14
- package/_mjs/IO/api/zipC.mjs.map +1 -1
- package/_mjs/IO/api.mjs +511 -387
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +7 -7
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs +1 -1
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/IOEnv/live.mjs +1 -1
- package/_mjs/IOEnv/live.mjs.map +1 -1
- package/_mjs/IOEnv/services.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +86 -87
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +91 -63
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/LogLevel.mjs +24 -16
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs +16 -14
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs +16 -12
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs +1 -1
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Queue/constructors.mjs +16 -5
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/definition.mjs +174 -12
- package/_mjs/Queue/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +21 -170
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +20 -23
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Queue.mjs +1 -3
- package/_mjs/Queue.mjs.map +1 -1
- package/_mjs/Random/live.mjs +2 -2
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Ref/Atomic.mjs +39 -3
- package/_mjs/Ref/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Synchronized.mjs +123 -0
- package/_mjs/Ref/Synchronized.mjs.map +1 -0
- package/_mjs/Ref/constructors.mjs +15 -1
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs +96 -4
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/Ref.mjs +1 -8
- package/_mjs/Ref.mjs.map +1 -1
- package/_mjs/Reloadable/constructors.mjs +10 -10
- package/_mjs/Reloadable/constructors.mjs.map +1 -1
- package/_mjs/RuntimeConfig.mjs +2 -2
- package/_mjs/RuntimeConfig.mjs.map +1 -1
- package/_mjs/STM/api/core-api.mjs +29 -19
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api.mjs +180 -127
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +3 -3
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/Entry.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +33 -29
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +14 -12
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +15 -17
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +326 -234
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +12 -11
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +60 -51
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +28 -22
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +9 -11
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef/definition.mjs +1 -1
- package/_mjs/ScopedRef/definition.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +301 -240
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/State/api.mjs +16 -12
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +14 -12
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +5 -3
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +12 -10
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +856 -653
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +18 -16
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +35 -32
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +9 -10
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +14 -12
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +28 -20
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs +3 -3
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +45 -0
- package/_mjs/SubscriptionRef.mjs.map +1 -0
- package/_mjs/Supervisor/api.mjs +44 -33
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +2 -2
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +55 -0
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +135 -0
- package/_mjs/SupervisorPatch.mjs.map +1 -0
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +17 -11
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +1 -1
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +32 -28
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +4 -4
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +218 -194
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +4 -4
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +23 -19
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +12 -2
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +19 -17
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +19 -17
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +14 -12
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +17 -15
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +10 -8
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +28 -26
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +5 -3
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs +13 -11
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +18 -16
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs +10 -8
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/Cached/api.ts +2 -2
- package/_src/Channel/ChildExecutorDecision/api.ts +14 -17
- package/_src/Channel/UpstreamPullRequest/api.ts +11 -13
- package/_src/Channel/api/interruptWhen.ts +18 -17
- package/_src/Channel/api/mapOutIOC.ts +58 -58
- package/_src/Channel/api/mergeAll.ts +15 -16
- package/_src/Channel/api/mergeAllUnboundedWith.ts +15 -27
- package/_src/Channel/api/mergeAllWith.ts +114 -126
- package/_src/Channel/api/mergeMap.ts +8 -18
- package/_src/Channel/api/mergeWith.ts +154 -158
- package/_src/Channel/api/toPull.ts +1 -1
- package/_src/Channel/api/zipC.ts +52 -88
- package/_src/Channel/api.ts +345 -405
- package/_src/Channel/core-api.ts +75 -122
- package/_src/Channel/definition.ts +49 -7
- package/_src/Channel/internal/ChannelExecutor.ts +1 -5
- package/_src/Channel/internal/SingleProducerAsyncInput.ts +1 -3
- package/_src/Differ/api.ts +72 -0
- package/_src/Differ/definition.ts +16 -0
- package/_src/Fiber/FiberContext.ts +13 -33
- package/_src/Fiber/api/collectAll.ts +1 -2
- package/_src/Fiber/api/evalOn.ts +11 -14
- package/_src/Fiber/api/evalOnIO.ts +10 -13
- package/_src/Fiber/api/interruptAll.ts +1 -2
- package/_src/Fiber/api/interruptAs.ts +6 -4
- package/_src/Fiber/api/interruptAsFork.ts +6 -4
- package/_src/Fiber/api/interruptFork.ts +1 -1
- package/_src/Fiber/api/mapFiber.ts +5 -7
- package/_src/Fiber/api/mapIO.ts +21 -21
- package/_src/Fiber/api/zipWith.ts +14 -17
- package/_src/Fiber/definition.ts +1 -15
- package/_src/Fiber.ts +1 -1
- package/_src/FiberRef/api/locallyScoped.ts +8 -6
- package/_src/FiberRef/api/locallyScopedWith.ts +5 -7
- package/_src/FiberRef/api.ts +50 -39
- package/_src/FiberRef/unsafe.ts +24 -22
- package/_src/FiberRef.ts +0 -1
- package/_src/FiberRefs/api.ts +14 -12
- package/_src/FiberRefs/join.ts +37 -46
- package/_src/FiberState/definition.ts +1 -2
- package/_src/Future/api.ts +67 -53
- package/_src/Hub/constructors.ts +80 -0
- package/_src/Hub/definition.ts +95 -89
- package/_src/Hub/internal.ts +115 -165
- package/_src/Hub.ts +1 -1
- package/_src/IO/api/acquireRelease.ts +1 -1
- package/_src/IO/api/acquireReleaseExit.ts +1 -1
- package/_src/IO/api/bracket.ts +1 -1
- package/_src/IO/api/bracketExit.ts +1 -1
- package/_src/IO/api/clockWith.ts +0 -1
- package/_src/IO/api/concurrency.ts +5 -7
- package/_src/IO/api/consoleWith.ts +0 -2
- package/_src/IO/api/core-scope.ts +36 -33
- package/_src/IO/api/ensuringChildren.ts +8 -7
- package/_src/IO/api/environment.ts +24 -42
- package/_src/IO/api/foreachC.ts +24 -12
- package/_src/IO/api/foreachExec.ts +1 -1
- package/_src/IO/api/forkIn.ts +7 -9
- package/_src/IO/api/fulfill.ts +5 -3
- package/_src/IO/api/interrupt.ts +37 -40
- package/_src/IO/api/onExit.ts +8 -10
- package/_src/IO/api/onTermination.ts +12 -14
- package/_src/IO/api/provideLayer.ts +8 -10
- package/_src/IO/api/provideSomeLayer.ts +5 -14
- package/_src/IO/api/race.ts +19 -21
- package/_src/IO/api/raceFirst.ts +5 -7
- package/_src/IO/api/repeat.ts +3 -5
- package/_src/IO/api/retry.ts +19 -21
- package/_src/IO/api/schedule.ts +20 -21
- package/_src/IO/api/scoped.ts +2 -2
- package/_src/IO/api/sequenceT.ts +7 -1
- package/_src/IO/api/stateful.ts +0 -2
- package/_src/IO/api/supervised.ts +5 -7
- package/_src/IO/api/timeout.ts +10 -16
- package/_src/IO/api/withFinalizer.ts +5 -7
- package/_src/IO/api/withFinalizerExit.ts +6 -5
- package/_src/IO/api/withRuntimeConfig.ts +12 -14
- package/_src/IO/api/zipC.ts +57 -62
- package/_src/IO/api.ts +512 -539
- package/_src/IO/definition.ts +21 -9
- package/_src/IO/runtime.ts +0 -12
- package/_src/IO.ts +0 -1
- package/_src/IOEnv/definition.ts +0 -2
- package/_src/IOEnv/services.ts +5 -4
- package/_src/Layer/MemoMap.ts +61 -63
- package/_src/Layer/api.ts +95 -104
- package/_src/Layer/definition.ts +0 -1
- package/_src/LogLevel.ts +24 -16
- package/_src/LogSpan.ts +16 -16
- package/_src/Logger/api.ts +18 -17
- package/_src/Logger/constructors.ts +9 -15
- package/_src/Queue/constructors.ts +22 -6
- package/_src/Queue/definition.ts +230 -81
- package/_src/Queue/internal.ts +9 -180
- package/_src/Queue/strategy.ts +9 -23
- package/_src/Queue.ts +1 -3
- package/_src/Ref/Atomic.ts +37 -4
- package/_src/Ref/Synchronized.ts +107 -0
- package/_src/Ref/constructors.ts +15 -0
- package/_src/Ref/definition.ts +86 -85
- package/_src/Ref.ts +1 -9
- package/_src/Reloadable/constructors.ts +2 -2
- package/_src/RuntimeConfig.ts +0 -2
- package/_src/STM/api/core-api.ts +32 -35
- package/_src/STM/api.ts +210 -200
- package/_src/STM/internal/Entry.ts +0 -10
- package/_src/STM/internal/Journal.ts +23 -26
- package/_src/STM.ts +0 -1
- package/_src/Schedule/Decision.ts +10 -8
- package/_src/Schedule/api/driver.ts +0 -4
- package/_src/Schedule/api.ts +419 -444
- package/_src/Schedule/definition.ts +0 -1
- package/_src/Scope/ReleaseMap/api/releaseAll.ts +23 -26
- package/_src/Scope/ReleaseMap/api.ts +77 -74
- package/_src/Scope/api.ts +16 -18
- package/_src/ScopedRef/api.ts +0 -3
- package/_src/ScopedRef/definition.ts +1 -2
- package/_src/Sink/api.ts +326 -357
- package/_src/State/api.ts +12 -8
- package/_src/State/internal.ts +1 -1
- package/_src/Stream/api/zipAllWith.ts +6 -5
- package/_src/Stream/api/zipWith.ts +5 -8
- package/_src/Stream/api/zipWithChunks.ts +6 -5
- package/_src/Stream/api.ts +1049 -1176
- package/_src/Stream/definition.ts +0 -2
- package/_src/Stream/internal/DebounceState.ts +16 -17
- package/_src/Stream/internal/Handoff.ts +31 -35
- package/_src/Stream/internal/Pull.ts +1 -2
- package/_src/Stream/internal/SinkEndReason.ts +13 -14
- package/_src/Stream/internal/Take.ts +21 -21
- package/_src/Stream/internal/util.ts +0 -2
- package/_src/SubscriptionRef.ts +44 -0
- package/_src/Supervisor/api.ts +39 -31
- package/_src/Supervisor/definition.ts +58 -0
- package/_src/SupervisorPatch.ts +111 -0
- package/_src/TExit/definition.ts +0 -8
- package/_src/TFuture/api.ts +23 -17
- package/_src/TFuture/definition.ts +0 -1
- package/_src/TReentrantLock/api.ts +14 -10
- package/_src/TReentrantLock/definition.ts +0 -7
- package/_src/TRef/api.ts +207 -209
- package/_src/TRef/definition.ts +0 -12
- package/_src/TSemaphore/api.ts +19 -18
- package/_src/TSemaphore/constructors.ts +7 -0
- package/_src/collection/immutable/Conc/dropUntilIO.ts +19 -21
- package/_src/collection/immutable/Conc/dropWhileIO.ts +21 -23
- package/_src/collection/immutable/Conc/filterIO.ts +15 -17
- package/_src/collection/immutable/Conc/findIO.ts +17 -19
- package/_src/collection/immutable/Conc/mapIO.ts +12 -10
- package/_src/collection/immutable/Conc/takeWhileIO.ts +27 -29
- package/_src/data/Exit/foreachIO.ts +8 -10
- package/_src/global.ts +11 -3
- package/_src/index.ts +3 -0
- package/_src/internal/Hub.ts +17 -27
- package/_src/internal/IsFatal.ts +14 -12
- package/_src/internal/MutableQueue.ts +8 -8
- package/_src/internal/StackTraceBuilder.ts +1 -2
- package/collection/immutable/Conc/dropUntilIO.d.ts +3 -3
- package/collection/immutable/Conc/dropWhileIO.d.ts +3 -3
- package/collection/immutable/Conc/filterIO.d.ts +3 -3
- package/collection/immutable/Conc/findIO.d.ts +2 -2
- package/collection/immutable/Conc/mapIO.d.ts +3 -3
- package/collection/immutable/Conc/takeWhileIO.d.ts +3 -3
- package/data/Exit/foreachIO.d.ts +3 -3
- package/global.d.ts +11 -3
- package/index.d.ts +3 -0
- package/internal/Hub.d.ts +2 -2
- package/internal/IsFatal.d.ts +3 -3
- package/internal/MutableQueue.d.ts +3 -3
- package/package.json +3 -3
- package/Hub/api.d.ts +0 -190
- package/Queue/api/dimapIO.d.ts +0 -41
- package/Queue/api/filterInputIO.d.ts +0 -33
- package/Queue/api/filterOutputIO.d.ts +0 -31
- package/Queue/api/operations.d.ts +0 -82
- package/Queue/api/poll.d.ts +0 -9
- package/Queue/api/takeBetween.d.ts +0 -11
- package/Queue/api/zipWithIO.d.ts +0 -44
- package/Queue/api.d.ts +0 -7
- package/Ref/Atomic/Atomic.d.ts +0 -18
- package/Ref/Atomic/api.d.ts +0 -53
- package/Ref/Derived.d.ts +0 -14
- package/Ref/DerivedAll.d.ts +0 -14
- package/Ref/Synchronized/api.d.ts +0 -100
- package/Ref/Synchronized/constructors.d.ts +0 -8
- package/Ref/Synchronized/definition.d.ts +0 -42
- package/Ref/api/collect.d.ts +0 -11
- package/Ref/api/dimap.d.ts +0 -56
- package/Ref/api/filter.d.ts +0 -20
- package/Ref/api/get.d.ts +0 -9
- package/Ref/api/match.d.ts +0 -13
- package/Ref/api/matchAll.d.ts +0 -11
- package/Ref/api/modify.d.ts +0 -79
- package/Ref/api/set.d.ts +0 -10
- package/Ref/api.d.ts +0 -23
- package/_cjs/Hub/api.cjs +0 -456
- package/_cjs/Hub/api.cjs.map +0 -1
- package/_cjs/Queue/api/dimapIO.cjs +0 -120
- package/_cjs/Queue/api/dimapIO.cjs.map +0 -1
- package/_cjs/Queue/api/filterInputIO.cjs +0 -84
- package/_cjs/Queue/api/filterInputIO.cjs.map +0 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +0 -89
- package/_cjs/Queue/api/filterOutputIO.cjs.map +0 -1
- package/_cjs/Queue/api/operations.cjs +0 -147
- package/_cjs/Queue/api/operations.cjs.map +0 -1
- package/_cjs/Queue/api/poll.cjs +0 -27
- package/_cjs/Queue/api/poll.cjs.map +0 -1
- package/_cjs/Queue/api/takeBetween.cjs +0 -57
- package/_cjs/Queue/api/takeBetween.cjs.map +0 -1
- package/_cjs/Queue/api/zipWithIO.cjs +0 -97
- package/_cjs/Queue/api/zipWithIO.cjs.map +0 -1
- package/_cjs/Queue/api.cjs +0 -97
- package/_cjs/Queue/api.cjs.map +0 -1
- package/_cjs/Ref/Atomic/Atomic.cjs +0 -64
- package/_cjs/Ref/Atomic/Atomic.cjs.map +0 -1
- package/_cjs/Ref/Atomic/api.cjs +0 -156
- package/_cjs/Ref/Atomic/api.cjs.map +0 -1
- package/_cjs/Ref/Derived.cjs +0 -55
- package/_cjs/Ref/Derived.cjs.map +0 -1
- package/_cjs/Ref/DerivedAll.cjs +0 -55
- package/_cjs/Ref/DerivedAll.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/api.cjs +0 -196
- package/_cjs/Ref/Synchronized/api.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +0 -32
- package/_cjs/Ref/Synchronized/constructors.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/definition.cjs +0 -88
- package/_cjs/Ref/Synchronized/definition.cjs.map +0 -1
- package/_cjs/Ref/api/collect.cjs +0 -31
- package/_cjs/Ref/api/collect.cjs.map +0 -1
- package/_cjs/Ref/api/dimap.cjs +0 -110
- package/_cjs/Ref/api/dimap.cjs.map +0 -1
- package/_cjs/Ref/api/filter.cjs +0 -45
- package/_cjs/Ref/api/filter.cjs.map +0 -1
- package/_cjs/Ref/api/get.cjs +0 -20
- package/_cjs/Ref/api/get.cjs.map +0 -1
- package/_cjs/Ref/api/match.cjs +0 -26
- package/_cjs/Ref/api/match.cjs.map +0 -1
- package/_cjs/Ref/api/matchAll.cjs +0 -24
- package/_cjs/Ref/api/matchAll.cjs.map +0 -1
- package/_cjs/Ref/api/modify.cjs +0 -239
- package/_cjs/Ref/api/modify.cjs.map +0 -1
- package/_cjs/Ref/api/set.cjs +0 -21
- package/_cjs/Ref/api/set.cjs.map +0 -1
- package/_cjs/Ref/api.cjs +0 -158
- package/_cjs/Ref/api.cjs.map +0 -1
- package/_mjs/Hub/api.mjs +0 -384
- package/_mjs/Hub/api.mjs.map +0 -1
- package/_mjs/Queue/api/dimapIO.mjs +0 -97
- package/_mjs/Queue/api/dimapIO.mjs.map +0 -1
- package/_mjs/Queue/api/filterInputIO.mjs +0 -63
- package/_mjs/Queue/api/filterInputIO.mjs.map +0 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +0 -68
- package/_mjs/Queue/api/filterOutputIO.mjs.map +0 -1
- package/_mjs/Queue/api/operations.mjs +0 -122
- package/_mjs/Queue/api/operations.mjs.map +0 -1
- package/_mjs/Queue/api/poll.mjs +0 -14
- package/_mjs/Queue/api/poll.mjs.map +0 -1
- package/_mjs/Queue/api/takeBetween.mjs +0 -43
- package/_mjs/Queue/api/takeBetween.mjs.map +0 -1
- package/_mjs/Queue/api/zipWithIO.mjs +0 -74
- package/_mjs/Queue/api/zipWithIO.mjs.map +0 -1
- package/_mjs/Queue/api.mjs +0 -9
- package/_mjs/Queue/api.mjs.map +0 -1
- package/_mjs/Ref/Atomic/Atomic.mjs +0 -47
- package/_mjs/Ref/Atomic/Atomic.mjs.map +0 -1
- package/_mjs/Ref/Atomic/api.mjs +0 -127
- package/_mjs/Ref/Atomic/api.mjs.map +0 -1
- package/_mjs/Ref/Derived.mjs +0 -35
- package/_mjs/Ref/Derived.mjs.map +0 -1
- package/_mjs/Ref/DerivedAll.mjs +0 -35
- package/_mjs/Ref/DerivedAll.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/api.mjs +0 -154
- package/_mjs/Ref/Synchronized/api.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +0 -15
- package/_mjs/Ref/Synchronized/constructors.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/definition.mjs +0 -66
- package/_mjs/Ref/Synchronized/definition.mjs.map +0 -1
- package/_mjs/Ref/api/collect.mjs +0 -17
- package/_mjs/Ref/api/collect.mjs.map +0 -1
- package/_mjs/Ref/api/dimap.mjs +0 -84
- package/_mjs/Ref/api/dimap.mjs.map +0 -1
- package/_mjs/Ref/api/filter.mjs +0 -29
- package/_mjs/Ref/api/filter.mjs.map +0 -1
- package/_mjs/Ref/api/get.mjs +0 -13
- package/_mjs/Ref/api/get.mjs.map +0 -1
- package/_mjs/Ref/api/match.mjs +0 -18
- package/_mjs/Ref/api/match.mjs.map +0 -1
- package/_mjs/Ref/api/matchAll.mjs +0 -16
- package/_mjs/Ref/api/matchAll.mjs.map +0 -1
- package/_mjs/Ref/api/modify.mjs +0 -204
- package/_mjs/Ref/api/modify.mjs.map +0 -1
- package/_mjs/Ref/api/set.mjs +0 -14
- package/_mjs/Ref/api/set.mjs.map +0 -1
- package/_mjs/Ref/api.mjs +0 -34
- package/_mjs/Ref/api.mjs.map +0 -1
- package/_src/Hub/api.ts +0 -461
- package/_src/Queue/api/dimapIO.ts +0 -130
- package/_src/Queue/api/filterInputIO.ts +0 -75
- package/_src/Queue/api/filterOutputIO.ts +0 -76
- package/_src/Queue/api/operations.ts +0 -139
- package/_src/Queue/api/poll.ts +0 -14
- package/_src/Queue/api/takeBetween.ts +0 -45
- package/_src/Queue/api/zipWithIO.ts +0 -99
- package/_src/Queue/api.ts +0 -9
- package/_src/Ref/Atomic/Atomic.ts +0 -56
- package/_src/Ref/Atomic/api.ts +0 -124
- package/_src/Ref/Derived.ts +0 -71
- package/_src/Ref/DerivedAll.ts +0 -75
- package/_src/Ref/Synchronized/api.ts +0 -249
- package/_src/Ref/Synchronized/constructors.ts +0 -12
- package/_src/Ref/Synchronized/definition.ts +0 -126
- package/_src/Ref/api/collect.ts +0 -19
- package/_src/Ref/api/dimap.ts +0 -115
- package/_src/Ref/api/filter.ts +0 -35
- package/_src/Ref/api/get.ts +0 -17
- package/_src/Ref/api/match.ts +0 -24
- package/_src/Ref/api/matchAll.ts +0 -23
- package/_src/Ref/api/modify.ts +0 -237
- package/_src/Ref/api/set.ts +0 -19
- package/_src/Ref/api.ts +0 -39
package/_cjs/STM/api.cjs
CHANGED
@@ -4,31 +4,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.absolve = absolve;
|
7
|
+
exports.as = void 0;
|
7
8
|
exports.asJust = asJust;
|
8
9
|
exports.asJustError = asJustError;
|
9
|
-
exports.atomically =
|
10
|
-
exports.
|
11
|
-
exports.
|
12
|
-
exports.
|
13
|
-
exports.
|
14
|
-
exports.
|
10
|
+
exports.atomically = void 0;
|
11
|
+
exports.bimap = bimap;
|
12
|
+
exports.catchJust = catchJust;
|
13
|
+
exports.catchTag = catchTag;
|
14
|
+
exports.catchWith = catchWith;
|
15
|
+
exports.chainError = chainError;
|
15
16
|
exports.check = check;
|
16
17
|
exports.commitEither = commitEither;
|
17
|
-
exports.
|
18
|
-
exports.
|
19
|
-
exports.
|
20
|
-
exports.
|
21
|
-
exports.environment = exports.either = exports.defer = exports.contramapEnvironment_ = void 0;
|
18
|
+
exports.continueOrFail = continueOrFail;
|
19
|
+
exports.continueOrFailSTM = void 0;
|
20
|
+
exports.continueOrRetry = continueOrRetry;
|
21
|
+
exports.environment = exports.either = exports.defer = exports.contramapEnvironment = exports.continueOrRetrySTM = void 0;
|
22
22
|
exports.environmentWith = environmentWith;
|
23
23
|
exports.environmentWithSTM = environmentWithSTM;
|
24
|
-
exports.
|
25
|
-
exports.
|
26
|
-
exports.
|
27
|
-
exports.
|
28
|
-
exports.
|
24
|
+
exports.eventually = void 0;
|
25
|
+
exports.filterMap = filterMap;
|
26
|
+
exports.filterOrElse = exports.filterMapSTM = void 0;
|
27
|
+
exports.filterOrFail = filterOrFail;
|
28
|
+
exports.filterOrHalt = filterOrHalt;
|
29
29
|
exports.flatten = void 0;
|
30
|
-
exports.
|
31
|
-
exports.
|
30
|
+
exports.flattenErrorOption = flattenErrorOption;
|
31
|
+
exports.foreach = foreach;
|
32
32
|
exports.fromEither = fromEither;
|
33
33
|
exports.fromEitherNow = void 0;
|
34
34
|
exports.get = get;
|
@@ -39,14 +39,14 @@ exports.interrupt = void 0;
|
|
39
39
|
exports.isFailure = isFailure;
|
40
40
|
exports.isSuccess = isSuccess;
|
41
41
|
exports.left = left;
|
42
|
-
exports.
|
42
|
+
exports.leftOrFail = leftOrFail;
|
43
43
|
exports.makeEffect = makeEffect;
|
44
|
-
exports.
|
45
|
-
exports.
|
46
|
-
exports.
|
47
|
-
exports.
|
44
|
+
exports.match = exports.mapError = void 0;
|
45
|
+
exports.provideEnvironment = provideEnvironment;
|
46
|
+
exports.swapWith = exports.swap = exports.repeatWhile = exports.repeatUntil = void 0;
|
47
|
+
exports.tap = tap;
|
48
48
|
exports.toLeft = toLeft;
|
49
|
-
exports.
|
49
|
+
exports.zipWith = exports.unit = void 0;
|
50
50
|
|
51
51
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/STM/api/core-api"));
|
52
52
|
|
@@ -68,13 +68,15 @@ var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require
|
|
68
68
|
|
69
69
|
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/STM/api/core-constructors"));
|
70
70
|
|
71
|
-
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/
|
71
|
+
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/util/predicates"));
|
72
72
|
|
73
|
-
var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/
|
73
|
+
var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/api"));
|
74
74
|
|
75
|
-
var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/
|
75
|
+
var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/constructors"));
|
76
76
|
|
77
|
-
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/
|
77
|
+
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/destructors"));
|
78
|
+
|
79
|
+
var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/destructors"));
|
78
80
|
|
79
81
|
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
80
82
|
|
@@ -89,56 +91,58 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
89
91
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
90
92
|
|
91
93
|
const fileName_1 = "(@fncts/io) src/STM/api.ts";
|
92
|
-
const
|
93
|
-
exports.
|
94
|
+
const as = as_1;
|
95
|
+
exports.as = as;
|
94
96
|
const environment = environment_1;
|
95
97
|
exports.environment = environment;
|
96
98
|
const atomically = atomically_1;
|
97
99
|
exports.atomically = atomically;
|
98
|
-
const
|
99
|
-
exports.
|
100
|
-
const
|
101
|
-
exports.
|
100
|
+
const continueOrFailSTM = continueOrFailSTM_1;
|
101
|
+
exports.continueOrFailSTM = continueOrFailSTM;
|
102
|
+
const continueOrRetrySTM = continueOrRetrySTM_1;
|
103
|
+
exports.continueOrRetrySTM = continueOrRetrySTM;
|
102
104
|
const defer = defer_1;
|
103
105
|
exports.defer = defer;
|
104
106
|
const either = either_1;
|
105
107
|
exports.either = either;
|
106
108
|
const eventually = eventually_1;
|
107
109
|
exports.eventually = eventually;
|
108
|
-
const
|
109
|
-
exports.
|
110
|
-
const
|
111
|
-
exports.
|
110
|
+
const filterMapSTM = filterMapSTM_1;
|
111
|
+
exports.filterMapSTM = filterMapSTM;
|
112
|
+
const filterOrElse = filterOrElse_1;
|
113
|
+
exports.filterOrElse = filterOrElse;
|
112
114
|
const flatten = flatten_1;
|
113
115
|
exports.flatten = flatten;
|
114
116
|
const fromEitherNow = fromEitherNow_1;
|
115
117
|
exports.fromEitherNow = fromEitherNow;
|
116
|
-
const
|
117
|
-
exports.
|
118
|
+
const contramapEnvironment = contramapEnvironment_1;
|
119
|
+
exports.contramapEnvironment = contramapEnvironment;
|
118
120
|
const halt = halt_1;
|
119
121
|
exports.halt = halt;
|
120
|
-
const
|
121
|
-
exports.
|
122
|
-
const
|
123
|
-
exports.
|
124
|
-
const
|
125
|
-
exports.
|
126
|
-
const
|
127
|
-
exports.
|
122
|
+
const mapError = mapError_1;
|
123
|
+
exports.mapError = mapError;
|
124
|
+
const match = match_1;
|
125
|
+
exports.match = match;
|
126
|
+
const repeatUntil = repeatUntil_1;
|
127
|
+
exports.repeatUntil = repeatUntil;
|
128
|
+
const repeatWhile = repeatWhile_1;
|
129
|
+
exports.repeatWhile = repeatWhile;
|
128
130
|
const swap = swap_1;
|
129
131
|
exports.swap = swap;
|
130
|
-
const
|
131
|
-
exports.
|
132
|
-
const
|
133
|
-
exports.
|
132
|
+
const swapWith = swapWith_1;
|
133
|
+
exports.swapWith = swapWith;
|
134
|
+
const zipWith = zipWith_1;
|
135
|
+
exports.zipWith = zipWith;
|
134
136
|
|
135
137
|
/**
|
136
138
|
* Maps the success value of this effect to the specified constant value.
|
137
139
|
*
|
138
|
-
* @tsplus
|
140
|
+
* @tsplus pipeable fncts.io.STM as
|
139
141
|
*/
|
140
|
-
function as_1(
|
141
|
-
return
|
142
|
+
function as_1(b, __tsplusTrace) {
|
143
|
+
return stm => {
|
144
|
+
return tsplus_module_1.map(() => b(), __tsplusTrace)(stm);
|
145
|
+
};
|
142
146
|
}
|
143
147
|
/**
|
144
148
|
* Maps the success value of this effect to an optional value.
|
@@ -148,7 +152,7 @@ function as_1(stm, b, __tsplusTrace) {
|
|
148
152
|
|
149
153
|
|
150
154
|
function asJust(stm, __tsplusTrace) {
|
151
|
-
return tsplus_module_1.
|
155
|
+
return tsplus_module_1.map(tsplus_module_2.just, __tsplusTrace)(stm);
|
152
156
|
}
|
153
157
|
/**
|
154
158
|
* Maps the error value of this effect to an optional value.
|
@@ -158,7 +162,7 @@ function asJust(stm, __tsplusTrace) {
|
|
158
162
|
|
159
163
|
|
160
164
|
function asJustError(stm, __tsplusTrace) {
|
161
|
-
return mapError_1(
|
165
|
+
return mapError_1(tsplus_module_2.just, __tsplusTrace)(stm);
|
162
166
|
}
|
163
167
|
/**
|
164
168
|
* Submerges the error case of an `Either` into the `STM`. The inverse
|
@@ -169,7 +173,7 @@ function asJustError(stm, __tsplusTrace) {
|
|
169
173
|
|
170
174
|
|
171
175
|
function absolve(z, __tsplusTrace) {
|
172
|
-
return tsplus_module_1.
|
176
|
+
return tsplus_module_1.flatMap(fromEitherNow_1, __tsplusTrace)(z);
|
173
177
|
}
|
174
178
|
/**
|
175
179
|
* @tsplus static fncts.io.STMOps Effect
|
@@ -197,7 +201,7 @@ function environment_1(__tsplusTrace) {
|
|
197
201
|
|
198
202
|
|
199
203
|
function environmentWith(f, __tsplusTrace) {
|
200
|
-
return tsplus_module_1.
|
204
|
+
return tsplus_module_1.map(f, __tsplusTrace)(environment_1(__tsplusTrace));
|
201
205
|
}
|
202
206
|
/**
|
203
207
|
* Accesses the environment of the transaction to perform a transaction.
|
@@ -207,7 +211,7 @@ function environmentWith(f, __tsplusTrace) {
|
|
207
211
|
|
208
212
|
|
209
213
|
function environmentWithSTM(f, __tsplusTrace) {
|
210
|
-
return tsplus_module_1.
|
214
|
+
return tsplus_module_1.flatMap(f, __tsplusTrace)(environment_1(__tsplusTrace));
|
211
215
|
}
|
212
216
|
/**
|
213
217
|
* @tsplus static fncts.io.STMOps atomically
|
@@ -216,7 +220,7 @@ function environmentWithSTM(f, __tsplusTrace) {
|
|
216
220
|
|
217
221
|
|
218
222
|
function atomically_1(stm, __tsplusTrace) {
|
219
|
-
return tsplus_module_9.environmentWithIO(r => tsplus_module_8.
|
223
|
+
return tsplus_module_9.environmentWithIO(r => tsplus_module_8.getWith(scheduler => tsplus_module_3.deferWith((_, fiberId) => {
|
220
224
|
const result = (0, _Journal.tryCommitSync)(fiberId, stm, r, scheduler);
|
221
225
|
|
222
226
|
switch (result._tag) {
|
@@ -236,7 +240,7 @@ function atomically_1(stm, __tsplusTrace) {
|
|
236
240
|
const async = tsplus_module_3.async((0, _Journal.tryCommitAsync)(result.journal, fiberId, stm, id, state, r, scheduler));
|
237
241
|
return tsplus_module_6.uninterruptibleMask(({
|
238
242
|
restore
|
239
|
-
}) => tsplus_module_3.
|
243
|
+
}) => tsplus_module_3.catchAllCause(cause => {
|
240
244
|
state.compareAndSet(tsplus_module_5.Running, tsplus_module_5.Interrupted);
|
241
245
|
const newState = state.get;
|
242
246
|
|
@@ -251,72 +255,82 @@ function atomically_1(stm, __tsplusTrace) {
|
|
251
255
|
return tsplus_module_3.failCauseNow(cause, __tsplusTrace);
|
252
256
|
}
|
253
257
|
}
|
254
|
-
}, __tsplusTrace), __tsplusTrace);
|
258
|
+
}, __tsplusTrace)(restore(async)), __tsplusTrace);
|
255
259
|
}
|
256
260
|
}
|
257
|
-
}, __tsplusTrace), __tsplusTrace), __tsplusTrace);
|
261
|
+
}, __tsplusTrace), __tsplusTrace)(tsplus_module_7.currentScheduler), __tsplusTrace);
|
258
262
|
}
|
259
263
|
/**
|
260
264
|
* Returns an `STM` effect whose failure and success channels have been mapped by
|
261
265
|
* the specified pair of functions, `f` and `g`.
|
266
|
+
*
|
267
|
+
* @tsplus pipeable fncts.io.STM bimap
|
262
268
|
*/
|
263
269
|
|
264
270
|
|
265
|
-
function
|
266
|
-
return tsplus_module_1.
|
271
|
+
function bimap(g, f, __tsplusTrace) {
|
272
|
+
return self => tsplus_module_1.matchSTM(e => tsplus_module_10.failNow(g(e), __tsplusTrace), a => tsplus_module_10.succeedNow(f(a), __tsplusTrace), __tsplusTrace)(self);
|
267
273
|
}
|
268
274
|
/**
|
269
275
|
* Recovers from specified error.
|
270
276
|
*
|
271
|
-
* @tsplus
|
277
|
+
* @tsplus pipeable fncts.io.STM catch
|
272
278
|
*/
|
273
279
|
|
274
280
|
|
275
|
-
function
|
276
|
-
return
|
277
|
-
|
278
|
-
|
279
|
-
|
281
|
+
function catchWith(tag, k, f, __tsplusTrace) {
|
282
|
+
return stm => {
|
283
|
+
return tsplus_module_1.catchAll(e => {
|
284
|
+
if (tsplus_module_11.isObject(e) && tag in e && e[tag] === k) {
|
285
|
+
return f(e);
|
286
|
+
}
|
280
287
|
|
281
|
-
|
282
|
-
|
288
|
+
return tsplus_module_10.failNow(e, __tsplusTrace);
|
289
|
+
}, __tsplusTrace)(stm);
|
290
|
+
};
|
283
291
|
}
|
284
292
|
/**
|
285
293
|
* Recovers from some or all of the error cases.
|
286
294
|
*
|
287
|
-
* @tsplus
|
295
|
+
* @tsplus pipeable fncts.io.STM catchJust
|
288
296
|
*/
|
289
297
|
|
290
298
|
|
291
|
-
function
|
292
|
-
return
|
299
|
+
function catchJust(f, __tsplusTrace) {
|
300
|
+
return stm => {
|
301
|
+
return tsplus_module_1.catchAll(e => tsplus_module_12.getOrElse(() => tsplus_module_10.failNow(e, __tsplusTrace))(f(e)), __tsplusTrace)(stm);
|
302
|
+
};
|
293
303
|
}
|
294
304
|
/**
|
295
305
|
* Recovers from specified error.
|
296
306
|
*
|
297
|
-
* @tsplus
|
307
|
+
* @tsplus pipeable fncts.io.STM catchTag
|
298
308
|
*/
|
299
309
|
|
300
310
|
|
301
|
-
function
|
302
|
-
return
|
303
|
-
|
304
|
-
|
305
|
-
|
311
|
+
function catchTag(k, f, __tsplusTrace) {
|
312
|
+
return stm => {
|
313
|
+
return tsplus_module_1.catchAll(e => {
|
314
|
+
if ("_tag" in e && e["_tag"] === k) {
|
315
|
+
return f(e);
|
316
|
+
}
|
306
317
|
|
307
|
-
|
308
|
-
|
318
|
+
return tsplus_module_10.failNow(e, __tsplusTrace);
|
319
|
+
}, __tsplusTrace)(stm);
|
320
|
+
};
|
309
321
|
}
|
310
322
|
/**
|
311
323
|
* Creates a composite effect that represents this effect followed by another
|
312
324
|
* one that may depend on the error produced by this one.
|
313
325
|
*
|
314
|
-
* @tsplus
|
326
|
+
* @tsplus pipeable fncts.io.STM flatMapError
|
315
327
|
*/
|
316
328
|
|
317
329
|
|
318
|
-
function
|
319
|
-
return
|
330
|
+
function chainError(f, __tsplusTrace) {
|
331
|
+
return stm => {
|
332
|
+
return swapWith_1(effect => tsplus_module_1.flatMap(f, __tsplusTrace)(effect), __tsplusTrace)(stm);
|
333
|
+
};
|
320
334
|
}
|
321
335
|
/**
|
322
336
|
* Checks the condition, and if it's true, returns unit, otherwise, retries.
|
@@ -341,45 +355,53 @@ function commitEither(stm, __tsplusTrace) {
|
|
341
355
|
* Fail with `e` if the supplied `PartialFunction` does not match, otherwise
|
342
356
|
* succeed with the returned value.
|
343
357
|
*
|
344
|
-
* @tsplus
|
358
|
+
* @tsplus pipeable fncts.io.STM continueOrFail
|
345
359
|
*/
|
346
360
|
|
347
361
|
|
348
|
-
function
|
349
|
-
return
|
362
|
+
function continueOrFail(e, pf, __tsplusTrace) {
|
363
|
+
return fa => {
|
364
|
+
return continueOrFailSTM_1(e, a => tsplus_module_12.map(tsplus_module_10.succeedNow)(pf(a)), __tsplusTrace)(fa);
|
365
|
+
};
|
350
366
|
}
|
351
367
|
/**
|
352
368
|
* Fail with `e` if the supplied `PartialFunction` does not match, otherwise
|
353
369
|
* continue with the returned value.
|
354
370
|
*
|
355
|
-
* @tsplus
|
371
|
+
* @tsplus pipeable fncts.io.STM continueOrFailSTM
|
356
372
|
*/
|
357
373
|
|
358
374
|
|
359
|
-
function continueOrFailSTM_1(
|
360
|
-
return
|
375
|
+
function continueOrFailSTM_1(e, pf, __tsplusTrace) {
|
376
|
+
return fa => {
|
377
|
+
return tsplus_module_1.flatMap(a => tsplus_module_12.getOrElse(() => tsplus_module_10.fail(e, __tsplusTrace))(pf(a)), __tsplusTrace)(fa);
|
378
|
+
};
|
361
379
|
}
|
362
380
|
/**
|
363
381
|
* Fail with `e` if the supplied `PartialFunction` does not match, otherwise
|
364
382
|
* succeed with the returned value.
|
365
383
|
*
|
366
|
-
* @tsplus
|
384
|
+
* @tsplus pipeable fncts.io.STM continueOrRetry
|
367
385
|
*/
|
368
386
|
|
369
387
|
|
370
|
-
function
|
371
|
-
return
|
388
|
+
function continueOrRetry(pf, __tsplusTrace) {
|
389
|
+
return fa => {
|
390
|
+
return continueOrRetrySTM_1(a => tsplus_module_12.map(tsplus_module_10.succeedNow)(pf(a)), __tsplusTrace)(fa);
|
391
|
+
};
|
372
392
|
}
|
373
393
|
/**
|
374
394
|
* Simultaneously filters and flatMaps the value produced by this effect.
|
375
395
|
* Continues on the effect returned from pf.
|
376
396
|
*
|
377
|
-
* @tsplus
|
397
|
+
* @tsplus pipeable fncts.io.STM continueOrRetrySTM
|
378
398
|
*/
|
379
399
|
|
380
400
|
|
381
|
-
function continueOrRetrySTM_1(
|
382
|
-
return
|
401
|
+
function continueOrRetrySTM_1(pf, __tsplusTrace) {
|
402
|
+
return fa => {
|
403
|
+
return tsplus_module_1.flatMap(a => tsplus_module_12.getOrElse(() => tsplus_module_10.retry)(pf(a)), __tsplusTrace)(fa);
|
404
|
+
};
|
383
405
|
}
|
384
406
|
/**
|
385
407
|
* Suspends creation of the specified transaction lazily.
|
@@ -399,7 +421,7 @@ function defer_1(make, __tsplusTrace) {
|
|
399
421
|
|
400
422
|
|
401
423
|
function either_1(stm, __tsplusTrace) {
|
402
|
-
return match_1(
|
424
|
+
return match_1(tsplus_module_13.left, tsplus_module_13.right, __tsplusTrace)(stm);
|
403
425
|
}
|
404
426
|
/**
|
405
427
|
* Returns an effect that ignores errors and runs repeatedly until it eventually succeeds.
|
@@ -409,40 +431,50 @@ function either_1(stm, __tsplusTrace) {
|
|
409
431
|
|
410
432
|
|
411
433
|
function eventually_1(stm, __tsplusTrace) {
|
412
|
-
return tsplus_module_1.
|
434
|
+
return tsplus_module_1.matchSTM(() => eventually_1(stm, __tsplusTrace), tsplus_module_10.succeedNow, __tsplusTrace)(stm);
|
413
435
|
}
|
414
436
|
/**
|
415
437
|
* Simultaneously filters and maps the value produced by this effect.
|
416
438
|
*
|
417
|
-
* @tsplus
|
439
|
+
* @tsplus pipeable fncts.io.STM filterMap
|
418
440
|
*/
|
419
441
|
|
420
442
|
|
421
|
-
function
|
422
|
-
return
|
443
|
+
function filterMap(f, __tsplusTrace) {
|
444
|
+
return stm => {
|
445
|
+
return filterMapSTM_1(a => tsplus_module_12.map(tsplus_module_10.succeedNow)(f(a)), __tsplusTrace)(stm);
|
446
|
+
};
|
423
447
|
}
|
424
448
|
/**
|
425
449
|
* Simultaneously filters and chains the value produced by this effect.
|
426
450
|
* Continues on the effect returned from f.
|
427
451
|
*
|
428
|
-
* @tsplus
|
452
|
+
* @tsplus pipeable fncts.io.STM filterMapSTM
|
429
453
|
*/
|
430
454
|
|
431
455
|
|
432
|
-
function filterMapSTM_1(
|
433
|
-
return
|
456
|
+
function filterMapSTM_1(f, __tsplusTrace) {
|
457
|
+
return self => {
|
458
|
+
return tsplus_module_1.matchSTM(tsplus_module_10.failNow, a => tsplus_module_12.getOrElse(() => tsplus_module_10.retry)(f(a)), __tsplusTrace)(self);
|
459
|
+
};
|
434
460
|
}
|
435
461
|
|
436
|
-
function filterOrElse_1(
|
437
|
-
return
|
462
|
+
function filterOrElse_1(p, or, __tsplusTrace) {
|
463
|
+
return fa => {
|
464
|
+
return tsplus_module_1.flatMap(a => p(a) ? tsplus_module_10.succeedNow(a, __tsplusTrace) : defer_1(() => or(a), __tsplusTrace), __tsplusTrace)(fa);
|
465
|
+
};
|
438
466
|
}
|
439
467
|
|
440
|
-
function
|
441
|
-
return
|
468
|
+
function filterOrFail(p, failWith, __tsplusTrace) {
|
469
|
+
return fa => {
|
470
|
+
return filterOrElse_1(p, a => tsplus_module_10.fail(() => failWith(a), __tsplusTrace))(fa);
|
471
|
+
};
|
442
472
|
}
|
443
473
|
|
444
|
-
function
|
445
|
-
return
|
474
|
+
function filterOrHalt(p, haltWith, __tsplusTrace) {
|
475
|
+
return fa => {
|
476
|
+
return filterOrElse_1(p, a => halt_1(() => haltWith(a), __tsplusTrace))(fa);
|
477
|
+
};
|
446
478
|
}
|
447
479
|
/**
|
448
480
|
* Flattens out a nested `STM` effect.
|
@@ -452,17 +484,19 @@ function filterOrHalt_(fa, p, haltWith, __tsplusTrace) {
|
|
452
484
|
|
453
485
|
|
454
486
|
function flatten_1(stm, __tsplusTrace) {
|
455
|
-
return tsplus_module_1.
|
487
|
+
return tsplus_module_1.flatMap(_function.identity, __tsplusTrace)(stm);
|
456
488
|
}
|
457
489
|
/**
|
458
490
|
* Unwraps the optional error, defaulting to the provided value.
|
459
491
|
*
|
460
|
-
* @tsplus
|
492
|
+
* @tsplus pipeable fncts.io.STM flattenErrorOption
|
461
493
|
*/
|
462
494
|
|
463
495
|
|
464
|
-
function
|
465
|
-
return
|
496
|
+
function flattenErrorOption(def, __tsplusTrace) {
|
497
|
+
return stm => {
|
498
|
+
return mapError_1(me => tsplus_module_12.getOrElse(def)(me), __tsplusTrace)(stm);
|
499
|
+
};
|
466
500
|
}
|
467
501
|
/**
|
468
502
|
* Applies the function `f` to each element of the `Iterable<A>` and
|
@@ -472,15 +506,15 @@ function flattenErrorOption_(stm, def, __tsplusTrace) {
|
|
472
506
|
*/
|
473
507
|
|
474
508
|
|
475
|
-
function
|
509
|
+
function foreach(it, f, __tsplusTrace) {
|
476
510
|
return defer_1(() => {
|
477
511
|
let stm = tsplus_module_10.succeedNow([], __tsplusTrace);
|
478
512
|
|
479
513
|
for (const a of it) {
|
480
|
-
stm = zipWith_1(
|
514
|
+
stm = zipWith_1(f(a), (acc, b) => {
|
481
515
|
acc.push(b);
|
482
516
|
return acc;
|
483
|
-
}, __tsplusTrace);
|
517
|
+
}, __tsplusTrace)(stm);
|
484
518
|
}
|
485
519
|
|
486
520
|
return stm;
|
@@ -494,7 +528,7 @@ function foreach_(it, f, __tsplusTrace) {
|
|
494
528
|
|
495
529
|
|
496
530
|
function fromEither(e, __tsplusTrace) {
|
497
|
-
return defer_1(() =>
|
531
|
+
return defer_1(() => tsplus_module_14.match(tsplus_module_10.failNow, tsplus_module_10.succeedNow)(e()), __tsplusTrace);
|
498
532
|
}
|
499
533
|
/**
|
500
534
|
* Lifts an `Either` into a `STM`.
|
@@ -504,7 +538,7 @@ function fromEither(e, __tsplusTrace) {
|
|
504
538
|
|
505
539
|
|
506
540
|
function fromEitherNow_1(e, __tsplusTrace) {
|
507
|
-
return
|
541
|
+
return tsplus_module_14.match(tsplus_module_10.failNow, tsplus_module_10.succeedNow)(e);
|
508
542
|
}
|
509
543
|
/**
|
510
544
|
* Unwraps the optional success of this effect, but can fail with an None value.
|
@@ -512,29 +546,33 @@ function fromEitherNow_1(e, __tsplusTrace) {
|
|
512
546
|
|
513
547
|
|
514
548
|
function get(stm, __tsplusTrace) {
|
515
|
-
return tsplus_module_1.
|
549
|
+
return tsplus_module_1.matchSTM(e => tsplus_module_10.failNow(tsplus_module_2.just(e), __tsplusTrace), ma => tsplus_module_15.match(() => tsplus_module_10.failNow(tsplus_module_2.nothing(), __tsplusTrace), tsplus_module_10.succeedNow)(ma), __tsplusTrace)(stm);
|
516
550
|
}
|
517
551
|
/**
|
518
552
|
* Provides the transaction its required environment, which eliminates
|
519
553
|
* its dependency on `R`.
|
520
554
|
*
|
521
|
-
* @tsplus
|
555
|
+
* @tsplus pipeable fncts.io.STM provideEnvironment
|
522
556
|
*/
|
523
557
|
|
524
558
|
|
525
|
-
function
|
526
|
-
return
|
559
|
+
function provideEnvironment(r, __tsplusTrace) {
|
560
|
+
return stm => {
|
561
|
+
return contramapEnvironment_1(() => r, __tsplusTrace)(stm);
|
562
|
+
};
|
527
563
|
}
|
528
564
|
/**
|
529
565
|
* Provides some of the environment required to run this effect,
|
530
566
|
* leaving the remainder `R0`.
|
531
567
|
*
|
532
|
-
* @tsplus
|
568
|
+
* @tsplus pipeable fncts.io.STM contramapEnvironment
|
533
569
|
*/
|
534
570
|
|
535
571
|
|
536
|
-
function contramapEnvironment_1(
|
537
|
-
return
|
572
|
+
function contramapEnvironment_1(f, __tsplusTrace) {
|
573
|
+
return self => {
|
574
|
+
return new _definition.ContramapEnvironment(self, f);
|
575
|
+
};
|
538
576
|
}
|
539
577
|
/**
|
540
578
|
* Halts the fiber running the effect.
|
@@ -569,11 +607,11 @@ function haltNow(u, __tsplusTrace) {
|
|
569
607
|
|
570
608
|
|
571
609
|
function head(stm, __tsplusTrace) {
|
572
|
-
return tsplus_module_1.
|
610
|
+
return tsplus_module_1.matchSTM(e => tsplus_module_10.failNow(tsplus_module_2.just(e), __tsplusTrace), ia => {
|
573
611
|
const it = ia[Symbol.iterator]();
|
574
612
|
const next = it.next();
|
575
613
|
return next.done ? tsplus_module_10.failNow(tsplus_module_2.nothing(), __tsplusTrace) : tsplus_module_10.succeedNow(next.value, __tsplusTrace);
|
576
|
-
}, __tsplusTrace);
|
614
|
+
}, __tsplusTrace)(stm);
|
577
615
|
}
|
578
616
|
/**
|
579
617
|
* Interrupts the fiber running the effect.
|
@@ -582,7 +620,7 @@ function head(stm, __tsplusTrace) {
|
|
582
620
|
*/
|
583
621
|
|
584
622
|
|
585
|
-
const interrupt = /*#__PURE__*/tsplus_module_1.
|
623
|
+
const interrupt = /*#__PURE__*/tsplus_module_1.flatMap(id => tsplus_module_10.interruptAs(id, fileName_1 + ":565:95"), fileName_1 + ":565:71")(tsplus_module_10.fiberId);
|
586
624
|
/**
|
587
625
|
* Returns whether this effect is a failure.
|
588
626
|
*
|
@@ -592,7 +630,7 @@ const interrupt = /*#__PURE__*/tsplus_module_1.flatMap_(tsplus_module_10.fiberId
|
|
592
630
|
exports.interrupt = interrupt;
|
593
631
|
|
594
632
|
function isFailure(stm, __tsplusTrace) {
|
595
|
-
return match_1(
|
633
|
+
return match_1(() => true, () => false, __tsplusTrace)(stm);
|
596
634
|
}
|
597
635
|
/**
|
598
636
|
* Returns whether this effect is a success.
|
@@ -602,7 +640,7 @@ function isFailure(stm, __tsplusTrace) {
|
|
602
640
|
|
603
641
|
|
604
642
|
function isSuccess(stm, __tsplusTrace) {
|
605
|
-
return match_1(
|
643
|
+
return match_1(() => false, () => true, __tsplusTrace)(stm);
|
606
644
|
}
|
607
645
|
/**
|
608
646
|
* Returns a successful effect if the value is `Left`, or fails with the error `None`.
|
@@ -612,38 +650,44 @@ function isSuccess(stm, __tsplusTrace) {
|
|
612
650
|
|
613
651
|
|
614
652
|
function left(stm, __tsplusTrace) {
|
615
|
-
return tsplus_module_1.
|
653
|
+
return tsplus_module_1.matchSTM(e => tsplus_module_10.fail(() => tsplus_module_2.just(e), __tsplusTrace), bc => tsplus_module_14.match(tsplus_module_10.succeedNow, () => tsplus_module_10.failNow(tsplus_module_2.nothing(), __tsplusTrace))(bc), __tsplusTrace)(stm);
|
616
654
|
}
|
617
655
|
/**
|
618
656
|
* Returns a successful effect if the value is `Left`, or fails with the error e.
|
619
657
|
*
|
620
|
-
* @tsplus
|
658
|
+
* @tsplus pipeable fncts.io.STM leftOrFail
|
621
659
|
*/
|
622
660
|
|
623
661
|
|
624
|
-
function
|
625
|
-
return
|
662
|
+
function leftOrFail(orFail, __tsplusTrace) {
|
663
|
+
return stm => {
|
664
|
+
return tsplus_module_1.flatMap(bc => tsplus_module_14.match(tsplus_module_10.succeedNow, c => tsplus_module_10.fail(() => orFail(c), __tsplusTrace))(bc), __tsplusTrace)(stm);
|
665
|
+
};
|
626
666
|
}
|
627
667
|
/**
|
628
668
|
* Maps from one error type to another.
|
629
669
|
*
|
630
|
-
* @tsplus
|
670
|
+
* @tsplus pipeable fncts.io.STM mapError
|
631
671
|
*/
|
632
672
|
|
633
673
|
|
634
|
-
function mapError_1(
|
635
|
-
return
|
674
|
+
function mapError_1(f, __tsplusTrace) {
|
675
|
+
return stm => {
|
676
|
+
return tsplus_module_1.matchSTM(e => tsplus_module_10.failNow(f(e), __tsplusTrace), tsplus_module_10.succeedNow, __tsplusTrace)(stm);
|
677
|
+
};
|
636
678
|
}
|
637
679
|
/**
|
638
680
|
* Folds over the `STM` effect, handling both failure and success, but not
|
639
681
|
* retry.
|
640
682
|
*
|
641
|
-
* @tsplus
|
683
|
+
* @tsplus pipeable fncts.io.STM match
|
642
684
|
*/
|
643
685
|
|
644
686
|
|
645
|
-
function match_1(
|
646
|
-
return
|
687
|
+
function match_1(g, f, __tsplusTrace) {
|
688
|
+
return stm => {
|
689
|
+
return tsplus_module_1.matchSTM(e => tsplus_module_10.succeedNow(g(e), __tsplusTrace), a => tsplus_module_10.succeedNow(f(a), __tsplusTrace), __tsplusTrace)(stm);
|
690
|
+
};
|
647
691
|
}
|
648
692
|
/**
|
649
693
|
* Repeats this `STM` effect until its result satisfies the specified predicate.
|
@@ -657,12 +701,14 @@ function match_1(stm, g, f, __tsplusTrace) {
|
|
657
701
|
* - Use `retryUntil` instead if you don't need to maintain transaction state for repeats.
|
658
702
|
* - Ensure repeating the STM effect will eventually satisfy the predicate.
|
659
703
|
*
|
660
|
-
* @tsplus
|
704
|
+
* @tsplus pipeable fncts.io.STM repeatUntil
|
661
705
|
*/
|
662
706
|
|
663
707
|
|
664
|
-
function repeatUntil_1(
|
665
|
-
return
|
708
|
+
function repeatUntil_1(f, __tsplusTrace) {
|
709
|
+
return stm => {
|
710
|
+
return tsplus_module_1.flatMap(a => f(a) ? tsplus_module_10.succeedNow(a, __tsplusTrace) : repeatUntil_1(f, __tsplusTrace)(stm), __tsplusTrace)(stm);
|
711
|
+
};
|
666
712
|
}
|
667
713
|
/**
|
668
714
|
* Repeats this `STM` effect while its result satisfies the specified predicate.
|
@@ -676,12 +722,14 @@ function repeatUntil_1(stm, f, __tsplusTrace) {
|
|
676
722
|
* - Use `retryWhile` instead if you don't need to maintain transaction state for repeats.
|
677
723
|
* - Ensure repeating the STM effect will eventually not satisfy the predicate.
|
678
724
|
*
|
679
|
-
* @tsplus
|
725
|
+
* @tsplus pipeable fncts.io.STM repeatWhile
|
680
726
|
*/
|
681
727
|
|
682
728
|
|
683
|
-
function repeatWhile_1(
|
684
|
-
return
|
729
|
+
function repeatWhile_1(f, __tsplusTrace) {
|
730
|
+
return stm => {
|
731
|
+
return tsplus_module_1.flatMap(a => f(a) ? repeatWhile_1(f, __tsplusTrace)(stm) : tsplus_module_10.succeedNow(a, __tsplusTrace), __tsplusTrace)(stm);
|
732
|
+
};
|
685
733
|
}
|
686
734
|
/**
|
687
735
|
* Returns an effect that swaps the error/success cases. This allows you to
|
@@ -692,27 +740,31 @@ function repeatWhile_1(stm, f, __tsplusTrace) {
|
|
692
740
|
|
693
741
|
|
694
742
|
function swap_1(stm, __tsplusTrace) {
|
695
|
-
return tsplus_module_1.
|
743
|
+
return tsplus_module_1.matchSTM(tsplus_module_10.succeedNow, tsplus_module_10.failNow, __tsplusTrace)(stm);
|
696
744
|
}
|
697
745
|
/**
|
698
746
|
* Swaps the error/value parameters, applies the function `f` and flips the parameters back
|
699
747
|
*
|
700
|
-
* @tsplus
|
748
|
+
* @tsplus pipeable fncts.io.STM swapWith
|
701
749
|
*/
|
702
750
|
|
703
751
|
|
704
|
-
function swapWith_1(
|
705
|
-
return
|
752
|
+
function swapWith_1(f, __tsplusTrace) {
|
753
|
+
return stm => {
|
754
|
+
return swap_1(f(swap_1(stm, __tsplusTrace)), __tsplusTrace);
|
755
|
+
};
|
706
756
|
}
|
707
757
|
/**
|
708
758
|
* "Peeks" at the success of transactional effect.
|
709
759
|
*
|
710
|
-
* @tsplus
|
760
|
+
* @tsplus pipeable fncts.io.STM tap
|
711
761
|
*/
|
712
762
|
|
713
763
|
|
714
|
-
function
|
715
|
-
return
|
764
|
+
function tap(f, __tsplusTrace) {
|
765
|
+
return stm => {
|
766
|
+
return tsplus_module_1.flatMap(a => as_1(() => a, __tsplusTrace)(f(a)), __tsplusTrace)(stm);
|
767
|
+
};
|
716
768
|
}
|
717
769
|
/**
|
718
770
|
* Returns an effect with the value on the left part.
|
@@ -722,7 +774,7 @@ function tap_(stm, f, __tsplusTrace) {
|
|
722
774
|
|
723
775
|
|
724
776
|
function toLeft(a, __tsplusTrace) {
|
725
|
-
return tsplus_module_1.
|
777
|
+
return tsplus_module_1.flatMap(a => tsplus_module_10.succeedNow(tsplus_module_13.left(a), __tsplusTrace), __tsplusTrace)(tsplus_module_10.succeed(a, __tsplusTrace));
|
726
778
|
}
|
727
779
|
/**
|
728
780
|
* Returns an `STM` effect that succeeds with `Unit`.
|
@@ -731,18 +783,20 @@ function toLeft(a, __tsplusTrace) {
|
|
731
783
|
*/
|
732
784
|
|
733
785
|
|
734
|
-
const unit_1 = /*#__PURE__*/tsplus_module_10.succeedNow(undefined, fileName_1 + ":
|
786
|
+
const unit_1 = /*#__PURE__*/tsplus_module_10.succeedNow(undefined, fileName_1 + ":726:35");
|
735
787
|
const unit = unit_1;
|
736
788
|
/**
|
737
789
|
* Sequentially zips this value with the specified one, combining the values
|
738
790
|
* using the specified combiner function.
|
739
791
|
*
|
740
|
-
* @tsplus
|
792
|
+
* @tsplus pipeable fncts.io.STM zipWith
|
741
793
|
*/
|
742
794
|
|
743
795
|
exports.unit = unit;
|
744
796
|
|
745
|
-
function zipWith_1(
|
746
|
-
return
|
797
|
+
function zipWith_1(that, f, __tsplusTrace) {
|
798
|
+
return self => {
|
799
|
+
return tsplus_module_1.flatMap(a => tsplus_module_1.map(b => f(a, b), __tsplusTrace)(that), __tsplusTrace)(self);
|
800
|
+
};
|
747
801
|
}
|
748
802
|
//# sourceMappingURL=api.cjs.map
|