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