@fncts/io 0.0.38 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cached.d.ts +2 -2
- package/Channel/ChildExecutorDecision.d.ts +1 -1
- package/Channel/UpstreamPullRequest.d.ts +1 -1
- package/Channel/api/interruptWhen.d.ts +2 -2
- package/Channel/api/mapOutConcurrentIO.d.ts +1 -1
- package/Channel/api/mergeAll.d.ts +1 -1
- package/Channel/api/mergeAllUnboundedWith.d.ts +1 -1
- package/Channel/api/mergeAllWith.d.ts +1 -1
- package/Channel/api/mergeMap.d.ts +1 -1
- package/Channel/api/mergeWith.d.ts +1 -1
- package/Channel/api/zipConcurrent.d.ts +3 -3
- package/Channel/api.d.ts +14 -14
- package/Channel/core-api.d.ts +5 -5
- package/Channel/definition.d.ts +108 -104
- package/Channel.d.ts +2 -2
- package/Clock/definition.d.ts +1 -1
- package/Clock.d.ts +2 -2
- package/Console/definition.d.ts +1 -1
- package/Console.d.ts +2 -2
- package/Fiber/api/mapFiber.d.ts +1 -1
- package/Fiber/api/mapIO.d.ts +2 -2
- package/Fiber/api/zipWith.d.ts +1 -1
- package/Fiber.d.ts +19 -19
- package/FiberRef/api.d.ts +1 -1
- package/FiberRef/operations.d.ts +2 -2
- package/FiberRef/unsafe.d.ts +5 -0
- package/FiberRef.d.ts +5 -5
- package/FiberRefs/Patch.d.ts +62 -0
- package/FiberRefs.d.ts +2 -1
- package/FiberScope.d.ts +1 -1
- package/FiberStatus.d.ts +1 -1
- package/Future/api.d.ts +5 -5
- package/Future/definition.d.ts +24 -3
- package/Future.d.ts +2 -2
- package/Hub/api.d.ts +11 -11
- package/Hub.d.ts +1 -1
- package/IO/api/concurrency.d.ts +1 -1
- package/IO/api/concurrentFinalizers.d.ts +11 -2
- package/IO/api/delay.d.ts +1 -1
- package/IO/api/ensuringChildren.d.ts +1 -1
- package/IO/api/environment.d.ts +5 -5
- package/IO/api/fork.d.ts +1 -1
- package/IO/api/forkIn.d.ts +1 -1
- package/IO/api/fulfill.d.ts +1 -1
- package/IO/api/interrupt.d.ts +4 -4
- package/IO/api/onTermination.d.ts +1 -1
- package/IO/api/patchFiberRefs.d.ts +7 -0
- package/IO/api/provideLayer.d.ts +1 -1
- package/IO/api/provideScope.d.ts +1 -1
- package/IO/api/provideSomeLayer.d.ts +1 -1
- package/IO/api/provideSomeRuntime.d.ts +7 -0
- package/IO/api/race.d.ts +2 -2
- package/IO/api/raceFirst.d.ts +1 -1
- package/IO/api/repeat.d.ts +3 -3
- package/IO/api/retry.d.ts +3 -3
- package/IO/api/schedule.d.ts +2 -2
- package/IO/api/timeout.d.ts +2 -2
- package/IO/api/whenFiberRef.d.ts +1 -1
- package/IO/api/whenRef.d.ts +1 -1
- package/IO/api/withFinalizer.d.ts +1 -1
- package/IO/api/withFinalizerExit.d.ts +1 -1
- package/IO/api/zipConcurrent.d.ts +2 -2
- package/IO/api.d.ts +40 -40
- package/IO/definition.d.ts +6 -1
- package/IO/runtime.d.ts +6 -6
- package/IO.d.ts +62 -60
- package/IOEnv.d.ts +2 -2
- package/InterruptStatus.d.ts +1 -1
- package/Layer/MemoMap.d.ts +3 -3
- package/Layer/api.d.ts +15 -9
- package/Layer.d.ts +1 -1
- package/Logger/api.d.ts +2 -2
- package/Logger.d.ts +2 -2
- package/MVar.d.ts +1 -1
- package/Push/api.d.ts +18 -18
- package/Push.d.ts +2 -2
- package/Queue/api/dimapIO.d.ts +6 -6
- package/Queue/api/filterInputIO.d.ts +3 -3
- package/Queue/api/filterOutputIO.d.ts +3 -3
- package/Queue/api/operations.d.ts +3 -3
- package/Queue/api/takeBetween.d.ts +1 -1
- package/Queue/api/takeN.d.ts +8 -0
- package/Queue/api/zipWithIO.d.ts +3 -3
- package/Queue/api.d.ts +7 -6
- package/Queue.d.ts +4 -4
- package/Random/definition.d.ts +1 -1
- package/Random.d.ts +2 -2
- package/Ref/Synchronized/api.d.ts +14 -14
- package/Ref/Synchronized.d.ts +2 -2
- package/Ref/api/collect.d.ts +1 -1
- package/Ref/api/filter.d.ts +1 -1
- package/Ref/api/modify.d.ts +8 -8
- package/Ref/api/set.d.ts +1 -1
- package/Ref/api.d.ts +7 -7
- package/Ref.d.ts +7 -7
- package/RefSubject/api.d.ts +9 -9
- package/RefSubject/definition.d.ts +2 -0
- package/RefSubject.d.ts +1 -1
- package/Reloadable.d.ts +2 -2
- package/RuntimeFlags.d.ts +1 -1
- package/STM/api/core-api.d.ts +5 -5
- package/STM/api.d.ts +13 -13
- package/STM.d.ts +4 -4
- package/Schedule/api.d.ts +46 -46
- package/Schedule.d.ts +2 -2
- package/Scope/ReleaseMap.d.ts +2 -2
- package/Scope/api.d.ts +6 -1
- package/Scope/definition.d.ts +4 -2
- package/Scope.d.ts +1 -1
- package/ScopedRef.d.ts +1 -1
- package/Semaphore.d.ts +1 -1
- package/Sink/api.d.ts +34 -34
- package/Sink.d.ts +1 -1
- package/State.d.ts +1 -1
- package/Stream/api/zipAllWith.d.ts +1 -1
- package/Stream/api/zipWith.d.ts +1 -1
- package/Stream/api/zipWithChunks.d.ts +1 -1
- package/Stream/api.d.ts +80 -80
- package/Stream.d.ts +1 -1
- package/Subject.d.ts +1 -1
- package/Supervisor/api.d.ts +1 -1
- package/Supervisor.d.ts +2 -2
- package/TExit.d.ts +1 -1
- package/TFuture/api.d.ts +2 -2
- package/TFuture.d.ts +2 -2
- package/TReentrantLock.d.ts +1 -1
- package/TRef/api.d.ts +10 -10
- package/TRef.d.ts +2 -2
- package/TSemaphore/api.d.ts +2 -2
- package/TSemaphore.d.ts +2 -2
- package/_cjs/Cached/api.cjs +6 -8
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +4 -6
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/Cached.cjs +8 -8
- package/_cjs/Cached.cjs.map +1 -1
- package/_cjs/CancellerState.cjs +3 -6
- package/_cjs/CancellerState.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs +3 -6
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision.cjs +8 -8
- package/_cjs/Channel/ChildExecutorDecision.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs +1 -2
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest.cjs +8 -8
- package/_cjs/Channel/UpstreamPullRequest.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs +1 -2
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +3 -4
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +10 -4
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAll.cjs +2 -2
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +2 -2
- package/_cjs/Channel/api/mergeAllWith.cjs +25 -16
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +2 -2
- package/_cjs/Channel/api/mergeWith.cjs +20 -7
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +2 -2
- package/_cjs/Channel/api/runCollect.cjs +2 -2
- package/_cjs/Channel/api/runDrain.cjs +2 -2
- package/_cjs/Channel/api/runScoped.cjs +3 -3
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +2 -2
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipConcurrent.cjs +3 -4
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +170 -112
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +19 -15
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +20 -147
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +91 -93
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +5 -12
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeDecision.cjs +2 -4
- package/_cjs/Channel/internal/MergeDecision.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeState.cjs +1 -2
- package/_cjs/Channel/internal/MergeState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +10 -4
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Channel.cjs +8 -8
- package/_cjs/Channel.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +3 -4
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +3 -4
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +3 -4
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Clock.cjs +8 -8
- package/_cjs/Clock.cjs.map +1 -1
- package/_cjs/Console/api.cjs +2 -2
- package/_cjs/Console/definition.cjs +3 -4
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +4 -5
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/Console.cjs +8 -8
- package/_cjs/Console.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +9 -10
- package/_cjs/CountdownLatch.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +2 -2
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Differ/definition.cjs +1 -2
- package/_cjs/Differ/definition.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +2 -4
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -1
- package/_cjs/Fiber/FiberRuntime.cjs +74 -68
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +2 -2
- package/_cjs/Fiber/api/collectAll.cjs +2 -2
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +2 -2
- package/_cjs/Fiber/api/interrupt.cjs +2 -2
- package/_cjs/Fiber/api/interruptAll.cjs +3 -4
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +3 -4
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +2 -2
- package/_cjs/Fiber/api/join.cjs +2 -2
- package/_cjs/Fiber/api/joinAll.cjs +2 -2
- package/_cjs/Fiber/api/mapFiber.cjs +2 -2
- package/_cjs/Fiber/api/mapIO.cjs +3 -4
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +2 -2
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +5 -8
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +6 -10
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/Fiber.cjs +83 -83
- package/_cjs/Fiber.cjs.map +1 -1
- package/_cjs/FiberDescriptor.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +2 -2
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +2 -2
- package/_cjs/FiberRef/constructors.cjs +2 -2
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +7 -7
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/operations.cjs +6 -10
- package/_cjs/FiberRef/operations.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +22 -33
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRef.cjs +24 -24
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/FiberRefs/Patch.cjs +172 -0
- package/_cjs/FiberRefs/Patch.cjs.map +1 -0
- package/_cjs/FiberRefs/api.cjs +2 -2
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +3 -4
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberRefs.cjs +15 -4
- package/_cjs/FiberRefs.cjs.map +1 -1
- package/_cjs/FiberScope/constructors.cjs +1 -2
- package/_cjs/FiberScope/constructors.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +2 -2
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberScope.cjs +8 -8
- package/_cjs/FiberScope.cjs.map +1 -1
- package/_cjs/FiberStatus/constructors.cjs +1 -2
- package/_cjs/FiberStatus/constructors.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +3 -4
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/FiberStatus.cjs +8 -8
- package/_cjs/FiberStatus.cjs.map +1 -1
- package/_cjs/Future/api.cjs +17 -20
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +4 -6
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +8 -3
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Future.cjs +8 -8
- package/_cjs/Future.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +14 -18
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/definition.cjs +3 -6
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +2 -2
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/Hub.cjs +8 -8
- package/_cjs/Hub.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +2 -2
- package/_cjs/IO/api/acquireReleaseExit.cjs +2 -2
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +2 -2
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +2 -2
- package/_cjs/IO/api/addFinalizer.cjs +2 -2
- package/_cjs/IO/api/addFinalizerExit.cjs +2 -2
- package/_cjs/IO/api/all.cjs +2 -2
- package/_cjs/IO/api/all.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +2 -2
- package/_cjs/IO/api/asyncInterrupt.cjs +11 -10
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -1
- package/_cjs/IO/api/blocking.cjs +2 -2
- package/_cjs/IO/api/blocking.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +2 -2
- package/_cjs/IO/api/bracketExit.cjs +2 -2
- package/_cjs/IO/api/clockWith.cjs +4 -6
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +6 -10
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +57 -9
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +4 -6
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/daemonChildren.cjs +2 -2
- package/_cjs/IO/api/delay.cjs +2 -2
- package/_cjs/IO/api/descriptor.cjs +4 -6
- package/_cjs/IO/api/descriptor.cjs.map +1 -1
- package/_cjs/IO/api/disconnect.cjs +2 -2
- package/_cjs/IO/api/ensuringChildren.cjs +2 -2
- package/_cjs/IO/api/environment.cjs +7 -12
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachConcurrent.cjs +22 -21
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +2 -2
- package/_cjs/IO/api/fork.cjs +3 -4
- package/_cjs/IO/api/fork.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +2 -2
- package/_cjs/IO/api/forkDaemon.cjs +2 -2
- package/_cjs/IO/api/forkIn.cjs +2 -2
- package/_cjs/IO/api/forkScoped.cjs +2 -2
- package/_cjs/IO/api/fulfill.cjs +2 -2
- package/_cjs/IO/api/interrupt.cjs +8 -14
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +2 -2
- package/_cjs/IO/api/onTermination.cjs +2 -2
- package/_cjs/IO/api/once.cjs +2 -2
- package/_cjs/IO/api/patchFiberRefs.cjs +18 -0
- package/_cjs/IO/api/patchFiberRefs.cjs.map +1 -0
- package/_cjs/IO/api/provideLayer.cjs +2 -2
- package/_cjs/IO/api/provideScope.cjs +2 -2
- package/_cjs/IO/api/provideSomeLayer.cjs +2 -2
- package/_cjs/IO/api/provideSomeRuntime.cjs +29 -0
- package/_cjs/IO/api/provideSomeRuntime.cjs.map +1 -0
- package/_cjs/IO/api/race.cjs +3 -4
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +2 -2
- package/_cjs/IO/api/raceWith.cjs +3 -4
- package/_cjs/IO/api/raceWith.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +4 -6
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +4 -6
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +4 -6
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +3 -4
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +3 -4
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +2 -2
- package/_cjs/IO/api/scoped.cjs +3 -4
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sequenceT.cjs +2 -2
- package/_cjs/IO/api/sequenceT.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +2 -2
- package/_cjs/IO/api/stateful.cjs +2 -2
- package/_cjs/IO/api/supervised.cjs +2 -2
- package/_cjs/IO/api/timeout.cjs +3 -4
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/transplant.cjs +2 -2
- package/_cjs/IO/api/whenFiberRef.cjs +2 -2
- package/_cjs/IO/api/whenRef.cjs +2 -2
- package/_cjs/IO/api/withChildren.cjs +2 -2
- package/_cjs/IO/api/withEarlyRelease.cjs +3 -3
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +2 -2
- package/_cjs/IO/api/withFinalizerExit.cjs +2 -2
- package/_cjs/IO/api/zipConcurrent.cjs +3 -4
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/IO/api.cjs +113 -156
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +5 -8
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +14 -17
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +266 -244
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +4 -6
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +3 -4
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +3 -4
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/IOEnv.cjs +8 -8
- package/_cjs/IOEnv.cjs.map +1 -1
- package/_cjs/InterruptStatus/constructors.cjs +2 -4
- package/_cjs/InterruptStatus/constructors.cjs.map +1 -1
- package/_cjs/InterruptStatus.cjs +8 -8
- package/_cjs/InterruptStatus.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +11 -13
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +32 -35
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs +2 -4
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/Layer.cjs +8 -8
- package/_cjs/Layer.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +8 -16
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +2 -2
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +4 -6
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Logger/definition.cjs +1 -2
- package/_cjs/Logger/definition.cjs.map +1 -1
- package/_cjs/Logger.cjs +8 -8
- package/_cjs/Logger.cjs.map +1 -1
- package/_cjs/MVar/api.cjs +2 -2
- package/_cjs/MVar/api.cjs.map +1 -1
- package/_cjs/MVar/definition.cjs +2 -4
- package/_cjs/MVar/definition.cjs.map +1 -1
- package/_cjs/MVar.cjs +8 -8
- package/_cjs/MVar.cjs.map +1 -1
- package/_cjs/Push/api.cjs +25 -41
- package/_cjs/Push/api.cjs.map +1 -1
- package/_cjs/Push/definition.cjs +2 -4
- package/_cjs/Push/definition.cjs.map +1 -1
- package/_cjs/Push/internal.cjs +2 -2
- package/_cjs/Push.cjs +8 -8
- package/_cjs/Push.cjs.map +1 -1
- package/_cjs/Queue/api/dimapIO.cjs +10 -13
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +12 -13
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +19 -20
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/operations.cjs +3 -3
- package/_cjs/Queue/api/operations.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +2 -2
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +16 -21
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/takeN.cjs +18 -0
- package/_cjs/Queue/api/takeN.cjs.map +1 -0
- package/_cjs/Queue/api/zipWithIO.cjs +4 -6
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/api.cjs +35 -24
- package/_cjs/Queue/api.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +2 -2
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +5 -10
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +4 -4
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +2 -2
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Queue.cjs +16 -16
- package/_cjs/Queue.cjs.map +1 -1
- package/_cjs/Random/api.cjs +5 -8
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +3 -4
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +3 -4
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Random.cjs +8 -8
- package/_cjs/Random.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +3 -4
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +38 -12
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +38 -12
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +5 -8
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +2 -2
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +4 -6
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/Ref/Synchronized.cjs +8 -8
- package/_cjs/Ref/Synchronized.cjs.map +1 -1
- package/_cjs/Ref/api/collect.cjs +2 -2
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +5 -8
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +2 -2
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +3 -4
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api.cjs +36 -35
- package/_cjs/Ref/api.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +3 -4
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +3 -6
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Ref.cjs +35 -35
- package/_cjs/Ref.cjs.map +1 -1
- package/_cjs/RefSubject/Atomic.cjs +5 -5
- package/_cjs/RefSubject/Atomic.cjs.map +1 -1
- package/_cjs/RefSubject/Synchronized/api.cjs +2 -2
- package/_cjs/RefSubject/Synchronized/api.cjs.map +1 -1
- package/_cjs/RefSubject/Synchronized/definition.cjs +11 -13
- package/_cjs/RefSubject/Synchronized/definition.cjs.map +1 -1
- package/_cjs/RefSubject/api.cjs +8 -11
- package/_cjs/RefSubject/api.cjs.map +1 -1
- package/_cjs/RefSubject/definition.cjs +2 -2
- package/_cjs/RefSubject/definition.cjs.map +1 -1
- package/_cjs/RefSubject.cjs +11 -11
- package/_cjs/RefSubject.cjs.map +1 -1
- package/_cjs/Reloadable/api.cjs +2 -2
- package/_cjs/Reloadable/constructors.cjs +4 -6
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +4 -5
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/Reloadable.cjs +8 -8
- package/_cjs/Reloadable.cjs.map +1 -1
- package/_cjs/RuntimeFlags/Patch.cjs +5 -8
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -1
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +11 -19
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -1
- package/_cjs/RuntimeFlags.cjs +8 -8
- package/_cjs/RuntimeFlags.cjs.map +1 -1
- package/_cjs/STM/api/atomically.cjs +2 -2
- package/_cjs/STM/api/atomically.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +10 -11
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs +3 -6
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +40 -50
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +8 -16
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +5 -4
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +6 -10
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs +2 -4
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +12 -22
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM/internal/TryCommit.cjs +1 -2
- package/_cjs/STM/internal/TryCommit.cjs.map +1 -1
- package/_cjs/STM/internal/Versioned.cjs +1 -2
- package/_cjs/STM/internal/Versioned.cjs.map +1 -1
- package/_cjs/STM.cjs +16 -16
- package/_cjs/STM.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +4 -6
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +4 -3
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +47 -77
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Schedule/definition.cjs +1 -2
- package/_cjs/Schedule/definition.cjs.map +1 -1
- package/_cjs/Schedule.cjs +16 -16
- package/_cjs/Schedule.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +4 -6
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/Finalizer.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +2 -2
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +4 -6
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +4 -6
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +3 -4
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap.cjs +8 -8
- package/_cjs/Scope/ReleaseMap.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +41 -34
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +7 -7
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/Scope.cjs +8 -8
- package/_cjs/Scope.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +4 -4
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +1 -2
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/ScopedRef.cjs +8 -8
- package/_cjs/ScopedRef.cjs.map +1 -1
- package/_cjs/Semaphore.cjs +3 -4
- package/_cjs/Semaphore.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +51 -81
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Sink.cjs +8 -8
- package/_cjs/Sink.cjs.map +1 -1
- package/_cjs/State/api.cjs +2 -2
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/State/internal.cjs +2 -4
- package/_cjs/State/internal.cjs.map +1 -1
- package/_cjs/State.cjs +8 -8
- package/_cjs/State.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +6 -3
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +2 -2
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +6 -3
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +118 -177
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs +3 -6
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +5 -10
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +19 -26
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +4 -6
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +1 -2
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +6 -10
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +2 -2
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Stream.cjs +8 -8
- package/_cjs/Stream.cjs.map +1 -1
- package/_cjs/Subject/Atomic.cjs +2 -2
- package/_cjs/Subject/Atomic.cjs.map +1 -1
- package/_cjs/Subject/api.cjs +3 -4
- package/_cjs/Subject/api.cjs.map +1 -1
- package/_cjs/Subject/definition.cjs +2 -4
- package/_cjs/Subject/definition.cjs.map +1 -1
- package/_cjs/Subject.cjs +11 -11
- package/_cjs/Subject.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +9 -11
- package/_cjs/SubscriptionRef.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +5 -8
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +4 -6
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +3 -5
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/Supervisor.cjs +8 -8
- package/_cjs/Supervisor.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +43 -23
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/constructors.cjs +2 -4
- package/_cjs/TExit/constructors.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +11 -29
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TExit.cjs +8 -8
- package/_cjs/TExit.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +3 -4
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +3 -4
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +3 -4
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TFuture.cjs +8 -8
- package/_cjs/TFuture.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +9 -16
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +2 -3
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock.cjs +8 -8
- package/_cjs/TReentrantLock.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +5 -8
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +4 -6
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +84 -33
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TRef.cjs +8 -8
- package/_cjs/TRef.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +5 -8
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +3 -4
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +3 -4
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/TSemaphore.cjs +8 -8
- package/_cjs/TSemaphore.cjs.map +1 -1
- package/_cjs/TxnId.cjs +1 -2
- package/_cjs/TxnId.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/findIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs +24 -24
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +2 -2
- package/_cjs/internal/BackgroundScheduler.cjs +1 -2
- package/_cjs/internal/BackgroundScheduler.cjs.map +1 -1
- package/_cjs/internal/HashedPair.cjs +2 -2
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +2 -2
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +2 -4
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +3 -4
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +3 -4
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +2 -2
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs +2 -2
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Cached.mjs +3 -2
- package/_mjs/Cached.mjs.map +1 -1
- package/_mjs/CancellerState.mjs +0 -3
- package/_mjs/CancellerState.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision.mjs +2 -1
- package/_mjs/Channel/ChildExecutorDecision.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest.mjs +2 -1
- package/_mjs/Channel/UpstreamPullRequest.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy.mjs +1 -0
- package/_mjs/Channel/UpstreamPullStrategy.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs +8 -2
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +23 -14
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +16 -4
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +1 -1
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +132 -37
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +14 -4
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +14 -135
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +90 -92
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelState.mjs +0 -4
- package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeDecision.mjs +0 -1
- package/_mjs/Channel/internal/MergeDecision.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeState.mjs +0 -3
- package/_mjs/Channel/internal/MergeState.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +8 -5
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Channel.mjs +4 -3
- package/_mjs/Channel.mjs.map +1 -1
- package/_mjs/Clock.mjs +3 -2
- package/_mjs/Clock.mjs.map +1 -1
- package/_mjs/Console/live.mjs +1 -1
- package/_mjs/Console/live.mjs.map +1 -1
- package/_mjs/Console.mjs +3 -2
- package/_mjs/Console.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +6 -6
- package/_mjs/CountdownLatch.mjs.map +1 -1
- package/_mjs/Differ/api.mjs.map +1 -1
- package/_mjs/Fiber/FiberRuntime.mjs +69 -65
- package/_mjs/Fiber/FiberRuntime.mjs.map +1 -1
- package/_mjs/Fiber.mjs +21 -19
- package/_mjs/Fiber.mjs.map +1 -1
- package/_mjs/FiberDescriptor.mjs.map +1 -1
- package/_mjs/FiberRef/definition.mjs +3 -1
- package/_mjs/FiberRef/definition.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +4 -0
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRef.mjs +7 -5
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/FiberRefs/Patch.mjs +154 -0
- package/_mjs/FiberRefs/Patch.mjs.map +1 -0
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs.mjs +3 -1
- package/_mjs/FiberRefs.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberScope.mjs +2 -1
- package/_mjs/FiberScope.mjs.map +1 -1
- package/_mjs/FiberStatus/definition.mjs.map +1 -1
- package/_mjs/FiberStatus.mjs +2 -1
- package/_mjs/FiberStatus.mjs.map +1 -1
- package/_mjs/Future/api.mjs +12 -12
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +7 -3
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Future.mjs +3 -2
- package/_mjs/Future.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +8 -8
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/Hub.mjs +3 -2
- package/_mjs/Hub.mjs.map +1 -1
- package/_mjs/IO/api/all.mjs.map +1 -1
- package/_mjs/IO/api/asyncInterrupt.mjs +7 -4
- package/_mjs/IO/api/asyncInterrupt.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +52 -6
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/foreachConcurrent.mjs +20 -19
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/patchFiberRefs.mjs +10 -0
- package/_mjs/IO/api/patchFiberRefs.mjs.map +1 -0
- package/_mjs/IO/api/provideSomeRuntime.mjs +21 -0
- package/_mjs/IO/api/provideSomeRuntime.mjs.map +1 -0
- package/_mjs/IO/api/raceWith.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/zipConcurrent.mjs.map +1 -1
- package/_mjs/IO/api.mjs +38 -14
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +6 -3
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +64 -60
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv.mjs +3 -2
- package/_mjs/IOEnv.mjs.map +1 -1
- package/_mjs/InterruptStatus.mjs +2 -1
- package/_mjs/InterruptStatus.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +2 -2
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +13 -1
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs +0 -6
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/Layer.mjs +2 -1
- package/_mjs/Layer.mjs.map +1 -1
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Logger.mjs +3 -2
- package/_mjs/Logger.mjs.map +1 -1
- package/_mjs/MVar.mjs +2 -1
- package/_mjs/MVar.mjs.map +1 -1
- package/_mjs/Push/api.mjs +4 -1
- package/_mjs/Push/api.mjs.map +1 -1
- package/_mjs/Push.mjs +3 -2
- package/_mjs/Push.mjs.map +1 -1
- package/_mjs/Queue/api/dimapIO.mjs +5 -5
- package/_mjs/Queue/api/dimapIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterInputIO.mjs +9 -9
- package/_mjs/Queue/api/filterInputIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +16 -16
- package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -1
- package/_mjs/Queue/api/operations.mjs +2 -2
- package/_mjs/Queue/api/operations.mjs.map +1 -1
- package/_mjs/Queue/api/takeBetween.mjs +14 -19
- package/_mjs/Queue/api/takeBetween.mjs.map +1 -1
- package/_mjs/Queue/api/takeN.mjs +10 -0
- package/_mjs/Queue/api/takeN.mjs.map +1 -0
- package/_mjs/Queue/api.mjs +8 -6
- package/_mjs/Queue/api.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +2 -2
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Queue.mjs +5 -4
- package/_mjs/Queue.mjs.map +1 -1
- package/_mjs/Random.mjs +3 -2
- package/_mjs/Random.mjs.map +1 -1
- package/_mjs/Ref/Derived.mjs +35 -8
- package/_mjs/Ref/Derived.mjs.map +1 -1
- package/_mjs/Ref/DerivedAll.mjs +35 -8
- package/_mjs/Ref/DerivedAll.mjs.map +1 -1
- package/_mjs/Ref/Synchronized.mjs +3 -2
- package/_mjs/Ref/Synchronized.mjs.map +1 -1
- package/_mjs/Ref/api.mjs +9 -8
- package/_mjs/Ref/api.mjs.map +1 -1
- package/_mjs/Ref.mjs +9 -7
- package/_mjs/Ref.mjs.map +1 -1
- package/_mjs/RefSubject/Atomic.mjs +3 -3
- package/_mjs/RefSubject/Atomic.mjs.map +1 -1
- package/_mjs/RefSubject/Synchronized/api.mjs.map +1 -1
- package/_mjs/RefSubject/Synchronized/definition.mjs +7 -7
- package/_mjs/RefSubject/Synchronized/definition.mjs.map +1 -1
- package/_mjs/RefSubject/api.mjs +3 -3
- package/_mjs/RefSubject/api.mjs.map +1 -1
- package/_mjs/RefSubject/definition.mjs +1 -0
- package/_mjs/RefSubject/definition.mjs.map +1 -1
- package/_mjs/RefSubject.mjs +2 -1
- package/_mjs/RefSubject.mjs.map +1 -1
- package/_mjs/Reloadable/definition.mjs +1 -1
- package/_mjs/Reloadable/definition.mjs.map +1 -1
- package/_mjs/Reloadable.mjs +3 -2
- package/_mjs/Reloadable.mjs.map +1 -1
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs +3 -4
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs.map +1 -1
- package/_mjs/RuntimeFlags.mjs +2 -1
- package/_mjs/RuntimeFlags.mjs.map +1 -1
- package/_mjs/STM/api/atomically.mjs.map +1 -1
- package/_mjs/STM/api/core-api.mjs +4 -1
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api.mjs +16 -4
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/definition.mjs +0 -7
- package/_mjs/STM/definition.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +1 -1
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/CommitState.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM/internal/TryCommit.mjs +0 -2
- package/_mjs/STM/internal/TryCommit.mjs.map +1 -1
- package/_mjs/STM.mjs +6 -4
- package/_mjs/STM.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +0 -2
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +9 -3
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Schedule.mjs +3 -2
- package/_mjs/Schedule.mjs.map +1 -1
- package/_mjs/Scope/Finalizer.mjs +1 -0
- package/_mjs/Scope/Finalizer.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap.mjs +3 -2
- package/_mjs/Scope/ReleaseMap.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +31 -19
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/Scope/definition.mjs +4 -2
- package/_mjs/Scope/definition.mjs.map +1 -1
- package/_mjs/Scope.mjs +3 -2
- package/_mjs/Scope.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +2 -2
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef.mjs +2 -1
- package/_mjs/ScopedRef.mjs.map +1 -1
- package/_mjs/Semaphore.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +11 -5
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/Sink.mjs +2 -1
- package/_mjs/Sink.mjs.map +1 -1
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/State.mjs +3 -2
- package/_mjs/State.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +4 -1
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +4 -1
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +36 -15
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +0 -3
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +10 -15
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +0 -2
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/Stream.mjs +3 -2
- package/_mjs/Stream.mjs.map +1 -1
- package/_mjs/Subject.mjs +2 -1
- package/_mjs/Subject.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +5 -5
- package/_mjs/SubscriptionRef.mjs.map +1 -1
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +1 -3
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/Supervisor.mjs +3 -2
- package/_mjs/Supervisor.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +38 -18
- package/_mjs/SupervisorPatch.mjs.map +1 -1
- package/_mjs/TExit/definition.mjs +0 -9
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TExit.mjs +2 -1
- package/_mjs/TExit.mjs.map +1 -1
- package/_mjs/TFuture.mjs +3 -2
- package/_mjs/TFuture.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +0 -1
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock.mjs +2 -1
- package/_mjs/TReentrantLock.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +79 -25
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TRef.mjs +3 -2
- package/_mjs/TRef.mjs.map +1 -1
- package/_mjs/TSemaphore.mjs +3 -2
- package/_mjs/TSemaphore.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs +6 -5
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/internal/BackgroundScheduler.mjs.map +1 -1
- package/_mjs/internal/HashedPair.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +0 -3
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/Scheduler.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/Cached/api.ts +4 -1
- package/_src/Cached.ts +3 -2
- package/_src/Channel/ChildExecutorDecision.ts +2 -1
- package/_src/Channel/UpstreamPullRequest.ts +2 -1
- package/_src/Channel/UpstreamPullStrategy.ts +1 -0
- package/_src/Channel/api/mapOutConcurrentIO.ts +5 -5
- package/_src/Channel/api/mergeAllWith.ts +9 -9
- package/_src/Channel/api/mergeWith.ts +16 -16
- package/_src/Channel/api.ts +128 -143
- package/_src/Channel/core-api.ts +17 -14
- package/_src/Channel/definition.ts +187 -236
- package/_src/Channel/internal/ChannelExecutor.ts +51 -46
- package/_src/Channel/internal/MergeState.ts +4 -1
- package/_src/Channel/internal/SingleProducerAsyncInput.ts +2 -2
- package/_src/Channel.ts +4 -3
- package/_src/Clock.ts +3 -2
- package/_src/Console/live.ts +1 -1
- package/_src/Console.ts +3 -2
- package/_src/CountdownLatch.ts +4 -1
- package/_src/Fiber/FiberRuntime.ts +18 -5
- package/_src/Fiber.ts +21 -19
- package/_src/FiberDescriptor.ts +5 -1
- package/_src/FiberRef/definition.ts +4 -1
- package/_src/FiberRef/unsafe.ts +5 -0
- package/_src/FiberRef.ts +7 -5
- package/_src/FiberRefs/Patch.ts +145 -0
- package/_src/FiberRefs.ts +3 -1
- package/_src/FiberScope/definition.ts +4 -1
- package/_src/FiberScope.ts +2 -1
- package/_src/FiberStatus/definition.ts +9 -2
- package/_src/FiberStatus.ts +2 -1
- package/_src/Future/definition.ts +23 -4
- package/_src/Future.ts +3 -2
- package/_src/Hub/api.ts +8 -2
- package/_src/Hub.ts +3 -2
- package/_src/IO/api/asyncInterrupt.ts +4 -4
- package/_src/IO/api/concurrentFinalizers.ts +74 -7
- package/_src/IO/api/foreachConcurrent.ts +16 -14
- package/_src/IO/api/interrupt.ts +1 -1
- package/_src/IO/api/patchFiberRefs.ts +8 -0
- package/_src/IO/api/provideSomeRuntime.ts +22 -0
- package/_src/IO/api.ts +23 -16
- package/_src/IO/definition.ts +6 -1
- package/_src/IO/runtime.ts +6 -3
- package/_src/IO.ts +64 -60
- package/_src/IOEnv.ts +3 -2
- package/_src/InterruptStatus.ts +2 -1
- package/_src/Layer/MemoMap.ts +11 -3
- package/_src/Layer/api.ts +14 -1
- package/_src/Layer/definition.ts +17 -4
- package/_src/Layer.ts +2 -1
- package/_src/LogLevel.ts +5 -1
- package/_src/LogSpan.ts +4 -1
- package/_src/Logger.ts +3 -2
- package/_src/MVar.ts +2 -1
- package/_src/Push/api.ts +4 -4
- package/_src/Push.ts +3 -2
- package/_src/Queue/api/dimapIO.ts +8 -2
- package/_src/Queue/api/filterInputIO.ts +8 -2
- package/_src/Queue/api/filterOutputIO.ts +8 -2
- package/_src/Queue/api/operations.ts +2 -2
- package/_src/Queue/api/takeBetween.ts +18 -20
- package/_src/Queue/api/takeN.ts +10 -0
- package/_src/Queue/api.ts +8 -6
- package/_src/Queue/internal.ts +4 -1
- package/_src/Queue.ts +5 -4
- package/_src/Random.ts +3 -2
- package/_src/Ref/Derived.ts +20 -18
- package/_src/Ref/DerivedAll.ts +21 -18
- package/_src/Ref/Synchronized.ts +3 -2
- package/_src/Ref/api.ts +8 -7
- package/_src/Ref.ts +9 -7
- package/_src/RefSubject/Atomic.ts +14 -3
- package/_src/RefSubject/Synchronized/definition.ts +4 -1
- package/_src/RefSubject/api.ts +5 -1
- package/_src/RefSubject/definition.ts +1 -0
- package/_src/RefSubject.ts +2 -1
- package/_src/Reloadable/definition.ts +4 -1
- package/_src/Reloadable.ts +3 -2
- package/_src/RuntimeFlags/RuntimeFlags.ts +1 -1
- package/_src/RuntimeFlags.ts +2 -1
- package/_src/STM/api/core-api.ts +1 -1
- package/_src/STM/api.ts +4 -4
- package/_src/STM/definition.ts +16 -4
- package/_src/STM/driver.ts +6 -1
- package/_src/STM.ts +6 -4
- package/_src/Schedule/api.ts +8 -8
- package/_src/Schedule.ts +3 -2
- package/_src/Scope/Finalizer.ts +1 -0
- package/_src/Scope/ReleaseMap/definition.ts +5 -1
- package/_src/Scope/ReleaseMap.ts +3 -2
- package/_src/Scope/api.ts +36 -26
- package/_src/Scope/definition.ts +2 -1
- package/_src/Scope.ts +3 -2
- package/_src/ScopedRef/api.ts +4 -3
- package/_src/ScopedRef.ts +2 -1
- package/_src/Sink/api.ts +12 -12
- package/_src/Sink.ts +2 -1
- package/_src/State.ts +3 -2
- package/_src/Stream/api/zipAllWith.ts +4 -4
- package/_src/Stream/api/zipWithChunks.ts +4 -4
- package/_src/Stream/api.ts +21 -19
- package/_src/Stream/internal/Handoff.ts +4 -1
- package/_src/Stream.ts +3 -2
- package/_src/Subject/definition.ts +1 -1
- package/_src/Subject.ts +2 -1
- package/_src/SubscriptionRef.ts +5 -1
- package/_src/Supervisor/definition.ts +8 -2
- package/_src/Supervisor.ts +3 -2
- package/_src/SupervisorPatch.ts +5 -1
- package/_src/TExit.ts +2 -1
- package/_src/TFuture.ts +3 -2
- package/_src/TReentrantLock/definition.ts +5 -1
- package/_src/TReentrantLock.ts +2 -1
- package/_src/TRef/definition.ts +40 -34
- package/_src/TRef.ts +3 -2
- package/_src/TSemaphore.ts +3 -2
- package/_src/collection/immutable/Conc.ts +6 -5
- package/_src/index.ts +47 -46
- package/_src/internal/HashedPair.ts +4 -1
- package/_src/internal/Hub.ts +20 -4
- package/_src/internal/IsFatal.ts +4 -1
- package/collection/immutable/Conc.d.ts +5 -5
- package/data/Exit/foreachIO.d.ts +1 -1
- package/index.d.ts +46 -46
- package/internal/Hub.d.ts +1 -1
- package/package.json +4 -4
|
@@ -11,14 +11,13 @@ var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require
|
|
|
11
11
|
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Channel/internal/MergeDecision"));
|
|
12
12
|
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Channel/api/mergeWith"));
|
|
13
13
|
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Channel/core-api"));
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
function _interopRequireWildcard(
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
const fileName_1 = "(@fncts/io) src/Channel/api/zipConcurrent.ts";
|
|
17
|
-
const zipConcurrent = zipConcurrent_1;
|
|
17
|
+
const zipConcurrent = exports.zipConcurrent = zipConcurrent_1;
|
|
18
18
|
/**
|
|
19
19
|
* @tsplus pipeable fncts.io.Channel zipConcurrent
|
|
20
20
|
*/
|
|
21
|
-
exports.zipConcurrent = zipConcurrent;
|
|
22
21
|
function zipConcurrent_1(that) {
|
|
23
22
|
return self => {
|
|
24
23
|
return tsplus_module_4.mergeWith(that, exit1 => tsplus_module_3.wait(exit2 => tsplus_module_2.fromExit(() => tsplus_module_1.zipConcurrent(exit2)(exit1), fileName_1 + ":22:60")), exit2 => tsplus_module_3.wait(exit1 => tsplus_module_2.fromExit(() => tsplus_module_1.zipConcurrent(exit2)(exit1), fileName_1 + ":23:60")))(self);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zipConcurrent.cjs","names":["zipConcurrent","
|
|
1
|
+
{"version":3,"file":"zipConcurrent.cjs","names":["zipConcurrent","exports","zipConcurrent_1","that","self","tsplus_module_4","mergeWith","exit1","tsplus_module_3","wait","exit2","tsplus_module_2","fromExit","tsplus_module_1","fileName_1","zipLeftConcurrent","tsplus_module_5","map","d","zipRightConcurrent","_","d1"],"sources":["../../../_src/Channel/api/zipConcurrent.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;MAKgBA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAAE,eAAA;AAH7B;;;AAGA,SAAAA,gBACEC,IAA0E;EAE1E,OACEC,IAAmE,IASjE;IACF,OAAOC,eAAA,CAAAC,SAAA,CACLH,IAAI,EACHI,KAAK,IAAKC,eAAA,CAAAC,IAAA,CAAqBC,KAAK,IAAKC,eAAA,CAAAC,QAAA,OAAYC,eAAA,CAAAb,aAAA,CAAoBU,KAAK,EAAzBH,KAAK,CAAqB,EAAAO,UAAA,YAAC,CAAC,EACjFJ,KAAK,IAAKF,eAAA,CAAAC,IAAA,CAAqBF,KAAK,IAAKI,eAAA,CAAAC,QAAA,OAAYC,eAAA,CAAAb,aAAA,CAAoBU,KAAK,EAAzBH,KAAK,CAAqB,EAAAO,UAAA,YAAC,CAAC,EAH7EV,IAAI,CAIV;EACH,CAAC;AACH;AAEA;;;AAGM,SAAUW,iBAAiBA,CAC/BZ,IAA0E;EAE1E,OACEC,IAAmE,IASjE;IACF,OAAOY,eAAA,CAAAC,GAAA,CAA6B,CAAC,CAACC,CAAC,CAAC,KAAKA,CAAC,EAAvChB,eAAA,CAAmBC,IAAI,EAAvBC,IAAI,CAAoB,CAAgB;EACjD,CAAC;AACH;AAEA;;;AAGM,SAAUe,kBAAkBA,CAChChB,IAA0E;EAE1E,OACEC,IAAmE,IASjE;IACF,OAAOY,eAAA,CAAAC,GAAA,CAA6B,CAAC,CAACG,CAAC,EAAEC,EAAE,CAAC,KAAKA,EAAE,EAA5CnB,eAAA,CAAmBC,IAAI,EAAvBC,IAAI,CAAoB,CAAqB;EACtD,CAAC;AACH"}
|
package/_cjs/Channel/api.cjs
CHANGED
|
@@ -85,80 +85,45 @@ var tsplus_module_25 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/requir
|
|
|
85
85
|
var tsplus_module_26 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Hub/api"));
|
|
86
86
|
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
|
87
87
|
var _definition3 = /*#__PURE__*/require("@fncts/io/Channel/definition");
|
|
88
|
-
function _getRequireWildcardCache(
|
|
89
|
-
function _interopRequireWildcard(
|
|
88
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
89
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
90
90
|
var _a;
|
|
91
91
|
const fileName_1 = "(@fncts/io) src/Channel/api.ts";
|
|
92
|
-
const as_ = as_1;
|
|
93
|
-
exports.
|
|
94
|
-
const
|
|
95
|
-
exports.
|
|
96
|
-
const
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
99
|
-
exports.
|
|
100
|
-
const
|
|
101
|
-
exports.
|
|
102
|
-
const
|
|
103
|
-
exports.
|
|
104
|
-
const
|
|
105
|
-
exports.
|
|
106
|
-
const
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
109
|
-
exports.
|
|
110
|
-
const
|
|
111
|
-
exports.
|
|
112
|
-
const
|
|
113
|
-
exports.
|
|
114
|
-
const
|
|
115
|
-
exports.
|
|
116
|
-
const
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
119
|
-
exports.
|
|
120
|
-
const
|
|
121
|
-
exports.
|
|
122
|
-
const
|
|
123
|
-
exports.
|
|
124
|
-
const
|
|
125
|
-
exports.
|
|
126
|
-
const
|
|
127
|
-
exports.provideEnvironment = provideEnvironment;
|
|
128
|
-
const haltNow = haltNow_1;
|
|
129
|
-
exports.haltNow = haltNow;
|
|
130
|
-
const id = id_1;
|
|
131
|
-
exports.id = id;
|
|
132
|
-
const scoped = scoped_1;
|
|
133
|
-
exports.scoped = scoped;
|
|
134
|
-
const mapErrorCause = mapErrorCause_1;
|
|
135
|
-
exports.mapErrorCause = mapErrorCause;
|
|
136
|
-
const mapIO = mapIO_1;
|
|
137
|
-
exports.mapIO = mapIO;
|
|
138
|
-
const matchCauseChannel = matchCauseChannel_1;
|
|
139
|
-
exports.matchCauseChannel = matchCauseChannel;
|
|
140
|
-
const orHaltWith = orHaltWith_1;
|
|
141
|
-
exports.orHaltWith = orHaltWith;
|
|
142
|
-
const pipeTo = pipeTo_1;
|
|
143
|
-
exports.pipeTo = pipeTo;
|
|
144
|
-
const readOrFail = readOrFail_1;
|
|
145
|
-
exports.readOrFail = readOrFail;
|
|
146
|
-
const readWithCause = readWithCause_1;
|
|
147
|
-
exports.readWithCause = readWithCause;
|
|
148
|
-
const readWith = readWith_1;
|
|
149
|
-
exports.readWith = readWith;
|
|
150
|
-
const repeated = repeated_1;
|
|
151
|
-
exports.repeated = repeated;
|
|
152
|
-
const toQueue = toQueue_1;
|
|
153
|
-
exports.toQueue = toQueue;
|
|
154
|
-
const write = write_1;
|
|
155
|
-
exports.write = write;
|
|
156
|
-
const writeChunk = writeChunk_1;
|
|
157
|
-
exports.writeChunk = writeChunk;
|
|
158
|
-
const writeNow = writeNow_1;
|
|
159
|
-
exports.writeNow = writeNow;
|
|
160
|
-
const unwrap = unwrap_1;
|
|
161
|
-
exports.unwrap = unwrap;
|
|
92
|
+
const as_ = exports.as_ = as_1;
|
|
93
|
+
const ask = exports.ask = ask_1;
|
|
94
|
+
const acquireReleaseExitWith = exports.acquireReleaseExitWith = acquireReleaseExitWith_1;
|
|
95
|
+
const acquireReleaseOutExitWith = exports.acquireReleaseOutExitWith = acquireReleaseOutExitWith_1;
|
|
96
|
+
const buffer = exports.buffer = buffer_1;
|
|
97
|
+
const catchAll = exports.catchAll = catchAll_1;
|
|
98
|
+
const catchAllCause = exports.catchAllCause = catchAllCause_1;
|
|
99
|
+
const concatMapWith = exports.concatMapWith = concatMapWith_1;
|
|
100
|
+
const concatAllWith = exports.concatAllWith = concatAllWith_1;
|
|
101
|
+
const defer = exports.defer = defer_1;
|
|
102
|
+
const doneCollect = exports.doneCollect = doneCollect_1;
|
|
103
|
+
const ensuringWith = exports.ensuringWith = ensuringWith_1;
|
|
104
|
+
const failNow = exports.failNow = failNow_1;
|
|
105
|
+
const flatten = exports.flatten = flatten_1;
|
|
106
|
+
const fromInput = exports.fromInput = fromInput_1;
|
|
107
|
+
const fromIO = exports.fromIO = fromIO_1;
|
|
108
|
+
const fromQueue = exports.fromQueue = fromQueue_1;
|
|
109
|
+
const provideEnvironment = exports.provideEnvironment = provideEnvironment_1;
|
|
110
|
+
const haltNow = exports.haltNow = haltNow_1;
|
|
111
|
+
const id = exports.id = id_1;
|
|
112
|
+
const scoped = exports.scoped = scoped_1;
|
|
113
|
+
const mapErrorCause = exports.mapErrorCause = mapErrorCause_1;
|
|
114
|
+
const mapIO = exports.mapIO = mapIO_1;
|
|
115
|
+
const matchCauseChannel = exports.matchCauseChannel = matchCauseChannel_1;
|
|
116
|
+
const orHaltWith = exports.orHaltWith = orHaltWith_1;
|
|
117
|
+
const pipeTo = exports.pipeTo = pipeTo_1;
|
|
118
|
+
const readOrFail = exports.readOrFail = readOrFail_1;
|
|
119
|
+
const readWithCause = exports.readWithCause = readWithCause_1;
|
|
120
|
+
const readWith = exports.readWith = readWith_1;
|
|
121
|
+
const repeated = exports.repeated = repeated_1;
|
|
122
|
+
const toQueue = exports.toQueue = toQueue_1;
|
|
123
|
+
const write = exports.write = write_1;
|
|
124
|
+
const writeChunk = exports.writeChunk = writeChunk_1;
|
|
125
|
+
const writeNow = exports.writeNow = writeNow_1;
|
|
126
|
+
const unwrap = exports.unwrap = unwrap_1;
|
|
162
127
|
/**
|
|
163
128
|
* Returns a new channel that is the same as this one, except the terminal value of the channel
|
|
164
129
|
* is the specified constant value.
|
|
@@ -176,7 +141,7 @@ function as_1(z2) {
|
|
|
176
141
|
* @tsplus static fncts.io.ChannelOps ask
|
|
177
142
|
*/
|
|
178
143
|
function ask_1() {
|
|
179
|
-
return fromIO_1(() => tsplus_module_2.environment(fileName_1 + ":
|
|
144
|
+
return fromIO_1(() => tsplus_module_2.environment(fileName_1 + ":47:39"));
|
|
180
145
|
}
|
|
181
146
|
/**
|
|
182
147
|
* @tsplus getter fncts.io.Channel asUnit
|
|
@@ -194,7 +159,7 @@ function acquireReleaseWith(acquire, use, release) {
|
|
|
194
159
|
* @tsplus static fncts.io.ChannelOps acquireReleaseExitWith
|
|
195
160
|
*/
|
|
196
161
|
function acquireReleaseExitWith_1(acquire, use, release) {
|
|
197
|
-
return tsplus_module_1.flatMap(ref => ensuringWith_1(exit => tsplus_module_4.flatMap(fin => fin(exit), fileName_1 + ":
|
|
162
|
+
return tsplus_module_1.flatMap(ref => ensuringWith_1(exit => tsplus_module_4.flatMap(fin => fin(exit), fileName_1 + ":81:46")(tsplus_module_3.get(ref, fileName_1 + ":81:34")))(tsplus_module_1.flatMap(use)(fromIO_1(() => tsplus_module_6.uninterruptible(tsplus_module_4.tap(a => tsplus_module_5.set(exit => release(a, exit), fileName_1 + ":79:46")(ref), fileName_1 + ":79:31")(acquire), fileName_1 + ":79:75")))))(fromIO_1(() => tsplus_module_7.make(() => _ => tsplus_module_4.unit, fileName_1 + ":78:33")));
|
|
198
163
|
}
|
|
199
164
|
/**
|
|
200
165
|
* Construct a resource Channel with Acquire / Release
|
|
@@ -210,7 +175,10 @@ function acquireReleaseOutWith(acquire, release) {
|
|
|
210
175
|
* @tsplus static fncts.io.ChannelOps acquireReleaseOutExitWith
|
|
211
176
|
*/
|
|
212
177
|
function acquireReleaseOutExitWith_1(self, release) {
|
|
213
|
-
|
|
178
|
+
const op = new _definition3.ChannelPrimitive(13 /* ChannelTag.BracketOut */);
|
|
179
|
+
op.i0 = self;
|
|
180
|
+
op.i1 = release;
|
|
181
|
+
return op;
|
|
214
182
|
}
|
|
215
183
|
/**
|
|
216
184
|
* Creates a channel backed by a buffer. When the buffer is empty, the channel will simply
|
|
@@ -226,7 +194,7 @@ function buffer_1(empty, isEmpty, ref) {
|
|
|
226
194
|
} else {
|
|
227
195
|
return (0, _function.tuple)(tsplus_module_1.zipRight(buffer_1(empty, isEmpty, ref))(writeNow_1(v)), empty);
|
|
228
196
|
}
|
|
229
|
-
}, fileName_1 + ":
|
|
197
|
+
}, fileName_1 + ":125:15")(ref));
|
|
230
198
|
}
|
|
231
199
|
/**
|
|
232
200
|
* @tsplus static fncts.io.ChannelOps bufferChunk
|
|
@@ -243,7 +211,10 @@ function bufferChunk(ref) {
|
|
|
243
211
|
*/
|
|
244
212
|
function catchAll_1(f) {
|
|
245
213
|
return self => {
|
|
246
|
-
return catchAllCause_1(cause => tsplus_module_12.match(
|
|
214
|
+
return catchAllCause_1(cause => tsplus_module_12.match({
|
|
215
|
+
Left: l => f(l),
|
|
216
|
+
Right: r => tsplus_module_1.failCauseNow(r)
|
|
217
|
+
})(tsplus_module_11.failureOrCause(cause)))(self);
|
|
247
218
|
};
|
|
248
219
|
}
|
|
249
220
|
/**
|
|
@@ -255,7 +226,13 @@ function catchAll_1(f) {
|
|
|
255
226
|
*/
|
|
256
227
|
function catchAllCause_1(f) {
|
|
257
228
|
return self => {
|
|
258
|
-
|
|
229
|
+
const op = new _definition3.ChannelPrimitive(3 /* ChannelTag.Fold */);
|
|
230
|
+
const continuation = new _definition3.ChannelPrimitive(1 /* ChannelTag.ContinuationK */);
|
|
231
|
+
continuation.i0 = tsplus_module_1.endNow;
|
|
232
|
+
continuation.i1 = f;
|
|
233
|
+
op.i0 = self;
|
|
234
|
+
op.i1 = continuation;
|
|
235
|
+
return op;
|
|
259
236
|
};
|
|
260
237
|
}
|
|
261
238
|
/**
|
|
@@ -285,7 +262,14 @@ function concatAll(channels) {
|
|
|
285
262
|
*/
|
|
286
263
|
function concatMapWith_1(f, g, h) {
|
|
287
264
|
return channel => {
|
|
288
|
-
|
|
265
|
+
const op = new _definition3.ChannelPrimitive(12 /* ChannelTag.ConcatAll */);
|
|
266
|
+
op.i0 = g;
|
|
267
|
+
op.i1 = h;
|
|
268
|
+
op.i2 = () => tsplus_module_15.PullAfterNext(tsplus_module_14.nothing(fileName_1 + ":264:64"));
|
|
269
|
+
op.i3 = () => tsplus_module_16.Continue;
|
|
270
|
+
op.i4 = channel;
|
|
271
|
+
op.i5 = f;
|
|
272
|
+
return op;
|
|
289
273
|
};
|
|
290
274
|
}
|
|
291
275
|
/**
|
|
@@ -299,7 +283,14 @@ function concatMapWith_1(f, g, h) {
|
|
|
299
283
|
*/
|
|
300
284
|
function concatMapWithCustom(f, g, h, onPull, onEmit) {
|
|
301
285
|
return channel => {
|
|
302
|
-
|
|
286
|
+
const op = new _definition3.ChannelPrimitive(12 /* ChannelTag.ConcatAll */);
|
|
287
|
+
op.i0 = g;
|
|
288
|
+
op.i1 = h;
|
|
289
|
+
op.i2 = onPull;
|
|
290
|
+
op.i3 = onEmit;
|
|
291
|
+
op.i4 = channel;
|
|
292
|
+
op.i5 = f;
|
|
293
|
+
return op;
|
|
303
294
|
};
|
|
304
295
|
}
|
|
305
296
|
/**
|
|
@@ -309,7 +300,14 @@ function concatMapWithCustom(f, g, h, onPull, onEmit) {
|
|
|
309
300
|
*/
|
|
310
301
|
function concatAllWith_1(f, g) {
|
|
311
302
|
return channels => {
|
|
312
|
-
|
|
303
|
+
const op = new _definition3.ChannelPrimitive(12 /* ChannelTag.ConcatAll */);
|
|
304
|
+
op.i0 = f;
|
|
305
|
+
op.i1 = g;
|
|
306
|
+
op.i2 = () => tsplus_module_15.PullAfterNext(tsplus_module_14.nothing(fileName_1 + ":336:64"));
|
|
307
|
+
op.i3 = () => tsplus_module_16.Continue;
|
|
308
|
+
op.i4 = channels;
|
|
309
|
+
op.i5 = _function.identity;
|
|
310
|
+
return op;
|
|
313
311
|
};
|
|
314
312
|
}
|
|
315
313
|
/**
|
|
@@ -372,12 +370,14 @@ function contramapInIO(f) {
|
|
|
372
370
|
* @tsplus static fncts.io.ChannelOps defer
|
|
373
371
|
*/
|
|
374
372
|
function defer_1(effect) {
|
|
375
|
-
|
|
373
|
+
const op = new _definition3.ChannelPrimitive(10 /* ChannelTag.Defer */);
|
|
374
|
+
op.i0 = effect;
|
|
375
|
+
return op;
|
|
376
376
|
}
|
|
377
377
|
function doneCollectReader(builder) {
|
|
378
378
|
return readWith_1(out => tsplus_module_1.zipRight(doneCollectReader(builder))(fromIO_1(() => tsplus_module_4.succeed(() => {
|
|
379
379
|
builder.append(out);
|
|
380
|
-
}, fileName_1 + ":
|
|
380
|
+
}, fileName_1 + ":465:19"))), failNow_1, tsplus_module_1.endNow);
|
|
381
381
|
}
|
|
382
382
|
/**
|
|
383
383
|
* Returns a new channel, which is the same as this one, except that all the outputs are
|
|
@@ -392,8 +392,8 @@ function doneCollectReader(builder) {
|
|
|
392
392
|
function doneCollect_1(self) {
|
|
393
393
|
return unwrap_1(() => tsplus_module_4.succeed(() => {
|
|
394
394
|
const builder = tsplus_module_10.builder();
|
|
395
|
-
return mapIO_1(z => tsplus_module_4.succeedNow((0, _function.tuple)(builder.result(), z), fileName_1 + ":
|
|
396
|
-
}, fileName_1 + ":
|
|
395
|
+
return mapIO_1(z => tsplus_module_4.succeedNow((0, _function.tuple)(builder.result(), z), fileName_1 + ":490:80"))(pipeTo_1(doneCollectReader(builder))(self));
|
|
396
|
+
}, fileName_1 + ":488:15"));
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
399
|
* Returns a new channel which reads all the elements from upstream's output channel
|
|
@@ -430,7 +430,10 @@ function ensuring(finalizer) {
|
|
|
430
430
|
*/
|
|
431
431
|
function ensuringWith_1(finalizer) {
|
|
432
432
|
return channel => {
|
|
433
|
-
|
|
433
|
+
const op = new _definition3.ChannelPrimitive(11 /* ChannelTag.Ensuring */);
|
|
434
|
+
op.i0 = channel;
|
|
435
|
+
op.i1 = finalizer;
|
|
436
|
+
return op;
|
|
434
437
|
};
|
|
435
438
|
}
|
|
436
439
|
/**
|
|
@@ -440,7 +443,10 @@ function ensuringWith_1(finalizer) {
|
|
|
440
443
|
*/
|
|
441
444
|
function embedInput(input) {
|
|
442
445
|
return self => {
|
|
443
|
-
|
|
446
|
+
const op = new _definition3.ChannelPrimitive(4 /* ChannelTag.Bridge */);
|
|
447
|
+
op.i0 = input;
|
|
448
|
+
op.i1 = self;
|
|
449
|
+
return op;
|
|
444
450
|
};
|
|
445
451
|
}
|
|
446
452
|
/**
|
|
@@ -449,7 +455,9 @@ function embedInput(input) {
|
|
|
449
455
|
* @tsplus static fncts.io.ChannelOps fail
|
|
450
456
|
*/
|
|
451
457
|
function fail(error) {
|
|
452
|
-
|
|
458
|
+
const op = new _definition3.ChannelPrimitive(7 /* ChannelTag.Halt */);
|
|
459
|
+
op.i0 = () => tsplus_module_11.fail(error());
|
|
460
|
+
return op;
|
|
453
461
|
}
|
|
454
462
|
/**
|
|
455
463
|
* Halt a channel with the specified error
|
|
@@ -457,7 +465,9 @@ function fail(error) {
|
|
|
457
465
|
* @tsplus static fncts.io.ChannelOps failNow
|
|
458
466
|
*/
|
|
459
467
|
function failNow_1(error) {
|
|
460
|
-
|
|
468
|
+
const op = new _definition3.ChannelPrimitive(7 /* ChannelTag.Halt */);
|
|
469
|
+
op.i0 = () => tsplus_module_11.fail(error);
|
|
470
|
+
return op;
|
|
461
471
|
}
|
|
462
472
|
/**
|
|
463
473
|
* Returns a new channel, which flattens the terminal value of this channel. This function may
|
|
@@ -472,7 +482,10 @@ function flatten_1(self) {
|
|
|
472
482
|
* @tsplus static fncts.io.ChannelOps fromEither
|
|
473
483
|
*/
|
|
474
484
|
function fromEither(either) {
|
|
475
|
-
return defer_1(() => tsplus_module_12.match(
|
|
485
|
+
return defer_1(() => tsplus_module_12.match({
|
|
486
|
+
Left: failNow_1,
|
|
487
|
+
Right: tsplus_module_1.succeedNow
|
|
488
|
+
})(either()));
|
|
476
489
|
}
|
|
477
490
|
/**
|
|
478
491
|
* @tsplus static fncts.io.ChannelOps fromInput
|
|
@@ -486,19 +499,26 @@ function fromInput_1(input) {
|
|
|
486
499
|
* @tsplus static fncts.io.ChannelOps fromIO
|
|
487
500
|
*/
|
|
488
501
|
function fromIO_1(io) {
|
|
489
|
-
return defer_1(() =>
|
|
502
|
+
return defer_1(() => {
|
|
503
|
+
const op = new _definition3.ChannelPrimitive(8 /* ChannelTag.FromIO */);
|
|
504
|
+
op.i0 = io();
|
|
505
|
+
return op;
|
|
506
|
+
});
|
|
490
507
|
}
|
|
491
508
|
/**
|
|
492
509
|
* @tsplus static fncts.io.ChannelOps fromOption
|
|
493
510
|
*/
|
|
494
511
|
function fromOption(option) {
|
|
495
|
-
return defer_1(() => tsplus_module_17.match(() => failNow_1(tsplus_module_14.nothing(fileName_1 + ":
|
|
512
|
+
return defer_1(() => tsplus_module_17.match(() => failNow_1(tsplus_module_14.nothing(fileName_1 + ":667:68")), tsplus_module_1.succeedNow)(option()));
|
|
496
513
|
}
|
|
497
514
|
/**
|
|
498
515
|
* @tsplus static fncts.io.ChannelOps fromQueue
|
|
499
516
|
*/
|
|
500
517
|
function fromQueue_1(queue) {
|
|
501
|
-
return tsplus_module_1.flatMap(_ => tsplus_module_12.match(
|
|
518
|
+
return tsplus_module_1.flatMap(_ => tsplus_module_12.match({
|
|
519
|
+
Left: _ => tsplus_module_18.match(tsplus_module_1.failCauseNow, tsplus_module_1.endNow)(_),
|
|
520
|
+
Right: elem => tsplus_module_1.zipRight(fromQueue_1(queue))(writeNow_1(elem))
|
|
521
|
+
})(_))(fromIO_1(() => tsplus_module_19.take(queue, fileName_1 + ":676:30")));
|
|
502
522
|
}
|
|
503
523
|
/**
|
|
504
524
|
* Provides the channel with its required environment, which eliminates
|
|
@@ -508,7 +528,12 @@ function fromQueue_1(queue) {
|
|
|
508
528
|
*/
|
|
509
529
|
function provideEnvironment_1(env) {
|
|
510
530
|
return self => {
|
|
511
|
-
return defer_1(() =>
|
|
531
|
+
return defer_1(() => {
|
|
532
|
+
const op = new _definition3.ChannelPrimitive(14 /* ChannelTag.Provide */);
|
|
533
|
+
op.i0 = env();
|
|
534
|
+
op.i1 = self;
|
|
535
|
+
return op;
|
|
536
|
+
});
|
|
512
537
|
};
|
|
513
538
|
}
|
|
514
539
|
/**
|
|
@@ -525,7 +550,9 @@ function contramapEnvironment(f) {
|
|
|
525
550
|
* @tsplus static fncts.io.ChannelOps haltNow
|
|
526
551
|
*/
|
|
527
552
|
function haltNow_1(defect) {
|
|
528
|
-
|
|
553
|
+
const op = new _definition3.ChannelPrimitive(7 /* ChannelTag.Halt */);
|
|
554
|
+
op.i0 = () => tsplus_module_11.halt(defect);
|
|
555
|
+
return op;
|
|
529
556
|
}
|
|
530
557
|
/**
|
|
531
558
|
* Halt a channel with the specified exception
|
|
@@ -533,7 +560,9 @@ function haltNow_1(defect) {
|
|
|
533
560
|
* @tsplus static fncts.io.ChannelOps halt
|
|
534
561
|
*/
|
|
535
562
|
function halt(defect) {
|
|
536
|
-
|
|
563
|
+
const op = new _definition3.ChannelPrimitive(7 /* ChannelTag.Halt */);
|
|
564
|
+
op.i0 = () => tsplus_module_11.halt(defect());
|
|
565
|
+
return op;
|
|
537
566
|
}
|
|
538
567
|
/**
|
|
539
568
|
* @tsplus static fncts.io.ChannelOps id
|
|
@@ -553,7 +582,7 @@ function interrupt(fiberId) {
|
|
|
553
582
|
* @tsplus static fncts.io.ChannelOps scoped
|
|
554
583
|
*/
|
|
555
584
|
function scoped_1(io) {
|
|
556
|
-
return unwrap_1(() => tsplus_module_6.uninterruptibleMask(restore => tsplus_module_4.map(scope => acquireReleaseOutExitWith_1(tsplus_module_4.tapErrorCause(cause => scope.close(() => tsplus_module_20.failCause(cause, fileName_1 + ":
|
|
585
|
+
return unwrap_1(() => tsplus_module_6.uninterruptibleMask(restore => tsplus_module_4.map(scope => acquireReleaseOutExitWith_1(tsplus_module_4.tapErrorCause(cause => scope.close(() => tsplus_module_20.failCause(cause, fileName_1 + ":762:88")), fileName_1 + ":762:50")(restore(tsplus_module_21.extend(io, fileName_1 + ":762:31")(scope), fileName_1 + ":762:18")), (_, exit) => scope.close(() => exit)), fileName_1 + ":760:21")(tsplus_module_21.make), fileName_1 + ":759:27"));
|
|
557
586
|
}
|
|
558
587
|
/**
|
|
559
588
|
* Returns a new channel, which is the same as this one, except the failure value of the returned
|
|
@@ -615,7 +644,13 @@ function mapOutIO(f) {
|
|
|
615
644
|
*/
|
|
616
645
|
function matchCauseChannel_1(onError, onSuccess) {
|
|
617
646
|
return channel => {
|
|
618
|
-
|
|
647
|
+
const op = new _definition3.ChannelPrimitive(3 /* ChannelTag.Fold */);
|
|
648
|
+
op.i0 = channel;
|
|
649
|
+
const continuation = new _definition3.ChannelPrimitive(1 /* ChannelTag.ContinuationK */);
|
|
650
|
+
continuation.i0 = onSuccess;
|
|
651
|
+
continuation.i1 = onError;
|
|
652
|
+
op.i1 = continuation;
|
|
653
|
+
return op;
|
|
619
654
|
};
|
|
620
655
|
}
|
|
621
656
|
/**
|
|
@@ -625,17 +660,19 @@ function matchCauseChannel_1(onError, onSuccess) {
|
|
|
625
660
|
*/
|
|
626
661
|
function matchChannel(onError, onSuccess) {
|
|
627
662
|
return channel => {
|
|
628
|
-
return matchCauseChannel_1(cause => tsplus_module_12.match(
|
|
663
|
+
return matchCauseChannel_1(cause => tsplus_module_12.match({
|
|
664
|
+
Left: onError,
|
|
665
|
+
Right: tsplus_module_1.failCauseNow
|
|
666
|
+
})(tsplus_module_11.failureOrCause(cause)), onSuccess)(channel);
|
|
629
667
|
};
|
|
630
668
|
}
|
|
631
|
-
const never = /*#__PURE__*/fromIO_1(() => tsplus_module_22.never);
|
|
669
|
+
const never = exports.never = /*#__PURE__*/fromIO_1(() => tsplus_module_22.never);
|
|
632
670
|
/**
|
|
633
671
|
* Returns a new channel that will perform the operations of this one, until failure, and then
|
|
634
672
|
* it will switch over to the operations of the specified fallback channel.
|
|
635
673
|
*
|
|
636
674
|
* @tsplus pipeable fncts.io.Channel orElse
|
|
637
675
|
*/
|
|
638
|
-
exports.never = never;
|
|
639
676
|
function orElse(that) {
|
|
640
677
|
return self => {
|
|
641
678
|
return catchAll_1(_ => that)(self);
|
|
@@ -665,7 +702,10 @@ function orHaltWith_1(f) {
|
|
|
665
702
|
*/
|
|
666
703
|
function pipeTo_1(right) {
|
|
667
704
|
return left => {
|
|
668
|
-
|
|
705
|
+
const op = new _definition3.ChannelPrimitive(0 /* ChannelTag.PipeTo */);
|
|
706
|
+
op.i0 = () => left;
|
|
707
|
+
op.i1 = () => right;
|
|
708
|
+
return op;
|
|
669
709
|
};
|
|
670
710
|
}
|
|
671
711
|
const ChannelFailureTypeId = /*#__PURE__*/Symbol.for("@principia/base/Channel/ChannelFailure");
|
|
@@ -692,13 +732,19 @@ function pipeToOrFail(right) {
|
|
|
692
732
|
* @tsplus static fncts.io.ChannelOps read
|
|
693
733
|
*/
|
|
694
734
|
function read() {
|
|
695
|
-
return readOrFail_1(tsplus_module_14.nothing(fileName_1 + ":
|
|
735
|
+
return readOrFail_1(tsplus_module_14.nothing(fileName_1 + ":1046:36"));
|
|
696
736
|
}
|
|
697
737
|
/**
|
|
698
738
|
* @tsplus static fncts.io.ChannelOps readOrFail
|
|
699
739
|
*/
|
|
700
740
|
function readOrFail_1(e) {
|
|
701
|
-
|
|
741
|
+
const op = new _definition3.ChannelPrimitive(5 /* ChannelTag.Read */);
|
|
742
|
+
op.i0 = tsplus_module_1.endNow;
|
|
743
|
+
const continuation = new _definition3.ChannelPrimitive(1 /* ChannelTag.ContinuationK */);
|
|
744
|
+
continuation.i0 = () => failNow_1(e);
|
|
745
|
+
continuation.i1 = () => failNow_1(e);
|
|
746
|
+
op.i1 = continuation;
|
|
747
|
+
return op;
|
|
702
748
|
}
|
|
703
749
|
/**
|
|
704
750
|
* Reads an input and continue exposing both full error cause and completion
|
|
@@ -706,7 +752,13 @@ function readOrFail_1(e) {
|
|
|
706
752
|
* @tsplus static fncts.io.ChannelOps readWithCause
|
|
707
753
|
*/
|
|
708
754
|
function readWithCause_1(inp, halt, done) {
|
|
709
|
-
|
|
755
|
+
const op = new _definition3.ChannelPrimitive(5 /* ChannelTag.Read */);
|
|
756
|
+
op.i0 = inp;
|
|
757
|
+
const continuation = new _definition3.ChannelPrimitive(1 /* ChannelTag.ContinuationK */);
|
|
758
|
+
continuation.i0 = done;
|
|
759
|
+
continuation.i1 = halt;
|
|
760
|
+
op.i1 = continuation;
|
|
761
|
+
return op;
|
|
710
762
|
}
|
|
711
763
|
/**
|
|
712
764
|
* Reads an input and continue exposing both error and completion
|
|
@@ -714,7 +766,10 @@ function readWithCause_1(inp, halt, done) {
|
|
|
714
766
|
* @tsplus static fncts.io.ChannelOps readWith
|
|
715
767
|
*/
|
|
716
768
|
function readWith_1(inp, error, done) {
|
|
717
|
-
return readWithCause_1(inp, c => tsplus_module_12.match(
|
|
769
|
+
return readWithCause_1(inp, c => tsplus_module_12.match({
|
|
770
|
+
Left: error,
|
|
771
|
+
Right: tsplus_module_1.failCauseNow
|
|
772
|
+
})(tsplus_module_11.failureOrCause(c)), done);
|
|
718
773
|
}
|
|
719
774
|
/**
|
|
720
775
|
* Repeats this channel forever
|
|
@@ -730,7 +785,7 @@ function repeated_1(self) {
|
|
|
730
785
|
function toQueue_1(queue) {
|
|
731
786
|
return defer_1(() => {
|
|
732
787
|
function toQueue(queue) {
|
|
733
|
-
return readWithCause_1(inp => tsplus_module_1.zipRight(toQueue(queue))(fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.right(inp, fileName_1 + ":
|
|
788
|
+
return readWithCause_1(inp => tsplus_module_1.zipRight(toQueue(queue))(fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.right(inp, fileName_1 + ":1170:57"), fileName_1 + ":1170:44")(queue))), cause => fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.left(tsplus_module_20.failCause(cause, fileName_1 + ":1171:73"), fileName_1 + ":1171:58"), fileName_1 + ":1171:46")(queue)), done => fromIO_1(() => tsplus_module_19.offer(tsplus_module_24.left(tsplus_module_20.succeed(done, fileName_1 + ":1172:70"), fileName_1 + ":1172:57"), fileName_1 + ":1172:45")(queue)));
|
|
734
789
|
}
|
|
735
790
|
return toQueue(queue());
|
|
736
791
|
});
|
|
@@ -741,7 +796,9 @@ function toQueue_1(queue) {
|
|
|
741
796
|
* @tsplus static fncts.io.ChannelOps write
|
|
742
797
|
*/
|
|
743
798
|
function write_1(out) {
|
|
744
|
-
|
|
799
|
+
const op = new _definition3.ChannelPrimitive(9 /* ChannelTag.Emit */);
|
|
800
|
+
op.i0 = out;
|
|
801
|
+
return op;
|
|
745
802
|
}
|
|
746
803
|
/**
|
|
747
804
|
* @tsplus static fncts.io.ChannelOps writeAll
|
|
@@ -765,19 +822,20 @@ function writeChunk_1(outs) {
|
|
|
765
822
|
* @tsplus static fncts.io.ChannelOps writeNow
|
|
766
823
|
*/
|
|
767
824
|
function writeNow_1(out) {
|
|
768
|
-
|
|
825
|
+
const op = new _definition3.ChannelPrimitive(9 /* ChannelTag.Emit */);
|
|
826
|
+
op.i0 = () => out;
|
|
827
|
+
return op;
|
|
769
828
|
}
|
|
770
829
|
/**
|
|
771
830
|
* @tsplus static fncts.io.ChannelOps unit
|
|
772
831
|
*/
|
|
773
832
|
const unit_1 = /*#__PURE__*/tsplus_module_1.endNow(undefined);
|
|
774
|
-
const unit = unit_1;
|
|
833
|
+
const unit = exports.unit = unit_1;
|
|
775
834
|
/**
|
|
776
835
|
* Makes a channel from an effect that returns a channel in case of success
|
|
777
836
|
*
|
|
778
837
|
* @tsplus static fncts.io.ChannelOps unwrap
|
|
779
838
|
*/
|
|
780
|
-
exports.unit = unit;
|
|
781
839
|
function unwrap_1(self) {
|
|
782
840
|
return flatten_1(fromIO_1(self));
|
|
783
841
|
}
|
|
@@ -793,7 +851,7 @@ function unwrapScoped(self) {
|
|
|
793
851
|
* @tsplus static fncts.io.ChannelOps fromHubScoped
|
|
794
852
|
*/
|
|
795
853
|
function fromHubScoped(hub) {
|
|
796
|
-
return tsplus_module_4.defer(() => tsplus_module_4.map(fromQueue_1, fileName_1 + ":
|
|
854
|
+
return tsplus_module_4.defer(() => tsplus_module_4.map(fromQueue_1, fileName_1 + ":1260:38")(tsplus_module_26.subscribe(hub(), fileName_1 + ":1260:24")), fileName_1 + ":1260:18");
|
|
797
855
|
}
|
|
798
856
|
/**
|
|
799
857
|
* @tsplus static fncts.io.ChannelOps toHub
|