@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/_mjs/Channel/api.mjs
CHANGED
@@ -1,56 +1,51 @@
|
|
1
1
|
const fileName_1 = "(@fncts/io) src/Channel/api.ts";
|
2
2
|
import * as tsplus_module_1 from "@fncts/io/Channel/core-api";
|
3
3
|
import * as tsplus_module_2 from "@fncts/io/IO/api/environment";
|
4
|
-
import * as tsplus_module_3 from "@fncts/io/
|
5
|
-
import * as tsplus_module_4 from "@fncts/io/IO/api";
|
6
|
-
import * as tsplus_module_5 from "@fncts/io/Ref/
|
7
|
-
import * as tsplus_module_6 from "@fncts/
|
8
|
-
import * as tsplus_module_7 from "@fncts/
|
9
|
-
import * as tsplus_module_8 from "@fncts/
|
10
|
-
import * as tsplus_module_9 from "@fncts/base/
|
11
|
-
import * as tsplus_module_10 from "@fncts/base/collection/immutable/Conc
|
12
|
-
import * as tsplus_module_11 from "@fncts/base/data/
|
13
|
-
import * as tsplus_module_12 from "@fncts/
|
14
|
-
import * as tsplus_module_13 from "@fncts/
|
15
|
-
import * as tsplus_module_14 from "@fncts/base/data/Maybe/
|
16
|
-
import * as tsplus_module_15 from "@fncts/
|
17
|
-
import * as tsplus_module_16 from "@fncts/
|
18
|
-
import * as tsplus_module_17 from "@fncts/
|
19
|
-
import * as tsplus_module_18 from "@fncts/base/
|
20
|
-
import * as tsplus_module_19 from "@fncts/
|
21
|
-
import * as tsplus_module_20 from "@fncts/base/
|
22
|
-
import * as tsplus_module_21 from "@fncts/io/Scope/api";
|
23
|
-
import * as tsplus_module_22 from "@fncts/base/util/predicates";
|
24
|
-
import * as tsplus_module_23 from "@fncts/base/data/Either/constructors";
|
25
|
-
import * as tsplus_module_24 from "@fncts/base/collection/immutable/Conc/constructors";
|
26
|
-
import * as tsplus_module_25 from "@fncts/io/Hub/api";
|
4
|
+
import * as tsplus_module_3 from "@fncts/io/IO/api";
|
5
|
+
import * as tsplus_module_4 from "@fncts/io/IO/api/interrupt";
|
6
|
+
import * as tsplus_module_5 from "@fncts/io/Ref/constructors";
|
7
|
+
import * as tsplus_module_6 from "@fncts/base/collection/immutable/Conc/api/empty";
|
8
|
+
import * as tsplus_module_7 from "@fncts/base/collection/immutable/Conc/api";
|
9
|
+
import * as tsplus_module_8 from "@fncts/base/data/Cause/api";
|
10
|
+
import * as tsplus_module_9 from "@fncts/base/data/Either/destructors";
|
11
|
+
import * as tsplus_module_10 from "@fncts/base/collection/immutable/Conc";
|
12
|
+
import * as tsplus_module_11 from "@fncts/base/data/Maybe/constructors";
|
13
|
+
import * as tsplus_module_12 from "@fncts/io/Channel/UpstreamPullStrategy/definition";
|
14
|
+
import * as tsplus_module_13 from "@fncts/io/Channel/ChildExecutorDecision/definition";
|
15
|
+
import * as tsplus_module_14 from "@fncts/base/data/Maybe/destructors";
|
16
|
+
import * as tsplus_module_15 from "@fncts/base/data/Exit/api";
|
17
|
+
import * as tsplus_module_16 from "@fncts/base/data/Exit/constructors";
|
18
|
+
import * as tsplus_module_17 from "@fncts/io/Scope/api";
|
19
|
+
import * as tsplus_module_18 from "@fncts/base/util/predicates";
|
20
|
+
import * as tsplus_module_19 from "@fncts/base/data/Either/constructors";
|
21
|
+
import * as tsplus_module_20 from "@fncts/base/collection/immutable/Conc/constructors";
|
27
22
|
export const as_ = as_1;
|
28
23
|
export const ask = ask_1;
|
29
|
-
export const
|
30
|
-
export const
|
24
|
+
export const acquireReleaseExitWith = acquireReleaseExitWith_1;
|
25
|
+
export const acquireReleaseOutExit = acquireReleaseOutExit_1;
|
31
26
|
export const buffer = buffer_1;
|
32
|
-
export const
|
33
|
-
export const
|
34
|
-
export const
|
35
|
-
export const
|
27
|
+
export const catchAll = catchAll_1;
|
28
|
+
export const catchAllCause = catchAllCause_1;
|
29
|
+
export const concatMapWith = concatMapWith_1;
|
30
|
+
export const concatAllWith = concatAllWith_1;
|
36
31
|
export const defer = defer_1;
|
37
32
|
export const doneCollect = doneCollect_1;
|
38
|
-
export const
|
33
|
+
export const ensuringWith = ensuringWith_1;
|
39
34
|
export const failNow = failNow_1;
|
40
35
|
export const flatten = flatten_1;
|
41
36
|
export const fromInput = fromInput_1;
|
42
37
|
export const fromIO = fromIO_1;
|
43
38
|
export const fromQueue = fromQueue_1;
|
44
|
-
export const
|
39
|
+
export const provideEnvironment = provideEnvironment_1;
|
45
40
|
export const haltNow = haltNow_1;
|
46
41
|
export const id = id_1;
|
47
42
|
export const scoped = scoped_1;
|
48
|
-
export const
|
49
|
-
export const
|
50
|
-
export const
|
51
|
-
export const
|
52
|
-
export const
|
53
|
-
export const
|
43
|
+
export const mapErrorCause = mapErrorCause_1;
|
44
|
+
export const mapIO = mapIO_1;
|
45
|
+
export const mapOut = mapOut_1;
|
46
|
+
export const matchCauseChannel = matchCauseChannel_1;
|
47
|
+
export const orHaltWith = orHaltWith_1;
|
48
|
+
export const pipeTo = pipeTo_1;
|
54
49
|
export const readOrFail = readOrFail_1;
|
55
50
|
export const readWithCause = readWithCause_1;
|
56
51
|
export const readWith = readWith_1;
|
@@ -68,11 +63,13 @@ import { BracketOut, Bridge, ConcatAll, ContinuationK, Defer, Emit, Ensuring, Fa
|
|
68
63
|
*
|
69
64
|
* This method produces the same result as mapping this channel to the specified constant value.
|
70
65
|
*
|
71
|
-
* @tsplus
|
66
|
+
* @tsplus pipeable fncts.io.Channel as
|
72
67
|
*/
|
73
68
|
|
74
|
-
function as_1(
|
75
|
-
return
|
69
|
+
function as_1(z2) {
|
70
|
+
return self => {
|
71
|
+
return tsplus_module_1.map(() => z2())(self);
|
72
|
+
};
|
76
73
|
}
|
77
74
|
/**
|
78
75
|
* @tsplus static fncts.io.ChannelOps ask
|
@@ -80,7 +77,7 @@ function as_1(self, z2) {
|
|
80
77
|
|
81
78
|
|
82
79
|
function ask_1() {
|
83
|
-
return fromIO_1(() => tsplus_module_2.environment(fileName_1 + ":
|
80
|
+
return fromIO_1(() => tsplus_module_2.environment(fileName_1 + ":45:39"));
|
84
81
|
}
|
85
82
|
/**
|
86
83
|
* @tsplus getter fncts.io.Channel asUnit
|
@@ -88,13 +85,13 @@ function ask_1() {
|
|
88
85
|
|
89
86
|
|
90
87
|
export function asUnit(self) {
|
91
|
-
return as_1(
|
88
|
+
return as_1(() => undefined)(self);
|
92
89
|
}
|
93
90
|
/**
|
94
91
|
* @tsplus static fncts.io.ChannelOps acquireReleaseWith
|
95
92
|
*/
|
96
93
|
|
97
|
-
export function
|
94
|
+
export function acquireReleaseWith(acquire, use, release) {
|
98
95
|
return acquireReleaseExitWith_1(acquire, use, (a, _) => release(a));
|
99
96
|
}
|
100
97
|
/**
|
@@ -102,7 +99,7 @@ export function acquireReleaseWith_(acquire, use, release) {
|
|
102
99
|
*/
|
103
100
|
|
104
101
|
function acquireReleaseExitWith_1(acquire, use, release) {
|
105
|
-
return tsplus_module_1.
|
102
|
+
return tsplus_module_1.flatMap(ref => ensuringWith_1(exit => tsplus_module_3.flatMap(fin => fin(exit), fileName_1 + ":79:46")(ref.get))(tsplus_module_1.flatMap(use)(fromIO_1(() => tsplus_module_4.uninterruptible(tsplus_module_3.tap(a => ref.set(exit => release(a, exit), fileName_1 + ":77:46"), fileName_1 + ":77:31")(acquire), fileName_1 + ":77:75")))))(fromIO_1(() => tsplus_module_5.make(() => _ => tsplus_module_3.unit, fileName_1 + ":76:33")));
|
106
103
|
}
|
107
104
|
/**
|
108
105
|
* Construct a resource Channel with Acquire / Release
|
@@ -111,7 +108,7 @@ function acquireReleaseExitWith_1(acquire, use, release) {
|
|
111
108
|
*/
|
112
109
|
|
113
110
|
|
114
|
-
export function
|
111
|
+
export function acquireReleaseOut(acquire, release) {
|
115
112
|
return acquireReleaseOutExit_1(acquire, (z, _) => release(z));
|
116
113
|
}
|
117
114
|
/**
|
@@ -133,13 +130,13 @@ function acquireReleaseOutExit_1(self, release) {
|
|
133
130
|
|
134
131
|
|
135
132
|
function buffer_1(empty, isEmpty, ref) {
|
136
|
-
return unwrap_1(() =>
|
133
|
+
return unwrap_1(() => ref.modify(v => {
|
137
134
|
if (isEmpty(v)) {
|
138
|
-
return tuple(readWith_1(_in => tsplus_module_1.
|
135
|
+
return tuple(readWith_1(_in => tsplus_module_1.apSecond(buffer_1(empty, isEmpty, ref))(writeNow_1(_in)), err => failNow_1(err), done => tsplus_module_1.endNow(done)), v);
|
139
136
|
} else {
|
140
|
-
return tuple(tsplus_module_1.
|
137
|
+
return tuple(tsplus_module_1.apSecond(buffer_1(empty, isEmpty, ref))(writeNow_1(v)), empty);
|
141
138
|
}
|
142
|
-
}, fileName_1 + ":
|
139
|
+
}, fileName_1 + ":120:15"));
|
143
140
|
}
|
144
141
|
/**
|
145
142
|
* @tsplus static fncts.io.ChannelOps bufferChunk
|
@@ -147,30 +144,34 @@ function buffer_1(empty, isEmpty, ref) {
|
|
147
144
|
|
148
145
|
|
149
146
|
export function bufferChunk(ref) {
|
150
|
-
return buffer_1(
|
147
|
+
return buffer_1(tsplus_module_6.empty(), conc => tsplus_module_7.isEmpty(conc), ref);
|
151
148
|
}
|
152
149
|
/**
|
153
150
|
* Returns a new channel that is the same as this one, except if this channel errors for any
|
154
151
|
* typed error, then the returned channel will switch over to using the fallback channel returned
|
155
152
|
* by the specified error handler.
|
156
153
|
*
|
157
|
-
* @tsplus
|
154
|
+
* @tsplus pipeable fncts.io.Channel catchAll
|
158
155
|
*/
|
159
156
|
|
160
|
-
function catchAll_1(
|
161
|
-
return
|
157
|
+
function catchAll_1(f) {
|
158
|
+
return self => {
|
159
|
+
return catchAllCause_1(cause => tsplus_module_9.match(l => f(l), r => tsplus_module_1.failCauseNow(r))(tsplus_module_8.failureOrCause(cause)))(self);
|
160
|
+
};
|
162
161
|
}
|
163
162
|
/**
|
164
163
|
* Returns a new channel that is the same as this one, except if this channel errors for any
|
165
164
|
* typed error, then the returned channel will switch over to using the fallback channel returned
|
166
165
|
* by the specified error handler.
|
167
166
|
*
|
168
|
-
* @tsplus
|
167
|
+
* @tsplus pipeable fncts.io.Channel catchAllCause
|
169
168
|
*/
|
170
169
|
|
171
170
|
|
172
|
-
function catchAllCause_1(
|
173
|
-
return
|
171
|
+
function catchAllCause_1(f) {
|
172
|
+
return self => {
|
173
|
+
return new Fold(self, new ContinuationK(_ => tsplus_module_1.endNow(_), f));
|
174
|
+
};
|
174
175
|
}
|
175
176
|
/**
|
176
177
|
* @tsplus getter fncts.io.Channel collectElements
|
@@ -179,9 +180,9 @@ function catchAllCause_1(self, f) {
|
|
179
180
|
|
180
181
|
export function collectElements(self) {
|
181
182
|
return defer_1(() => {
|
182
|
-
const builder = new
|
183
|
-
const reader = readWith_1(out => tsplus_module_1.
|
184
|
-
return tsplus_module_1.
|
183
|
+
const builder = new tsplus_module_10.ConcBuilder(tsplus_module_6.empty());
|
184
|
+
const reader = readWith_1(out => tsplus_module_1.apSecond(reader)(tsplus_module_1.succeed(() => builder.append(out))), failNow_1, tsplus_module_1.succeedNow);
|
185
|
+
return tsplus_module_1.flatMap(z => tsplus_module_1.succeedNow([builder.result(), z]))(pipeTo_1(reader)(self));
|
185
186
|
});
|
186
187
|
}
|
187
188
|
/**
|
@@ -189,7 +190,7 @@ export function collectElements(self) {
|
|
189
190
|
*/
|
190
191
|
|
191
192
|
export function concatAll(channels) {
|
192
|
-
return concatAllWith_1(
|
193
|
+
return concatAllWith_1(() => void 0, () => void 0)(channels);
|
193
194
|
}
|
194
195
|
/**
|
195
196
|
* Returns a new channel whose outputs are fed to the specified factory function, which creates
|
@@ -198,11 +199,13 @@ export function concatAll(channels) {
|
|
198
199
|
* is used to merge the terminal values of all channels into the single terminal value of the
|
199
200
|
* returned channel.
|
200
201
|
*
|
201
|
-
* @tsplus
|
202
|
+
* @tsplus pipeable fncts.io.Channel concatMapWith
|
202
203
|
*/
|
203
204
|
|
204
|
-
function concatMapWith_1(
|
205
|
-
return
|
205
|
+
function concatMapWith_1(f, g, h) {
|
206
|
+
return channel => {
|
207
|
+
return new ConcatAll(g, h, () => tsplus_module_12.PullAfterNext(tsplus_module_11.nothing()), () => tsplus_module_13.Continue, channel, f);
|
208
|
+
};
|
206
209
|
}
|
207
210
|
/**
|
208
211
|
* Returns a new channel whose outputs are fed to the specified factory function, which creates
|
@@ -211,81 +214,95 @@ function concatMapWith_1(channel, f, g, h) {
|
|
211
214
|
* is used to merge the terminal values of all channels into the single terminal value of the
|
212
215
|
* returned channel.
|
213
216
|
*
|
214
|
-
* @tsplus
|
217
|
+
* @tsplus pipeable fncts.io.Channel concatMapWithCustom
|
215
218
|
*/
|
216
219
|
|
217
220
|
|
218
|
-
export function
|
219
|
-
return
|
221
|
+
export function concatMapWithCustom(f, g, h, onPull, onEmit) {
|
222
|
+
return channel => {
|
223
|
+
return new ConcatAll(g, h, onPull, onEmit, channel, f);
|
224
|
+
};
|
220
225
|
}
|
221
226
|
/**
|
222
227
|
* Concat sequentially a channel of channels
|
223
228
|
*
|
224
|
-
* @tsplus
|
229
|
+
* @tsplus pipeable fncts.io.Channel concatAllWith
|
225
230
|
*/
|
226
231
|
|
227
|
-
function concatAllWith_1(
|
228
|
-
return
|
232
|
+
function concatAllWith_1(f, g) {
|
233
|
+
return channels => {
|
234
|
+
return new ConcatAll(f, g, () => tsplus_module_12.PullAfterNext(tsplus_module_11.nothing()), () => tsplus_module_13.Continue, channels, identity);
|
235
|
+
};
|
229
236
|
}
|
230
237
|
/**
|
231
238
|
* Returns a new channel whose outputs are fed to the specified factory function, which creates
|
232
239
|
* new channels in response. These new channels are sequentially concatenated together, and all
|
233
240
|
* their outputs appear as outputs of the newly returned channel.
|
234
241
|
*
|
235
|
-
* @tsplus
|
242
|
+
* @tsplus pipeable fncts.io.Channel concatMap
|
236
243
|
*/
|
237
244
|
|
238
245
|
|
239
|
-
export function
|
240
|
-
return
|
246
|
+
export function concatMap(f) {
|
247
|
+
return self => {
|
248
|
+
return concatMapWith_1(f, () => void 0, () => void 0)(self);
|
249
|
+
};
|
241
250
|
}
|
242
251
|
|
243
252
|
function contramapReader(f) {
|
244
|
-
return readWith_1(_in => tsplus_module_1.
|
253
|
+
return readWith_1(_in => tsplus_module_1.apSecond(contramapReader(f))(writeNow_1(_in)), failNow_1, done => tsplus_module_1.endNow(f(done)));
|
245
254
|
}
|
246
255
|
/**
|
247
|
-
* @tsplus
|
256
|
+
* @tsplus pipeable fncts.io.Channel contramap
|
248
257
|
*/
|
249
258
|
|
250
259
|
|
251
|
-
export function
|
252
|
-
return
|
260
|
+
export function contramap(f) {
|
261
|
+
return self => {
|
262
|
+
return pipeTo_1(self)(contramapReader(f));
|
263
|
+
};
|
253
264
|
}
|
254
265
|
|
255
266
|
function contramapInReader(f) {
|
256
|
-
return readWith_1(_in => tsplus_module_1.
|
267
|
+
return readWith_1(_in => tsplus_module_1.apSecond(contramapInReader(f))(writeNow_1(f(_in))), failNow_1, done => tsplus_module_1.endNow(done));
|
257
268
|
}
|
258
269
|
/**
|
259
|
-
* @tsplus
|
270
|
+
* @tsplus pipeable fncts.io.Channel contramapIn
|
260
271
|
*/
|
261
272
|
|
262
273
|
|
263
|
-
export function
|
264
|
-
return
|
274
|
+
export function contramapIn(f) {
|
275
|
+
return self => {
|
276
|
+
return pipeTo_1(self)(contramapInReader(f));
|
277
|
+
};
|
265
278
|
}
|
266
279
|
|
267
280
|
function contramapIOReader(f) {
|
268
|
-
return readWith_1(_in => tsplus_module_1.
|
281
|
+
return readWith_1(_in => tsplus_module_1.apSecond(contramapIOReader(f))(writeNow_1(_in)), failNow_1, done0 => fromIO_1(() => f(done0)));
|
269
282
|
}
|
270
283
|
/**
|
271
|
-
* @tsplus
|
284
|
+
* @tsplus pipeable fncts.io.Channel contramapIO
|
272
285
|
*/
|
273
286
|
|
274
287
|
|
275
|
-
export function
|
276
|
-
return
|
288
|
+
export function contramapIO(f) {
|
289
|
+
return self => {
|
290
|
+
return pipeTo_1(self)(contramapIOReader(f));
|
291
|
+
};
|
277
292
|
}
|
278
293
|
|
279
294
|
function contramapInIOReader(f) {
|
280
|
-
return readWith_1(inp => tsplus_module_1.
|
295
|
+
return readWith_1(inp => tsplus_module_1.apSecond(contramapInIOReader(f))(tsplus_module_1.flatMap(writeNow_1)(fromIO_1(() => f(inp)))), failNow_1, tsplus_module_1.endNow);
|
281
296
|
}
|
282
297
|
/**
|
283
|
-
* @tsplus
|
298
|
+
* @tsplus pipeable fncts.io.Channel contramapInIO
|
284
299
|
*/
|
285
300
|
|
286
301
|
|
287
|
-
export function
|
288
|
-
return
|
302
|
+
export function contramapInIO(f) {
|
303
|
+
return self => {
|
304
|
+
return pipeTo_1(self)(contramapInIOReader(f));
|
305
|
+
};
|
289
306
|
}
|
290
307
|
/**
|
291
308
|
* @tsplus static fncts.io.ChannelOps defer
|
@@ -296,9 +313,9 @@ function defer_1(effect) {
|
|
296
313
|
}
|
297
314
|
|
298
315
|
function doneCollectReader(builder) {
|
299
|
-
return readWith_1(out => tsplus_module_1.
|
316
|
+
return readWith_1(out => tsplus_module_1.apSecond(doneCollectReader(builder))(fromIO_1(() => tsplus_module_3.succeed(() => {
|
300
317
|
builder.append(out);
|
301
|
-
}, fileName_1 + ":
|
318
|
+
}, fileName_1 + ":485:19"))), failNow_1, tsplus_module_1.endNow);
|
302
319
|
}
|
303
320
|
/**
|
304
321
|
* Returns a new channel, which is the same as this one, except that all the outputs are
|
@@ -313,10 +330,10 @@ function doneCollectReader(builder) {
|
|
313
330
|
|
314
331
|
|
315
332
|
function doneCollect_1(self) {
|
316
|
-
return unwrap_1(() =>
|
317
|
-
const builder =
|
318
|
-
return mapIO_1(
|
319
|
-
}, fileName_1 + ":
|
333
|
+
return unwrap_1(() => tsplus_module_3.succeed(() => {
|
334
|
+
const builder = tsplus_module_7.builder();
|
335
|
+
return mapIO_1(z => tsplus_module_3.succeedNow(tuple(builder.result(), z), fileName_1 + ":510:80"))(pipeTo_1(doneCollectReader(builder))(self));
|
336
|
+
}, fileName_1 + ":508:15"));
|
320
337
|
}
|
321
338
|
/**
|
322
339
|
* Returns a new channel which reads all the elements from upstream's output channel
|
@@ -328,7 +345,7 @@ function doneCollect_1(self) {
|
|
328
345
|
|
329
346
|
export function drain(channel) {
|
330
347
|
const drainer = readWithCause_1(_ => drainer, tsplus_module_1.failCauseNow, tsplus_module_1.endNow);
|
331
|
-
return pipeTo_1(
|
348
|
+
return pipeTo_1(drainer)(channel);
|
332
349
|
}
|
333
350
|
/**
|
334
351
|
* Returns a new channel that collects the output and terminal value of this channel, which it
|
@@ -338,34 +355,40 @@ export function drain(channel) {
|
|
338
355
|
*/
|
339
356
|
|
340
357
|
export function emitCollect(self) {
|
341
|
-
return tsplus_module_1.
|
358
|
+
return tsplus_module_1.flatMap(t => writeNow_1(t))(doneCollect_1(self));
|
342
359
|
}
|
343
360
|
/**
|
344
|
-
* @tsplus
|
361
|
+
* @tsplus pipeable fncts.io.Channel ensuring
|
345
362
|
*/
|
346
363
|
|
347
|
-
export function
|
348
|
-
return
|
364
|
+
export function ensuring(finalizer) {
|
365
|
+
return self => {
|
366
|
+
return ensuringWith_1(() => finalizer)(self);
|
367
|
+
};
|
349
368
|
}
|
350
369
|
/**
|
351
370
|
* Returns a new channel with an attached finalizer. The finalizer is guaranteed to be executed
|
352
371
|
* so long as the channel begins execution (and regardless of whether or not it completes).
|
353
372
|
*
|
354
|
-
* @tsplus
|
373
|
+
* @tsplus pipeable fncts.io.Channel ensuringWith
|
355
374
|
*/
|
356
375
|
|
357
|
-
function ensuringWith_1(
|
358
|
-
return
|
376
|
+
function ensuringWith_1(finalizer) {
|
377
|
+
return channel => {
|
378
|
+
return new Ensuring(channel, finalizer);
|
379
|
+
};
|
359
380
|
}
|
360
381
|
/**
|
361
382
|
* Embed inputs from continuos pulling of a producer
|
362
383
|
*
|
363
|
-
* @tsplus
|
384
|
+
* @tsplus pipeable fncts.io.Channel embedInput
|
364
385
|
*/
|
365
386
|
|
366
387
|
|
367
|
-
export function
|
368
|
-
return
|
388
|
+
export function embedInput(input) {
|
389
|
+
return self => {
|
390
|
+
return new Bridge(input, self);
|
391
|
+
};
|
369
392
|
}
|
370
393
|
/**
|
371
394
|
* Halt a channel with the specified error
|
@@ -374,7 +397,7 @@ export function embedInput_(self, input) {
|
|
374
397
|
*/
|
375
398
|
|
376
399
|
export function fail(error) {
|
377
|
-
return new Fail(() =>
|
400
|
+
return new Fail(() => tsplus_module_8.fail(error()));
|
378
401
|
}
|
379
402
|
/**
|
380
403
|
* Halt a channel with the specified error
|
@@ -383,7 +406,7 @@ export function fail(error) {
|
|
383
406
|
*/
|
384
407
|
|
385
408
|
function failNow_1(error) {
|
386
|
-
return new Fail(() =>
|
409
|
+
return new Fail(() => tsplus_module_8.fail(error));
|
387
410
|
}
|
388
411
|
/**
|
389
412
|
* Returns a new channel, which flattens the terminal value of this channel. This function may
|
@@ -394,7 +417,7 @@ function failNow_1(error) {
|
|
394
417
|
|
395
418
|
|
396
419
|
function flatten_1(self) {
|
397
|
-
return tsplus_module_1.
|
420
|
+
return tsplus_module_1.flatMap(identity)(self);
|
398
421
|
}
|
399
422
|
/**
|
400
423
|
* @tsplus static fncts.io.ChannelOps fromEither
|
@@ -402,14 +425,14 @@ function flatten_1(self) {
|
|
402
425
|
|
403
426
|
|
404
427
|
export function fromEither(either) {
|
405
|
-
return defer_1(() =>
|
428
|
+
return defer_1(() => tsplus_module_9.match(failNow_1, tsplus_module_1.succeedNow)(either()));
|
406
429
|
}
|
407
430
|
/**
|
408
431
|
* @tsplus static fncts.io.ChannelOps fromInput
|
409
432
|
*/
|
410
433
|
|
411
434
|
function fromInput_1(input) {
|
412
|
-
return unwrap_1(() => input.takeWith(tsplus_module_1.failCauseNow, elem => tsplus_module_1.
|
435
|
+
return unwrap_1(() => input.takeWith(tsplus_module_1.failCauseNow, elem => tsplus_module_1.apSecond(fromInput_1(input))(writeNow_1(elem)), tsplus_module_1.endNow));
|
413
436
|
}
|
414
437
|
/**
|
415
438
|
* Use an effect to end a channel
|
@@ -427,33 +450,37 @@ function fromIO_1(io) {
|
|
427
450
|
|
428
451
|
|
429
452
|
export function fromOption(option) {
|
430
|
-
return defer_1(() =>
|
453
|
+
return defer_1(() => tsplus_module_14.match(() => failNow_1(tsplus_module_11.nothing()), tsplus_module_1.succeedNow)(option()));
|
431
454
|
}
|
432
455
|
/**
|
433
456
|
* @tsplus static fncts.io.ChannelOps fromQueue
|
434
457
|
*/
|
435
458
|
|
436
459
|
function fromQueue_1(queue) {
|
437
|
-
return tsplus_module_1.
|
460
|
+
return tsplus_module_1.flatMap(_ => tsplus_module_9.match(_ => tsplus_module_15.match(tsplus_module_1.failCauseNow, tsplus_module_1.endNow)(_), elem => tsplus_module_1.apSecond(fromQueue_1(queue))(writeNow_1(elem)))(_))(fromIO_1(() => queue.take));
|
438
461
|
}
|
439
462
|
/**
|
440
463
|
* Provides the channel with its required environment, which eliminates
|
441
464
|
* its dependency on `Env`.
|
442
465
|
*
|
443
|
-
* @tsplus
|
466
|
+
* @tsplus pipeable fncts.io.Channel provideEnvironment
|
444
467
|
*/
|
445
468
|
|
446
469
|
|
447
|
-
function provideEnvironment_1(
|
448
|
-
return
|
470
|
+
function provideEnvironment_1(env) {
|
471
|
+
return self => {
|
472
|
+
return defer_1(() => new Provide(env(), self));
|
473
|
+
};
|
449
474
|
}
|
450
475
|
/**
|
451
|
-
* @tsplus
|
476
|
+
* @tsplus pipeable fncts.io.Channel contramapEnvironment
|
452
477
|
*/
|
453
478
|
|
454
479
|
|
455
|
-
export function
|
456
|
-
return
|
480
|
+
export function contramapEnvironment(f) {
|
481
|
+
return self => {
|
482
|
+
return tsplus_module_1.flatMap(env0 => provideEnvironment_1(() => f(env0))(self))(ask_1());
|
483
|
+
};
|
457
484
|
}
|
458
485
|
/**
|
459
486
|
* Halt a channel with the specified exception
|
@@ -462,7 +489,7 @@ export function contramapEnvironment_(self, f) {
|
|
462
489
|
*/
|
463
490
|
|
464
491
|
function haltNow_1(defect) {
|
465
|
-
return new Fail(() =>
|
492
|
+
return new Fail(() => tsplus_module_8.halt(defect));
|
466
493
|
}
|
467
494
|
/**
|
468
495
|
* Halt a channel with the specified exception
|
@@ -472,14 +499,14 @@ function haltNow_1(defect) {
|
|
472
499
|
|
473
500
|
|
474
501
|
export function halt(defect) {
|
475
|
-
return new Fail(() =>
|
502
|
+
return new Fail(() => tsplus_module_8.halt(defect()));
|
476
503
|
}
|
477
504
|
/**
|
478
505
|
* @tsplus static fncts.io.ChannelOps id
|
479
506
|
*/
|
480
507
|
|
481
508
|
function id_1() {
|
482
|
-
return readWith_1(_in => tsplus_module_1.
|
509
|
+
return readWith_1(_in => tsplus_module_1.apSecond(id_1())(write_1(() => _in)), failNow_1, tsplus_module_1.endNow);
|
483
510
|
}
|
484
511
|
/**
|
485
512
|
* @tsplus static fncts.io.ChannelOps interrupt
|
@@ -487,7 +514,7 @@ function id_1() {
|
|
487
514
|
|
488
515
|
|
489
516
|
export function interrupt(fiberId) {
|
490
|
-
return tsplus_module_1.failCauseNow(
|
517
|
+
return tsplus_module_1.failCauseNow(tsplus_module_8.interrupt(fiberId));
|
491
518
|
}
|
492
519
|
/**
|
493
520
|
* Use a managed to emit an output element
|
@@ -496,117 +523,139 @@ export function interrupt(fiberId) {
|
|
496
523
|
*/
|
497
524
|
|
498
525
|
function scoped_1(io) {
|
499
|
-
return mapOut_1(acquireReleaseOutExit_1(
|
526
|
+
return mapOut_1(([a]) => a)(acquireReleaseOutExit_1(tsplus_module_3.flatMap(scope => tsplus_module_4.uninterruptibleMask(({
|
500
527
|
restore
|
501
|
-
}) =>
|
528
|
+
}) => tsplus_module_3.matchCauseIO(cause => tsplus_module_3.apSecond(tsplus_module_3.failCauseNow(cause, fileName_1 + ":759:74"), fileName_1 + ":759:58")(scope.close(() => tsplus_module_16.failCause(cause))), out => tsplus_module_3.succeedNow(tuple(out, scope), fileName_1 + ":760:33"), fileName_1 + ":758:47")(restore(tsplus_module_17.extend(io, fileName_1 + ":758:29")(scope))), fileName_1 + ":757:29"), fileName_1 + ":756:23")(tsplus_module_17.make), ([_, scope], exit) => scope.close(() => exit)));
|
502
529
|
}
|
503
530
|
/**
|
504
531
|
* Returns a new channel, which is the same as this one, except the failure value of the returned
|
505
532
|
* channel is created by applying the specified function to the failure value of this channel.
|
506
533
|
*
|
507
|
-
* @tsplus
|
534
|
+
* @tsplus pipeable fncts.io.Channel mapError
|
508
535
|
*/
|
509
536
|
|
510
537
|
|
511
|
-
export function
|
512
|
-
return
|
538
|
+
export function mapError(f) {
|
539
|
+
return self => {
|
540
|
+
return mapErrorCause_1(cause => tsplus_module_8.map(f)(cause))(self);
|
541
|
+
};
|
513
542
|
}
|
514
543
|
/**
|
515
544
|
* A more powerful version of `mapError` which also surfaces the `Cause` of the channel failure
|
516
545
|
*
|
517
|
-
* @tsplus
|
546
|
+
* @tsplus pipeable fncts.io.Channel mapErrorCause
|
518
547
|
*/
|
519
548
|
|
520
|
-
function mapErrorCause_1(
|
521
|
-
return
|
549
|
+
function mapErrorCause_1(f) {
|
550
|
+
return self => {
|
551
|
+
return catchAllCause_1(cause => tsplus_module_1.failCauseNow(f(cause)))(self);
|
552
|
+
};
|
522
553
|
}
|
523
554
|
/**
|
524
555
|
* Returns a new channel, which is the same as this one, except the terminal value of the
|
525
556
|
* returned channel is created by applying the specified effectful function to the terminal value
|
526
557
|
* of this channel.
|
527
558
|
*
|
528
|
-
* @tsplus
|
559
|
+
* @tsplus pipeable fncts.io.Channel mapIO
|
529
560
|
*/
|
530
561
|
|
531
562
|
|
532
|
-
function mapIO_1(
|
533
|
-
return
|
563
|
+
function mapIO_1(f) {
|
564
|
+
return self => {
|
565
|
+
return tsplus_module_1.flatMap(outDone => fromIO_1(() => f(outDone)))(self);
|
566
|
+
};
|
534
567
|
}
|
535
568
|
/**
|
536
569
|
* Maps the output of this channel using f
|
537
570
|
*
|
538
|
-
* @tsplus
|
571
|
+
* @tsplus pipeable fncts.io.Channel mapOut
|
539
572
|
*/
|
540
573
|
|
541
574
|
|
542
|
-
function mapOut_1(
|
543
|
-
|
544
|
-
|
575
|
+
function mapOut_1(f) {
|
576
|
+
return self => {
|
577
|
+
const reader = readWith_1(out => tsplus_module_1.apSecond(reader)(writeNow_1(f(out))), failNow_1, tsplus_module_1.endNow);
|
578
|
+
return pipeTo_1(reader)(self);
|
579
|
+
};
|
545
580
|
}
|
546
581
|
|
547
|
-
const mapOutIOReader = f => readWith_1(out => tsplus_module_1.
|
582
|
+
const mapOutIOReader = f => readWith_1(out => tsplus_module_1.apSecond(mapOutIOReader(f))(tsplus_module_1.flatMap(writeNow_1)(fromIO_1(() => f(out)))), failNow_1, tsplus_module_1.endNow);
|
548
583
|
/**
|
549
|
-
* @tsplus
|
584
|
+
* @tsplus pipeable fncts.io.Channel mapOutIO
|
550
585
|
*/
|
551
586
|
|
552
587
|
|
553
|
-
export function mapOutIO_(
|
554
|
-
return
|
588
|
+
export function mapOutIO_(f) {
|
589
|
+
return self => {
|
590
|
+
return pipeTo_1(mapOutIOReader(f))(self);
|
591
|
+
};
|
555
592
|
}
|
556
593
|
/**
|
557
594
|
* Fold the channel exposing success and full error cause
|
558
595
|
*
|
559
|
-
* @tsplus
|
596
|
+
* @tsplus pipeable fncts.io.Channel matchCauseChannel
|
560
597
|
*/
|
561
598
|
|
562
|
-
function matchCauseChannel_1(
|
563
|
-
return
|
599
|
+
function matchCauseChannel_1(onError, onSuccess) {
|
600
|
+
return channel => {
|
601
|
+
return new Fold(channel, new ContinuationK(onSuccess, onError));
|
602
|
+
};
|
564
603
|
}
|
565
604
|
/**
|
566
605
|
* Fold the channel exposing success and full error cause
|
567
606
|
*
|
568
|
-
* @tsplus
|
607
|
+
* @tsplus pipeable fncts.io.Channel matchChannel
|
569
608
|
*/
|
570
609
|
|
571
610
|
|
572
|
-
export function
|
573
|
-
return
|
611
|
+
export function matchChannel(onError, onSuccess) {
|
612
|
+
return channel => {
|
613
|
+
return matchCauseChannel_1(cause => tsplus_module_9.match(onError, tsplus_module_1.failCauseNow)(tsplus_module_8.failureOrCause(cause)), onSuccess)(channel);
|
614
|
+
};
|
574
615
|
}
|
575
|
-
export const never = /*#__PURE__*/fromIO_1(() =>
|
616
|
+
export const never = /*#__PURE__*/fromIO_1(() => tsplus_module_3.never);
|
576
617
|
/**
|
577
618
|
* Returns a new channel that will perform the operations of this one, until failure, and then
|
578
619
|
* it will switch over to the operations of the specified fallback channel.
|
579
620
|
*
|
580
|
-
* @tsplus
|
621
|
+
* @tsplus pipeable fncts.io.Channel orElse
|
581
622
|
*/
|
582
623
|
|
583
|
-
export function
|
584
|
-
return
|
624
|
+
export function orElse(that) {
|
625
|
+
return self => {
|
626
|
+
return catchAll_1(_ => that)(self);
|
627
|
+
};
|
585
628
|
}
|
586
629
|
/**
|
587
|
-
* @tsplus
|
630
|
+
* @tsplus pipeable fncts.io.Channel orHalt
|
588
631
|
*/
|
589
632
|
|
590
|
-
export function
|
591
|
-
return
|
633
|
+
export function orHalt(err) {
|
634
|
+
return self => {
|
635
|
+
return orHaltWith_1(() => err)(self);
|
636
|
+
};
|
592
637
|
}
|
593
638
|
/**
|
594
|
-
* @tsplus
|
639
|
+
* @tsplus pipeable fncts.io.Channel orHaltWith
|
595
640
|
*/
|
596
641
|
|
597
|
-
function orHaltWith_1(
|
598
|
-
return
|
642
|
+
function orHaltWith_1(f) {
|
643
|
+
return self => {
|
644
|
+
return catchAll_1(e => haltNow_1(f(e)))(self);
|
645
|
+
};
|
599
646
|
}
|
600
647
|
/**
|
601
648
|
* Pipe the output of a channel into the input of another
|
602
649
|
*
|
603
|
-
* @tsplus
|
604
|
-
* @tsplus operator fncts.io.Channel >>>
|
650
|
+
* @tsplus pipeable fncts.io.Channel pipeTo
|
651
|
+
* @tsplus pipeable-operator fncts.io.Channel >>>
|
605
652
|
*/
|
606
653
|
|
607
654
|
|
608
|
-
function pipeTo_1(
|
609
|
-
return
|
655
|
+
function pipeTo_1(right) {
|
656
|
+
return left => {
|
657
|
+
return new PipeTo(() => left, () => right);
|
658
|
+
};
|
610
659
|
}
|
611
660
|
|
612
661
|
const ChannelFailureTypeId = /*#__PURE__*/Symbol.for("@principia/base/Channel/ChannelFailure");
|
@@ -620,22 +669,24 @@ class ChannelFailure {
|
|
620
669
|
}
|
621
670
|
|
622
671
|
function isChannelFailure(u) {
|
623
|
-
return
|
672
|
+
return tsplus_module_18.hasTypeId(u, ChannelFailureTypeId);
|
624
673
|
}
|
625
674
|
/**
|
626
|
-
* @tsplus
|
675
|
+
* @tsplus pipeable fncts.io.Channel pipeToOrFail
|
627
676
|
*/
|
628
677
|
|
629
678
|
|
630
|
-
export function
|
631
|
-
return
|
679
|
+
export function pipeToOrFail(right) {
|
680
|
+
return left => {
|
681
|
+
return catchAllCause_1(cause => tsplus_module_8.isHalt(cause) && isChannelFailure(cause.value) ? failNow_1(cause.value.error) : haltNow_1(cause))(pipeTo_1(right)(catchAll_1(err => tsplus_module_1.failCauseNow(tsplus_module_8.halt(new ChannelFailure(err))))(left)));
|
682
|
+
};
|
632
683
|
}
|
633
684
|
/**
|
634
685
|
* @tsplus static fncts.io.ChannelOps read
|
635
686
|
*/
|
636
687
|
|
637
688
|
export function read() {
|
638
|
-
return readOrFail_1(
|
689
|
+
return readOrFail_1(tsplus_module_11.nothing());
|
639
690
|
}
|
640
691
|
/**
|
641
692
|
* @tsplus static fncts.io.ChannelOps readOrFail
|
@@ -662,7 +713,7 @@ function readWithCause_1(inp, halt, done) {
|
|
662
713
|
|
663
714
|
|
664
715
|
function readWith_1(inp, error, done) {
|
665
|
-
return readWithCause_1(inp, c =>
|
716
|
+
return readWithCause_1(inp, c => tsplus_module_9.match(error, tsplus_module_1.failCauseNow)(tsplus_module_8.failureOrCause(c)), done);
|
666
717
|
}
|
667
718
|
/**
|
668
719
|
* Repeats this channel forever
|
@@ -672,7 +723,7 @@ function readWith_1(inp, error, done) {
|
|
672
723
|
|
673
724
|
|
674
725
|
function repeated_1(self) {
|
675
|
-
return tsplus_module_1.
|
726
|
+
return tsplus_module_1.flatMap(() => repeated_1(self))(self);
|
676
727
|
}
|
677
728
|
/**
|
678
729
|
* @tsplus static fncts.io.ChannelOps toQueue
|
@@ -682,7 +733,7 @@ function repeated_1(self) {
|
|
682
733
|
function toQueue_1(queue) {
|
683
734
|
return defer_1(() => {
|
684
735
|
function toQueue(queue) {
|
685
|
-
return readWithCause_1(inp => tsplus_module_1.
|
736
|
+
return readWithCause_1(inp => tsplus_module_1.apSecond(toQueue(queue))(fromIO_1(() => queue.offer(tsplus_module_19.right(inp), fileName_1 + ":1189:44"))), cause => fromIO_1(() => queue.offer(tsplus_module_19.left(tsplus_module_16.failCause(cause)), fileName_1 + ":1190:46")), done => fromIO_1(() => queue.offer(tsplus_module_19.left(tsplus_module_16.succeed(done)), fileName_1 + ":1191:45")));
|
686
737
|
}
|
687
738
|
|
688
739
|
return toQueue(queue());
|
@@ -704,12 +755,12 @@ function write_1(out) {
|
|
704
755
|
|
705
756
|
|
706
757
|
export function writeAll(outs) {
|
707
|
-
return writeChunk_1(
|
758
|
+
return writeChunk_1(tsplus_module_20.from(outs));
|
708
759
|
}
|
709
760
|
|
710
761
|
function writeChunkWriter(outs, idx, len) {
|
711
762
|
if (idx === len) return unit_1;
|
712
|
-
return tsplus_module_1.
|
763
|
+
return tsplus_module_1.apSecond(writeChunkWriter(outs, idx + 1, len))(writeNow_1(tsplus_module_7.unsafeGet(idx)(outs)));
|
713
764
|
}
|
714
765
|
/**
|
715
766
|
* @tsplus static fncts.io.ChannelOps writeChunk
|
@@ -753,14 +804,14 @@ function unwrap_1(self) {
|
|
753
804
|
|
754
805
|
|
755
806
|
export function unwrapScoped(self) {
|
756
|
-
return concatAllWith_1(
|
807
|
+
return concatAllWith_1((d, _) => d, (d, _) => d)(scoped_1(self));
|
757
808
|
}
|
758
809
|
/**
|
759
810
|
* @tsplus static fncts.io.ChannelOps fromHubScoped
|
760
811
|
*/
|
761
812
|
|
762
813
|
export function fromHubScoped(hub) {
|
763
|
-
return
|
814
|
+
return tsplus_module_3.defer(() => tsplus_module_3.map(fromQueue_1, fileName_1 + ":1275:38")(hub().subscribe), fileName_1 + ":1275:18");
|
764
815
|
}
|
765
816
|
/**
|
766
817
|
* @tsplus static fncts.io.ChannelOps toHub
|