@fncts/io 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/Channel/api/mapOutConcurrentIO.d.ts +8 -0
- package/Channel/api/zipConcurrent.d.ts +16 -0
- package/Channel/api.d.ts +5 -5
- package/Channel/core-api.d.ts +4 -4
- package/Channel/internal/SingleProducerAsyncInput.d.ts +1 -1
- package/CountdownLatch.d.ts +25 -0
- package/Fiber/FiberMessage.d.ts +67 -0
- package/Fiber/FiberRuntime.d.ts +116 -0
- package/Fiber/api/interrupt.d.ts +1 -1
- package/Fiber/api/interruptAs.d.ts +8 -3
- package/Fiber/api/location.d.ts +1 -2
- package/Fiber/definition.d.ts +17 -16
- package/Fiber.d.ts +2 -4
- package/FiberDescriptor.d.ts +3 -6
- package/FiberRef/definition.d.ts +2 -2
- package/FiberRef/unsafe.d.ts +5 -0
- package/FiberRefs/api.d.ts +28 -0
- package/FiberRefs/definition.d.ts +14 -7
- package/FiberScope/constructors.d.ts +2 -2
- package/FiberScope/definition.d.ts +8 -5
- package/FiberStatus/constructors.d.ts +3 -7
- package/FiberStatus/definition.d.ts +16 -28
- package/Hub/api.d.ts +192 -0
- package/Hub/definition.d.ts +84 -36
- package/Hub/internal.d.ts +11 -4
- package/Hub.d.ts +1 -1
- package/IO/api/asyncInterrupt.d.ts +39 -0
- package/IO/api/core-scope.d.ts +6 -42
- package/IO/api/delay.d.ts +8 -0
- package/IO/api/{foreachC.d.ts → foreachConcurrent.d.ts} +8 -8
- package/IO/api/fork.d.ts +36 -0
- package/IO/api/interrupt.d.ts +13 -17
- package/IO/api/race.d.ts +1 -1
- package/IO/api/supervised.d.ts +4 -6
- package/IO/api/zipConcurrent.d.ts +13 -0
- package/IO/api.d.ts +36 -137
- package/IO/definition.d.ts +120 -145
- package/IO/runtime.d.ts +19 -22
- package/IO.d.ts +5 -3
- package/Layer/MemoMap.d.ts +1 -1
- package/Push/api.d.ts +232 -0
- package/Push/definition.d.ts +34 -0
- package/Push/internal.d.ts +11 -0
- package/Push.d.ts +3 -0
- package/Queue/api/dimapIO.d.ts +98 -0
- package/Queue/api/filterInputIO.d.ts +25 -0
- package/Queue/api/filterOutputIO.d.ts +20 -0
- package/Queue/api/operations.d.ts +83 -0
- package/Queue/api/poll.d.ts +9 -0
- package/Queue/api/takeBetween.d.ts +11 -0
- package/Queue/api/zipWithIO.d.ts +27 -0
- package/Queue/api.d.ts +7 -0
- package/Queue/constructors.d.ts +1 -2
- package/Queue/definition.d.ts +170 -75
- package/Queue/internal.d.ts +4 -2
- package/Queue.d.ts +2 -0
- package/Ref/Atomic.d.ts +15 -8
- package/Ref/Derived.d.ts +16 -0
- package/Ref/DerivedAll.d.ts +18 -0
- package/Ref/Synchronized/api.d.ts +102 -0
- package/Ref/Synchronized/constructors.d.ts +8 -0
- package/Ref/Synchronized/definition.d.ts +44 -0
- package/Ref/Synchronized.d.ts +3 -72
- package/Ref/api/collect.d.ts +11 -0
- package/Ref/api/dimap.d.ts +56 -0
- package/Ref/api/filter.d.ts +21 -0
- package/Ref/api/get.d.ts +9 -0
- package/Ref/api/match.d.ts +13 -0
- package/Ref/api/matchAll.d.ts +11 -0
- package/Ref/api/modify.d.ts +79 -0
- package/Ref/api/set.d.ts +10 -0
- package/Ref/api.d.ts +23 -0
- package/Ref/constructors.d.ts +1 -8
- package/Ref/definition.d.ts +79 -55
- package/Ref/symbols.d.ts +30 -0
- package/Ref.d.ts +7 -0
- package/RefSubject/Atomic.d.ts +36 -0
- package/RefSubject/Synchronized/api.d.ts +9 -0
- package/RefSubject/Synchronized/definition.d.ts +40 -0
- package/RefSubject/api.d.ts +116 -0
- package/RefSubject/definition.d.ts +45 -0
- package/RefSubject.d.ts +3 -0
- package/RuntimeConfig.d.ts +0 -24
- package/RuntimeFlag.d.ts +10 -0
- package/RuntimeFlags/Patch.d.ts +53 -0
- package/RuntimeFlags/RuntimeFlags.d.ts +82 -0
- package/RuntimeFlags.d.ts +2 -0
- package/Schedule/api.d.ts +33 -17
- package/Scope/ReleaseMap/definition.d.ts +1 -1
- package/ScopedRef/api.d.ts +1 -1
- package/Sink/api.d.ts +12 -12
- package/Stream/api.d.ts +20 -19
- package/Stream/internal/Handoff.d.ts +1 -1
- package/Stream/internal/Pull.d.ts +2 -2
- package/Subject/Atomic.d.ts +18 -0
- package/Subject/api.d.ts +13 -0
- package/Subject/definition.d.ts +15 -0
- package/Subject.d.ts +3 -0
- package/SubscriptionRef.d.ts +16 -7
- package/TExit/definition.d.ts +2 -2
- package/TFuture/definition.d.ts +2 -2
- package/TReentrantLock/definition.d.ts +3 -3
- package/TRef/api.d.ts +14 -15
- package/TRef/constructors.d.ts +6 -6
- package/TRef/definition.d.ts +47 -34
- package/TRef/symbols.d.ts +20 -0
- package/TRef.d.ts +1 -0
- package/TSemaphore/definition.d.ts +2 -2
- package/_cjs/Cached/api.cjs +1 -24
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/definition.cjs +2 -7
- package/_cjs/Cached/definition.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +0 -3
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/Cached.cjs +0 -6
- package/_cjs/Cached.cjs.map +1 -1
- package/_cjs/CancellerState.cjs +3 -22
- package/_cjs/CancellerState.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs +0 -3
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs +0 -5
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision.cjs +0 -4
- package/_cjs/Channel/ChildExecutorDecision.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +0 -7
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs +0 -6
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest.cjs +0 -4
- package/_cjs/Channel/UpstreamPullRequest.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs +0 -4
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy.cjs +0 -2
- package/_cjs/Channel/UpstreamPullStrategy.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +0 -12
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +42 -0
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs.map +1 -0
- package/_cjs/Channel/api/mergeAll.cjs +0 -4
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +0 -4
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +39 -66
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +0 -5
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +10 -44
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +0 -6
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runCollect.cjs +0 -5
- package/_cjs/Channel/api/runCollect.cjs.map +1 -1
- package/_cjs/Channel/api/runDrain.cjs +0 -5
- package/_cjs/Channel/api/runDrain.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +4 -26
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +4 -26
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/{zipC.cjs → zipConcurrent.cjs} +16 -30
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -0
- package/_cjs/Channel/api.cjs +70 -241
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +6 -30
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +19 -105
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +107 -317
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +5 -37
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeDecision.cjs +4 -27
- package/_cjs/Channel/internal/MergeDecision.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeState.cjs +3 -24
- package/_cjs/Channel/internal/MergeState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +41 -133
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Channel.cjs +0 -6
- package/_cjs/Channel.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +0 -7
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +0 -6
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +2 -12
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Clock.cjs +0 -6
- package/_cjs/Clock.cjs.map +1 -1
- package/_cjs/Console/api.cjs +0 -7
- package/_cjs/Console/api.cjs.map +1 -1
- package/_cjs/Console/definition.cjs +0 -6
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +0 -11
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/Console.cjs +0 -6
- package/_cjs/Console.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +50 -0
- package/_cjs/CountdownLatch.cjs.map +1 -0
- package/_cjs/Differ/api.cjs +0 -23
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Differ/definition.cjs +0 -4
- package/_cjs/Differ/definition.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +72 -0
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -0
- package/_cjs/Fiber/FiberRuntime.cjs +735 -0
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -0
- package/_cjs/Fiber/api/await.cjs +0 -1
- package/_cjs/Fiber/api/await.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +2 -8
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/children.cjs +0 -1
- package/_cjs/Fiber/api/children.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +3 -25
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +0 -5
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/id.cjs +0 -1
- package/_cjs/Fiber/api/id.cjs.map +1 -1
- package/_cjs/Fiber/api/inheritRefs.cjs +1 -2
- package/_cjs/Fiber/api/inheritRefs.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +3 -8
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +2 -12
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +16 -11
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +2 -9
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +3 -6
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +0 -6
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/location.cjs +1 -8
- package/_cjs/Fiber/api/location.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +0 -7
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +1 -18
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/poll.cjs +0 -1
- package/_cjs/Fiber/api/poll.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +2 -18
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +0 -18
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +11 -14
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/Fiber.cjs +15 -85
- package/_cjs/Fiber.cjs.map +1 -1
- package/_cjs/FiberDescriptor.cjs +1 -6
- package/_cjs/FiberDescriptor.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +0 -6
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +0 -5
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +18 -54
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +0 -10
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +5 -23
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +20 -48
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRef.cjs +0 -12
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +62 -22
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +5 -17
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberRefs/join.cjs +34 -56
- package/_cjs/FiberRefs/join.cjs.map +1 -1
- package/_cjs/FiberRefs.cjs +0 -6
- package/_cjs/FiberRefs.cjs.map +1 -1
- package/_cjs/FiberScope/constructors.cjs +0 -4
- package/_cjs/FiberScope/constructors.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +15 -20
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberScope.cjs +0 -4
- package/_cjs/FiberScope.cjs.map +1 -1
- package/_cjs/FiberStatus/constructors.cjs +5 -20
- package/_cjs/FiberStatus/constructors.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +18 -77
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/FiberStatus.cjs +0 -4
- package/_cjs/FiberStatus.cjs.map +1 -1
- package/_cjs/Future/api.cjs +13 -73
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +0 -11
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +2 -15
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Future.cjs +0 -6
- package/_cjs/Future.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +396 -0
- package/_cjs/Hub/api.cjs.map +1 -0
- package/_cjs/Hub/definition.cjs +20 -104
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +105 -172
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/Hub.cjs +4 -8
- package/_cjs/Hub.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +0 -4
- package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs +0 -6
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +0 -4
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +2 -6
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizer.cjs +0 -4
- package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +0 -7
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +7 -15
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/asyncInterrupt.cjs +77 -0
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -0
- package/_cjs/IO/api/bracket.cjs +0 -4
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +1 -8
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/clockWith.cjs +0 -12
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +0 -15
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +0 -7
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +0 -12
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/core-scope.cjs +49 -119
- package/_cjs/IO/api/core-scope.cjs.map +1 -1
- package/_cjs/{Fiber/api/evalOn.cjs → IO/api/delay.cjs} +9 -19
- package/_cjs/IO/api/delay.cjs.map +1 -0
- package/_cjs/IO/api/ensuringChildren.cjs +3 -8
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +0 -29
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/{foreachC.cjs → foreachConcurrent.cjs} +31 -64
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -0
- package/_cjs/IO/api/foreachExec.cjs +2 -9
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/fork.cjs +75 -0
- package/_cjs/IO/api/fork.cjs.map +1 -0
- package/_cjs/IO/api/forkAll.cjs +3 -7
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +1 -9
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +1 -9
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +1 -7
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +59 -91
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +1 -8
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onExit.cjs +0 -5
- package/_cjs/IO/api/onExit.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +0 -8
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +4 -8
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +0 -8
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +0 -5
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +4 -15
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +1 -6
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +0 -12
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +0 -15
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +0 -15
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +0 -10
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +0 -6
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +0 -5
- package/_cjs/IO/api/scopeWith.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +0 -9
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sequenceT.cjs +0 -6
- package/_cjs/IO/api/sequenceT.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +0 -4
- package/_cjs/IO/api/sleep.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs +0 -6
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +6 -16
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +0 -12
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +2 -10
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +0 -7
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +0 -4
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +0 -4
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/{zipC.cjs → zipConcurrent.cjs} +21 -41
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -0
- package/_cjs/IO/api.cjs +152 -665
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +121 -213
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +51 -119
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +41 -123
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +0 -11
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +0 -11
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +0 -5
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/IOEnv.cjs +0 -6
- package/_cjs/IOEnv.cjs.map +1 -1
- package/_cjs/InterruptStatus/constructors.cjs +0 -5
- package/_cjs/InterruptStatus/constructors.cjs.map +1 -1
- package/_cjs/InterruptStatus/definition.cjs +0 -5
- package/_cjs/InterruptStatus/definition.cjs.map +1 -1
- package/_cjs/InterruptStatus.cjs +0 -4
- package/_cjs/InterruptStatus.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +40 -91
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +4 -105
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs +9 -51
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/Layer.cjs +0 -6
- package/_cjs/Layer.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +0 -20
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs +0 -7
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +0 -7
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +2 -17
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Logger/definition.cjs +0 -3
- package/_cjs/Logger/definition.cjs.map +1 -1
- package/_cjs/Logger.cjs +0 -6
- package/_cjs/Logger.cjs.map +1 -1
- package/_cjs/Push/api.cjs +474 -0
- package/_cjs/Push/api.cjs.map +1 -0
- package/_cjs/Push/definition.cjs +43 -0
- package/_cjs/Push/definition.cjs.map +1 -0
- package/_cjs/Push/internal.cjs +40 -0
- package/_cjs/Push/internal.cjs.map +1 -0
- package/_cjs/Push.cjs +39 -0
- package/_cjs/Push.cjs.map +1 -0
- package/_cjs/Queue/api/dimapIO.cjs +174 -0
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -0
- package/_cjs/Queue/api/filterInputIO.cjs +109 -0
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -0
- package/_cjs/Queue/api/filterOutputIO.cjs +117 -0
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -0
- package/_cjs/Queue/api/operations.cjs +133 -0
- package/_cjs/Queue/api/operations.cjs.map +1 -0
- package/_cjs/{IO/api/withRuntimeConfig.cjs → Queue/api/poll.cjs} +10 -16
- package/_cjs/Queue/api/poll.cjs.map +1 -0
- package/_cjs/Queue/api/takeBetween.cjs +47 -0
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -0
- package/_cjs/Queue/api/zipWithIO.cjs +82 -0
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -0
- package/_cjs/Queue/api.cjs +83 -0
- package/_cjs/Queue/api.cjs.map +1 -0
- package/_cjs/Queue/constructors.cjs +5 -32
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +24 -192
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +142 -42
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +13 -54
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Queue.cjs +22 -6
- package/_cjs/Queue.cjs.map +1 -1
- package/_cjs/Random/api.cjs +0 -17
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +0 -7
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +0 -14
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Random.cjs +0 -6
- package/_cjs/Random.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +26 -21
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +46 -0
- package/_cjs/Ref/Derived.cjs.map +1 -0
- package/_cjs/Ref/DerivedAll.cjs +49 -0
- package/_cjs/Ref/DerivedAll.cjs.map +1 -0
- package/_cjs/Ref/Synchronized/api.cjs +192 -0
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -0
- package/_cjs/{Fiber/api/evalOnIO.cjs → Ref/Synchronized/constructors.cjs} +12 -23
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -0
- package/_cjs/Ref/Synchronized/definition.cjs +65 -0
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -0
- package/_cjs/Ref/Synchronized.cjs +33 -134
- package/_cjs/Ref/Synchronized.cjs.map +1 -1
- package/_cjs/{FiberState/constructors.cjs → Ref/api/collect.cjs} +16 -34
- package/_cjs/Ref/api/collect.cjs.map +1 -0
- package/_cjs/Ref/api/dimap.cjs +105 -0
- package/_cjs/Ref/api/dimap.cjs.map +1 -0
- package/_cjs/Ref/api/filter.cjs +40 -0
- package/_cjs/Ref/api/filter.cjs.map +1 -0
- package/_cjs/Ref/api/get.cjs +18 -0
- package/_cjs/Ref/api/get.cjs.map +1 -0
- package/_cjs/Ref/api/match.cjs +24 -0
- package/_cjs/Ref/api/match.cjs.map +1 -0
- package/_cjs/Ref/api/matchAll.cjs +22 -0
- package/_cjs/Ref/api/matchAll.cjs.map +1 -0
- package/_cjs/Ref/api/modify.cjs +141 -0
- package/_cjs/Ref/api/modify.cjs.map +1 -0
- package/_cjs/Ref/api/set.cjs +21 -0
- package/_cjs/Ref/api/set.cjs.map +1 -0
- package/_cjs/Ref/api.cjs +134 -0
- package/_cjs/Ref/api.cjs.map +1 -0
- package/_cjs/Ref/constructors.cjs +4 -30
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +16 -107
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Ref/symbols.cjs +37 -0
- package/_cjs/Ref/symbols.cjs.map +1 -0
- package/_cjs/Ref.cjs +77 -8
- package/_cjs/Ref.cjs.map +1 -1
- package/_cjs/RefSubject/Atomic.cjs +109 -0
- package/_cjs/RefSubject/Atomic.cjs.map +1 -0
- package/_cjs/RefSubject/Synchronized/api.cjs +23 -0
- package/_cjs/RefSubject/Synchronized/api.cjs.map +1 -0
- package/_cjs/RefSubject/Synchronized/definition.cjs +56 -0
- package/_cjs/RefSubject/Synchronized/definition.cjs.map +1 -0
- package/_cjs/RefSubject/api.cjs +245 -0
- package/_cjs/RefSubject/api.cjs.map +1 -0
- package/_cjs/{FiberState/api.cjs → RefSubject/definition.cjs} +12 -16
- package/_cjs/RefSubject/definition.cjs.map +1 -0
- package/_cjs/{FiberState.cjs → RefSubject.cjs} +7 -13
- package/_cjs/RefSubject.cjs.map +1 -0
- package/_cjs/Reloadable/api.cjs +3 -18
- package/_cjs/Reloadable/api.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +5 -32
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +0 -14
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/Reloadable.cjs +0 -6
- package/_cjs/Reloadable.cjs.map +1 -1
- package/_cjs/RuntimeConfig.cjs +1 -44
- package/_cjs/RuntimeConfig.cjs.map +1 -1
- package/_cjs/RuntimeFlag.cjs +6 -0
- package/_cjs/RuntimeFlag.cjs.map +1 -0
- package/_cjs/RuntimeFlags/Patch.cjs +76 -0
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -0
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +107 -0
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -0
- package/_cjs/RuntimeFlags.cjs +28 -0
- package/_cjs/RuntimeFlags.cjs.map +1 -0
- package/_cjs/STM/api/core-api.cjs +0 -16
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs +0 -15
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +5 -143
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +9 -72
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +9 -62
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +5 -32
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs +0 -20
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +17 -113
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM/internal/TryCommit.cjs +2 -12
- package/_cjs/STM/internal/TryCommit.cjs.map +1 -1
- package/_cjs/STM/internal/Versioned.cjs +0 -3
- package/_cjs/STM/internal/Versioned.cjs.map +1 -1
- package/_cjs/STM.cjs +0 -10
- package/_cjs/STM.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +4 -30
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/Driver.cjs +0 -5
- package/_cjs/Schedule/Driver.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +16 -28
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +109 -252
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Schedule/definition.cjs +0 -2
- package/_cjs/Schedule/definition.cjs.map +1 -1
- package/_cjs/Schedule.cjs +0 -8
- package/_cjs/Schedule.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +0 -6
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/Finalizer.cjs +0 -2
- package/_cjs/Scope/Finalizer.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +4 -15
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +12 -33
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +1 -12
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +0 -9
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap.cjs +0 -6
- package/_cjs/Scope/ReleaseMap.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +0 -42
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +0 -12
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/Scope.cjs +0 -4
- package/_cjs/Scope.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +9 -24
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +0 -4
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/ScopedRef.cjs +0 -4
- package/_cjs/ScopedRef.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +134 -384
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Sink/definition.cjs +0 -3
- package/_cjs/Sink/definition.cjs.map +1 -1
- package/_cjs/Sink.cjs +0 -4
- package/_cjs/Sink.cjs.map +1 -1
- package/_cjs/State/api.cjs +0 -18
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/State/definition.cjs +2 -7
- package/_cjs/State/definition.cjs.map +1 -1
- package/_cjs/State/internal.cjs +0 -3
- package/_cjs/State/internal.cjs.map +1 -1
- package/_cjs/State.cjs +0 -4
- package/_cjs/State.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +2 -31
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +0 -5
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +2 -22
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +237 -685
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs +0 -8
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +6 -36
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +13 -61
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +10 -31
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +4 -21
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +0 -51
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +0 -10
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Stream.cjs +0 -4
- package/_cjs/Stream.cjs.map +1 -1
- package/_cjs/{FiberState/definition.cjs → Subject/Atomic.cjs} +21 -36
- package/_cjs/Subject/Atomic.cjs.map +1 -0
- package/_cjs/Subject/api.cjs +28 -0
- package/_cjs/Subject/api.cjs.map +1 -0
- package/_cjs/Subject/definition.cjs +11 -0
- package/_cjs/Subject/definition.cjs.map +1 -0
- package/_cjs/Subject.cjs +39 -0
- package/_cjs/Subject.cjs.map +1 -0
- package/_cjs/SubscriptionRef.cjs +22 -36
- package/_cjs/SubscriptionRef.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +4 -21
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +0 -24
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +5 -43
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/Supervisor.cjs +0 -6
- package/_cjs/Supervisor.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +10 -64
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/constructors.cjs +0 -12
- package/_cjs/TExit/constructors.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +14 -76
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TExit.cjs +0 -4
- package/_cjs/TExit.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +0 -22
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +0 -12
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +0 -4
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TFuture.cjs +0 -6
- package/_cjs/TFuture.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +16 -90
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +3 -34
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock.cjs +0 -4
- package/_cjs/TReentrantLock.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +23 -248
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +0 -19
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +80 -30
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TRef/symbols.cjs +27 -0
- package/_cjs/TRef/symbols.cjs.map +1 -0
- package/_cjs/TRef.cjs +11 -6
- package/_cjs/TRef.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +4 -27
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +0 -13
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +0 -4
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/TSemaphore.cjs +0 -6
- package/_cjs/TSemaphore.cjs.map +1 -1
- package/_cjs/TxnId.cjs +0 -3
- package/_cjs/TxnId.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +0 -7
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +0 -7
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +0 -7
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +0 -12
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +0 -5
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +0 -9
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs +0 -12
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +0 -6
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/HashedPair.cjs +4 -15
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +0 -164
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +10 -52
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +0 -68
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +0 -18
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +0 -9
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs +1 -8
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Cached/definition.mjs +2 -4
- package/_mjs/Cached/definition.mjs.map +1 -1
- package/_mjs/Cached/internal.mjs +0 -1
- package/_mjs/Cached/internal.mjs.map +1 -1
- package/_mjs/Cached.mjs.map +1 -1
- package/_mjs/CancellerState.mjs +6 -15
- package/_mjs/CancellerState.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs +0 -2
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs +0 -2
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +0 -4
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs +0 -2
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs +0 -1
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy.mjs.map +1 -1
- package/_mjs/Channel/api/interruptWhen.mjs +0 -3
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs +34 -0
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs.map +1 -0
- package/_mjs/Channel/api/mergeAll.mjs +0 -1
- package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +0 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +39 -38
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeMap.mjs +0 -1
- package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +10 -28
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +0 -1
- package/_mjs/Channel/api/run.mjs.map +1 -1
- package/_mjs/Channel/api/runCollect.mjs +0 -1
- package/_mjs/Channel/api/runCollect.mjs.map +1 -1
- package/_mjs/Channel/api/runDrain.mjs +0 -1
- package/_mjs/Channel/api/runDrain.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +4 -19
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs +4 -17
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api/zipConcurrent.mjs +32 -0
- package/_mjs/Channel/api/zipConcurrent.mjs.map +1 -0
- package/_mjs/Channel/api.mjs +69 -186
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +4 -21
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +31 -66
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +107 -286
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelState.mjs +5 -20
- package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeDecision.mjs +5 -16
- package/_mjs/Channel/internal/MergeDecision.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeState.mjs +6 -15
- package/_mjs/Channel/internal/MergeState.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +44 -106
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Channel.mjs.map +1 -1
- package/_mjs/Clock/api.mjs +0 -2
- package/_mjs/Clock/api.mjs.map +1 -1
- package/_mjs/Clock/definition.mjs +0 -2
- package/_mjs/Clock/definition.mjs.map +1 -1
- package/_mjs/Clock/live.mjs +2 -6
- package/_mjs/Clock/live.mjs.map +1 -1
- package/_mjs/Clock.mjs.map +1 -1
- package/_mjs/Console/api.mjs +0 -2
- package/_mjs/Console/api.mjs.map +1 -1
- package/_mjs/Console/definition.mjs +0 -2
- package/_mjs/Console/definition.mjs.map +1 -1
- package/_mjs/Console/live.mjs +0 -4
- package/_mjs/Console/live.mjs.map +1 -1
- package/_mjs/Console.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +39 -0
- package/_mjs/CountdownLatch.mjs.map +1 -0
- package/_mjs/Differ/api.mjs +0 -15
- package/_mjs/Differ/api.mjs.map +1 -1
- package/_mjs/Differ/definition.mjs +0 -2
- package/_mjs/Differ/definition.mjs.map +1 -1
- package/_mjs/Fiber/FiberMessage.mjs +56 -0
- package/_mjs/Fiber/FiberMessage.mjs.map +1 -0
- package/_mjs/Fiber/FiberRuntime.mjs +728 -0
- package/_mjs/Fiber/FiberRuntime.mjs.map +1 -0
- package/_mjs/Fiber/api/await.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +2 -3
- package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
- package/_mjs/Fiber/api/children.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +3 -4
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/fromIO.mjs +0 -1
- package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
- package/_mjs/Fiber/api/id.mjs.map +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +3 -4
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +2 -5
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +14 -8
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs +2 -5
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/api/join.mjs +3 -3
- package/_mjs/Fiber/api/join.mjs.map +1 -1
- package/_mjs/Fiber/api/joinAll.mjs +0 -1
- package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
- package/_mjs/Fiber/api/location.mjs +1 -3
- package/_mjs/Fiber/api/location.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +0 -1
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +1 -4
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/poll.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +2 -3
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/constructors.mjs +0 -6
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs +9 -5
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/Fiber.mjs +3 -5
- package/_mjs/Fiber.mjs.map +1 -1
- package/_mjs/FiberDescriptor.mjs +1 -4
- package/_mjs/FiberDescriptor.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +0 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +0 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +16 -34
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +0 -3
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/definition.mjs +5 -10
- package/_mjs/FiberRef/definition.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +17 -30
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRef.mjs +2 -2
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +55 -11
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/definition.mjs +2 -13
- package/_mjs/FiberRefs/definition.mjs.map +1 -1
- package/_mjs/FiberRefs/join.mjs +34 -46
- package/_mjs/FiberRefs/join.mjs.map +1 -1
- package/_mjs/FiberRefs.mjs.map +1 -1
- package/_mjs/FiberScope/constructors.mjs +0 -2
- package/_mjs/FiberScope/constructors.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs +15 -12
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberScope.mjs.map +1 -1
- package/_mjs/FiberStatus/constructors.mjs +5 -15
- package/_mjs/FiberStatus/constructors.mjs.map +1 -1
- package/_mjs/FiberStatus/definition.mjs +14 -66
- package/_mjs/FiberStatus/definition.mjs.map +1 -1
- package/_mjs/FiberStatus.mjs.map +1 -1
- package/_mjs/Future/api.mjs +13 -54
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +0 -4
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +3 -9
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Future.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +359 -0
- package/_mjs/Hub/api.mjs.map +1 -0
- package/_mjs/Hub/definition.mjs +15 -84
- package/_mjs/Hub/definition.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +104 -147
- 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/acquireRelease.mjs +0 -1
- package/_mjs/IO/api/acquireRelease.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs +0 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs +0 -1
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +2 -2
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizer.mjs +0 -1
- package/_mjs/IO/api/addFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs +0 -1
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +7 -7
- package/_mjs/IO/api/asyncIO.mjs.map +1 -1
- package/_mjs/IO/api/asyncInterrupt.mjs +65 -0
- package/_mjs/IO/api/asyncInterrupt.mjs.map +1 -0
- package/_mjs/IO/api/bracket.mjs +0 -1
- package/_mjs/IO/api/bracket.mjs.map +1 -1
- package/_mjs/IO/api/bracketExit.mjs +1 -2
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/clockWith.mjs +0 -3
- package/_mjs/IO/api/clockWith.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +0 -5
- package/_mjs/IO/api/concurrency.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +0 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/consoleWith.mjs +0 -3
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/core-scope.mjs +46 -88
- package/_mjs/IO/api/core-scope.mjs.map +1 -1
- package/_mjs/IO/api/delay.mjs +12 -0
- package/_mjs/IO/api/delay.mjs.map +1 -0
- package/_mjs/IO/api/ensuringChildren.mjs +3 -3
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +0 -15
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/{foreachC.mjs → foreachConcurrent.mjs} +29 -41
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -0
- package/_mjs/IO/api/foreachExec.mjs +2 -3
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs +64 -0
- package/_mjs/IO/api/fork.mjs.map +1 -0
- package/_mjs/IO/api/forkAll.mjs +3 -3
- package/_mjs/IO/api/forkAll.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +1 -2
- package/_mjs/IO/api/forkIn.mjs.map +1 -1
- package/_mjs/IO/api/forkScoped.mjs +1 -2
- package/_mjs/IO/api/forkScoped.mjs.map +1 -1
- package/_mjs/IO/api/fulfill.mjs +1 -2
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +53 -72
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/memoize.mjs +1 -2
- package/_mjs/IO/api/memoize.mjs.map +1 -1
- package/_mjs/IO/api/onExit.mjs +0 -1
- package/_mjs/IO/api/onExit.mjs.map +1 -1
- package/_mjs/IO/api/onTermination.mjs +0 -1
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/once.mjs +4 -4
- package/_mjs/IO/api/once.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +0 -1
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +0 -1
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +4 -6
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +1 -2
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +0 -3
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +0 -5
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +0 -6
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +0 -4
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scope.mjs +0 -1
- package/_mjs/IO/api/scope.mjs.map +1 -1
- package/_mjs/IO/api/scopeWith.mjs +0 -1
- package/_mjs/IO/api/scopeWith.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +0 -3
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/sequenceT.mjs +0 -1
- package/_mjs/IO/api/sequenceT.mjs.map +1 -1
- package/_mjs/IO/api/sleep.mjs +0 -1
- package/_mjs/IO/api/sleep.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs +0 -1
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +6 -12
- package/_mjs/IO/api/supervised.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +0 -3
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/withChildren.mjs +2 -4
- package/_mjs/IO/api/withChildren.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +0 -1
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizer.mjs +0 -1
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +0 -1
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/zipConcurrent.mjs +41 -0
- package/_mjs/IO/api/zipConcurrent.mjs.map +1 -0
- package/_mjs/IO/api.mjs +140 -516
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +107 -150
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +51 -86
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +7 -5
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs +0 -1
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/IOEnv/live.mjs +0 -1
- package/_mjs/IOEnv/live.mjs.map +1 -1
- package/_mjs/IOEnv/services.mjs +0 -1
- package/_mjs/IOEnv/services.mjs.map +1 -1
- package/_mjs/IOEnv.mjs.map +1 -1
- package/_mjs/InterruptStatus/constructors.mjs +0 -3
- package/_mjs/InterruptStatus/constructors.mjs.map +1 -1
- package/_mjs/InterruptStatus/definition.mjs +0 -3
- package/_mjs/InterruptStatus/definition.mjs.map +1 -1
- package/_mjs/InterruptStatus.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +38 -65
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +4 -69
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs +15 -34
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/Layer.mjs.map +1 -1
- package/_mjs/LogLevel.mjs +0 -13
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs +0 -4
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs +0 -2
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs +2 -10
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Logger/definition.mjs +0 -1
- package/_mjs/Logger/definition.mjs.map +1 -1
- package/_mjs/Logger.mjs.map +1 -1
- package/_mjs/Push/api.mjs +417 -0
- package/_mjs/Push/api.mjs.map +1 -0
- package/_mjs/Push/definition.mjs +33 -0
- package/_mjs/Push/definition.mjs.map +1 -0
- package/_mjs/Push/internal.mjs +26 -0
- package/_mjs/Push/internal.mjs.map +1 -0
- package/_mjs/Push.mjs +5 -0
- package/_mjs/Push.mjs.map +1 -0
- package/_mjs/Queue/api/dimapIO.mjs +156 -0
- package/_mjs/Queue/api/dimapIO.mjs.map +1 -0
- package/_mjs/Queue/api/filterInputIO.mjs +98 -0
- package/_mjs/Queue/api/filterInputIO.mjs.map +1 -0
- package/_mjs/Queue/api/filterOutputIO.mjs +106 -0
- package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -0
- package/_mjs/Queue/api/operations.mjs +118 -0
- package/_mjs/Queue/api/operations.mjs.map +1 -0
- package/_mjs/Queue/api/poll.mjs +13 -0
- package/_mjs/Queue/api/poll.mjs.map +1 -0
- package/_mjs/Queue/api/takeBetween.mjs +39 -0
- package/_mjs/Queue/api/takeBetween.mjs.map +1 -0
- package/_mjs/Queue/api/zipWithIO.mjs +71 -0
- package/_mjs/Queue/api/zipWithIO.mjs.map +1 -0
- package/_mjs/Queue/api.mjs +9 -0
- package/_mjs/Queue/api.mjs.map +1 -0
- package/_mjs/Queue/constructors.mjs +5 -20
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/definition.mjs +17 -172
- package/_mjs/Queue/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +141 -28
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +13 -37
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Queue.mjs +3 -1
- package/_mjs/Queue.mjs.map +1 -1
- package/_mjs/Random/api.mjs +0 -8
- package/_mjs/Random/api.mjs.map +1 -1
- package/_mjs/Random/definition.mjs +0 -2
- package/_mjs/Random/definition.mjs.map +1 -1
- package/_mjs/Random/live.mjs +0 -7
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Random.mjs.map +1 -1
- package/_mjs/Ref/Atomic.mjs +25 -15
- package/_mjs/Ref/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Derived.mjs +37 -0
- package/_mjs/Ref/Derived.mjs.map +1 -0
- package/_mjs/Ref/DerivedAll.mjs +39 -0
- package/_mjs/Ref/DerivedAll.mjs.map +1 -0
- package/_mjs/Ref/Synchronized/api.mjs +168 -0
- package/_mjs/Ref/Synchronized/api.mjs.map +1 -0
- package/_mjs/Ref/Synchronized/constructors.mjs +14 -0
- package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -0
- package/_mjs/Ref/Synchronized/definition.mjs +54 -0
- package/_mjs/Ref/Synchronized/definition.mjs.map +1 -0
- package/_mjs/Ref/Synchronized.mjs +4 -122
- package/_mjs/Ref/Synchronized.mjs.map +1 -1
- package/_mjs/Ref/api/collect.mjs +18 -0
- package/_mjs/Ref/api/collect.mjs.map +1 -0
- package/_mjs/Ref/api/dimap.mjs +88 -0
- package/_mjs/Ref/api/dimap.mjs.map +1 -0
- package/_mjs/Ref/api/filter.mjs +31 -0
- package/_mjs/Ref/api/filter.mjs.map +1 -0
- package/_mjs/Ref/api/get.mjs +12 -0
- package/_mjs/Ref/api/get.mjs.map +1 -0
- package/_mjs/Ref/api/match.mjs +18 -0
- package/_mjs/Ref/api/match.mjs.map +1 -0
- package/_mjs/Ref/api/matchAll.mjs +16 -0
- package/_mjs/Ref/api/matchAll.mjs.map +1 -0
- package/_mjs/Ref/api/modify.mjs +124 -0
- package/_mjs/Ref/api/modify.mjs.map +1 -0
- package/_mjs/Ref/api/set.mjs +15 -0
- package/_mjs/Ref/api/set.mjs.map +1 -0
- package/_mjs/Ref/api.mjs +32 -0
- package/_mjs/Ref/api.mjs.map +1 -0
- package/_mjs/Ref/constructors.mjs +3 -18
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs +12 -97
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/Ref/symbols.mjs +25 -0
- package/_mjs/Ref/symbols.mjs.map +1 -0
- package/_mjs/Ref.mjs +9 -0
- package/_mjs/Ref.mjs.map +1 -1
- package/_mjs/RefSubject/Atomic.mjs +100 -0
- package/_mjs/RefSubject/Atomic.mjs.map +1 -0
- package/_mjs/RefSubject/Synchronized/api.mjs +15 -0
- package/_mjs/RefSubject/Synchronized/api.mjs.map +1 -0
- package/_mjs/RefSubject/Synchronized/definition.mjs +45 -0
- package/_mjs/RefSubject/Synchronized/definition.mjs.map +1 -0
- package/_mjs/RefSubject/api.mjs +220 -0
- package/_mjs/RefSubject/api.mjs.map +1 -0
- package/_mjs/RefSubject/definition.mjs +11 -0
- package/_mjs/RefSubject/definition.mjs.map +1 -0
- package/_mjs/RefSubject.mjs +5 -0
- package/_mjs/RefSubject.mjs.map +1 -0
- package/_mjs/Reloadable/api.mjs +3 -12
- package/_mjs/Reloadable/api.mjs.map +1 -1
- package/_mjs/Reloadable/constructors.mjs +5 -17
- package/_mjs/Reloadable/constructors.mjs.map +1 -1
- package/_mjs/Reloadable/definition.mjs +0 -6
- package/_mjs/Reloadable/definition.mjs.map +1 -1
- package/_mjs/Reloadable.mjs.map +1 -1
- package/_mjs/RuntimeConfig.mjs +0 -31
- package/_mjs/RuntimeConfig.mjs.map +1 -1
- package/_mjs/RuntimeFlag.mjs +2 -0
- package/_mjs/RuntimeFlag.mjs.map +1 -0
- package/_mjs/RuntimeFlags/Patch.mjs +58 -0
- package/_mjs/RuntimeFlags/Patch.mjs.map +1 -0
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs +82 -0
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs.map +1 -0
- package/_mjs/RuntimeFlags.mjs +4 -0
- package/_mjs/RuntimeFlags.mjs.map +1 -0
- package/_mjs/STM/api/core-api.mjs +0 -8
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api/core-constructors.mjs +0 -8
- package/_mjs/STM/api/core-constructors.mjs.map +1 -1
- package/_mjs/STM/api.mjs +5 -88
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/definition.mjs +14 -36
- package/_mjs/STM/definition.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +9 -51
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/CommitState.mjs +5 -25
- package/_mjs/STM/internal/CommitState.mjs.map +1 -1
- package/_mjs/STM/internal/Entry.mjs +0 -12
- package/_mjs/STM/internal/Entry.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +17 -99
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM/internal/TryCommit.mjs +3 -8
- package/_mjs/STM/internal/TryCommit.mjs.map +1 -1
- package/_mjs/STM/internal/Versioned.mjs +0 -1
- package/_mjs/STM/internal/Versioned.mjs.map +1 -1
- package/_mjs/STM.mjs +2 -2
- package/_mjs/STM.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +6 -19
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/Driver.mjs +0 -2
- package/_mjs/Schedule/Driver.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +16 -16
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +100 -187
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Schedule/definition.mjs.map +1 -1
- package/_mjs/Schedule.mjs.map +1 -1
- package/_mjs/Scope/Finalizer/definition.mjs +0 -1
- package/_mjs/Scope/Finalizer/definition.mjs.map +1 -1
- package/_mjs/Scope/Finalizer.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +4 -5
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +12 -22
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/constructors.mjs +1 -4
- package/_mjs/Scope/ReleaseMap/constructors.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/definition.mjs +0 -2
- package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +0 -23
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/Scope/definition.mjs +0 -4
- package/_mjs/Scope/definition.mjs.map +1 -1
- package/_mjs/Scope.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +9 -11
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef/definition.mjs +0 -2
- package/_mjs/ScopedRef/definition.mjs.map +1 -1
- package/_mjs/ScopedRef.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +130 -292
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/Sink/definition.mjs +0 -1
- package/_mjs/Sink/definition.mjs.map +1 -1
- package/_mjs/Sink.mjs.map +1 -1
- package/_mjs/State/api.mjs +0 -7
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/State/definition.mjs +2 -4
- package/_mjs/State/definition.mjs.map +1 -1
- package/_mjs/State/internal.mjs +0 -1
- package/_mjs/State/internal.mjs.map +1 -1
- package/_mjs/State.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +2 -19
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +0 -1
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +2 -14
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +232 -544
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs +0 -4
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +9 -27
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +13 -34
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +10 -16
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +5 -16
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +0 -22
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs +0 -3
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/Stream.mjs.map +1 -1
- package/_mjs/Subject/Atomic.mjs +22 -0
- package/_mjs/Subject/Atomic.mjs.map +1 -0
- package/_mjs/Subject/api.mjs +18 -0
- package/_mjs/Subject/api.mjs.map +1 -0
- package/_mjs/Subject/definition.mjs +3 -0
- package/_mjs/Subject/definition.mjs.map +1 -0
- package/_mjs/Subject.mjs +5 -0
- package/_mjs/Subject.mjs.map +1 -0
- package/_mjs/SubscriptionRef.mjs +19 -23
- package/_mjs/SubscriptionRef.mjs.map +1 -1
- package/_mjs/Supervisor/api.mjs +4 -15
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +0 -12
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +5 -31
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/Supervisor.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +13 -44
- package/_mjs/SupervisorPatch.mjs.map +1 -1
- package/_mjs/TExit/constructors.mjs +0 -6
- package/_mjs/TExit/constructors.mjs.map +1 -1
- package/_mjs/TExit/definition.mjs +14 -57
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TExit.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +0 -6
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +0 -3
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TFuture.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +16 -64
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +3 -22
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +20 -222
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/constructors.mjs +0 -7
- package/_mjs/TRef/constructors.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +80 -15
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TRef/symbols.mjs +17 -0
- package/_mjs/TRef/symbols.mjs.map +1 -0
- package/_mjs/TRef.mjs +1 -0
- package/_mjs/TRef.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +4 -14
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +0 -4
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/TSemaphore/definition.mjs.map +1 -1
- package/_mjs/TSemaphore.mjs.map +1 -1
- package/_mjs/TxnId.mjs +0 -1
- package/_mjs/TxnId.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +0 -3
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +0 -3
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +0 -3
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +0 -7
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +0 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +0 -4
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +0 -1
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/internal/HashedPair.mjs +4 -7
- package/_mjs/internal/HashedPair.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs +0 -147
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +12 -41
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs +0 -49
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/Scheduler.mjs +0 -11
- package/_mjs/internal/Scheduler.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs +0 -3
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/Channel/api/{mapOutIOC.ts → mapOutConcurrentIO.ts} +8 -5
- package/_src/Channel/api/mergeAllWith.ts +6 -6
- package/_src/Channel/api/mergeWith.ts +5 -5
- package/_src/Channel/api/{zipC.ts → zipConcurrent.ts} +10 -10
- package/_src/Channel/api.ts +17 -17
- package/_src/Channel/core-api.ts +4 -4
- package/_src/Channel/internal/ChannelExecutor.ts +11 -11
- package/_src/Channel/internal/SingleProducerAsyncInput.ts +1 -1
- package/_src/CountdownLatch.ts +39 -0
- package/_src/Fiber/FiberMessage.ts +78 -0
- package/_src/Fiber/FiberRuntime.ts +822 -0
- package/_src/Fiber/api/awaitAll.ts +1 -1
- package/_src/Fiber/api/collectAll.ts +3 -2
- package/_src/Fiber/api/inheritRefs.ts +1 -1
- package/_src/Fiber/api/interrupt.ts +1 -2
- package/_src/Fiber/api/interruptAs.ts +11 -6
- package/_src/Fiber/api/interruptFork.ts +1 -1
- package/_src/Fiber/api/location.ts +2 -2
- package/_src/Fiber/api/zipWith.ts +1 -1
- package/_src/Fiber/definition.ts +30 -15
- package/_src/Fiber.ts +2 -4
- package/_src/FiberDescriptor.ts +1 -8
- package/_src/FiberRef/api.ts +13 -17
- package/_src/FiberRef/unsafe.ts +6 -1
- package/_src/FiberRefs/api.ts +56 -3
- package/_src/FiberRefs/definition.ts +15 -7
- package/_src/FiberRefs/join.ts +5 -5
- package/_src/FiberScope/constructors.ts +2 -2
- package/_src/FiberScope/definition.ts +21 -9
- package/_src/FiberStatus/constructors.ts +6 -18
- package/_src/FiberStatus/definition.ts +13 -54
- package/_src/Hub/api.ts +449 -0
- package/_src/Hub/definition.ts +102 -93
- package/_src/Hub/internal.ts +165 -115
- package/_src/Hub.ts +1 -1
- package/_src/IO/api/asyncInterrupt.ts +77 -0
- package/_src/IO/api/core-scope.ts +70 -89
- package/_src/IO/api/delay.ts +8 -0
- package/_src/IO/api/{foreachC.ts → foreachConcurrent.ts} +8 -8
- package/_src/IO/api/foreachExec.ts +2 -2
- package/_src/IO/api/fork.ts +83 -0
- package/_src/IO/api/interrupt.ts +74 -54
- package/_src/IO/api/race.ts +4 -4
- package/_src/IO/api/supervised.ts +7 -9
- package/_src/IO/api/withChildren.ts +2 -4
- package/_src/IO/api/{zipC.ts → zipConcurrent.ts} +9 -9
- package/_src/IO/api.ts +86 -265
- package/_src/IO/definition.ts +153 -152
- package/_src/IO/runtime.ts +62 -61
- package/_src/IO.ts +6 -3
- package/_src/Layer/MemoMap.ts +2 -2
- package/_src/Push/api.ts +702 -0
- package/_src/Push/definition.ts +42 -0
- package/_src/Push/internal.ts +39 -0
- package/_src/Push.ts +5 -0
- package/_src/Queue/api/dimapIO.ts +207 -0
- package/_src/Queue/api/filterInputIO.ts +120 -0
- package/_src/Queue/api/filterOutputIO.ts +136 -0
- package/_src/Queue/api/operations.ts +141 -0
- package/_src/Queue/api/poll.ts +16 -0
- package/_src/Queue/api/takeBetween.ts +44 -0
- package/_src/Queue/api/zipWithIO.ts +110 -0
- package/_src/Queue/api.ts +9 -0
- package/_src/Queue/constructors.ts +6 -22
- package/_src/Queue/definition.ts +188 -216
- package/_src/Queue/internal.ts +159 -2
- package/_src/Queue/strategy.ts +3 -3
- package/_src/Queue.ts +3 -1
- package/_src/Ref/Atomic.ts +43 -10
- package/_src/Ref/Derived.ts +92 -0
- package/_src/Ref/DerivedAll.ts +99 -0
- package/_src/Ref/Synchronized/api.ts +248 -0
- package/_src/Ref/Synchronized/constructors.ts +12 -0
- package/_src/Ref/Synchronized/definition.ts +133 -0
- package/_src/Ref/Synchronized.ts +5 -107
- package/_src/Ref/api/collect.ts +17 -0
- package/_src/Ref/api/dimap.ts +102 -0
- package/_src/Ref/api/filter.ts +31 -0
- package/_src/Ref/api/get.ts +14 -0
- package/_src/Ref/api/match.ts +25 -0
- package/_src/Ref/api/matchAll.ts +24 -0
- package/_src/Ref/api/modify.ts +133 -0
- package/_src/Ref/api/set.ts +17 -0
- package/_src/Ref/api.ts +39 -0
- package/_src/Ref/constructors.ts +2 -15
- package/_src/Ref/definition.ts +113 -81
- package/_src/Ref/symbols.ts +29 -0
- package/_src/Ref.ts +10 -0
- package/_src/RefSubject/Atomic.ts +120 -0
- package/_src/RefSubject/Synchronized/api.ts +14 -0
- package/_src/RefSubject/Synchronized/definition.ts +72 -0
- package/_src/RefSubject/api.ts +240 -0
- package/_src/RefSubject/definition.ts +62 -0
- package/_src/RefSubject.ts +5 -0
- package/_src/RuntimeConfig.ts +0 -29
- package/_src/RuntimeFlag.ts +10 -0
- package/_src/RuntimeFlags/Patch.ts +79 -0
- package/_src/RuntimeFlags/RuntimeFlags.ts +112 -0
- package/_src/RuntimeFlags.ts +4 -0
- package/_src/STM/api.ts +1 -1
- package/_src/STM/internal/Journal.ts +1 -1
- package/_src/Schedule/api/driver.ts +2 -2
- package/_src/Schedule/api.ts +60 -38
- package/_src/Scope/ReleaseMap/api/releaseAll.ts +4 -3
- package/_src/Scope/ReleaseMap/constructors.ts +1 -1
- package/_src/Sink/api.ts +15 -12
- package/_src/Stream/api/zipAllWith.ts +1 -1
- package/_src/Stream/api/zipWithChunks.ts +1 -1
- package/_src/Stream/api.ts +91 -81
- package/_src/Stream/internal/Handoff.ts +3 -3
- package/_src/Stream/internal/Pull.ts +2 -1
- package/_src/Subject/Atomic.ts +28 -0
- package/_src/Subject/api.ts +18 -0
- package/_src/Subject/definition.ts +18 -0
- package/_src/Subject.ts +5 -0
- package/_src/SubscriptionRef.ts +21 -7
- package/_src/Supervisor/api.ts +2 -2
- package/_src/TFuture/definition.ts +2 -2
- package/_src/TReentrantLock/api.ts +4 -4
- package/_src/TReentrantLock/definition.ts +1 -1
- package/_src/TRef/api.ts +32 -200
- package/_src/TRef/constructors.ts +6 -6
- package/_src/TRef/definition.ts +162 -34
- package/_src/TRef/symbols.ts +19 -0
- package/_src/TRef.ts +1 -0
- package/_src/TSemaphore/api.ts +1 -1
- package/_src/TSemaphore/definition.ts +1 -1
- package/_src/global.ts +9 -5
- package/_src/index.ts +7 -1
- package/global.d.ts +9 -5
- package/index.d.ts +7 -1
- package/internal/HashedPair.d.ts +2 -2
- package/package.json +4 -4
- package/Channel/api/mapOutIOC.d.ts +0 -8
- package/Channel/api/zipC.d.ts +0 -16
- package/Fiber/FiberContext.d.ts +0 -153
- package/Fiber/api/evalOn.d.ts +0 -7
- package/Fiber/api/evalOnIO.d.ts +0 -9
- package/Fiber/api/interruptAsFork.d.ts +0 -8
- package/FiberState/api.d.ts +0 -7
- package/FiberState/constructors.d.ts +0 -22
- package/FiberState/definition.d.ts +0 -38
- package/FiberState.d.ts +0 -3
- package/Hub/constructors.d.ts +0 -49
- package/IO/api/withRuntimeConfig.d.ts +0 -10
- package/IO/api/zipC.d.ts +0 -13
- package/_cjs/Channel/api/mapOutIOC.cjs +0 -63
- package/_cjs/Channel/api/mapOutIOC.cjs.map +0 -1
- package/_cjs/Channel/api/zipC.cjs.map +0 -1
- package/_cjs/Fiber/FiberContext.cjs +0 -1088
- package/_cjs/Fiber/FiberContext.cjs.map +0 -1
- package/_cjs/Fiber/api/evalOn.cjs.map +0 -1
- package/_cjs/Fiber/api/evalOnIO.cjs.map +0 -1
- package/_cjs/Fiber/api/interruptAsFork.cjs +0 -17
- package/_cjs/Fiber/api/interruptAsFork.cjs.map +0 -1
- package/_cjs/FiberState/api.cjs.map +0 -1
- package/_cjs/FiberState/constructors.cjs.map +0 -1
- package/_cjs/FiberState/definition.cjs.map +0 -1
- package/_cjs/FiberState.cjs.map +0 -1
- package/_cjs/Hub/constructors.cjs +0 -93
- package/_cjs/Hub/constructors.cjs.map +0 -1
- package/_cjs/IO/api/foreachC.cjs.map +0 -1
- package/_cjs/IO/api/withRuntimeConfig.cjs.map +0 -1
- package/_cjs/IO/api/zipC.cjs.map +0 -1
- package/_mjs/Channel/api/mapOutIOC.mjs +0 -33
- package/_mjs/Channel/api/mapOutIOC.mjs.map +0 -1
- package/_mjs/Channel/api/zipC.mjs +0 -36
- package/_mjs/Channel/api/zipC.mjs.map +0 -1
- package/_mjs/Fiber/FiberContext.mjs +0 -1013
- package/_mjs/Fiber/FiberContext.mjs.map +0 -1
- package/_mjs/Fiber/api/evalOn.mjs +0 -19
- package/_mjs/Fiber/api/evalOn.mjs.map +0 -1
- package/_mjs/Fiber/api/evalOnIO.mjs +0 -18
- package/_mjs/Fiber/api/evalOnIO.mjs.map +0 -1
- package/_mjs/Fiber/api/interruptAsFork.mjs +0 -10
- package/_mjs/Fiber/api/interruptAsFork.mjs.map +0 -1
- package/_mjs/FiberState/api.mjs +0 -15
- package/_mjs/FiberState/api.mjs.map +0 -1
- package/_mjs/FiberState/constructors.mjs +0 -26
- package/_mjs/FiberState/constructors.mjs.map +0 -1
- package/_mjs/FiberState/definition.mjs +0 -26
- package/_mjs/FiberState/definition.mjs.map +0 -1
- package/_mjs/FiberState.mjs +0 -5
- package/_mjs/FiberState.mjs.map +0 -1
- package/_mjs/Hub/constructors.mjs +0 -66
- package/_mjs/Hub/constructors.mjs.map +0 -1
- package/_mjs/IO/api/foreachC.mjs.map +0 -1
- package/_mjs/IO/api/withRuntimeConfig.mjs +0 -15
- package/_mjs/IO/api/withRuntimeConfig.mjs.map +0 -1
- package/_mjs/IO/api/zipC.mjs +0 -43
- package/_mjs/IO/api/zipC.mjs.map +0 -1
- package/_src/Fiber/FiberContext.ts +0 -999
- package/_src/Fiber/api/evalOn.ts +0 -14
- package/_src/Fiber/api/evalOnIO.ts +0 -16
- package/_src/Fiber/api/interruptAsFork.ts +0 -9
- package/_src/FiberState/api.ts +0 -12
- package/_src/FiberState/constructors.ts +0 -33
- package/_src/FiberState/definition.ts +0 -43
- package/_src/FiberState.ts +0 -5
- package/_src/Hub/constructors.ts +0 -80
- package/_src/IO/api/withRuntimeConfig.ts +0 -18
package/_cjs/IO/api.cjs
CHANGED
@@ -6,11 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.__adapter = exports.GenIO = void 0;
|
7
7
|
exports.absolve = absolve;
|
8
8
|
exports.absorbWith = absorbWith;
|
9
|
-
exports.
|
10
|
-
exports.as = exports.apSecond = void 0;
|
9
|
+
exports.as = void 0;
|
11
10
|
exports.asJust = asJust;
|
12
11
|
exports.asJustError = asJustError;
|
13
|
-
exports.
|
12
|
+
exports.async = exports.asUnit = void 0;
|
14
13
|
exports.bimap = bimap;
|
15
14
|
exports.bitap = bitap;
|
16
15
|
exports.catchAllCause = exports.catchAll = void 0;
|
@@ -30,10 +29,7 @@ exports.condIO = condIO;
|
|
30
29
|
exports.defer = void 0;
|
31
30
|
exports.deferTry = deferTry;
|
32
31
|
exports.deferTryCatch = deferTryCatch;
|
33
|
-
exports.
|
34
|
-
exports.deferTryWith = deferTryWith;
|
35
|
-
exports.either = exports.descriptorWith = exports.descriptor = exports.deferWith = void 0;
|
36
|
-
exports.ensuring = ensuring;
|
32
|
+
exports.either = void 0;
|
37
33
|
exports.errorAsCause = errorAsCause;
|
38
34
|
exports.eventually = void 0;
|
39
35
|
exports.extend = extend;
|
@@ -54,7 +50,6 @@ exports.foldRight = foldRight;
|
|
54
50
|
exports.foreachDiscard = exports.foreach = void 0;
|
55
51
|
exports.foreachWithIndex = foreachWithIndex;
|
56
52
|
exports.forever = exports.foreachWithIndexDiscard = void 0;
|
57
|
-
exports.fork = fork;
|
58
53
|
exports.fromEither = fromEither;
|
59
54
|
exports.fromEitherNow = fromEitherNow;
|
60
55
|
exports.fromEval = fromEval;
|
@@ -90,7 +85,6 @@ exports.matchTraceIO = matchTraceIO;
|
|
90
85
|
exports.maybe = maybe;
|
91
86
|
exports.merge = merge;
|
92
87
|
exports.mergeAll = mergeAll;
|
93
|
-
exports.never = void 0;
|
94
88
|
exports.optional = optional;
|
95
89
|
exports.or = or;
|
96
90
|
exports.orElse = void 0;
|
@@ -102,6 +96,7 @@ exports.orHalt = orHalt;
|
|
102
96
|
exports.orHaltKeep = orHaltKeep;
|
103
97
|
exports.orHaltWith = void 0;
|
104
98
|
exports.partition = partition;
|
99
|
+
exports.refailCause = void 0;
|
105
100
|
exports.refineOrHalt = refineOrHalt;
|
106
101
|
exports.refineOrHaltWith = void 0;
|
107
102
|
exports.reject = reject;
|
@@ -117,12 +112,11 @@ exports.resurrect = resurrect;
|
|
117
112
|
exports.retryUntil = retryUntil;
|
118
113
|
exports.retryUntilIO = void 0;
|
119
114
|
exports.retryWhile = retryWhile;
|
120
|
-
exports.sandbox = exports.
|
115
|
+
exports.sandbox = exports.retryWhileIO = void 0;
|
121
116
|
exports.sandboxWith = sandboxWith;
|
122
117
|
exports.sequenceIterable = sequenceIterable;
|
123
118
|
exports.sequenceIterableDiscard = sequenceIterableDiscard;
|
124
|
-
exports.
|
125
|
-
exports.swapWith = exports.swap = exports.summarized = exports.succeedNow = exports.succeed = void 0;
|
119
|
+
exports.swapWith = exports.swap = exports.summarized = exports.succeedNow = exports.succeed = exports.stackTrace = void 0;
|
126
120
|
exports.tap = tap;
|
127
121
|
exports.tapCause = tapCause;
|
128
122
|
exports.tapError = tapError;
|
@@ -132,71 +126,44 @@ exports.unit = exports.tryOrElse = exports.tryCatch = void 0;
|
|
132
126
|
exports.unjust = unjust;
|
133
127
|
exports.unsandbox = exports.unrefineWith = void 0;
|
134
128
|
exports.updateFiberRefs = updateFiberRefs;
|
129
|
+
exports.updateRuntimeFlags = updateRuntimeFlags;
|
135
130
|
exports.via = void 0;
|
136
131
|
exports.when = when;
|
137
|
-
exports.yieldNow = exports.
|
132
|
+
exports.yieldNow = exports.withFiberRuntime = exports.whenIO = void 0;
|
138
133
|
exports.zip = zip;
|
139
|
-
exports.
|
140
|
-
|
134
|
+
exports.zipLeft = zipLeft;
|
135
|
+
exports.zipWith = exports.zipRight = void 0;
|
141
136
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/FiberId/constructors"));
|
142
|
-
|
143
|
-
var
|
144
|
-
|
145
|
-
var
|
146
|
-
|
147
|
-
var
|
148
|
-
|
149
|
-
var
|
150
|
-
|
151
|
-
var
|
152
|
-
|
153
|
-
var
|
154
|
-
|
155
|
-
var
|
156
|
-
|
157
|
-
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/InterruptStatus/constructors"));
|
158
|
-
|
159
|
-
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/constructors"));
|
160
|
-
|
161
|
-
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/api"));
|
162
|
-
|
163
|
-
var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/Iterable/api"));
|
164
|
-
|
165
|
-
var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/constructors"));
|
166
|
-
|
167
|
-
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/definition"));
|
168
|
-
|
169
|
-
var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/run"));
|
170
|
-
|
171
|
-
var tsplus_module_16 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/api"));
|
172
|
-
|
137
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Cause/api"));
|
138
|
+
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/constructors"));
|
139
|
+
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/destructors"));
|
140
|
+
var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/util/predicates"));
|
141
|
+
var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/api"));
|
142
|
+
var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/RuntimeFlags/RuntimeFlags"));
|
143
|
+
var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/InterruptStatus/constructors"));
|
144
|
+
var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/constructors"));
|
145
|
+
var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/api"));
|
146
|
+
var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/Iterable/api"));
|
147
|
+
var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/constructors"));
|
148
|
+
var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/definition"));
|
149
|
+
var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/control/Eval/run"));
|
150
|
+
var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/api"));
|
151
|
+
var tsplus_module_16 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/destructors"));
|
173
152
|
var tsplus_module_17 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Trace/constructors"));
|
174
|
-
|
175
153
|
var tsplus_module_18 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/api/empty"));
|
176
|
-
|
177
154
|
var tsplus_module_19 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/api"));
|
178
|
-
|
179
155
|
var tsplus_module_20 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableArray/constructors"));
|
180
|
-
|
181
156
|
var tsplus_module_21 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/ImmutableArray/api"));
|
182
|
-
|
157
|
+
var tsplus_module_22 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/constructors"));
|
183
158
|
var _function = /*#__PURE__*/require("@fncts/base/data/function");
|
184
|
-
|
185
159
|
var _definition2 = /*#__PURE__*/require("@fncts/io/IO/definition");
|
186
|
-
|
187
160
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
188
|
-
|
189
161
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
190
|
-
|
191
162
|
const fileName_1 = "(@fncts/io) src/IO/api.ts";
|
192
163
|
const async = async_1;
|
193
164
|
exports.async = async;
|
194
|
-
const
|
195
|
-
exports.
|
196
|
-
const asyncInterrupt = asyncInterrupt_1;
|
197
|
-
exports.asyncInterrupt = asyncInterrupt;
|
198
|
-
const apSecond = apSecond_1;
|
199
|
-
exports.apSecond = apSecond;
|
165
|
+
const zipRight = zipRight_1;
|
166
|
+
exports.zipRight = zipRight;
|
200
167
|
const as = as_1;
|
201
168
|
exports.as = as;
|
202
169
|
const asUnit = asUnit_1;
|
@@ -213,10 +180,6 @@ const collectIO = collectIO_1;
|
|
213
180
|
exports.collectIO = collectIO;
|
214
181
|
const defer = defer_1;
|
215
182
|
exports.defer = defer;
|
216
|
-
const deferWith = deferWith_1;
|
217
|
-
exports.deferWith = deferWith;
|
218
|
-
const descriptorWith = descriptorWith_1;
|
219
|
-
exports.descriptorWith = descriptorWith;
|
220
183
|
const either = either_1;
|
221
184
|
exports.either = either;
|
222
185
|
const eventually = eventually_1;
|
@@ -225,6 +188,8 @@ const fail = fail_1;
|
|
225
188
|
exports.fail = fail;
|
226
189
|
const failNow = failNow_1;
|
227
190
|
exports.failNow = failNow;
|
191
|
+
const refailCause = refailCause_1;
|
192
|
+
exports.refailCause = refailCause;
|
228
193
|
const failCauseNow = failCauseNow_1;
|
229
194
|
exports.failCauseNow = failCauseNow;
|
230
195
|
const failCause = failCause_1;
|
@@ -307,61 +272,23 @@ const unrefineWith = unrefineWith_1;
|
|
307
272
|
exports.unrefineWith = unrefineWith;
|
308
273
|
const unsandbox = unsandbox_1;
|
309
274
|
exports.unsandbox = unsandbox;
|
310
|
-
const withFiberContext = withFiberContext_1;
|
311
|
-
exports.withFiberContext = withFiberContext;
|
312
275
|
const whenIO = whenIO_1;
|
313
276
|
exports.whenIO = whenIO;
|
277
|
+
const withFiberRuntime = withFiberRuntime_1;
|
278
|
+
exports.withFiberRuntime = withFiberRuntime;
|
279
|
+
const stackTrace = stackTrace_1;
|
280
|
+
exports.stackTrace = stackTrace;
|
314
281
|
const zipWith = zipWith_1;
|
315
282
|
exports.zipWith = zipWith;
|
316
283
|
const gen = gen_1;
|
317
284
|
exports.gen = gen;
|
318
|
-
|
319
285
|
/**
|
320
286
|
* Imports an asynchronous side-effect into a `IO`
|
321
287
|
*
|
322
288
|
* @tsplus static fncts.io.IOOps async
|
323
289
|
*/
|
324
290
|
function async_1(register, blockingOn = tsplus_module_1.none, __tsplusTrace) {
|
325
|
-
return
|
326
|
-
register(cb);
|
327
|
-
return tsplus_module_2.nothing();
|
328
|
-
}, blockingOn, __tsplusTrace);
|
329
|
-
}
|
330
|
-
/**
|
331
|
-
* Imports an asynchronous effect into a pure `IO`, possibly returning the value synchronously.
|
332
|
-
*
|
333
|
-
* If the register function returns a value synchronously, then the callback
|
334
|
-
* function must not be called. Otherwise the callback function must be called at most once.
|
335
|
-
*
|
336
|
-
* @tsplus static fncts.io.IOOps asyncMaybe
|
337
|
-
*/
|
338
|
-
|
339
|
-
|
340
|
-
function asyncMaybe_1(register, blockingOn = tsplus_module_1.none, __tsplusTrace) {
|
341
|
-
return asyncInterrupt_1(cb => tsplus_module_4.match(() => tsplus_module_3.left(unit_1), tsplus_module_3.right)(register(cb)), blockingOn, __tsplusTrace);
|
342
|
-
}
|
343
|
-
/**
|
344
|
-
* Imports an asynchronous side-effect into an IO. The side-effect
|
345
|
-
* has the option of returning the value synchronously, which is useful in
|
346
|
-
* cases where it cannot be determined if the effect is synchronous or
|
347
|
-
* asynchronous until the side-effect is actually executed. The effect also
|
348
|
-
* has the option of returning a canceler, which will be used by the runtime
|
349
|
-
* to cancel the asynchronous effect if the fiber executing the effect is
|
350
|
-
* interrupted.
|
351
|
-
*
|
352
|
-
* If the register function returns a value synchronously, then the callback
|
353
|
-
* function must not be called. Otherwise the callback function must be called
|
354
|
-
* at most once.
|
355
|
-
*
|
356
|
-
* The list of fibers, that may complete the async callback, is used to
|
357
|
-
* provide better diagnostics.
|
358
|
-
*
|
359
|
-
* @tsplus static fncts.io.IOOps asyncInterrupt
|
360
|
-
*/
|
361
|
-
|
362
|
-
|
363
|
-
function asyncInterrupt_1(register, blockingOn = tsplus_module_1.none, __tsplusTrace) {
|
364
|
-
return new _definition2.Async(register, blockingOn, __tsplusTrace);
|
291
|
+
return new _definition2.Async(register, () => blockingOn, __tsplusTrace);
|
365
292
|
}
|
366
293
|
/**
|
367
294
|
* Attempts to convert defects into a failure, throwing away all information
|
@@ -369,18 +296,14 @@ function asyncInterrupt_1(register, blockingOn = tsplus_module_1.none, __tsplusT
|
|
369
296
|
*
|
370
297
|
* @tsplus pipeable fncts.io.IO absorbWith
|
371
298
|
*/
|
372
|
-
|
373
|
-
|
374
299
|
function absorbWith(f, __tsplusTrace) {
|
375
|
-
return ma => matchIO_1(cause => failNow_1(
|
300
|
+
return ma => matchIO_1(cause => failNow_1(tsplus_module_2.squashWith(f)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(sandbox_1(ma, __tsplusTrace));
|
376
301
|
}
|
377
302
|
/**
|
378
|
-
* @tsplus pipeable fncts.io.IO
|
303
|
+
* @tsplus pipeable fncts.io.IO zipLeft
|
379
304
|
* @tsplus pipeable-operator fncts.io.IO <
|
380
305
|
*/
|
381
|
-
|
382
|
-
|
383
|
-
function apFirst(fb, __tsplusTrace) {
|
306
|
+
function zipLeft(fb, __tsplusTrace) {
|
384
307
|
return self => {
|
385
308
|
return flatMap_1(a => map_1(() => a, __tsplusTrace)(fb), __tsplusTrace)(self);
|
386
309
|
};
|
@@ -388,12 +311,10 @@ function apFirst(fb, __tsplusTrace) {
|
|
388
311
|
/**
|
389
312
|
* Combine two effectful actions, keeping only the result of the second
|
390
313
|
*
|
391
|
-
* @tsplus pipeable fncts.io.IO
|
314
|
+
* @tsplus pipeable fncts.io.IO zipRight
|
392
315
|
* @tsplus pipeable-operator fncts.io.IO >
|
393
316
|
*/
|
394
|
-
|
395
|
-
|
396
|
-
function apSecond_1(fb, __tsplusTrace) {
|
317
|
+
function zipRight_1(fb, __tsplusTrace) {
|
397
318
|
return self => {
|
398
319
|
return flatMap_1(() => fb, __tsplusTrace)(self);
|
399
320
|
};
|
@@ -401,8 +322,6 @@ function apSecond_1(fb, __tsplusTrace) {
|
|
401
322
|
/**
|
402
323
|
* @tsplus pipeable fncts.io.IO as
|
403
324
|
*/
|
404
|
-
|
405
|
-
|
406
325
|
function as_1(b, __tsplusTrace) {
|
407
326
|
return self => {
|
408
327
|
return map_1(() => b(), __tsplusTrace)(self);
|
@@ -413,26 +332,20 @@ function as_1(b, __tsplusTrace) {
|
|
413
332
|
*
|
414
333
|
* @tsplus getter fncts.io.IO asJust
|
415
334
|
*/
|
416
|
-
|
417
|
-
|
418
335
|
function asJust(ma, __tsplusTrace) {
|
419
|
-
return map_1(
|
336
|
+
return map_1(tsplus_module_3.just, __tsplusTrace)(ma);
|
420
337
|
}
|
421
338
|
/**
|
422
339
|
* Maps the error value of this IO to an optional value.
|
423
340
|
*
|
424
341
|
* @tsplus getter fncts.io.IO asJustError
|
425
342
|
*/
|
426
|
-
|
427
|
-
|
428
343
|
function asJustError(ma, __tsplusTrace) {
|
429
|
-
return mapError_1(
|
344
|
+
return mapError_1(tsplus_module_3.just, __tsplusTrace)(ma);
|
430
345
|
}
|
431
346
|
/**
|
432
347
|
* @tsplus getter fncts.io.IO asUnit
|
433
348
|
*/
|
434
|
-
|
435
|
-
|
436
349
|
function asUnit_1(self, __tsplusTrace) {
|
437
350
|
return as_1(() => undefined, __tsplusTrace)(self);
|
438
351
|
}
|
@@ -442,8 +355,6 @@ function asUnit_1(self, __tsplusTrace) {
|
|
442
355
|
*
|
443
356
|
* @tsplus pipeable fncts.io.IO bimap
|
444
357
|
*/
|
445
|
-
|
446
|
-
|
447
358
|
function bimap(f, g, __tsplusTrace) {
|
448
359
|
return self => {
|
449
360
|
return matchIO_1(e => failNow_1(f(e), __tsplusTrace), a => succeedNow_1(g(a), __tsplusTrace), __tsplusTrace)(self);
|
@@ -455,11 +366,9 @@ function bimap(f, g, __tsplusTrace) {
|
|
455
366
|
*
|
456
367
|
* @tsplus pipeable fncts.io.IO bitap
|
457
368
|
*/
|
458
|
-
|
459
|
-
|
460
369
|
function bitap(onFailure, onSuccess, __tsplusTrace) {
|
461
370
|
return self => {
|
462
|
-
return matchCauseIO_1(cause =>
|
371
|
+
return matchCauseIO_1(cause => tsplus_module_4.match(e => flatMap_1(() => failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(onFailure(e)), () => failCauseNow_1(cause, __tsplusTrace))(tsplus_module_2.failureOrCause(cause)), a => zipRight_1(succeedNow_1(a, __tsplusTrace), __tsplusTrace)(onSuccess(a)), __tsplusTrace)(self);
|
463
372
|
};
|
464
373
|
}
|
465
374
|
/**
|
@@ -467,15 +376,12 @@ function bitap(onFailure, onSuccess, __tsplusTrace) {
|
|
467
376
|
*
|
468
377
|
* @tsplus pipeable fncts.io.IO catch
|
469
378
|
*/
|
470
|
-
|
471
|
-
|
472
379
|
function catchTagWith_1(tag, k, f, __tsplusTrace) {
|
473
380
|
return ma => {
|
474
381
|
return catchAll_1(e => {
|
475
|
-
if (
|
382
|
+
if (tsplus_module_5.isObject(e) && tag in e && e[tag] === k) {
|
476
383
|
return f(e);
|
477
384
|
}
|
478
|
-
|
479
385
|
return failNow_1(e, __tsplusTrace);
|
480
386
|
}, __tsplusTrace)(ma);
|
481
387
|
};
|
@@ -485,8 +391,6 @@ function catchTagWith_1(tag, k, f, __tsplusTrace) {
|
|
485
391
|
*
|
486
392
|
* @tsplus pipeable fncts.io.IO catchAll
|
487
393
|
*/
|
488
|
-
|
489
|
-
|
490
394
|
function catchAll_1(f, __tsplusTrace) {
|
491
395
|
return ma => {
|
492
396
|
return matchIO_1(f, succeedNow_1, __tsplusTrace)(ma);
|
@@ -498,8 +402,6 @@ function catchAll_1(f, __tsplusTrace) {
|
|
498
402
|
*
|
499
403
|
* @tsplus pipeable fncts.io.IO catchAllCause
|
500
404
|
*/
|
501
|
-
|
502
|
-
|
503
405
|
function catchAllCause_1(f, __tsplusTrace) {
|
504
406
|
return ma => matchCauseIO_1(f, succeedNow_1, __tsplusTrace)(ma);
|
505
407
|
}
|
@@ -508,11 +410,9 @@ function catchAllCause_1(f, __tsplusTrace) {
|
|
508
410
|
*
|
509
411
|
* @tsplus pipeable fncts.io.IO catchJust
|
510
412
|
*/
|
511
|
-
|
512
|
-
|
513
413
|
function catchJust(f, __tsplusTrace) {
|
514
414
|
return ma => {
|
515
|
-
return matchCauseIO_1(cause =>
|
415
|
+
return matchCauseIO_1(cause => tsplus_module_4.match(e => tsplus_module_6.getOrElse(() => failCauseNow_1(cause, __tsplusTrace))(f(e)), failCauseNow_1)(tsplus_module_2.failureOrCause(cause)), succeedNow_1, __tsplusTrace)(ma);
|
516
416
|
};
|
517
417
|
}
|
518
418
|
/**
|
@@ -520,11 +420,9 @@ function catchJust(f, __tsplusTrace) {
|
|
520
420
|
*
|
521
421
|
* @tsplus pipeable fncts.io.IO catchJustCause
|
522
422
|
*/
|
523
|
-
|
524
|
-
|
525
423
|
function catchJustCause(f, __tsplusTrace) {
|
526
424
|
return ma => {
|
527
|
-
return matchCauseIO_1(cause =>
|
425
|
+
return matchCauseIO_1(cause => tsplus_module_6.getOrElse(() => failCauseNow_1(cause, __tsplusTrace))(f(cause)), succeedNow_1, __tsplusTrace)(ma);
|
528
426
|
};
|
529
427
|
}
|
530
428
|
/**
|
@@ -537,8 +435,6 @@ function catchJustCause(f, __tsplusTrace) {
|
|
537
435
|
*
|
538
436
|
* @tsplus pipeable fncts.io.IO catchJustDefect
|
539
437
|
*/
|
540
|
-
|
541
|
-
|
542
438
|
function catchJustDefect(f, __tsplusTrace) {
|
543
439
|
return ma => {
|
544
440
|
return catchAll_1(a => a, __tsplusTrace)(unrefineWith_1(f, failNow_1, __tsplusTrace)(ma));
|
@@ -549,8 +445,6 @@ function catchJustDefect(f, __tsplusTrace) {
|
|
549
445
|
*
|
550
446
|
* @tsplus pipeable IO catchTag
|
551
447
|
*/
|
552
|
-
|
553
|
-
|
554
448
|
function catchTag(k, f, __tsplusTrace) {
|
555
449
|
return ma => {
|
556
450
|
return catchTagWith_1("_tag", k, f, __tsplusTrace)(ma);
|
@@ -559,21 +453,26 @@ function catchTag(k, f, __tsplusTrace) {
|
|
559
453
|
/**
|
560
454
|
* @tsplus getter fncts.io.IO cause
|
561
455
|
*/
|
562
|
-
|
563
|
-
|
564
456
|
function cause(ma, __tsplusTrace) {
|
565
|
-
return matchCauseIO_1(succeedNow_1, () => succeedNow_1(
|
457
|
+
return matchCauseIO_1(succeedNow_1, () => succeedNow_1(tsplus_module_2.empty(), __tsplusTrace), __tsplusTrace)(ma);
|
566
458
|
}
|
567
459
|
/**
|
568
460
|
* @tsplus pipeable fncts.io.IO causeAsError
|
569
461
|
*/
|
570
|
-
|
571
|
-
|
572
462
|
function causeAsError(__tsplusTrace) {
|
573
463
|
return ma => {
|
574
464
|
return matchCauseIO_1(failNow_1, succeedNow_1, __tsplusTrace)(ma);
|
575
465
|
};
|
576
466
|
}
|
467
|
+
/**
|
468
|
+
* Checks the interrupt status, and produces the IO returned by the
|
469
|
+
* specified callback.
|
470
|
+
*
|
471
|
+
* @tsplus static fncts.io.IOOps checkInterruptible
|
472
|
+
*/
|
473
|
+
function checkInterruptible(f, __tsplusTrace) {
|
474
|
+
return withFiberRuntime_1((_, status) => f(tsplus_module_8.fromBoolean(tsplus_module_7.interruption(status.runtimeFlags))), __tsplusTrace);
|
475
|
+
}
|
577
476
|
/**
|
578
477
|
* Returns an IO that models the execution of this effect, followed by
|
579
478
|
* the passing of its value to the specified continuation function `f`,
|
@@ -581,59 +480,38 @@ function causeAsError(__tsplusTrace) {
|
|
581
480
|
*
|
582
481
|
* @tsplus pipeable fncts.io.IO flatMap
|
583
482
|
*/
|
584
|
-
|
585
|
-
|
586
483
|
function flatMap_1(f, __tsplusTrace) {
|
587
484
|
return ma => {
|
588
|
-
return new _definition2.
|
485
|
+
return new _definition2.OnSuccess(ma, f, __tsplusTrace);
|
589
486
|
};
|
590
487
|
}
|
591
488
|
/**
|
592
489
|
* @tsplus pipeable fncts.io.IO flatMapError
|
593
490
|
*/
|
594
|
-
|
595
|
-
|
596
491
|
function flatMapError(f, __tsplusTrace) {
|
597
492
|
return ma => {
|
598
493
|
return swapWith_1(effect => flatMap_1(f, __tsplusTrace)(effect), __tsplusTrace)(ma);
|
599
494
|
};
|
600
495
|
}
|
601
|
-
/**
|
602
|
-
* Checks the interrupt status, and produces the IO returned by the
|
603
|
-
* specified callback.
|
604
|
-
*
|
605
|
-
* @tsplus static fncts.io.IOOps checkInterruptible
|
606
|
-
*/
|
607
|
-
|
608
|
-
|
609
|
-
function checkInterruptible(f, __tsplusTrace) {
|
610
|
-
return withFiberContext_1(fiber => f(tsplus_module_9.fromBoolean(fiber.unsafeIsInterruptible)), __tsplusTrace);
|
611
|
-
}
|
612
496
|
/**
|
613
497
|
* @tsplus pipeable fncts.io.IO collect
|
614
498
|
*/
|
615
|
-
|
616
|
-
|
617
499
|
function collect(f, pf, __tsplusTrace) {
|
618
500
|
return ma => {
|
619
|
-
return collectIO_1(f, a =>
|
501
|
+
return collectIO_1(f, a => tsplus_module_6.map(succeedNow_1)(pf(a)), __tsplusTrace)(ma);
|
620
502
|
};
|
621
503
|
}
|
622
504
|
/**
|
623
505
|
* @tsplus pipeable fncts.io.IO collectIO
|
624
506
|
*/
|
625
|
-
|
626
|
-
|
627
507
|
function collectIO_1(f, pf, __tsplusTrace) {
|
628
508
|
return ma => {
|
629
|
-
return flatMap_1(a =>
|
509
|
+
return flatMap_1(a => tsplus_module_6.getOrElse(() => fail_1(f, __tsplusTrace))(pf(a)), __tsplusTrace)(ma);
|
630
510
|
};
|
631
511
|
}
|
632
512
|
/**
|
633
513
|
* @tsplus static fncts.io.IOOps condIO
|
634
514
|
*/
|
635
|
-
|
636
|
-
|
637
515
|
function condIO(b, onTrue, onFalse, __tsplusTrace) {
|
638
516
|
return b ? onTrue : flatMap_1(failNow_1, __tsplusTrace)(onFalse);
|
639
517
|
}
|
@@ -645,23 +523,8 @@ function condIO(b, onTrue, onFalse, __tsplusTrace) {
|
|
645
523
|
*
|
646
524
|
* @tsplus static fncts.io.IOOps defer
|
647
525
|
*/
|
648
|
-
|
649
|
-
|
650
526
|
function defer_1(io, __tsplusTrace) {
|
651
|
-
return
|
652
|
-
}
|
653
|
-
/**
|
654
|
-
* Returns a lazily constructed effect, whose construction may itself require
|
655
|
-
* effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == unknown)
|
656
|
-
* it is conceptually equivalent to `flatten(effectTotal(io))`. If you wonder if the effect throws exceptions,
|
657
|
-
* do not use this method, use `IO.deferTryCatchWith`.
|
658
|
-
*
|
659
|
-
* @tsplus static fncts.io.IOOps deferWith
|
660
|
-
*/
|
661
|
-
|
662
|
-
|
663
|
-
function deferWith_1(io, __tsplusTrace) {
|
664
|
-
return new _definition2.DeferWith(io, __tsplusTrace);
|
527
|
+
return flatMap_1(_function.identity, __tsplusTrace)(succeed_1(io, __tsplusTrace));
|
665
528
|
}
|
666
529
|
/**
|
667
530
|
* Returns a lazily constructed effect, whose construction may itself require effects.
|
@@ -669,31 +532,12 @@ function deferWith_1(io, __tsplusTrace) {
|
|
669
532
|
*
|
670
533
|
* @tsplus static fncts.io.IOOps deferTry
|
671
534
|
*/
|
672
|
-
|
673
|
-
|
674
535
|
function deferTry(io, __tsplusTrace) {
|
675
536
|
return defer_1(() => {
|
676
537
|
try {
|
677
538
|
return io();
|
678
539
|
} catch (u) {
|
679
|
-
throw new _definition2.IOError(
|
680
|
-
}
|
681
|
-
}, __tsplusTrace);
|
682
|
-
}
|
683
|
-
/**
|
684
|
-
* Returns a lazily constructed effect, whose construction may itself require effects.
|
685
|
-
* When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(effect(io))`.
|
686
|
-
*
|
687
|
-
* @tsplus static IOOps deferTryWith
|
688
|
-
*/
|
689
|
-
|
690
|
-
|
691
|
-
function deferTryWith(io, __tsplusTrace) {
|
692
|
-
return deferWith_1((runtimeConfig, id) => {
|
693
|
-
try {
|
694
|
-
return io(runtimeConfig, id);
|
695
|
-
} catch (u) {
|
696
|
-
throw new _definition2.IOError(tsplus_module_10.fail(u));
|
540
|
+
throw new _definition2.IOError(tsplus_module_2.fail(u));
|
697
541
|
}
|
698
542
|
}, __tsplusTrace);
|
699
543
|
}
|
@@ -705,82 +549,26 @@ function deferTryWith(io, __tsplusTrace) {
|
|
705
549
|
*
|
706
550
|
* @tsplus static IOOps deferTryCatch
|
707
551
|
*/
|
708
|
-
|
709
|
-
|
710
552
|
function deferTryCatch(io, onThrow, __tsplusTrace) {
|
711
553
|
return defer_1(() => {
|
712
554
|
try {
|
713
555
|
return io();
|
714
556
|
} catch (u) {
|
715
|
-
throw new _definition2.IOError(
|
557
|
+
throw new _definition2.IOError(tsplus_module_2.fail(onThrow(u)));
|
716
558
|
}
|
717
559
|
}, __tsplusTrace);
|
718
560
|
}
|
719
|
-
/**
|
720
|
-
* Returns a lazily constructed effect, whose construction may itself require effects,
|
721
|
-
* translating any thrown exceptions into typed failed effects and mapping the error.
|
722
|
-
*
|
723
|
-
* When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(effect(io))`.
|
724
|
-
*
|
725
|
-
* @tsplus static IOOps deferTryCatchWith
|
726
|
-
*/
|
727
|
-
|
728
|
-
|
729
|
-
function deferTryCatchWith(io, onThrow, __tsplusTrace) {
|
730
|
-
return deferWith_1((runtimeConfig, id) => {
|
731
|
-
try {
|
732
|
-
return io(runtimeConfig, id);
|
733
|
-
} catch (u) {
|
734
|
-
throw new _definition2.IOError(tsplus_module_10.fail(onThrow(u)));
|
735
|
-
}
|
736
|
-
}, __tsplusTrace);
|
737
|
-
}
|
738
|
-
/**
|
739
|
-
* @tsplus static fncts.io.IOOps descriptor
|
740
|
-
*/
|
741
|
-
|
742
|
-
|
743
|
-
const descriptor = /*#__PURE__*/descriptorWith_1(succeedNow_1, fileName_1 + ":528:41");
|
744
|
-
/**
|
745
|
-
* Constructs an IO based on information about the current fiber, such as
|
746
|
-
* its identity.
|
747
|
-
*
|
748
|
-
* @tsplus static fncts.io.IOOps descriptorWith
|
749
|
-
*/
|
750
|
-
|
751
|
-
exports.descriptor = descriptor;
|
752
|
-
|
753
|
-
function descriptorWith_1(f, __tsplusTrace) {
|
754
|
-
return withFiberContext_1(fiber => f(fiber.unsafeGetDescriptor()), __tsplusTrace);
|
755
|
-
}
|
756
561
|
/**
|
757
562
|
* Folds an `IO` that may fail with `E` or succeed with `A` into one that never fails but succeeds with `Either<E, A>`
|
758
563
|
*
|
759
564
|
* @tsplus getter fncts.io.IO either
|
760
565
|
*/
|
761
|
-
|
762
|
-
|
763
566
|
function either_1(ma, __tsplusTrace) {
|
764
|
-
return match_1(
|
765
|
-
}
|
766
|
-
/**
|
767
|
-
* @tsplus pipeable fncts.io.IO ensuring
|
768
|
-
*/
|
769
|
-
|
770
|
-
|
771
|
-
function ensuring(finalizer, __tsplusTrace) {
|
772
|
-
return self => {
|
773
|
-
return withFiberContext_1(fiber => {
|
774
|
-
fiber.unsafeAddFinalizer(finalizer);
|
775
|
-
return self;
|
776
|
-
}, __tsplusTrace);
|
777
|
-
};
|
567
|
+
return match_1(tsplus_module_9.left, tsplus_module_9.right, __tsplusTrace)(ma);
|
778
568
|
}
|
779
569
|
/**
|
780
570
|
* @tsplus pipeable fncts.io.IO errorAsCause
|
781
571
|
*/
|
782
|
-
|
783
|
-
|
784
572
|
function errorAsCause(__tsplusTrace) {
|
785
573
|
return ma => {
|
786
574
|
return matchIO_1(failCauseNow_1, succeedNow_1, __tsplusTrace)(ma);
|
@@ -789,16 +577,12 @@ function errorAsCause(__tsplusTrace) {
|
|
789
577
|
/**
|
790
578
|
* @tsplus getter fncts.io.IO eventually
|
791
579
|
*/
|
792
|
-
|
793
|
-
|
794
580
|
function eventually_1(ma, __tsplusTrace) {
|
795
581
|
return orElse_1(() => eventually_1(ma, __tsplusTrace), __tsplusTrace)(ma);
|
796
582
|
}
|
797
583
|
/**
|
798
584
|
* @tsplus pipeable fncts.io.IO extend
|
799
585
|
*/
|
800
|
-
|
801
|
-
|
802
586
|
function extend(f, __tsplusTrace) {
|
803
587
|
return wa => {
|
804
588
|
return matchIO_1(failNow_1, _ => succeed_1(() => f(wa), __tsplusTrace), __tsplusTrace)(wa);
|
@@ -807,26 +591,26 @@ function extend(f, __tsplusTrace) {
|
|
807
591
|
/**
|
808
592
|
* @tsplus static fncts.io.IOOps fail
|
809
593
|
*/
|
810
|
-
|
811
|
-
|
812
594
|
function fail_1(e, __tsplusTrace) {
|
813
|
-
return
|
595
|
+
return failCause_1(() => tsplus_module_2.fail(e()), __tsplusTrace);
|
814
596
|
}
|
815
597
|
/**
|
816
598
|
* @tsplus static fncts.io.IOOps failNow
|
817
599
|
*/
|
818
|
-
|
819
|
-
|
820
600
|
function failNow_1(e, __tsplusTrace) {
|
821
|
-
return
|
601
|
+
return failCause_1(() => tsplus_module_2.fail(e), __tsplusTrace);
|
602
|
+
}
|
603
|
+
/**
|
604
|
+
* @tsplus static fncts.io.IOOps refailCause
|
605
|
+
*/
|
606
|
+
function refailCause_1(cause, __tsplusTrace) {
|
607
|
+
return new _definition2.Fail(() => cause, __tsplusTrace);
|
822
608
|
}
|
823
609
|
/**
|
824
610
|
* Creates a `IO` that has failed with the specified `Cause`
|
825
611
|
*
|
826
612
|
* @tsplus static fncts.io.IOOps failCauseNow
|
827
613
|
*/
|
828
|
-
|
829
|
-
|
830
614
|
function failCauseNow_1(cause, __tsplusTrace) {
|
831
615
|
return new _definition2.Fail(() => cause, __tsplusTrace);
|
832
616
|
}
|
@@ -835,54 +619,43 @@ function failCauseNow_1(cause, __tsplusTrace) {
|
|
835
619
|
*
|
836
620
|
* @tsplus static fncts.io.IOOps failCause
|
837
621
|
*/
|
838
|
-
|
839
|
-
|
840
622
|
function failCause_1(cause, __tsplusTrace) {
|
841
|
-
return
|
623
|
+
return flatMap_1(trace => refailCause_1(tsplus_module_2.traced(cause(), trace), __tsplusTrace), __tsplusTrace)(stackTrace_1(__tsplusTrace));
|
842
624
|
}
|
843
625
|
/**
|
844
626
|
* Returns the `FiberId` of the `Fiber` on which this `IO` is running
|
845
627
|
*
|
846
628
|
* @tsplus static fncts.io.IOOps fiberId
|
847
629
|
*/
|
848
|
-
|
849
|
-
|
850
|
-
const fiberId = /*#__PURE__*/descriptorWith_1(d => succeedNow_1(d.id, fileName_1 + ":623:89"), fileName_1 + ":623:68");
|
630
|
+
const fiberId = /*#__PURE__*/withFiberRuntime_1(fiber => succeed_1(() => fiber.id, fileName_1 + ":491:92"), fileName_1 + ":491:70");
|
851
631
|
/**
|
852
632
|
* Filters the collection using the specified effectual predicate.
|
853
633
|
*
|
854
634
|
* @tsplus static fncts.io.IOOps filter
|
855
635
|
*/
|
856
|
-
|
857
636
|
exports.fiberId = fiberId;
|
858
|
-
|
859
637
|
function filter_1(as, f, __tsplusTrace) {
|
860
|
-
return map_1(b => b.result(), __tsplusTrace)(
|
638
|
+
return map_1(b => b.result(), __tsplusTrace)(tsplus_module_11.foldLeft(succeedNow_1(tsplus_module_10.builder(), __tsplusTrace), (eff, a) => zipWith_1(f(a), (builder, p) => {
|
861
639
|
if (p) {
|
862
640
|
builder.append(a);
|
863
641
|
}
|
864
|
-
|
865
642
|
return builder;
|
866
643
|
}, __tsplusTrace)(eff))(as));
|
867
644
|
}
|
868
645
|
/**
|
869
646
|
* @tsplus static fncts.io.IOOps filterMap
|
870
647
|
*/
|
871
|
-
|
872
|
-
|
873
648
|
function filterMap(as, f, __tsplusTrace) {
|
874
649
|
return filterMapWithIndex_1(as, (_, a) => f(a), __tsplusTrace);
|
875
650
|
}
|
876
651
|
/**
|
877
652
|
* @tsplus static fncts.io.IOOps filterMapWithIndex
|
878
653
|
*/
|
879
|
-
|
880
|
-
|
881
654
|
function filterMapWithIndex_1(as, f, __tsplusTrace) {
|
882
655
|
return defer_1(() => {
|
883
656
|
const bs = [];
|
884
|
-
return as_1(() =>
|
885
|
-
if (
|
657
|
+
return as_1(() => tsplus_module_12.from(bs), __tsplusTrace)(foreachWithIndexDiscard_1(as, (i, a) => map_1(b => {
|
658
|
+
if (tsplus_module_13.isJust(b)) {
|
886
659
|
bs.push(b.value);
|
887
660
|
}
|
888
661
|
}, __tsplusTrace)(f(i, a)), __tsplusTrace));
|
@@ -894,18 +667,14 @@ function filterMapWithIndex_1(as, f, __tsplusTrace) {
|
|
894
667
|
*
|
895
668
|
* @tsplus static fncts.io.IOOps filterNot
|
896
669
|
*/
|
897
|
-
|
898
|
-
|
899
670
|
function filterNot(as, f, __tsplusTrace) {
|
900
671
|
return filter_1(as, a => map_1(b => !b, __tsplusTrace)(f(a)), __tsplusTrace);
|
901
672
|
}
|
902
|
-
|
903
673
|
function filterOrElse_1(predicate, or, __tsplusTrace) {
|
904
674
|
return fa => {
|
905
675
|
return flatMap_1(a => predicate(a) ? succeedNow_1(a, __tsplusTrace) : defer_1(() => or(a), __tsplusTrace), __tsplusTrace)(fa);
|
906
676
|
};
|
907
677
|
}
|
908
|
-
|
909
678
|
function filterOrFail(predicate, failWith, __tsplusTrace) {
|
910
679
|
return fa => {
|
911
680
|
return filterOrElse_1(predicate, a => failNow_1(failWith(a), __tsplusTrace), __tsplusTrace)(fa);
|
@@ -917,12 +686,9 @@ function filterOrFail(predicate, failWith, __tsplusTrace) {
|
|
917
686
|
*
|
918
687
|
* @tsplus static fncts.io.IOOps firstSuccess
|
919
688
|
*/
|
920
|
-
|
921
|
-
|
922
689
|
function firstSuccess(mas, __tsplusTrace) {
|
923
690
|
return mas.reduce((b, a) => orElse_1(() => a, __tsplusTrace)(b));
|
924
691
|
}
|
925
|
-
|
926
692
|
function filterOrHalt(predicate, haltWith, __tsplusTrace) {
|
927
693
|
return fa => {
|
928
694
|
return filterOrElse_1(predicate, a => haltNow_1(haltWith(a), __tsplusTrace), __tsplusTrace)(fa);
|
@@ -931,8 +697,6 @@ function filterOrHalt(predicate, haltWith, __tsplusTrace) {
|
|
931
697
|
/**
|
932
698
|
* @tsplus getter fncts.io.IO flatten
|
933
699
|
*/
|
934
|
-
|
935
|
-
|
936
700
|
function flatten(self, __tsplusTrace) {
|
937
701
|
return flatMap_1(_function.identity, __tsplusTrace)(self);
|
938
702
|
}
|
@@ -941,24 +705,17 @@ function flatten(self, __tsplusTrace) {
|
|
941
705
|
*
|
942
706
|
* @tsplus static fncts.io.IOOps foldLeft
|
943
707
|
*/
|
944
|
-
|
945
|
-
|
946
708
|
function foldLeft_1(as, b, f, __tsplusTrace) {
|
947
|
-
return
|
709
|
+
return tsplus_module_11.foldLeft(succeedNow_1(b, __tsplusTrace), (acc, el) => flatMap_1(a => f(a, el), __tsplusTrace)(acc))(as);
|
948
710
|
}
|
949
711
|
/**
|
950
712
|
* Combines an array of `IO`s using a `Monoid`
|
951
713
|
*
|
952
714
|
* @tsplus static fncts.io.IOOps foldMap
|
953
715
|
*/
|
954
|
-
|
955
|
-
|
956
|
-
function foldMap(as, f,
|
957
|
-
/** @tsplus auto */
|
958
|
-
M) {
|
959
|
-
return foldLeft_1(as, M.nat, (m, a) => map_1(a => M.combine(m, f(a)), fileName_1 + ":796:48")(a), fileName_1 + ":796:21");
|
716
|
+
function foldMap(as, f, /** @tsplus auto */M) {
|
717
|
+
return foldLeft_1(as, M.nat, (m, a) => map_1(a => M.combine(f(a))(m), fileName_1 + ":664:48")(a), fileName_1 + ":664:21");
|
960
718
|
}
|
961
|
-
|
962
719
|
function foldRightLoop(iterator, b, f, __tsplusTrace) {
|
963
720
|
const next = iterator.next();
|
964
721
|
return next.done ? b : f(next.value, foldRightLoop(iterator, b, f, __tsplusTrace));
|
@@ -968,12 +725,9 @@ function foldRightLoop(iterator, b, f, __tsplusTrace) {
|
|
968
725
|
*
|
969
726
|
* @tsplus static fncts.io.IOOps foldRight
|
970
727
|
*/
|
971
|
-
|
972
|
-
|
973
728
|
function foldRight(as, b, f, __tsplusTrace) {
|
974
729
|
return foldRightLoop(as[Symbol.iterator](), b, f, __tsplusTrace);
|
975
730
|
}
|
976
|
-
|
977
731
|
function foreachWithIndexDiscardLoop(iterator, f, i = 0, __tsplusTrace) {
|
978
732
|
const next = iterator.next();
|
979
733
|
return next.done ? unit_1 : flatMap_1(() => foreachWithIndexDiscardLoop(iterator, f, i + 1, __tsplusTrace), __tsplusTrace)(f(i, next.value));
|
@@ -987,12 +741,10 @@ function foreachWithIndexDiscardLoop(iterator, f, i = 0, __tsplusTrace) {
|
|
987
741
|
*
|
988
742
|
* @tsplus static fncts.io.IOOps foreach
|
989
743
|
*/
|
990
|
-
|
991
|
-
|
992
744
|
function foreach_1(as, f, __tsplusTrace) {
|
993
745
|
return defer_1(() => {
|
994
746
|
const acc = [];
|
995
|
-
return as_1(() =>
|
747
|
+
return as_1(() => tsplus_module_12.from(acc), __tsplusTrace)(foreachWithIndexDiscard_1(as, (_, a) => flatMap_1(b => {
|
996
748
|
acc.push(b);
|
997
749
|
return unit_1;
|
998
750
|
}, __tsplusTrace)(f(a)), __tsplusTrace));
|
@@ -1007,12 +759,10 @@ function foreach_1(as, f, __tsplusTrace) {
|
|
1007
759
|
*
|
1008
760
|
* @tsplus static fncts.io.IOOps foreachWithIndex
|
1009
761
|
*/
|
1010
|
-
|
1011
|
-
|
1012
762
|
function foreachWithIndex(as, f, __tsplusTrace) {
|
1013
763
|
return defer_1(() => {
|
1014
764
|
const acc = [];
|
1015
|
-
return as_1(() =>
|
765
|
+
return as_1(() => tsplus_module_12.from(acc), __tsplusTrace)(foreachWithIndexDiscard_1(as, (i, a) => flatMap_1(b => {
|
1016
766
|
acc.push(b);
|
1017
767
|
return unit_1;
|
1018
768
|
}, __tsplusTrace)(f(i, a)), __tsplusTrace));
|
@@ -1021,8 +771,6 @@ function foreachWithIndex(as, f, __tsplusTrace) {
|
|
1021
771
|
/**
|
1022
772
|
* @tsplus static fncts.io.IOOps foreachWithIndexDiscard
|
1023
773
|
*/
|
1024
|
-
|
1025
|
-
|
1026
774
|
function foreachWithIndexDiscard_1(as, f, __tsplusTrace) {
|
1027
775
|
return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), f), __tsplusTrace);
|
1028
776
|
}
|
@@ -1032,8 +780,6 @@ function foreachWithIndexDiscard_1(as, f, __tsplusTrace) {
|
|
1032
780
|
*
|
1033
781
|
* @tsplus static fncts.io.IOOps foreachDiscard
|
1034
782
|
*/
|
1035
|
-
|
1036
|
-
|
1037
783
|
function foreachDiscard_1(as, f, __tsplusTrace) {
|
1038
784
|
return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), (_, a) => f(a)), __tsplusTrace);
|
1039
785
|
}
|
@@ -1042,49 +788,16 @@ function foreachDiscard_1(as, f, __tsplusTrace) {
|
|
1042
788
|
*
|
1043
789
|
* @tsplus getter fncts.io.IO forever
|
1044
790
|
*/
|
1045
|
-
|
1046
|
-
|
1047
791
|
function forever_1(ma, __tsplusTrace) {
|
1048
|
-
return flatMap_1(() => forever_1(ma, __tsplusTrace), __tsplusTrace)(
|
1049
|
-
}
|
1050
|
-
/**
|
1051
|
-
* Returns an IO that forks this IO into its own separate fiber,
|
1052
|
-
* returning the fiber immediately, without waiting for it to begin executing
|
1053
|
-
* the IO.
|
1054
|
-
*
|
1055
|
-
* You can use the `fork` method whenever you want to execute an IO in a
|
1056
|
-
* new fiber, concurrently and without "blocking" the fiber executing other
|
1057
|
-
* IOs. Using fibers can be tricky, so instead of using this method
|
1058
|
-
* directly, consider other higher-level methods, such as `raceWith`,
|
1059
|
-
* `zipC`, and so forth.
|
1060
|
-
*
|
1061
|
-
* The fiber returned by this method has methods interrupt the fiber and to
|
1062
|
-
* wait for it to finish executing the IO. See `Fiber` for more
|
1063
|
-
* information.
|
1064
|
-
*
|
1065
|
-
* Whenever you use this method to launch a new fiber, the new fiber is
|
1066
|
-
* attached to the parent fiber's scope. This means when the parent fiber
|
1067
|
-
* terminates, the child fiber will be terminated as well, ensuring that no
|
1068
|
-
* fibers leak. This behavior is called "None supervision", and if this
|
1069
|
-
* behavior is not desired, you may use the `forkDaemon` or `forkIn`
|
1070
|
-
* methods.
|
1071
|
-
*
|
1072
|
-
* @tsplus getter fncts.io.IO fork
|
1073
|
-
*/
|
1074
|
-
|
1075
|
-
|
1076
|
-
function fork(ma, __tsplusTrace) {
|
1077
|
-
return new _definition2.Fork(ma, tsplus_module_2.nothing(), __tsplusTrace);
|
792
|
+
return flatMap_1(() => forever_1(ma, __tsplusTrace), __tsplusTrace)(zipRight_1(yieldNow_1, __tsplusTrace)(ma));
|
1078
793
|
}
|
1079
794
|
/**
|
1080
795
|
* Lifts an `Either` into an `IO`
|
1081
796
|
*
|
1082
797
|
* @tsplus static fncts.io.IOOps fromEither
|
1083
798
|
*/
|
1084
|
-
|
1085
|
-
|
1086
799
|
function fromEither(either, __tsplusTrace) {
|
1087
|
-
return flatMap_1(ea =>
|
800
|
+
return flatMap_1(ea => tsplus_module_4.match(failNow_1, succeedNow_1)(ea), __tsplusTrace)(succeed_1(either, __tsplusTrace));
|
1088
801
|
}
|
1089
802
|
/**
|
1090
803
|
* Lifts an `Either` into an `IO`
|
@@ -1092,10 +805,8 @@ function fromEither(either, __tsplusTrace) {
|
|
1092
805
|
* @tsplus static fncts.io.IOOps fromEitherNow
|
1093
806
|
* @tsplus getter fncts.Either toIO
|
1094
807
|
*/
|
1095
|
-
|
1096
|
-
|
1097
808
|
function fromEitherNow(either, __tsplusTrace) {
|
1098
|
-
return
|
809
|
+
return tsplus_module_4.match(failNow_1, succeedNow_1)(either);
|
1099
810
|
}
|
1100
811
|
/**
|
1101
812
|
* Lifts an `Eval` into an `IO`
|
@@ -1103,20 +814,16 @@ function fromEitherNow(either, __tsplusTrace) {
|
|
1103
814
|
* @tsplus static fncts.io.IOOps fromEval
|
1104
815
|
* @tsplus getter fncts.Eval toIO
|
1105
816
|
*/
|
1106
|
-
|
1107
|
-
|
1108
817
|
function fromEval(computation, __tsplusTrace) {
|
1109
|
-
return succeed_1(() =>
|
818
|
+
return succeed_1(() => tsplus_module_14.run(computation), __tsplusTrace);
|
1110
819
|
}
|
1111
820
|
/**
|
1112
821
|
* Creates a `IO` from an exit value
|
1113
822
|
*
|
1114
823
|
* @tsplus static fncts.io.IOOps fromExit
|
1115
824
|
*/
|
1116
|
-
|
1117
|
-
|
1118
825
|
function fromExit(exit, __tsplusTrace) {
|
1119
|
-
return defer_1(() =>
|
826
|
+
return defer_1(() => tsplus_module_15.match(failCauseNow_1, succeedNow_1)(exit()), __tsplusTrace);
|
1120
827
|
}
|
1121
828
|
/**
|
1122
829
|
* Creates a `IO` from an exit value
|
@@ -1124,10 +831,8 @@ function fromExit(exit, __tsplusTrace) {
|
|
1124
831
|
* @tsplus static fncts.io.IOOps fromExitNow
|
1125
832
|
* @tsplus getter fncts.Exit toIO
|
1126
833
|
*/
|
1127
|
-
|
1128
|
-
|
1129
834
|
function fromExitNow(exit, __tsplusTrace) {
|
1130
|
-
return
|
835
|
+
return tsplus_module_15.match(failCauseNow_1, succeedNow_1)(exit);
|
1131
836
|
}
|
1132
837
|
/**
|
1133
838
|
* Lifts a `Maybe` into an `IO` but preserves the error as a `Maybe` in the error channel, making it easier to compose
|
@@ -1135,19 +840,15 @@ function fromExitNow(exit, __tsplusTrace) {
|
|
1135
840
|
*
|
1136
841
|
* @tsplus static fncts.io.IOOps fromMaybe
|
1137
842
|
*/
|
1138
|
-
|
1139
|
-
|
1140
843
|
function fromMaybe(maybe, __tsplusTrace) {
|
1141
|
-
return flatMap_1(m =>
|
844
|
+
return flatMap_1(m => tsplus_module_16.match(() => failNow_1(tsplus_module_3.nothing(), __tsplusTrace), succeedNow_1)(m), __tsplusTrace)(succeed_1(maybe, __tsplusTrace));
|
1142
845
|
}
|
1143
846
|
/**
|
1144
847
|
* @tsplus static fncts.io.IOOps fromMaybeNow
|
1145
848
|
* @tsplus getter fncts.Maybe toIO
|
1146
849
|
*/
|
1147
|
-
|
1148
|
-
|
1149
850
|
function fromMaybeNow(maybe, __tsplusTrace) {
|
1150
|
-
return
|
851
|
+
return tsplus_module_16.match(() => failNow_1(tsplus_module_3.nothing(), __tsplusTrace), succeedNow_1)(maybe);
|
1151
852
|
}
|
1152
853
|
/**
|
1153
854
|
* Create an IO that when executed will construct `promise` and wait for its result,
|
@@ -1155,8 +856,6 @@ function fromMaybeNow(maybe, __tsplusTrace) {
|
|
1155
856
|
*
|
1156
857
|
* @tsplus static fncts.io.IOOps fromPromiseCatch
|
1157
858
|
*/
|
1158
|
-
|
1159
|
-
|
1160
859
|
function fromPromiseCatch_1(promise, onReject, __tsplusTrace) {
|
1161
860
|
return async_1(k => {
|
1162
861
|
promise().then(a => k(succeedNow_1(a, __tsplusTrace))).catch(e => k(failNow_1(onReject(e), __tsplusTrace)));
|
@@ -1168,8 +867,6 @@ function fromPromiseCatch_1(promise, onReject, __tsplusTrace) {
|
|
1168
867
|
*
|
1169
868
|
* @tsplus static fncts.io.IOOps fromPromise
|
1170
869
|
*/
|
1171
|
-
|
1172
|
-
|
1173
870
|
function fromPromise(promise, __tsplusTrace) {
|
1174
871
|
return fromPromiseCatch_1(promise, _function.identity, __tsplusTrace);
|
1175
872
|
}
|
@@ -1178,8 +875,6 @@ function fromPromise(promise, __tsplusTrace) {
|
|
1178
875
|
*
|
1179
876
|
* @tsplus static fncts.io.IOOps fromPromiseHalt
|
1180
877
|
*/
|
1181
|
-
|
1182
|
-
|
1183
878
|
function fromPromiseHalt(promise, __tsplusTrace) {
|
1184
879
|
return async_1(k => {
|
1185
880
|
promise().then(a => k(succeedNow_1(a, __tsplusTrace))).catch(e => k(haltNow_1(e, __tsplusTrace)));
|
@@ -1190,21 +885,17 @@ function fromPromiseHalt(promise, __tsplusTrace) {
|
|
1190
885
|
*
|
1191
886
|
* @tsplus getter fncts.io.IO get
|
1192
887
|
*/
|
1193
|
-
|
1194
|
-
|
1195
888
|
function get(ma, __tsplusTrace) {
|
1196
|
-
return matchCauseIO_1(cause => failCauseNow_1(
|
889
|
+
return matchCauseIO_1(cause => failCauseNow_1(tsplus_module_2.map(tsplus_module_3.just)(cause), __tsplusTrace), ma => tsplus_module_16.match(() => failNow_1(tsplus_module_3.nothing(), __tsplusTrace), succeedNow_1)(ma), __tsplusTrace)(ma);
|
1197
890
|
}
|
1198
891
|
/**
|
1199
892
|
* Extracts the optional value, or returns the given 'orElse'.
|
1200
893
|
*
|
1201
894
|
* @tsplus pipeable fncts.io.IO getOrElse
|
1202
895
|
*/
|
1203
|
-
|
1204
|
-
|
1205
896
|
function getOrElse(orElse, __tsplusTrace) {
|
1206
897
|
return ma => {
|
1207
|
-
return map_1(ma =>
|
898
|
+
return map_1(ma => tsplus_module_6.getOrElse(orElse)(ma), __tsplusTrace)(ma);
|
1208
899
|
};
|
1209
900
|
}
|
1210
901
|
/**
|
@@ -1212,11 +903,9 @@ function getOrElse(orElse, __tsplusTrace) {
|
|
1212
903
|
*
|
1213
904
|
* @tsplus pipeable fncts.io.IO getOrElseIO
|
1214
905
|
*/
|
1215
|
-
|
1216
|
-
|
1217
906
|
function getOrElseIO(orElse, __tsplusTrace) {
|
1218
907
|
return ma => {
|
1219
|
-
return flatMap_1(mab =>
|
908
|
+
return flatMap_1(mab => tsplus_module_6.getOrElse(orElse)(tsplus_module_6.map(succeedNow_1)(mab)), __tsplusTrace)(ma);
|
1220
909
|
};
|
1221
910
|
}
|
1222
911
|
/**
|
@@ -1224,18 +913,14 @@ function getOrElseIO(orElse, __tsplusTrace) {
|
|
1224
913
|
*
|
1225
914
|
* @tsplus static fncts.io.IOOps getOrFailWith
|
1226
915
|
*/
|
1227
|
-
|
1228
|
-
|
1229
916
|
function getOrFailWith_1(maybe, onNothing, __tsplusTrace) {
|
1230
|
-
return defer_1(() =>
|
917
|
+
return defer_1(() => tsplus_module_16.match(() => fail_1(onNothing, __tsplusTrace), succeedNow_1)(maybe), __tsplusTrace);
|
1231
918
|
}
|
1232
919
|
/**
|
1233
920
|
* Lifts a Maybe into a IO, if the Maybe is `Nothing` it fails with Unit.
|
1234
921
|
*
|
1235
922
|
* @tsplus static fncts.io.IOOps getOrFailUnit
|
1236
923
|
*/
|
1237
|
-
|
1238
|
-
|
1239
924
|
function getOrFailUnit(option, __tsplusTrace) {
|
1240
925
|
return getOrFailWith_1(option, () => undefined, __tsplusTrace);
|
1241
926
|
}
|
@@ -1246,10 +931,8 @@ function getOrFailUnit(option, __tsplusTrace) {
|
|
1246
931
|
*
|
1247
932
|
* @tsplus static fncts.io.IOOps halt
|
1248
933
|
*/
|
1249
|
-
|
1250
|
-
|
1251
934
|
function halt(e, __tsplusTrace) {
|
1252
|
-
return failCause_1(() =>
|
935
|
+
return failCause_1(() => tsplus_module_2.halt(e(), tsplus_module_17.none), __tsplusTrace);
|
1253
936
|
}
|
1254
937
|
/**
|
1255
938
|
* Creates an `IO` that halts with the specified defect
|
@@ -1258,16 +941,12 @@ function halt(e, __tsplusTrace) {
|
|
1258
941
|
*
|
1259
942
|
* @tsplus static fncts.io.IOOps haltNow
|
1260
943
|
*/
|
1261
|
-
|
1262
|
-
|
1263
944
|
function haltNow_1(e, __tsplusTrace) {
|
1264
|
-
return failCauseNow_1(
|
945
|
+
return failCauseNow_1(tsplus_module_2.halt(e, tsplus_module_17.none), __tsplusTrace);
|
1265
946
|
}
|
1266
947
|
/**
|
1267
948
|
* @tsplus pipeable fncts.io.IO ifIO
|
1268
949
|
*/
|
1269
|
-
|
1270
|
-
|
1271
950
|
function ifIO_1(onFalse, onTrue, __tsplusTrace) {
|
1272
951
|
return self => {
|
1273
952
|
return flatMap_1(b => b ? onTrue() : onFalse(), __tsplusTrace)(self);
|
@@ -1276,16 +955,12 @@ function ifIO_1(onFalse, onTrue, __tsplusTrace) {
|
|
1276
955
|
/**
|
1277
956
|
* @tsplus static fncts.io.IOOps if
|
1278
957
|
*/
|
1279
|
-
|
1280
|
-
|
1281
958
|
function cond(b, onTrue, onFalse, __tsplusTrace) {
|
1282
959
|
return ifIO_1(onTrue, onFalse, __tsplusTrace)(succeedNow_1(b, __tsplusTrace));
|
1283
960
|
}
|
1284
961
|
/**
|
1285
962
|
* @tsplus getter fncts.io.IO ignore
|
1286
963
|
*/
|
1287
|
-
|
1288
|
-
|
1289
964
|
function ignore(fa, __tsplusTrace) {
|
1290
965
|
return match_1(() => undefined, () => undefined, __tsplusTrace)(fa);
|
1291
966
|
}
|
@@ -1294,8 +969,6 @@ function ignore(fa, __tsplusTrace) {
|
|
1294
969
|
*
|
1295
970
|
* @tsplus getter fncts.io.IO isFailure
|
1296
971
|
*/
|
1297
|
-
|
1298
|
-
|
1299
972
|
function isFailure(ma, __tsplusTrace) {
|
1300
973
|
return match_1(() => true, () => false, __tsplusTrace)(ma);
|
1301
974
|
}
|
@@ -1304,8 +977,6 @@ function isFailure(ma, __tsplusTrace) {
|
|
1304
977
|
*
|
1305
978
|
* @tsplus getter fncts.io.IO isSuccess
|
1306
979
|
*/
|
1307
|
-
|
1308
|
-
|
1309
980
|
function isSuccess(ma, __tsplusTrace) {
|
1310
981
|
return match_1(() => false, () => true, __tsplusTrace)(ma);
|
1311
982
|
}
|
@@ -1324,8 +995,6 @@ function isSuccess(ma, __tsplusTrace) {
|
|
1324
995
|
*
|
1325
996
|
* @tsplus static fncts.io.IOOps iterate
|
1326
997
|
*/
|
1327
|
-
|
1328
|
-
|
1329
998
|
function iterate_1(initial, cont, body, __tsplusTrace) {
|
1330
999
|
return cont(initial) ? flatMap_1(a => iterate_1(a, cont, body, __tsplusTrace), __tsplusTrace)(body(initial)) : succeedNow_1(initial, __tsplusTrace);
|
1331
1000
|
}
|
@@ -1334,18 +1003,17 @@ function iterate_1(initial, cont, body, __tsplusTrace) {
|
|
1334
1003
|
*
|
1335
1004
|
* @tsplus static fncts.io.IOOps left
|
1336
1005
|
*/
|
1337
|
-
|
1338
|
-
|
1339
1006
|
function left(a, __tsplusTrace) {
|
1340
|
-
return flatMap_1(a => succeedNow_1(
|
1007
|
+
return flatMap_1(a => succeedNow_1(tsplus_module_9.left(a), __tsplusTrace), __tsplusTrace)(succeed_1(a, __tsplusTrace));
|
1341
1008
|
}
|
1342
1009
|
/**
|
1343
1010
|
* @tsplus static fncts.io.IOOps log
|
1344
1011
|
*/
|
1345
|
-
|
1346
|
-
|
1347
1012
|
function log(message, __tsplusTrace) {
|
1348
|
-
return
|
1013
|
+
return withFiberRuntime_1(fiber => {
|
1014
|
+
fiber.log(message, tsplus_module_2.empty(), tsplus_module_3.nothing(), __tsplusTrace);
|
1015
|
+
return unit_1;
|
1016
|
+
}, __tsplusTrace);
|
1349
1017
|
}
|
1350
1018
|
/**
|
1351
1019
|
* Loops with the specified effectual function, collecting the results into a
|
@@ -1365,11 +1033,9 @@ function log(message, __tsplusTrace) {
|
|
1365
1033
|
*
|
1366
1034
|
* @tsplus static fncts.io.IOOps loop
|
1367
1035
|
*/
|
1368
|
-
|
1369
|
-
|
1370
1036
|
function loop_1(initial, cont, inc, body, __tsplusTrace) {
|
1371
1037
|
if (cont(initial)) {
|
1372
|
-
return flatMap_1(a => map_1(as =>
|
1038
|
+
return flatMap_1(a => map_1(as => tsplus_module_10.prepend(a)(as), __tsplusTrace)(loop_1(inc(initial), cont, inc, body, __tsplusTrace)), __tsplusTrace)(body(initial));
|
1373
1039
|
} else {
|
1374
1040
|
return succeedNow_1(tsplus_module_18.empty(), __tsplusTrace);
|
1375
1041
|
}
|
@@ -1389,8 +1055,6 @@ function loop_1(initial, cont, inc, body, __tsplusTrace) {
|
|
1389
1055
|
*
|
1390
1056
|
* @tsplus static fncts.io.IOOps loopUnit
|
1391
1057
|
*/
|
1392
|
-
|
1393
|
-
|
1394
1058
|
function loopUnit(initial, cont, inc, body, __tsplusTrace) {
|
1395
1059
|
if (cont(initial)) {
|
1396
1060
|
return asUnit_1(flatMap_1(() => loop_1(inc(initial), cont, inc, body, __tsplusTrace), __tsplusTrace)(body(initial)), __tsplusTrace);
|
@@ -1403,8 +1067,6 @@ function loopUnit(initial, cont, inc, body, __tsplusTrace) {
|
|
1403
1067
|
*
|
1404
1068
|
* @tsplus pipeable fncts.io.IO map
|
1405
1069
|
*/
|
1406
|
-
|
1407
|
-
|
1408
1070
|
function map_1(f, __tsplusTrace) {
|
1409
1071
|
return fa => {
|
1410
1072
|
return flatMap_1(a => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(fa);
|
@@ -1419,18 +1081,14 @@ function map_1(f, __tsplusTrace) {
|
|
1419
1081
|
*
|
1420
1082
|
* @tsplus pipeable fncts.io.IO mapError
|
1421
1083
|
*/
|
1422
|
-
|
1423
|
-
|
1424
1084
|
function mapError_1(f, __tsplusTrace) {
|
1425
1085
|
return fea => {
|
1426
|
-
return matchCauseIO_1(cause => failCauseNow_1(
|
1086
|
+
return matchCauseIO_1(cause => failCauseNow_1(tsplus_module_2.map(f)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(fea);
|
1427
1087
|
};
|
1428
1088
|
}
|
1429
1089
|
/**
|
1430
1090
|
* @tsplus static fncts.io.IOOps mapTryCatch
|
1431
1091
|
*/
|
1432
|
-
|
1433
|
-
|
1434
1092
|
function mapTryCatch(io, f, onThrow, __tsplusTrace) {
|
1435
1093
|
return flatMap_1(a => tryCatch_1(() => f(a), onThrow, __tsplusTrace), __tsplusTrace)(io);
|
1436
1094
|
}
|
@@ -1441,8 +1099,6 @@ function mapTryCatch(io, f, onThrow, __tsplusTrace) {
|
|
1441
1099
|
*
|
1442
1100
|
* @tsplus pipeable fncts.io.IO mapErrorCause
|
1443
1101
|
*/
|
1444
|
-
|
1445
|
-
|
1446
1102
|
function mapErrorCause_1(f, __tsplusTrace) {
|
1447
1103
|
return ma => {
|
1448
1104
|
return matchCauseIO_1(cause => failCauseNow_1(f(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(ma);
|
@@ -1453,8 +1109,6 @@ function mapErrorCause_1(f, __tsplusTrace) {
|
|
1453
1109
|
*
|
1454
1110
|
* @tsplus pipeable fncts.io.IO matchCause
|
1455
1111
|
*/
|
1456
|
-
|
1457
|
-
|
1458
1112
|
function matchCause(onFailure, onSuccess, __tsplusTrace) {
|
1459
1113
|
return self => {
|
1460
1114
|
return matchCauseIO_1(cause => succeedNow_1(onFailure(cause), __tsplusTrace), a => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace)(self);
|
@@ -1465,21 +1119,17 @@ function matchCause(onFailure, onSuccess, __tsplusTrace) {
|
|
1465
1119
|
*
|
1466
1120
|
* @tsplus pipeable fncts.io.IO matchCauseIO
|
1467
1121
|
*/
|
1468
|
-
|
1469
|
-
|
1470
1122
|
function matchCauseIO_1(onFailure, onSuccess, __tsplusTrace) {
|
1471
1123
|
return self => {
|
1472
|
-
return new _definition2.
|
1124
|
+
return new _definition2.OnSuccessAndFailure(self, onFailure, onSuccess, __tsplusTrace);
|
1473
1125
|
};
|
1474
1126
|
}
|
1475
1127
|
/**
|
1476
1128
|
* @tsplus pipeable fncts.io.IO matchIO
|
1477
1129
|
*/
|
1478
|
-
|
1479
|
-
|
1480
1130
|
function matchIO_1(onFailure, onSuccess, __tsplusTrace) {
|
1481
1131
|
return self => {
|
1482
|
-
return matchCauseIO_1(cause =>
|
1132
|
+
return matchCauseIO_1(cause => tsplus_module_4.match(onFailure, failCauseNow_1)(tsplus_module_2.failureOrCause(cause)), onSuccess, __tsplusTrace)(self);
|
1483
1133
|
};
|
1484
1134
|
}
|
1485
1135
|
/**
|
@@ -1489,8 +1139,6 @@ function matchIO_1(onFailure, onSuccess, __tsplusTrace) {
|
|
1489
1139
|
*
|
1490
1140
|
* @tsplus pipeable fncts.io.IO match
|
1491
1141
|
*/
|
1492
|
-
|
1493
|
-
|
1494
1142
|
function match_1(onFailure, onSuccess, __tsplusTrace) {
|
1495
1143
|
return self => {
|
1496
1144
|
return matchIO_1(e => succeedNow_1(onFailure(e), __tsplusTrace), a => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace)(self);
|
@@ -1501,26 +1149,20 @@ function match_1(onFailure, onSuccess, __tsplusTrace) {
|
|
1501
1149
|
*
|
1502
1150
|
* @tsplus pipeable fncts.io.IO matchTraceIO
|
1503
1151
|
*/
|
1504
|
-
|
1505
|
-
|
1506
1152
|
function matchTraceIO(onFailure, onSuccess, __tsplusTrace) {
|
1507
1153
|
return ma => {
|
1508
|
-
return matchCauseIO_1(cause =>
|
1154
|
+
return matchCauseIO_1(cause => tsplus_module_4.match(([e, trace]) => onFailure(e, trace), failCauseNow_1)(tsplus_module_2.failureTraceOrCause(cause)), onSuccess, __tsplusTrace)(ma);
|
1509
1155
|
};
|
1510
1156
|
}
|
1511
1157
|
/**
|
1512
1158
|
* @tsplus getter fncts.io.IO maybe
|
1513
1159
|
*/
|
1514
|
-
|
1515
|
-
|
1516
1160
|
function maybe(io, __tsplusTrace) {
|
1517
|
-
return match_1(() =>
|
1161
|
+
return match_1(() => tsplus_module_3.nothing(), tsplus_module_3.just, __tsplusTrace)(io);
|
1518
1162
|
}
|
1519
1163
|
/**
|
1520
1164
|
* @tsplus getter fncts.io.IO merge
|
1521
1165
|
*/
|
1522
|
-
|
1523
|
-
|
1524
1166
|
function merge(io, __tsplusTrace) {
|
1525
1167
|
return matchIO_1(succeedNow_1, succeedNow_1, __tsplusTrace)(io);
|
1526
1168
|
}
|
@@ -1529,36 +1171,16 @@ function merge(io, __tsplusTrace) {
|
|
1529
1171
|
*
|
1530
1172
|
* @tsplus static fncts.io.IOOps mergeAll
|
1531
1173
|
*/
|
1532
|
-
|
1533
|
-
|
1534
1174
|
function mergeAll(fas, b, f, __tsplusTrace) {
|
1535
|
-
return
|
1175
|
+
return tsplus_module_11.foldLeft(succeed_1(() => b, __tsplusTrace), (b, a) => zipWith_1(a, f, __tsplusTrace)(b))(fas);
|
1536
1176
|
}
|
1537
|
-
/**
|
1538
|
-
* Returns a `IO` that will never produce anything. The moral equivalent of
|
1539
|
-
* `while(true) {}`, only without the wasted CPU cycles.
|
1540
|
-
*
|
1541
|
-
* @tsplus static fncts.io.IOOps never
|
1542
|
-
*/
|
1543
|
-
|
1544
|
-
|
1545
|
-
const never = /*#__PURE__*/defer_1(() => asyncInterrupt_1(() => {
|
1546
|
-
const interval = setInterval(() => {//
|
1547
|
-
}, 60000);
|
1548
|
-
return tsplus_module_3.left(succeed_1(() => {
|
1549
|
-
clearInterval(interval);
|
1550
|
-
}, fileName_1 + ":1456:17"));
|
1551
|
-
}), fileName_1 + ":1450:39");
|
1552
1177
|
/**
|
1553
1178
|
* Converts an option on errors into an option on values.
|
1554
1179
|
*
|
1555
1180
|
* @tsplus getter fncts.io.IO optional
|
1556
1181
|
*/
|
1557
|
-
|
1558
|
-
exports.never = never;
|
1559
|
-
|
1560
1182
|
function optional(ma, __tsplusTrace) {
|
1561
|
-
return matchIO_1(me =>
|
1183
|
+
return matchIO_1(me => tsplus_module_16.match(() => succeedNow_1(tsplus_module_3.nothing(), __tsplusTrace), failNow_1)(me), a => succeedNow_1(tsplus_module_3.just(a), __tsplusTrace), __tsplusTrace)(ma);
|
1562
1184
|
}
|
1563
1185
|
/**
|
1564
1186
|
* Returns the logical disjunction of the `Boolean` value returned by this
|
@@ -1569,8 +1191,6 @@ function optional(ma, __tsplusTrace) {
|
|
1569
1191
|
* @tsplus pipeable fncts.io.IO or
|
1570
1192
|
* @tsplus pipeable-operator fncts.io.IO ||
|
1571
1193
|
*/
|
1572
|
-
|
1573
|
-
|
1574
1194
|
function or(mb, __tsplusTrace) {
|
1575
1195
|
return ma => {
|
1576
1196
|
return flatMap_1(b => b ? succeedNow_1(true, __tsplusTrace) : mb, __tsplusTrace)(ma);
|
@@ -1579,8 +1199,6 @@ function or(mb, __tsplusTrace) {
|
|
1579
1199
|
/**
|
1580
1200
|
* @tsplus pipeable fncts.io.IO orElse
|
1581
1201
|
*/
|
1582
|
-
|
1583
|
-
|
1584
1202
|
function orElse_1(that, __tsplusTrace) {
|
1585
1203
|
return ma => {
|
1586
1204
|
return tryOrElse_1(that, succeedNow_1, __tsplusTrace)(ma);
|
@@ -1589,18 +1207,14 @@ function orElse_1(that, __tsplusTrace) {
|
|
1589
1207
|
/**
|
1590
1208
|
* @tsplus pipeable fncts.io.IO orElseEither
|
1591
1209
|
*/
|
1592
|
-
|
1593
|
-
|
1594
1210
|
function orElseEither(that, __tsplusTrace) {
|
1595
1211
|
return self => {
|
1596
|
-
return tryOrElse_1(() => map_1(
|
1212
|
+
return tryOrElse_1(() => map_1(tsplus_module_9.right, __tsplusTrace)(that()), a => succeedNow_1(tsplus_module_9.left(a), __tsplusTrace), __tsplusTrace)(self);
|
1597
1213
|
};
|
1598
1214
|
}
|
1599
1215
|
/**
|
1600
1216
|
* @tsplus pipeable fncts.io.IO orElseFail
|
1601
1217
|
*/
|
1602
|
-
|
1603
|
-
|
1604
1218
|
function orElseFail(e, __tsplusTrace) {
|
1605
1219
|
return ma => {
|
1606
1220
|
return orElse_1(() => fail_1(e, __tsplusTrace), __tsplusTrace)(ma);
|
@@ -1609,18 +1223,14 @@ function orElseFail(e, __tsplusTrace) {
|
|
1609
1223
|
/**
|
1610
1224
|
* @tsplus pipeable fncts.io.IO orElseMaybe
|
1611
1225
|
*/
|
1612
|
-
|
1613
|
-
|
1614
1226
|
function orElseMaybe(that, __tsplusTrace) {
|
1615
1227
|
return ma => {
|
1616
|
-
return catchAll_1(me =>
|
1228
|
+
return catchAll_1(me => tsplus_module_16.match(that, e => fail_1(() => tsplus_module_3.just(e), __tsplusTrace))(me), __tsplusTrace)(ma);
|
1617
1229
|
};
|
1618
1230
|
}
|
1619
1231
|
/**
|
1620
1232
|
* @tsplus pipeable fncts.io.IO orElseSucceed
|
1621
1233
|
*/
|
1622
|
-
|
1623
|
-
|
1624
1234
|
function orElseSucceed(a, __tsplusTrace) {
|
1625
1235
|
return ma => {
|
1626
1236
|
return orElse_1(() => succeed_1(a, __tsplusTrace), __tsplusTrace)(ma);
|
@@ -1629,24 +1239,18 @@ function orElseSucceed(a, __tsplusTrace) {
|
|
1629
1239
|
/**
|
1630
1240
|
* @tsplus getter fncts.io.IO orHalt
|
1631
1241
|
*/
|
1632
|
-
|
1633
|
-
|
1634
1242
|
function orHalt(ma, __tsplusTrace) {
|
1635
1243
|
return orHaltWith_1(_function.identity, __tsplusTrace)(ma);
|
1636
1244
|
}
|
1637
1245
|
/**
|
1638
1246
|
* @tsplus getter fncts.io.IO orHaltKeep
|
1639
1247
|
*/
|
1640
|
-
|
1641
|
-
|
1642
1248
|
function orHaltKeep(ma, __tsplusTrace) {
|
1643
|
-
return matchCauseIO_1(cause => failCauseNow_1(
|
1249
|
+
return matchCauseIO_1(cause => failCauseNow_1(tsplus_module_2.flatMap(tsplus_module_2.halt)(cause), __tsplusTrace), succeedNow_1, __tsplusTrace)(ma);
|
1644
1250
|
}
|
1645
1251
|
/**
|
1646
1252
|
* @tsplus pipeable fncts.io.IO orHaltWith
|
1647
1253
|
*/
|
1648
|
-
|
1649
|
-
|
1650
1254
|
function orHaltWith_1(f, __tsplusTrace) {
|
1651
1255
|
return ma => {
|
1652
1256
|
return matchIO_1(e => haltNow_1(f(e), __tsplusTrace), succeedNow_1, __tsplusTrace)(ma);
|
@@ -1657,13 +1261,10 @@ function orHaltWith_1(f, __tsplusTrace) {
|
|
1657
1261
|
*
|
1658
1262
|
* @tsplus pipeable fncts.io.IO concurrentErrors
|
1659
1263
|
*/
|
1660
|
-
|
1661
|
-
|
1662
1264
|
function concurrentErrors(__tsplusTrace) {
|
1663
1265
|
return io => {
|
1664
1266
|
return matchCauseIO_1(cause => {
|
1665
|
-
const f =
|
1666
|
-
|
1267
|
+
const f = tsplus_module_2.failures(cause);
|
1667
1268
|
if (tsplus_module_19.length(f) === 0) {
|
1668
1269
|
return failCauseNow_1(cause, __tsplusTrace);
|
1669
1270
|
} else {
|
@@ -1678,18 +1279,14 @@ function concurrentErrors(__tsplusTrace) {
|
|
1678
1279
|
*
|
1679
1280
|
* @tsplus static fncts.io.IOOps partition
|
1680
1281
|
*/
|
1681
|
-
|
1682
|
-
|
1683
1282
|
function partition(as, f, __tsplusTrace) {
|
1684
|
-
return map_1(c =>
|
1283
|
+
return map_1(c => tsplus_module_10.separate(c), __tsplusTrace)(foreach_1(as, a => either_1(f(a), __tsplusTrace), __tsplusTrace));
|
1685
1284
|
}
|
1686
1285
|
/**
|
1687
1286
|
* Keeps some of the errors, and terminates the fiber with the rest
|
1688
1287
|
*
|
1689
1288
|
* @tsplus pipeable fncts.io.IO refineOrHalt
|
1690
1289
|
*/
|
1691
|
-
|
1692
|
-
|
1693
1290
|
function refineOrHalt(pf, __tsplusTrace) {
|
1694
1291
|
return fa => {
|
1695
1292
|
return refineOrHaltWith_1(pf, _function.identity, __tsplusTrace)(fa);
|
@@ -1701,11 +1298,9 @@ function refineOrHalt(pf, __tsplusTrace) {
|
|
1701
1298
|
*
|
1702
1299
|
* @tsplus pipeable fncts.io.IO refineOrHaltWith
|
1703
1300
|
*/
|
1704
|
-
|
1705
|
-
|
1706
1301
|
function refineOrHaltWith_1(pf, f, __tsplusTrace) {
|
1707
1302
|
return fa => {
|
1708
|
-
return catchAll_1(e =>
|
1303
|
+
return catchAll_1(e => tsplus_module_16.match(() => haltNow_1(f(e), __tsplusTrace), failNow_1)(pf(e)), __tsplusTrace)(fa);
|
1709
1304
|
};
|
1710
1305
|
}
|
1711
1306
|
/**
|
@@ -1714,11 +1309,9 @@ function refineOrHaltWith_1(pf, f, __tsplusTrace) {
|
|
1714
1309
|
*
|
1715
1310
|
* @tsplus pipeable fncts.io.IO reject
|
1716
1311
|
*/
|
1717
|
-
|
1718
|
-
|
1719
1312
|
function reject(pf, __tsplusTrace) {
|
1720
1313
|
return fa => {
|
1721
|
-
return rejectIO_1(a =>
|
1314
|
+
return rejectIO_1(a => tsplus_module_6.map(failNow_1)(pf(a)), __tsplusTrace)(fa);
|
1722
1315
|
};
|
1723
1316
|
}
|
1724
1317
|
/**
|
@@ -1728,11 +1321,9 @@ function reject(pf, __tsplusTrace) {
|
|
1728
1321
|
*
|
1729
1322
|
* @tsplus pipeable fncts.io.IO rejectIO
|
1730
1323
|
*/
|
1731
|
-
|
1732
|
-
|
1733
1324
|
function rejectIO_1(pf, __tsplusTrace) {
|
1734
1325
|
return fa => {
|
1735
|
-
return flatMap_1(a =>
|
1326
|
+
return flatMap_1(a => tsplus_module_16.match(() => succeedNow_1(a, __tsplusTrace), io => flatMap_1(failNow_1, __tsplusTrace)(io))(pf(a)), __tsplusTrace)(fa);
|
1736
1327
|
};
|
1737
1328
|
}
|
1738
1329
|
/**
|
@@ -1740,8 +1331,6 @@ function rejectIO_1(pf, __tsplusTrace) {
|
|
1740
1331
|
*
|
1741
1332
|
* @tsplus pipeable fncts.io.IO repeatN
|
1742
1333
|
*/
|
1743
|
-
|
1744
|
-
|
1745
1334
|
function repeatN_1(n, __tsplusTrace) {
|
1746
1335
|
return ma => {
|
1747
1336
|
return flatMap_1(a => n <= 0 ? succeed_1(() => a, __tsplusTrace) : repeatN_1(n - 1, __tsplusTrace)(ma), __tsplusTrace)(ma);
|
@@ -1752,8 +1341,6 @@ function repeatN_1(n, __tsplusTrace) {
|
|
1752
1341
|
*
|
1753
1342
|
* @tsplus pipeable fncts.io.IO repeatUntil
|
1754
1343
|
*/
|
1755
|
-
|
1756
|
-
|
1757
1344
|
function repeatUntil(f, __tsplusTrace) {
|
1758
1345
|
return ma => {
|
1759
1346
|
return repeatUntilIO_1(a => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(ma);
|
@@ -1764,8 +1351,6 @@ function repeatUntil(f, __tsplusTrace) {
|
|
1764
1351
|
*
|
1765
1352
|
* @tsplus pipeable fncts.io.IO repeatUntilIO
|
1766
1353
|
*/
|
1767
|
-
|
1768
|
-
|
1769
1354
|
function repeatUntilIO_1(f, __tsplusTrace) {
|
1770
1355
|
return ma => {
|
1771
1356
|
return flatMap_1(a => flatMap_1(b => b ? succeed_1(() => a, __tsplusTrace) : repeatUntilIO_1(f, __tsplusTrace)(ma), __tsplusTrace)(f(a)), __tsplusTrace)(ma);
|
@@ -1776,8 +1361,6 @@ function repeatUntilIO_1(f, __tsplusTrace) {
|
|
1776
1361
|
*
|
1777
1362
|
* @tsplus pipeable fncts.io.IO repeatWhile
|
1778
1363
|
*/
|
1779
|
-
|
1780
|
-
|
1781
1364
|
function repeatWhile(f, __tsplusTrace) {
|
1782
1365
|
return ma => {
|
1783
1366
|
return repeatWhileIO_1(a => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace)(ma);
|
@@ -1788,8 +1371,6 @@ function repeatWhile(f, __tsplusTrace) {
|
|
1788
1371
|
*
|
1789
1372
|
* @tsplus pipeable fncts.io.IO repeatWhileIO
|
1790
1373
|
*/
|
1791
|
-
|
1792
|
-
|
1793
1374
|
function repeatWhileIO_1(f, __tsplusTrace) {
|
1794
1375
|
return ma => {
|
1795
1376
|
return flatMap_1(a => flatMap_1(b => b ? repeatWhileIO_1(f, __tsplusTrace)(ma) : succeed_1(() => a, __tsplusTrace), __tsplusTrace)(f(a)), __tsplusTrace)(ma);
|
@@ -1798,8 +1379,6 @@ function repeatWhileIO_1(f, __tsplusTrace) {
|
|
1798
1379
|
/**
|
1799
1380
|
* @tsplus pipeable fncts.io.IO replicate
|
1800
1381
|
*/
|
1801
|
-
|
1802
|
-
|
1803
1382
|
function replicate(n, __tsplusTrace) {
|
1804
1383
|
return self => {
|
1805
1384
|
return tsplus_module_21.map(() => self)(tsplus_module_20.range(0, n));
|
@@ -1808,11 +1387,9 @@ function replicate(n, __tsplusTrace) {
|
|
1808
1387
|
/**
|
1809
1388
|
* @tsplus pipeable fncts.io.IO require
|
1810
1389
|
*/
|
1811
|
-
|
1812
|
-
|
1813
1390
|
function _require(error, __tsplusTrace) {
|
1814
1391
|
return ma => {
|
1815
|
-
return flatMap_1(ma =>
|
1392
|
+
return flatMap_1(ma => tsplus_module_16.match(() => fail_1(error, __tsplusTrace), succeedNow_1)(ma), __tsplusTrace)(ma);
|
1816
1393
|
};
|
1817
1394
|
}
|
1818
1395
|
/**
|
@@ -1821,28 +1398,22 @@ function _require(error, __tsplusTrace) {
|
|
1821
1398
|
*
|
1822
1399
|
* @tsplus getter fncts.io.IO result
|
1823
1400
|
*/
|
1824
|
-
|
1825
|
-
|
1826
1401
|
function result(ma, __tsplusTrace) {
|
1827
|
-
return matchCauseIO_1(cause => succeedNow_1(
|
1402
|
+
return matchCauseIO_1(cause => succeedNow_1(tsplus_module_22.failCause(cause), __tsplusTrace), a => succeedNow_1(tsplus_module_22.succeed(a), __tsplusTrace), __tsplusTrace)(ma);
|
1828
1403
|
}
|
1829
1404
|
/**
|
1830
1405
|
* Recover from the unchecked failure of the `IO`. (opposite of `orHalt`)
|
1831
1406
|
*
|
1832
1407
|
* @trace call
|
1833
1408
|
*/
|
1834
|
-
|
1835
|
-
|
1836
1409
|
function resurrect(io, __tsplusTrace) {
|
1837
|
-
return unrefineWith_1(
|
1410
|
+
return unrefineWith_1(tsplus_module_3.just, _function.identity, __tsplusTrace)(io);
|
1838
1411
|
}
|
1839
1412
|
/**
|
1840
1413
|
* Retries this effect until its error satisfies the specified predicate.
|
1841
1414
|
*
|
1842
1415
|
* @tsplus pipeable fncts.io.IO retryUntil
|
1843
1416
|
*/
|
1844
|
-
|
1845
|
-
|
1846
1417
|
function retryUntil(f, __tsplusTrace) {
|
1847
1418
|
return fa => {
|
1848
1419
|
return retryUntilIO_1(e => succeedNow_1(f(e), __tsplusTrace), __tsplusTrace)(fa);
|
@@ -1853,8 +1424,6 @@ function retryUntil(f, __tsplusTrace) {
|
|
1853
1424
|
*
|
1854
1425
|
* @tsplus pipeable fncts.io.IO retryUntilIO
|
1855
1426
|
*/
|
1856
|
-
|
1857
|
-
|
1858
1427
|
function retryUntilIO_1(f, __tsplusTrace) {
|
1859
1428
|
return fa => {
|
1860
1429
|
return catchAll_1(e => flatMap_1(b => b ? failNow_1(e, __tsplusTrace) : retryUntilIO_1(f, __tsplusTrace)(fa), __tsplusTrace)(f(e)), __tsplusTrace)(fa);
|
@@ -1865,8 +1434,6 @@ function retryUntilIO_1(f, __tsplusTrace) {
|
|
1865
1434
|
*
|
1866
1435
|
* @tsplus pipeable fncts.io.IO retryWhile
|
1867
1436
|
*/
|
1868
|
-
|
1869
|
-
|
1870
1437
|
function retryWhile(f, __tsplusTrace) {
|
1871
1438
|
return fa => {
|
1872
1439
|
return retryWhileIO_1(e => succeedNow_1(f(e), __tsplusTrace), __tsplusTrace)(fa);
|
@@ -1877,64 +1444,36 @@ function retryWhile(f, __tsplusTrace) {
|
|
1877
1444
|
*
|
1878
1445
|
* @tsplus pipeable fncts.io.IO retryWhileIO
|
1879
1446
|
*/
|
1880
|
-
|
1881
|
-
|
1882
1447
|
function retryWhileIO_1(f, __tsplusTrace) {
|
1883
1448
|
return fa => {
|
1884
1449
|
return catchAll_1(e => flatMap_1(b => b ? retryWhileIO_1(f, __tsplusTrace)(fa) : fail_1(() => e, __tsplusTrace), __tsplusTrace)(f(e)), __tsplusTrace)(fa);
|
1885
1450
|
};
|
1886
1451
|
}
|
1887
|
-
/**
|
1888
|
-
* Retrieves the runtimeConfig that this effect is running on.
|
1889
|
-
*
|
1890
|
-
* @tsplus static fncts.io.IOOps runtimeConfig
|
1891
|
-
*/
|
1892
|
-
|
1893
|
-
|
1894
|
-
const runtimeConfig = /*#__PURE__*/deferWith_1(runtimeConfig => succeedNow_1(runtimeConfig, fileName_1 + ":1787:95"), fileName_1 + ":1787:62");
|
1895
1452
|
/**
|
1896
1453
|
* Exposes the full cause of failure of this effect.
|
1897
1454
|
*
|
1898
1455
|
* @tsplus getter fncts.io.IO sandbox
|
1899
1456
|
*/
|
1900
|
-
|
1901
|
-
exports.runtimeConfig = runtimeConfig;
|
1902
|
-
|
1903
1457
|
function sandbox_1(fa, __tsplusTrace) {
|
1904
1458
|
return matchCauseIO_1(failNow_1, succeedNow_1, __tsplusTrace)(fa);
|
1905
1459
|
}
|
1906
1460
|
/**
|
1907
1461
|
* @tsplus pipeable fncts.io.IO sandboxWith
|
1908
1462
|
*/
|
1909
|
-
|
1910
|
-
|
1911
1463
|
function sandboxWith(f, __tsplusTrace) {
|
1912
1464
|
return ma => {
|
1913
1465
|
return unsandbox_1(f(sandbox_1(ma, __tsplusTrace)), __tsplusTrace);
|
1914
1466
|
};
|
1915
1467
|
}
|
1916
|
-
/**
|
1917
|
-
* Sets the runtime configuration to the specified value.
|
1918
|
-
* @tsplus static fncts.io.IOOps setRuntimeConfig
|
1919
|
-
*/
|
1920
|
-
|
1921
|
-
|
1922
|
-
function setRuntimeConfig(runtimeConfig, __tsplusTrace) {
|
1923
|
-
return withFiberContext_1(fiber => succeed_1(() => fiber.runtimeConfig = runtimeConfig(), __tsplusTrace), __tsplusTrace);
|
1924
|
-
}
|
1925
1468
|
/**
|
1926
1469
|
* @tsplus static fncts.io.IOOps sequenceIterable
|
1927
1470
|
*/
|
1928
|
-
|
1929
|
-
|
1930
1471
|
function sequenceIterable(as, __tsplusTrace) {
|
1931
1472
|
return foreach_1(as, _function.identity, __tsplusTrace);
|
1932
1473
|
}
|
1933
1474
|
/**
|
1934
1475
|
* @tsplus static fncts.io.IOOps sequenceIterableDiscard
|
1935
1476
|
*/
|
1936
|
-
|
1937
|
-
|
1938
1477
|
function sequenceIterableDiscard(as, __tsplusTrace) {
|
1939
1478
|
return foreachDiscard_1(as, _function.identity, __tsplusTrace);
|
1940
1479
|
}
|
@@ -1943,8 +1482,6 @@ function sequenceIterableDiscard(as, __tsplusTrace) {
|
|
1943
1482
|
*
|
1944
1483
|
* @tsplus static fncts.io.IOOps succeedNow
|
1945
1484
|
*/
|
1946
|
-
|
1947
|
-
|
1948
1485
|
function succeedNow_1(value, __tsplusTrace) {
|
1949
1486
|
return new _definition2.SucceedNow(value, __tsplusTrace);
|
1950
1487
|
}
|
@@ -1956,16 +1493,12 @@ function succeedNow_1(value, __tsplusTrace) {
|
|
1956
1493
|
* @tsplus static fncts.io.IOOps succeed
|
1957
1494
|
* @tsplus static fncts.io.IOOps __call
|
1958
1495
|
*/
|
1959
|
-
|
1960
|
-
|
1961
1496
|
function succeed_1(effect, __tsplusTrace) {
|
1962
|
-
return new _definition2.
|
1497
|
+
return new _definition2.Sync(effect, __tsplusTrace);
|
1963
1498
|
}
|
1964
1499
|
/**
|
1965
1500
|
* @tsplus pipeable fncts.io.IO summarized
|
1966
1501
|
*/
|
1967
|
-
|
1968
|
-
|
1969
1502
|
function summarized_1(summary, f, __tsplusTrace) {
|
1970
1503
|
return ma => {
|
1971
1504
|
return gen_1(function* (_) {
|
@@ -1981,8 +1514,6 @@ function summarized_1(summary, f, __tsplusTrace) {
|
|
1981
1514
|
*
|
1982
1515
|
* @tsplus getter fncts.io.IO swap
|
1983
1516
|
*/
|
1984
|
-
|
1985
|
-
|
1986
1517
|
function swap_1(pab, __tsplusTrace) {
|
1987
1518
|
return matchIO_1(succeedNow_1, failNow_1, __tsplusTrace)(pab);
|
1988
1519
|
}
|
@@ -1991,8 +1522,6 @@ function swap_1(pab, __tsplusTrace) {
|
|
1991
1522
|
*
|
1992
1523
|
* @tsplus pipeable fncts.io.IO swapWith
|
1993
1524
|
*/
|
1994
|
-
|
1995
|
-
|
1996
1525
|
function swapWith_1(f, __tsplusTrace) {
|
1997
1526
|
return fa => swap_1(f(swap_1(fa, __tsplusTrace)), __tsplusTrace);
|
1998
1527
|
}
|
@@ -2001,8 +1530,6 @@ function swapWith_1(f, __tsplusTrace) {
|
|
2001
1530
|
*
|
2002
1531
|
* @tsplus pipeable fncts.io.IO timedWith
|
2003
1532
|
*/
|
2004
|
-
|
2005
|
-
|
2006
1533
|
function timedWith(msTime, __tsplusTrace) {
|
2007
1534
|
return ma => summarized_1(msTime, (start, end) => end - start, __tsplusTrace)(ma);
|
2008
1535
|
}
|
@@ -2011,14 +1538,12 @@ function timedWith(msTime, __tsplusTrace) {
|
|
2011
1538
|
*
|
2012
1539
|
* @tsplus static fncts.io.IOOps tryCatch
|
2013
1540
|
*/
|
2014
|
-
|
2015
|
-
|
2016
1541
|
function tryCatch_1(effect, onThrow, __tsplusTrace) {
|
2017
1542
|
return succeed_1(() => {
|
2018
1543
|
try {
|
2019
1544
|
return effect();
|
2020
1545
|
} catch (u) {
|
2021
|
-
throw new _definition2.IOError(
|
1546
|
+
throw new _definition2.IOError(tsplus_module_2.fail(onThrow(u)));
|
2022
1547
|
}
|
2023
1548
|
}, __tsplusTrace);
|
2024
1549
|
}
|
@@ -2027,10 +1552,8 @@ function tryCatch_1(effect, onThrow, __tsplusTrace) {
|
|
2027
1552
|
*
|
2028
1553
|
* @tsplus getter fncts.io.IO absolve
|
2029
1554
|
*/
|
2030
|
-
|
2031
|
-
|
2032
1555
|
function absolve(ma, __tsplusTrace) {
|
2033
|
-
return flatMap_1(ea =>
|
1556
|
+
return flatMap_1(ea => tsplus_module_4.match(failNow_1, succeedNow_1)(ea), __tsplusTrace)(ma);
|
2034
1557
|
}
|
2035
1558
|
/**
|
2036
1559
|
* Composes computations in sequence, using the return value of one computation as input for the next
|
@@ -2040,8 +1563,6 @@ function absolve(ma, __tsplusTrace) {
|
|
2040
1563
|
*
|
2041
1564
|
* @tsplus pipeable fncts.io.IO tap
|
2042
1565
|
*/
|
2043
|
-
|
2044
|
-
|
2045
1566
|
function tap(f, __tsplusTrace) {
|
2046
1567
|
return self => {
|
2047
1568
|
return flatMap_1(a => map_1(() => a, __tsplusTrace)(f(a)), __tsplusTrace)(self);
|
@@ -2053,8 +1574,6 @@ function tap(f, __tsplusTrace) {
|
|
2053
1574
|
*
|
2054
1575
|
* @tsplus pipeable fncts.io.IO tapCause
|
2055
1576
|
*/
|
2056
|
-
|
2057
|
-
|
2058
1577
|
function tapCause(f, __tsplusTrace) {
|
2059
1578
|
return ma => {
|
2060
1579
|
return matchCauseIO_1(c => flatMap_1(() => failCauseNow_1(c, __tsplusTrace), __tsplusTrace)(f(c)), succeedNow_1, __tsplusTrace)(ma);
|
@@ -2065,10 +1584,8 @@ function tapCause(f, __tsplusTrace) {
|
|
2065
1584
|
*
|
2066
1585
|
* @tsplus pipeable fncts.io.IO tapError
|
2067
1586
|
*/
|
2068
|
-
|
2069
|
-
|
2070
1587
|
function tapError(f, __tsplusTrace) {
|
2071
|
-
return self => matchCauseIO_1(cause =>
|
1588
|
+
return self => matchCauseIO_1(cause => tsplus_module_4.match(e => flatMap_1(() => failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(f(e)), _ => failCauseNow_1(cause, __tsplusTrace))(tsplus_module_2.failureOrCause(cause)), succeedNow_1, __tsplusTrace)(self);
|
2072
1589
|
}
|
2073
1590
|
/**
|
2074
1591
|
* Returns an effect that effectually "peeks" at the cause of the failure of
|
@@ -2076,40 +1593,32 @@ function tapError(f, __tsplusTrace) {
|
|
2076
1593
|
*
|
2077
1594
|
* @tsplus pipeable fncts.io.IO tapErrorCause
|
2078
1595
|
*/
|
2079
|
-
|
2080
|
-
|
2081
1596
|
function tapErrorCause(f, __tsplusTrace) {
|
2082
1597
|
return self => {
|
2083
|
-
return matchCauseIO_1(cause =>
|
1598
|
+
return matchCauseIO_1(cause => zipRight_1(failCauseNow_1(cause, __tsplusTrace), __tsplusTrace)(f(cause)), succeedNow_1, __tsplusTrace)(self);
|
2084
1599
|
};
|
2085
1600
|
}
|
2086
1601
|
/**
|
2087
1602
|
* @tsplus pipeable fncts.io.IO tryOrElse
|
2088
1603
|
*/
|
2089
|
-
|
2090
|
-
|
2091
1604
|
function tryOrElse_1(that, onSuccess, __tsplusTrace) {
|
2092
1605
|
return ma => {
|
2093
|
-
return matchCauseIO_1(cause =>
|
1606
|
+
return matchCauseIO_1(cause => tsplus_module_16.match(that, failCauseNow_1)(tsplus_module_2.keepDefects(cause)), onSuccess, __tsplusTrace)(ma);
|
2094
1607
|
};
|
2095
1608
|
}
|
2096
1609
|
/**
|
2097
1610
|
* @tsplus static fncts.io.IOOps unit
|
2098
1611
|
*/
|
2099
|
-
|
2100
|
-
|
2101
|
-
const unit_1 = /*#__PURE__*/succeedNow_1(undefined, fileName_1 + ":1987:45");
|
1612
|
+
const unit_1 = /*#__PURE__*/succeedNow_1(undefined, fileName_1 + ":1796:45");
|
2102
1613
|
const unit = unit_1;
|
2103
1614
|
/**
|
2104
1615
|
* Converts an option on errors into an option on values.
|
2105
1616
|
*
|
2106
1617
|
* @tsplus getter fncts.io.IO unjust
|
2107
1618
|
*/
|
2108
|
-
|
2109
1619
|
exports.unit = unit;
|
2110
|
-
|
2111
1620
|
function unjust(self, __tsplusTrace) {
|
2112
|
-
return matchIO_1(e =>
|
1621
|
+
return matchIO_1(e => tsplus_module_16.match(() => succeedNow_1(tsplus_module_3.nothing(), __tsplusTrace), failNow_1)(e), a => succeedNow_1(tsplus_module_3.just(a), __tsplusTrace), __tsplusTrace)(self);
|
2113
1622
|
}
|
2114
1623
|
/**
|
2115
1624
|
* Takes some fiber failures and converts them into errors, using the
|
@@ -2117,11 +1626,9 @@ function unjust(self, __tsplusTrace) {
|
|
2117
1626
|
*
|
2118
1627
|
* @tsplus pipeable fncts.io.IO unrefineWith
|
2119
1628
|
*/
|
2120
|
-
|
2121
|
-
|
2122
1629
|
function unrefineWith_1(pf, f, __tsplusTrace) {
|
2123
1630
|
return fa => {
|
2124
|
-
return catchAllCause_1(cause =>
|
1631
|
+
return catchAllCause_1(cause => tsplus_module_16.match(() => failCauseNow_1(tsplus_module_2.map(f)(cause), __tsplusTrace), failNow_1)(tsplus_module_2.find(c => tsplus_module_2.isHalt(c) ? pf(c.value) : tsplus_module_3.nothing())(cause)), __tsplusTrace)(fa);
|
2125
1632
|
};
|
2126
1633
|
}
|
2127
1634
|
/**
|
@@ -2129,10 +1636,8 @@ function unrefineWith_1(pf, f, __tsplusTrace) {
|
|
2129
1636
|
*
|
2130
1637
|
* @tsplus getter fncts.io.IO unsandbox
|
2131
1638
|
*/
|
2132
|
-
|
2133
|
-
|
2134
1639
|
function unsandbox_1(ma, __tsplusTrace) {
|
2135
|
-
return mapErrorCause_1(cause =>
|
1640
|
+
return mapErrorCause_1(cause => tsplus_module_2.flatten(cause), __tsplusTrace)(ma);
|
2136
1641
|
}
|
2137
1642
|
/**
|
2138
1643
|
* Updates the `FiberRef` values for the fiber running this effect using the
|
@@ -2140,34 +1645,20 @@ function unsandbox_1(ma, __tsplusTrace) {
|
|
2140
1645
|
*
|
2141
1646
|
* @tsplus static fncts.io.IOOps updateFiberRefs
|
2142
1647
|
*/
|
2143
|
-
|
2144
|
-
|
2145
1648
|
function updateFiberRefs(f, __tsplusTrace) {
|
2146
|
-
return
|
2147
|
-
|
2148
|
-
|
2149
|
-
}, __tsplusTrace)
|
2150
|
-
}
|
2151
|
-
/**
|
2152
|
-
* @tsplus static fncts.io.IOOps withFiberContext
|
2153
|
-
*/
|
2154
|
-
|
2155
|
-
|
2156
|
-
function withFiberContext_1(onState, __tsplusTrace) {
|
2157
|
-
return new _definition2.Stateful(onState, __tsplusTrace);
|
1649
|
+
return withFiberRuntime_1(state => {
|
1650
|
+
state.setFiberRefs(f(state.id, state.getFiberRefs()));
|
1651
|
+
return unit_1;
|
1652
|
+
}, __tsplusTrace);
|
2158
1653
|
}
|
2159
1654
|
/**
|
2160
1655
|
* @tsplus fluent fncts.io.IO __call
|
2161
1656
|
*/
|
2162
|
-
|
2163
|
-
|
2164
1657
|
const via = _function.pipe;
|
2165
1658
|
/**
|
2166
1659
|
* @tsplus pipeable fncts.io.IO when
|
2167
1660
|
*/
|
2168
|
-
|
2169
1661
|
exports.via = via;
|
2170
|
-
|
2171
1662
|
function when(b, __tsplusTrace) {
|
2172
1663
|
return ma => {
|
2173
1664
|
return whenIO_1(succeed_1(b, __tsplusTrace), __tsplusTrace)(ma);
|
@@ -2178,13 +1669,29 @@ function when(b, __tsplusTrace) {
|
|
2178
1669
|
*
|
2179
1670
|
* @tsplus pipeable fncts.io.IO whenIO
|
2180
1671
|
*/
|
2181
|
-
|
2182
|
-
|
2183
1672
|
function whenIO_1(mb, __tsplusTrace) {
|
2184
1673
|
return ma => {
|
2185
1674
|
return flatMap_1(b => b ? asUnit_1(ma, __tsplusTrace) : unit_1, __tsplusTrace)(mb);
|
2186
1675
|
};
|
2187
1676
|
}
|
1677
|
+
/**
|
1678
|
+
* @tsplus static fncts.io.IOOps withFiberRuntime
|
1679
|
+
*/
|
1680
|
+
function withFiberRuntime_1(onState, __tsplusTrace) {
|
1681
|
+
return new _definition2.Stateful(onState, __tsplusTrace);
|
1682
|
+
}
|
1683
|
+
/**
|
1684
|
+
* @tsplus static fncts.io.IOOps updateRuntimeFlags
|
1685
|
+
*/
|
1686
|
+
function updateRuntimeFlags(patch, __tsplusTrace) {
|
1687
|
+
return new _definition2.UpdateRuntimeFlags(patch, __tsplusTrace);
|
1688
|
+
}
|
1689
|
+
/**
|
1690
|
+
* @tsplus static fncts.io.IOOps stackTrace
|
1691
|
+
*/
|
1692
|
+
function stackTrace_1(__tsplusTrace) {
|
1693
|
+
return new _definition2.GenerateStackTrace(__tsplusTrace);
|
1694
|
+
}
|
2188
1695
|
/**
|
2189
1696
|
* Returns an effect that yields to the runtime system, starting on a fresh
|
2190
1697
|
* stack. Manual use of this method can improve fairness, at the cost of
|
@@ -2192,16 +1699,12 @@ function whenIO_1(mb, __tsplusTrace) {
|
|
2192
1699
|
*
|
2193
1700
|
* @tsplus static fncts.io.IOOps yieldNow
|
2194
1701
|
*/
|
2195
|
-
|
2196
|
-
|
2197
|
-
const yieldNow_1 = /*#__PURE__*/new _definition2.Yield();
|
1702
|
+
const yieldNow_1 = /*#__PURE__*/new _definition2.YieldNow();
|
2198
1703
|
const yieldNow = yieldNow_1;
|
2199
1704
|
/**
|
2200
1705
|
* @tsplus pipeable fncts.io.IO zip
|
2201
1706
|
*/
|
2202
|
-
|
2203
1707
|
exports.yieldNow = yieldNow;
|
2204
|
-
|
2205
1708
|
function zip(that, __tsplusTrace) {
|
2206
1709
|
return self => {
|
2207
1710
|
return zipWith_1(that, _function.tuple, __tsplusTrace)(self);
|
@@ -2210,38 +1713,28 @@ function zip(that, __tsplusTrace) {
|
|
2210
1713
|
/**
|
2211
1714
|
* @tsplus pipeable fncts.io.IO zipWith
|
2212
1715
|
*/
|
2213
|
-
|
2214
|
-
|
2215
1716
|
function zipWith_1(that, f, __tsplusTrace) {
|
2216
1717
|
return self => {
|
2217
1718
|
return flatMap_1(a => map_1(b => f(a, b), __tsplusTrace)(that), __tsplusTrace)(self);
|
2218
1719
|
};
|
2219
1720
|
}
|
2220
|
-
|
2221
1721
|
class GenIO {
|
2222
1722
|
constructor(effect, _trace) {
|
2223
1723
|
this.effect = effect;
|
2224
1724
|
this._trace = _trace;
|
2225
1725
|
}
|
2226
|
-
|
2227
1726
|
*[Symbol.iterator]() {
|
2228
1727
|
return yield this;
|
2229
1728
|
}
|
2230
|
-
|
2231
1729
|
}
|
2232
1730
|
/**
|
2233
1731
|
* @internal
|
2234
1732
|
*/
|
2235
|
-
|
2236
|
-
|
2237
1733
|
exports.GenIO = GenIO;
|
2238
|
-
|
2239
1734
|
const __adapter = _ => {
|
2240
1735
|
return _;
|
2241
1736
|
};
|
2242
|
-
|
2243
1737
|
exports.__adapter = __adapter;
|
2244
|
-
|
2245
1738
|
const adapter = (_, __tsplusTrace) => {
|
2246
1739
|
return new GenIO(__adapter(_), __tsplusTrace);
|
2247
1740
|
};
|
@@ -2249,26 +1742,20 @@ const adapter = (_, __tsplusTrace) => {
|
|
2249
1742
|
* @tsplus static fncts.io.IOOps gen
|
2250
1743
|
* @gen
|
2251
1744
|
*/
|
2252
|
-
|
2253
|
-
|
2254
1745
|
function gen_1(f, __tsplusTrace) {
|
2255
1746
|
return defer_1(() => {
|
2256
1747
|
const iterator = f(adapter);
|
2257
1748
|
const state = iterator.next();
|
2258
|
-
|
2259
1749
|
const run = state => {
|
2260
1750
|
if (state.done) {
|
2261
1751
|
return succeed_1(() => state.value, __tsplusTrace);
|
2262
1752
|
}
|
2263
|
-
|
2264
1753
|
const f = val => {
|
2265
1754
|
const next = iterator.next(val);
|
2266
1755
|
return run(next);
|
2267
1756
|
};
|
2268
|
-
|
2269
1757
|
return flatMap_1(f, __tsplusTrace)(state.value.effect);
|
2270
1758
|
};
|
2271
|
-
|
2272
1759
|
return run(state);
|
2273
1760
|
}, __tsplusTrace);
|
2274
1761
|
}
|