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