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