@fncts/io 0.0.20 → 0.0.22
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 +2 -2
- package/Channel/ChildExecutorDecision/api.d.ts +2 -2
- package/Channel/UpstreamPullRequest/api.d.ts +2 -2
- package/Channel/api/interruptWhen.d.ts +5 -5
- package/Channel/api/mapOutConcurrentIO.d.ts +8 -0
- package/Channel/api/mergeAll.d.ts +2 -2
- package/Channel/api/mergeAllUnboundedWith.d.ts +2 -2
- package/Channel/api/mergeAllWith.d.ts +2 -2
- package/Channel/api/mergeMap.d.ts +2 -2
- package/Channel/api/mergeWith.d.ts +2 -2
- package/Channel/api/zipConcurrent.d.ts +16 -0
- package/Channel/api.d.ts +62 -62
- package/Channel/core-api.d.ts +11 -11
- package/Channel/definition.d.ts +35 -21
- package/Channel/internal/SingleProducerAsyncInput.d.ts +1 -1
- package/CountdownLatch.d.ts +25 -0
- package/Fiber/FiberMessage.d.ts +67 -0
- package/Fiber/FiberRuntime.d.ts +116 -0
- package/Fiber/api/interrupt.d.ts +1 -1
- package/Fiber/api/interruptAs.d.ts +6 -1
- package/Fiber/api/location.d.ts +1 -2
- package/Fiber/api/mapFiber.d.ts +2 -2
- package/Fiber/api/mapIO.d.ts +5 -5
- package/Fiber/api/zipWith.d.ts +2 -2
- package/Fiber/definition.d.ts +17 -16
- package/Fiber.d.ts +2 -3
- package/FiberDescriptor.d.ts +3 -6
- package/FiberRef/api/locallyScoped.d.ts +2 -2
- package/FiberRef/api/locallyScopedWith.d.ts +2 -2
- package/FiberRef/api.d.ts +18 -18
- package/FiberRef/definition.d.ts +2 -2
- package/FiberRef/unsafe.d.ts +5 -0
- package/FiberRefs/api.d.ts +30 -2
- package/FiberRefs/definition.d.ts +14 -7
- package/FiberRefs/join.d.ts +3 -3
- package/FiberScope/constructors.d.ts +2 -2
- package/FiberScope/definition.d.ts +8 -5
- package/FiberStatus/constructors.d.ts +3 -7
- package/FiberStatus/definition.d.ts +16 -28
- package/Future/api.d.ts +21 -21
- package/Hub/api.d.ts +27 -25
- package/Hub/definition.d.ts +13 -9
- package/IO/api/acquireRelease.d.ts +1 -1
- package/IO/api/acquireReleaseExit.d.ts +1 -1
- package/IO/api/asyncInterrupt.d.ts +39 -0
- package/IO/api/bracket.d.ts +1 -1
- package/IO/api/bracketExit.d.ts +1 -1
- package/IO/api/concurrency.d.ts +2 -2
- package/IO/api/core-scope.d.ts +7 -43
- package/IO/api/delay.d.ts +8 -0
- package/IO/api/ensuringChildren.d.ts +3 -3
- package/IO/api/environment.d.ts +11 -15
- package/IO/api/{foreachC.d.ts → foreachConcurrent.d.ts} +8 -8
- package/IO/api/foreachExec.d.ts +1 -1
- package/IO/api/fork.d.ts +36 -0
- package/IO/api/forkIn.d.ts +3 -3
- package/IO/api/fulfill.d.ts +3 -3
- package/IO/api/interrupt.d.ts +9 -13
- package/IO/api/onExit.d.ts +3 -3
- package/IO/api/onTermination.d.ts +4 -4
- package/IO/api/provideLayer.d.ts +3 -3
- package/IO/api/provideSomeLayer.d.ts +3 -7
- package/IO/api/race.d.ts +2 -2
- package/IO/api/raceFirst.d.ts +2 -2
- package/IO/api/repeat.d.ts +3 -3
- package/IO/api/retry.d.ts +7 -7
- package/IO/api/schedule.d.ts +5 -5
- package/IO/api/scoped.d.ts +2 -2
- package/IO/api/supervised.d.ts +2 -4
- package/IO/api/timeout.d.ts +5 -5
- package/IO/api/withFinalizer.d.ts +3 -3
- package/IO/api/withFinalizerExit.d.ts +3 -3
- package/IO/api/zipConcurrent.d.ts +13 -0
- package/IO/api.d.ts +208 -306
- package/IO/definition.d.ts +111 -130
- package/IO/runtime.d.ts +19 -22
- package/IO.d.ts +5 -3
- package/Layer/MemoMap.d.ts +5 -5
- package/Layer/api.d.ts +28 -28
- package/LogLevel.d.ts +12 -12
- package/LogSpan.d.ts +2 -2
- package/Logger/api.d.ts +5 -5
- package/Push/api.d.ts +232 -0
- package/Push/definition.d.ts +34 -0
- package/Push/internal.d.ts +11 -0
- package/Push.d.ts +3 -0
- package/Queue/api/dimapIO.d.ts +70 -13
- package/Queue/api/filterInputIO.d.ts +12 -20
- package/Queue/api/filterOutputIO.d.ts +10 -21
- package/Queue/api/operations.d.ts +15 -14
- package/Queue/api/poll.d.ts +2 -2
- package/Queue/api/takeBetween.d.ts +3 -3
- package/Queue/api/zipWithIO.d.ts +7 -24
- package/Queue/definition.d.ts +112 -8
- package/Queue/internal.d.ts +7 -7
- package/Ref/Atomic.d.ts +22 -2
- package/Ref/Derived.d.ts +4 -2
- package/Ref/DerivedAll.d.ts +7 -3
- package/Ref/Synchronized/api.d.ts +31 -29
- package/Ref/Synchronized/constructors.d.ts +1 -1
- package/Ref/Synchronized/definition.d.ts +6 -4
- package/Ref/Synchronized.d.ts +3 -0
- package/Ref/api/collect.d.ts +3 -3
- package/Ref/api/dimap.d.ts +21 -21
- package/Ref/api/filter.d.ts +7 -6
- package/Ref/api/get.d.ts +1 -1
- package/Ref/api/match.d.ts +3 -3
- package/Ref/api/matchAll.d.ts +1 -1
- package/Ref/api/modify.d.ts +27 -27
- package/Ref/api/set.d.ts +3 -3
- package/Ref/constructors.d.ts +1 -1
- package/Ref/definition.d.ts +46 -20
- package/Ref/symbols.d.ts +30 -0
- package/Ref.d.ts +2 -0
- package/RefSubject/Atomic.d.ts +36 -0
- package/RefSubject/Synchronized/api.d.ts +9 -0
- package/RefSubject/Synchronized/definition.d.ts +40 -0
- package/RefSubject/api.d.ts +116 -0
- package/RefSubject/definition.d.ts +45 -0
- package/RefSubject.d.ts +3 -0
- package/RuntimeConfig.d.ts +0 -24
- package/RuntimeFlag.d.ts +10 -0
- package/RuntimeFlags/Patch.d.ts +53 -0
- package/RuntimeFlags/RuntimeFlags.d.ts +82 -0
- package/RuntimeFlags.d.ts +2 -0
- package/STM/api/core-api.d.ts +10 -10
- package/STM/api.d.ts +61 -61
- package/STM/internal/Journal.d.ts +4 -4
- package/Schedule/Decision.d.ts +2 -2
- package/Schedule/api.d.ts +121 -105
- package/Scope/ReleaseMap/api/releaseAll.d.ts +2 -2
- package/Scope/ReleaseMap/api.d.ts +10 -10
- package/Scope/ReleaseMap/definition.d.ts +1 -1
- package/Scope/api.d.ts +8 -8
- package/ScopedRef/api.d.ts +1 -1
- package/Sink/api.d.ts +66 -66
- package/State/api.d.ts +4 -4
- package/State/internal.d.ts +1 -1
- package/Stream/api/zipAllWith.d.ts +2 -2
- package/Stream/api/zipWith.d.ts +2 -2
- package/Stream/api/zipWithChunks.d.ts +2 -2
- package/Stream/api.d.ts +217 -205
- package/Stream/internal/DebounceState.d.ts +3 -3
- package/Stream/internal/Handoff.d.ts +6 -6
- package/Stream/internal/SinkEndReason.d.ts +3 -3
- package/Stream/internal/Take.d.ts +8 -8
- package/Subject/Atomic.d.ts +18 -0
- package/Subject/api.d.ts +13 -0
- package/Subject/definition.d.ts +15 -0
- package/Subject.d.ts +3 -0
- package/SubscriptionRef.d.ts +38 -0
- package/Supervisor/api.d.ts +4 -4
- package/SupervisorPatch.d.ts +4 -4
- package/TExit/definition.d.ts +2 -2
- package/TFuture/api.d.ts +7 -7
- package/TFuture/definition.d.ts +2 -2
- package/TReentrantLock/api.d.ts +4 -4
- package/TReentrantLock/definition.d.ts +3 -3
- package/TRef/api.d.ts +26 -27
- package/TRef/constructors.d.ts +6 -6
- package/TRef/definition.d.ts +47 -34
- package/TRef/symbols.d.ts +20 -0
- package/TRef.d.ts +1 -0
- package/TSemaphore/api.d.ts +4 -4
- package/TSemaphore/constructors.d.ts +6 -0
- package/TSemaphore/definition.d.ts +2 -2
- package/_cjs/Cached/api.cjs +9 -32
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/definition.cjs +2 -7
- package/_cjs/Cached/definition.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +0 -3
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/Cached.cjs +0 -6
- package/_cjs/Cached.cjs.map +1 -1
- package/_cjs/CancellerState.cjs +3 -22
- package/_cjs/CancellerState.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs +19 -20
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs +0 -5
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision.cjs +0 -4
- package/_cjs/Channel/ChildExecutorDecision.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +15 -20
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs +0 -6
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest.cjs +0 -4
- package/_cjs/Channel/UpstreamPullRequest.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs +0 -4
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy.cjs +0 -2
- package/_cjs/Channel/UpstreamPullStrategy.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +14 -22
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +42 -0
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs.map +1 -0
- package/_cjs/Channel/api/mergeAll.cjs +6 -8
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +6 -8
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +40 -71
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +6 -9
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +35 -67
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +1 -7
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runCollect.cjs +0 -5
- package/_cjs/Channel/api/runCollect.cjs.map +1 -1
- package/_cjs/Channel/api/runDrain.cjs +0 -5
- package/_cjs/Channel/api/runDrain.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +6 -28
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +7 -29
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/{zipC.cjs → zipConcurrent.cjs} +22 -30
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -0
- package/_cjs/Channel/api.cjs +242 -367
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +34 -48
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +20 -106
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +161 -371
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +5 -37
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeDecision.cjs +4 -27
- package/_cjs/Channel/internal/MergeDecision.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeState.cjs +3 -24
- package/_cjs/Channel/internal/MergeState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +37 -131
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Channel.cjs +0 -6
- package/_cjs/Channel.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +0 -7
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +0 -6
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +2 -12
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Clock.cjs +0 -6
- package/_cjs/Clock.cjs.map +1 -1
- package/_cjs/Console/api.cjs +0 -7
- package/_cjs/Console/api.cjs.map +1 -1
- package/_cjs/Console/definition.cjs +0 -6
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +0 -11
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/Console.cjs +0 -6
- package/_cjs/Console.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +50 -0
- package/_cjs/CountdownLatch.cjs.map +1 -0
- package/_cjs/Differ/api.cjs +5 -28
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Differ/definition.cjs +0 -4
- package/_cjs/Differ/definition.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +72 -0
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -0
- package/_cjs/Fiber/FiberRuntime.cjs +735 -0
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -0
- package/_cjs/Fiber/api/await.cjs +0 -1
- package/_cjs/Fiber/api/await.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +2 -8
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/children.cjs +0 -1
- package/_cjs/Fiber/api/children.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +3 -25
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +1 -6
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/id.cjs +0 -1
- package/_cjs/Fiber/api/id.cjs.map +1 -1
- package/_cjs/Fiber/api/inheritRefs.cjs +1 -2
- package/_cjs/Fiber/api/inheritRefs.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +3 -8
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +3 -13
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +15 -8
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +2 -9
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +3 -6
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +1 -7
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/location.cjs +1 -8
- package/_cjs/Fiber/api/location.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +6 -11
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +14 -27
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/poll.cjs +0 -1
- package/_cjs/Fiber/api/poll.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +7 -21
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +0 -18
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +11 -14
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/Fiber.cjs +15 -72
- package/_cjs/Fiber.cjs.map +1 -1
- package/_cjs/FiberDescriptor.cjs +1 -6
- package/_cjs/FiberDescriptor.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +6 -10
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +5 -8
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +78 -97
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +1 -11
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +5 -23
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +20 -48
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRef.cjs +0 -12
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +74 -32
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +5 -17
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberRefs/join.cjs +51 -71
- package/_cjs/FiberRefs/join.cjs.map +1 -1
- package/_cjs/FiberRefs.cjs +0 -6
- package/_cjs/FiberRefs.cjs.map +1 -1
- package/_cjs/FiberScope/constructors.cjs +0 -4
- package/_cjs/FiberScope/constructors.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +15 -20
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberScope.cjs +0 -4
- package/_cjs/FiberScope.cjs.map +1 -1
- package/_cjs/FiberStatus/constructors.cjs +5 -20
- package/_cjs/FiberStatus/constructors.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +18 -77
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/FiberStatus.cjs +0 -4
- package/_cjs/FiberStatus.cjs.map +1 -1
- package/_cjs/Future/api.cjs +99 -141
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +1 -12
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +2 -15
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Future.cjs +0 -6
- package/_cjs/Future.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +112 -172
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/definition.cjs +14 -7
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +30 -122
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/Hub.cjs +0 -4
- package/_cjs/Hub.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +0 -4
- package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs +1 -7
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +0 -4
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +2 -6
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizer.cjs +0 -4
- package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +1 -8
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +8 -16
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/asyncInterrupt.cjs +77 -0
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -0
- package/_cjs/IO/api/bracket.cjs +3 -7
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +3 -10
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/clockWith.cjs +2 -14
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +9 -22
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +1 -8
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +2 -14
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/core-scope.cjs +60 -126
- package/_cjs/IO/api/core-scope.cjs.map +1 -1
- package/_cjs/{Fiber/api/evalOn.cjs → IO/api/delay.cjs} +10 -18
- package/_cjs/IO/api/delay.cjs.map +1 -0
- package/_cjs/IO/api/ensuringChildren.cjs +7 -10
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +35 -64
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/{foreachC.cjs → foreachConcurrent.cjs} +36 -73
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -0
- package/_cjs/IO/api/foreachExec.cjs +4 -11
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/fork.cjs +75 -0
- package/_cjs/IO/api/fork.cjs.map +1 -0
- package/_cjs/IO/api/forkAll.cjs +3 -7
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +8 -14
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +1 -9
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +8 -12
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +51 -77
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +1 -8
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onExit.cjs +6 -9
- package/_cjs/IO/api/onExit.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +5 -11
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +1 -7
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +6 -12
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +5 -20
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +8 -17
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +6 -9
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +1 -13
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +12 -27
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +14 -29
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +15 -21
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +0 -6
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +0 -5
- package/_cjs/IO/api/scopeWith.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +6 -15
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sequenceT.cjs +1 -7
- package/_cjs/IO/api/sequenceT.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +0 -4
- package/_cjs/IO/api/sleep.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs +0 -6
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +6 -14
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +10 -18
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +2 -10
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +1 -8
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +6 -8
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +6 -8
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/zipConcurrent.cjs +51 -0
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -0
- package/_cjs/IO/api.cjs +669 -1057
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +121 -213
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +51 -119
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +41 -123
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +1 -12
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +1 -12
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +0 -5
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/IOEnv.cjs +0 -6
- package/_cjs/IOEnv.cjs.map +1 -1
- package/_cjs/InterruptStatus/constructors.cjs +0 -5
- package/_cjs/InterruptStatus/constructors.cjs.map +1 -1
- package/_cjs/InterruptStatus/definition.cjs +0 -5
- package/_cjs/InterruptStatus/definition.cjs.map +1 -1
- package/_cjs/InterruptStatus.cjs +0 -4
- package/_cjs/InterruptStatus.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +54 -111
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +112 -184
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs +9 -51
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/Layer.cjs +0 -6
- package/_cjs/Layer.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +24 -36
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs +16 -21
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +18 -21
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +3 -18
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Logger/definition.cjs +0 -3
- package/_cjs/Logger/definition.cjs.map +1 -1
- package/_cjs/Logger.cjs +0 -6
- package/_cjs/Logger.cjs.map +1 -1
- package/_cjs/Push/api.cjs +474 -0
- package/_cjs/Push/api.cjs.map +1 -0
- package/_cjs/Push/definition.cjs +43 -0
- package/_cjs/Push/definition.cjs.map +1 -0
- package/_cjs/Push/internal.cjs +40 -0
- package/_cjs/Push/internal.cjs.map +1 -0
- package/_cjs/Push.cjs +39 -0
- package/_cjs/Push.cjs.map +1 -0
- package/_cjs/Queue/api/dimapIO.cjs +109 -55
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +61 -36
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +72 -44
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/operations.cjs +21 -35
- package/_cjs/Queue/api/operations.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +1 -7
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +24 -34
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/zipWithIO.cjs +33 -48
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/api.cjs +0 -14
- package/_cjs/Queue/api.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +4 -17
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +18 -11
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +63 -117
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +27 -68
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Queue.cjs +0 -10
- package/_cjs/Queue.cjs.map +1 -1
- package/_cjs/Random/api.cjs +0 -17
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +0 -7
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +2 -16
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Random.cjs +0 -6
- package/_cjs/Random.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +54 -26
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +11 -20
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +17 -23
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +99 -103
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +1 -11
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +16 -39
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/{FiberState.cjs → Ref/Synchronized.cjs} +4 -10
- package/_cjs/Ref/Synchronized.cjs.map +1 -0
- package/_cjs/Ref/api/collect.cjs +7 -12
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +55 -60
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +14 -19
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/get.cjs +0 -2
- package/_cjs/Ref/api/get.cjs.map +1 -1
- package/_cjs/Ref/api/match.cjs +8 -10
- package/_cjs/Ref/api/match.cjs.map +1 -1
- package/_cjs/Ref/api/matchAll.cjs +6 -8
- package/_cjs/Ref/api/matchAll.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +73 -171
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api/set.cjs +8 -8
- package/_cjs/Ref/api/set.cjs.map +1 -1
- package/_cjs/Ref/api.cjs +2 -26
- package/_cjs/Ref/api.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +2 -9
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +11 -7
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Ref/symbols.cjs +37 -0
- package/_cjs/Ref/symbols.cjs.map +1 -0
- package/_cjs/Ref.cjs +22 -18
- package/_cjs/Ref.cjs.map +1 -1
- package/_cjs/RefSubject/Atomic.cjs +109 -0
- package/_cjs/RefSubject/Atomic.cjs.map +1 -0
- package/_cjs/{FiberState/constructors.cjs → RefSubject/Synchronized/api.cjs} +13 -34
- package/_cjs/RefSubject/Synchronized/api.cjs.map +1 -0
- package/_cjs/RefSubject/Synchronized/definition.cjs +56 -0
- package/_cjs/RefSubject/Synchronized/definition.cjs.map +1 -0
- package/_cjs/RefSubject/api.cjs +245 -0
- package/_cjs/RefSubject/api.cjs.map +1 -0
- package/_cjs/{FiberState/api.cjs → RefSubject/definition.cjs} +12 -16
- package/_cjs/RefSubject/definition.cjs.map +1 -0
- package/_cjs/RefSubject.cjs +39 -0
- package/_cjs/RefSubject.cjs.map +1 -0
- package/_cjs/Reloadable/api.cjs +3 -18
- package/_cjs/Reloadable/api.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +14 -41
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +0 -14
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/Reloadable.cjs +0 -6
- package/_cjs/Reloadable.cjs.map +1 -1
- package/_cjs/RuntimeConfig.cjs +1 -44
- package/_cjs/RuntimeConfig.cjs.map +1 -1
- package/_cjs/RuntimeFlag.cjs +6 -0
- package/_cjs/RuntimeFlag.cjs.map +1 -0
- package/_cjs/RuntimeFlags/Patch.cjs +76 -0
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -0
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +107 -0
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -0
- package/_cjs/RuntimeFlags.cjs +28 -0
- package/_cjs/RuntimeFlags.cjs.map +1 -0
- package/_cjs/STM/api/core-api.cjs +36 -42
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs +0 -15
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +218 -302
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +9 -72
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +12 -65
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +5 -32
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs +0 -20
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +50 -142
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM/internal/TryCommit.cjs +2 -12
- package/_cjs/STM/internal/TryCommit.cjs.map +1 -1
- package/_cjs/STM/internal/Versioned.cjs +0 -3
- package/_cjs/STM/internal/Versioned.cjs.map +1 -1
- package/_cjs/STM.cjs +0 -10
- package/_cjs/STM.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +13 -37
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/Driver.cjs +0 -5
- package/_cjs/Schedule/Driver.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +6 -22
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +440 -492
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Schedule/definition.cjs +0 -2
- package/_cjs/Schedule/definition.cjs.map +1 -1
- package/_cjs/Schedule.cjs +0 -8
- package/_cjs/Schedule.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +0 -6
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/Finalizer.cjs +0 -2
- package/_cjs/Scope/Finalizer.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +13 -24
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +65 -79
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +1 -12
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +0 -9
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap.cjs +0 -6
- package/_cjs/Scope/ReleaseMap.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +34 -69
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +0 -12
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/Scope.cjs +0 -4
- package/_cjs/Scope.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +7 -26
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +1 -5
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/ScopedRef.cjs +0 -4
- package/_cjs/ScopedRef.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +292 -484
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Sink/definition.cjs +0 -3
- package/_cjs/Sink/definition.cjs.map +1 -1
- package/_cjs/Sink.cjs +0 -4
- package/_cjs/Sink.cjs.map +1 -1
- package/_cjs/State/api.cjs +18 -32
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/State/definition.cjs +2 -7
- package/_cjs/State/definition.cjs.map +1 -1
- package/_cjs/State/internal.cjs +0 -3
- package/_cjs/State/internal.cjs.map +1 -1
- package/_cjs/State.cjs +0 -4
- package/_cjs/State.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +16 -43
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +6 -9
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +14 -32
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +961 -1205
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs +0 -8
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +16 -44
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +34 -80
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +2 -25
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +13 -28
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +32 -75
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +3 -13
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Stream.cjs +0 -4
- package/_cjs/Stream.cjs.map +1 -1
- package/_cjs/{FiberState/definition.cjs → Subject/Atomic.cjs} +21 -36
- package/_cjs/Subject/Atomic.cjs.map +1 -0
- package/_cjs/{IO/api/withRuntimeConfig.cjs → Subject/api.cjs} +17 -14
- package/_cjs/Subject/api.cjs.map +1 -0
- package/_cjs/Subject/definition.cjs +11 -0
- package/_cjs/Subject/definition.cjs.map +1 -0
- package/_cjs/Subject.cjs +39 -0
- package/_cjs/Subject.cjs.map +1 -0
- package/_cjs/SubscriptionRef.cjs +54 -0
- package/_cjs/SubscriptionRef.cjs.map +1 -0
- package/_cjs/Supervisor/api.cjs +24 -37
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +2 -26
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +6 -44
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/Supervisor.cjs +0 -6
- package/_cjs/Supervisor.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +25 -75
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/constructors.cjs +0 -12
- package/_cjs/TExit/constructors.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +14 -76
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TExit.cjs +0 -4
- package/_cjs/TExit.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +21 -37
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +1 -13
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +0 -4
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TFuture.cjs +0 -6
- package/_cjs/TFuture.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +41 -111
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +7 -38
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock.cjs +0 -4
- package/_cjs/TReentrantLock.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +95 -296
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +0 -19
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +84 -34
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TRef/symbols.cjs +27 -0
- package/_cjs/TRef/symbols.cjs.map +1 -0
- package/_cjs/TRef.cjs +11 -6
- package/_cjs/TRef.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +30 -49
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +13 -11
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +0 -4
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/TSemaphore.cjs +0 -6
- package/_cjs/TSemaphore.cjs.map +1 -1
- package/_cjs/TxnId.cjs +0 -3
- package/_cjs/TxnId.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +19 -24
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +19 -24
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +14 -19
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +18 -28
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +11 -14
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +29 -36
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs +0 -12
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +6 -10
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/HashedPair.cjs +4 -15
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +13 -175
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +22 -62
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +11 -77
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +0 -18
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +0 -9
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs +6 -13
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Cached/definition.mjs +2 -4
- package/_mjs/Cached/definition.mjs.map +1 -1
- package/_mjs/Cached/internal.mjs +0 -1
- package/_mjs/Cached/internal.mjs.map +1 -1
- package/_mjs/Cached.mjs.map +1 -1
- package/_mjs/CancellerState.mjs +6 -15
- package/_mjs/CancellerState.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs +18 -18
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs +0 -2
- package/_mjs/Channel/ChildExecutorDecision/definition.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +14 -16
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs +0 -2
- package/_mjs/Channel/UpstreamPullRequest/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs +0 -1
- package/_mjs/Channel/UpstreamPullStrategy/definition.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy.mjs.map +1 -1
- package/_mjs/Channel/api/interruptWhen.mjs +11 -10
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs +34 -0
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs.map +1 -0
- package/_mjs/Channel/api/mergeAll.mjs +5 -4
- package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +5 -4
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +39 -39
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeMap.mjs +5 -4
- package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +34 -50
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +1 -2
- package/_mjs/Channel/api/run.mjs.map +1 -1
- package/_mjs/Channel/api/runCollect.mjs +0 -1
- package/_mjs/Channel/api/runCollect.mjs.map +1 -1
- package/_mjs/Channel/api/runDrain.mjs +0 -1
- package/_mjs/Channel/api/runDrain.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +6 -21
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs +7 -20
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api/zipConcurrent.mjs +32 -0
- package/_mjs/Channel/api/zipConcurrent.mjs.map +1 -0
- package/_mjs/Channel/api.mjs +201 -267
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +28 -35
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +32 -67
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +161 -340
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelState.mjs +5 -20
- package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeDecision.mjs +5 -16
- package/_mjs/Channel/internal/MergeDecision.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeState.mjs +6 -15
- package/_mjs/Channel/internal/MergeState.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +40 -103
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Channel.mjs.map +1 -1
- package/_mjs/Clock/api.mjs +0 -2
- package/_mjs/Clock/api.mjs.map +1 -1
- package/_mjs/Clock/definition.mjs +0 -2
- package/_mjs/Clock/definition.mjs.map +1 -1
- package/_mjs/Clock/live.mjs +2 -6
- package/_mjs/Clock/live.mjs.map +1 -1
- package/_mjs/Clock.mjs.map +1 -1
- package/_mjs/Console/api.mjs +0 -2
- package/_mjs/Console/api.mjs.map +1 -1
- package/_mjs/Console/definition.mjs +0 -2
- package/_mjs/Console/definition.mjs.map +1 -1
- package/_mjs/Console/live.mjs +0 -4
- package/_mjs/Console/live.mjs.map +1 -1
- package/_mjs/Console.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +39 -0
- package/_mjs/CountdownLatch.mjs.map +1 -0
- package/_mjs/Differ/api.mjs +5 -20
- package/_mjs/Differ/api.mjs.map +1 -1
- package/_mjs/Differ/definition.mjs +0 -2
- package/_mjs/Differ/definition.mjs.map +1 -1
- package/_mjs/Fiber/FiberMessage.mjs +56 -0
- package/_mjs/Fiber/FiberMessage.mjs.map +1 -0
- package/_mjs/Fiber/FiberRuntime.mjs +728 -0
- package/_mjs/Fiber/FiberRuntime.mjs.map +1 -0
- package/_mjs/Fiber/api/await.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +2 -3
- package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
- package/_mjs/Fiber/api/children.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +3 -4
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/fromIO.mjs +1 -2
- package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
- package/_mjs/Fiber/api/id.mjs.map +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs +1 -1
- package/_mjs/Fiber/api/inheritRefs.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +3 -4
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +3 -6
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +13 -5
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs +2 -5
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/api/join.mjs +3 -3
- package/_mjs/Fiber/api/join.mjs.map +1 -1
- package/_mjs/Fiber/api/joinAll.mjs +1 -2
- package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
- package/_mjs/Fiber/api/location.mjs +1 -3
- package/_mjs/Fiber/api/location.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +5 -4
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +11 -10
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/poll.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +6 -5
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/constructors.mjs +0 -6
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs +9 -5
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/Fiber.mjs +3 -4
- package/_mjs/Fiber.mjs.map +1 -1
- package/_mjs/FiberDescriptor.mjs +1 -4
- package/_mjs/FiberDescriptor.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +5 -4
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +5 -4
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +64 -66
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +1 -4
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/definition.mjs +5 -10
- package/_mjs/FiberRef/definition.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +17 -30
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRef.mjs +2 -2
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +70 -24
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/definition.mjs +2 -13
- package/_mjs/FiberRefs/definition.mjs.map +1 -1
- package/_mjs/FiberRefs/join.mjs +51 -61
- package/_mjs/FiberRefs/join.mjs.map +1 -1
- package/_mjs/FiberRefs.mjs.map +1 -1
- package/_mjs/FiberScope/constructors.mjs +0 -2
- package/_mjs/FiberScope/constructors.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs +15 -12
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberScope.mjs.map +1 -1
- package/_mjs/FiberStatus/constructors.mjs +5 -15
- package/_mjs/FiberStatus/constructors.mjs.map +1 -1
- package/_mjs/FiberStatus/definition.mjs +14 -66
- package/_mjs/FiberStatus/definition.mjs.map +1 -1
- package/_mjs/FiberStatus.mjs.map +1 -1
- package/_mjs/Future/api.mjs +87 -110
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +1 -5
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +3 -9
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Future.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +98 -123
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/Hub/definition.mjs +13 -3
- package/_mjs/Hub/definition.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +30 -90
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/Hub.mjs.map +1 -1
- package/_mjs/IO/api/acquireRelease.mjs +0 -1
- package/_mjs/IO/api/acquireRelease.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs +1 -2
- package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs +0 -1
- package/_mjs/IO/api/acquireReleaseInterruptible.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +2 -2
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizer.mjs +0 -1
- package/_mjs/IO/api/addFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs +1 -2
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +8 -8
- package/_mjs/IO/api/asyncIO.mjs.map +1 -1
- package/_mjs/IO/api/asyncInterrupt.mjs +65 -0
- package/_mjs/IO/api/asyncInterrupt.mjs.map +1 -0
- package/_mjs/IO/api/bracket.mjs +2 -3
- package/_mjs/IO/api/bracket.mjs.map +1 -1
- package/_mjs/IO/api/bracketExit.mjs +2 -3
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/clockWith.mjs +2 -5
- package/_mjs/IO/api/clockWith.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +8 -11
- package/_mjs/IO/api/concurrency.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +1 -2
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/consoleWith.mjs +2 -5
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/core-scope.mjs +56 -94
- package/_mjs/IO/api/core-scope.mjs.map +1 -1
- package/_mjs/IO/api/delay.mjs +12 -0
- package/_mjs/IO/api/delay.mjs.map +1 -0
- package/_mjs/IO/api/ensuringChildren.mjs +7 -5
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +29 -42
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/foreachConcurrent.mjs +104 -0
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -0
- package/_mjs/IO/api/foreachExec.mjs +3 -4
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs +64 -0
- package/_mjs/IO/api/fork.mjs.map +1 -0
- package/_mjs/IO/api/forkAll.mjs +3 -3
- package/_mjs/IO/api/forkAll.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +7 -6
- package/_mjs/IO/api/forkIn.mjs.map +1 -1
- package/_mjs/IO/api/forkScoped.mjs +1 -2
- package/_mjs/IO/api/forkScoped.mjs.map +1 -1
- package/_mjs/IO/api/fulfill.mjs +7 -6
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +45 -58
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/memoize.mjs +1 -2
- package/_mjs/IO/api/memoize.mjs.map +1 -1
- package/_mjs/IO/api/onExit.mjs +5 -4
- package/_mjs/IO/api/onExit.mjs.map +1 -1
- package/_mjs/IO/api/onTermination.mjs +5 -4
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/once.mjs +1 -2
- package/_mjs/IO/api/once.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +5 -4
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +5 -12
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +7 -7
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +5 -4
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +1 -4
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +8 -13
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +12 -18
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +15 -15
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scope.mjs +0 -1
- package/_mjs/IO/api/scope.mjs.map +1 -1
- package/_mjs/IO/api/scopeWith.mjs +0 -1
- package/_mjs/IO/api/scopeWith.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +3 -6
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/sequenceT.mjs +1 -2
- package/_mjs/IO/api/sequenceT.mjs.map +1 -1
- package/_mjs/IO/api/sleep.mjs +0 -1
- package/_mjs/IO/api/sleep.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs +0 -1
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +5 -9
- package/_mjs/IO/api/supervised.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +10 -9
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/withChildren.mjs +2 -4
- package/_mjs/IO/api/withChildren.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +1 -2
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizer.mjs +5 -4
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +5 -4
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/zipConcurrent.mjs +41 -0
- package/_mjs/IO/api/zipConcurrent.mjs.map +1 -0
- package/_mjs/IO/api.mjs +545 -797
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +107 -150
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +51 -86
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +7 -5
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs +1 -2
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/IOEnv/live.mjs +1 -2
- package/_mjs/IOEnv/live.mjs.map +1 -1
- package/_mjs/IOEnv/services.mjs +0 -1
- package/_mjs/IOEnv/services.mjs.map +1 -1
- package/_mjs/IOEnv.mjs.map +1 -1
- package/_mjs/InterruptStatus/constructors.mjs +0 -3
- package/_mjs/InterruptStatus/constructors.mjs.map +1 -1
- package/_mjs/InterruptStatus/definition.mjs +0 -3
- package/_mjs/InterruptStatus/definition.mjs.map +1 -1
- package/_mjs/InterruptStatus.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +54 -82
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +93 -130
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs +15 -34
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/Layer.mjs.map +1 -1
- package/_mjs/LogLevel.mjs +24 -29
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs +16 -18
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs +16 -14
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs +3 -11
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Logger/definition.mjs +0 -1
- package/_mjs/Logger/definition.mjs.map +1 -1
- package/_mjs/Logger.mjs.map +1 -1
- package/_mjs/Push/api.mjs +417 -0
- package/_mjs/Push/api.mjs.map +1 -0
- package/_mjs/Push/definition.mjs +33 -0
- package/_mjs/Push/definition.mjs.map +1 -0
- package/_mjs/Push/internal.mjs +26 -0
- package/_mjs/Push/internal.mjs.map +1 -0
- package/_mjs/Push.mjs +5 -0
- package/_mjs/Push.mjs.map +1 -0
- package/_mjs/Queue/api/dimapIO.mjs +101 -42
- package/_mjs/Queue/api/dimapIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterInputIO.mjs +59 -24
- package/_mjs/Queue/api/filterInputIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +70 -32
- package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -1
- package/_mjs/Queue/api/operations.mjs +18 -22
- package/_mjs/Queue/api/operations.mjs.map +1 -1
- package/_mjs/Queue/api/poll.mjs +1 -2
- package/_mjs/Queue/api/poll.mjs.map +1 -1
- package/_mjs/Queue/api/takeBetween.mjs +23 -27
- package/_mjs/Queue/api/takeBetween.mjs.map +1 -1
- package/_mjs/Queue/api/zipWithIO.mjs +30 -33
- package/_mjs/Queue/api/zipWithIO.mjs.map +1 -1
- package/_mjs/Queue/api.mjs.map +1 -1
- package/_mjs/Queue/constructors.mjs +5 -9
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/definition.mjs +14 -7
- package/_mjs/Queue/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +57 -93
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +28 -55
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Queue.mjs.map +1 -1
- package/_mjs/Random/api.mjs +0 -8
- package/_mjs/Random/api.mjs.map +1 -1
- package/_mjs/Random/definition.mjs +0 -2
- package/_mjs/Random/definition.mjs.map +1 -1
- package/_mjs/Random/live.mjs +2 -9
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Random.mjs.map +1 -1
- package/_mjs/Ref/Atomic.mjs +49 -3
- package/_mjs/Ref/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Derived.mjs +11 -9
- package/_mjs/Ref/Derived.mjs.map +1 -1
- package/_mjs/Ref/DerivedAll.mjs +15 -11
- package/_mjs/Ref/DerivedAll.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/api.mjs +82 -68
- package/_mjs/Ref/Synchronized/api.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +1 -2
- package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs +16 -28
- package/_mjs/Ref/Synchronized/definition.mjs.map +1 -1
- package/_mjs/Ref/Synchronized.mjs +5 -0
- package/_mjs/Ref/Synchronized.mjs.map +1 -0
- package/_mjs/Ref/api/collect.mjs +6 -5
- package/_mjs/Ref/api/collect.mjs.map +1 -1
- package/_mjs/Ref/api/dimap.mjs +45 -41
- package/_mjs/Ref/api/dimap.mjs.map +1 -1
- package/_mjs/Ref/api/filter.mjs +12 -10
- package/_mjs/Ref/api/filter.mjs.map +1 -1
- package/_mjs/Ref/api/get.mjs +0 -1
- package/_mjs/Ref/api/get.mjs.map +1 -1
- package/_mjs/Ref/api/match.mjs +7 -7
- package/_mjs/Ref/api/match.mjs.map +1 -1
- package/_mjs/Ref/api/matchAll.mjs +5 -5
- package/_mjs/Ref/api/matchAll.mjs.map +1 -1
- package/_mjs/Ref/api/modify.mjs +63 -143
- package/_mjs/Ref/api/modify.mjs.map +1 -1
- package/_mjs/Ref/api/set.mjs +7 -6
- package/_mjs/Ref/api/set.mjs.map +1 -1
- package/_mjs/Ref/api.mjs +5 -7
- package/_mjs/Ref/api.mjs.map +1 -1
- package/_mjs/Ref/constructors.mjs +2 -3
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs +10 -3
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/Ref/symbols.mjs +25 -0
- package/_mjs/Ref/symbols.mjs.map +1 -0
- package/_mjs/Ref.mjs +4 -2
- package/_mjs/Ref.mjs.map +1 -1
- package/_mjs/RefSubject/Atomic.mjs +100 -0
- package/_mjs/RefSubject/Atomic.mjs.map +1 -0
- package/_mjs/RefSubject/Synchronized/api.mjs +15 -0
- package/_mjs/RefSubject/Synchronized/api.mjs.map +1 -0
- package/_mjs/RefSubject/Synchronized/definition.mjs +45 -0
- package/_mjs/RefSubject/Synchronized/definition.mjs.map +1 -0
- package/_mjs/RefSubject/api.mjs +220 -0
- package/_mjs/RefSubject/api.mjs.map +1 -0
- package/_mjs/RefSubject/definition.mjs +11 -0
- package/_mjs/RefSubject/definition.mjs.map +1 -0
- package/_mjs/RefSubject.mjs +5 -0
- package/_mjs/RefSubject.mjs.map +1 -0
- package/_mjs/Reloadable/api.mjs +3 -12
- package/_mjs/Reloadable/api.mjs.map +1 -1
- package/_mjs/Reloadable/constructors.mjs +14 -26
- package/_mjs/Reloadable/constructors.mjs.map +1 -1
- package/_mjs/Reloadable/definition.mjs +0 -6
- package/_mjs/Reloadable/definition.mjs.map +1 -1
- package/_mjs/Reloadable.mjs.map +1 -1
- package/_mjs/RuntimeConfig.mjs +0 -31
- package/_mjs/RuntimeConfig.mjs.map +1 -1
- package/_mjs/RuntimeFlag.mjs +2 -0
- package/_mjs/RuntimeFlag.mjs.map +1 -0
- package/_mjs/RuntimeFlags/Patch.mjs +58 -0
- package/_mjs/RuntimeFlags/Patch.mjs.map +1 -0
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs +82 -0
- package/_mjs/RuntimeFlags/RuntimeFlags.mjs.map +1 -0
- package/_mjs/RuntimeFlags.mjs +4 -0
- package/_mjs/RuntimeFlags.mjs.map +1 -0
- package/_mjs/STM/api/core-api.mjs +29 -27
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api/core-constructors.mjs +0 -8
- package/_mjs/STM/api/core-constructors.mjs.map +1 -1
- package/_mjs/STM/api.mjs +182 -212
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/definition.mjs +14 -36
- package/_mjs/STM/definition.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +12 -54
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/CommitState.mjs +5 -25
- package/_mjs/STM/internal/CommitState.mjs.map +1 -1
- package/_mjs/STM/internal/Entry.mjs +0 -12
- package/_mjs/STM/internal/Entry.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +50 -128
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM/internal/TryCommit.mjs +3 -8
- package/_mjs/STM/internal/TryCommit.mjs.map +1 -1
- package/_mjs/STM/internal/Versioned.mjs +0 -1
- package/_mjs/STM/internal/Versioned.mjs.map +1 -1
- package/_mjs/STM.mjs +2 -2
- package/_mjs/STM.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +14 -25
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/Driver.mjs +0 -2
- package/_mjs/Schedule/Driver.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +6 -8
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +379 -374
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Schedule/definition.mjs.map +1 -1
- package/_mjs/Schedule.mjs.map +1 -1
- package/_mjs/Scope/Finalizer/definition.mjs +0 -1
- package/_mjs/Scope/Finalizer/definition.mjs.map +1 -1
- package/_mjs/Scope/Finalizer.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +12 -12
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +59 -60
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/constructors.mjs +1 -4
- package/_mjs/Scope/ReleaseMap/constructors.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/definition.mjs +0 -2
- package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +28 -45
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/Scope/definition.mjs +0 -4
- package/_mjs/Scope/definition.mjs.map +1 -1
- package/_mjs/Scope.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +7 -11
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef/definition.mjs +1 -3
- package/_mjs/ScopedRef/definition.mjs.map +1 -1
- package/_mjs/ScopedRef.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +282 -383
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/Sink/definition.mjs +0 -1
- package/_mjs/Sink/definition.mjs.map +1 -1
- package/_mjs/Sink.mjs.map +1 -1
- package/_mjs/State/api.mjs +16 -19
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/State/definition.mjs +2 -4
- package/_mjs/State/definition.mjs.map +1 -1
- package/_mjs/State/internal.mjs +0 -1
- package/_mjs/State/internal.mjs.map +1 -1
- package/_mjs/State.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +15 -30
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +5 -4
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +13 -23
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +827 -936
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs +0 -4
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +18 -34
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +33 -51
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +2 -9
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +13 -22
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +28 -42
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs +3 -6
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/Stream.mjs.map +1 -1
- package/_mjs/Subject/Atomic.mjs +22 -0
- package/_mjs/Subject/Atomic.mjs.map +1 -0
- package/_mjs/Subject/api.mjs +18 -0
- package/_mjs/Subject/api.mjs.map +1 -0
- package/_mjs/Subject/definition.mjs +3 -0
- package/_mjs/Subject/definition.mjs.map +1 -0
- package/_mjs/Subject.mjs +5 -0
- package/_mjs/Subject.mjs.map +1 -0
- package/_mjs/SubscriptionRef.mjs +41 -0
- package/_mjs/SubscriptionRef.mjs.map +1 -0
- package/_mjs/Supervisor/api.mjs +22 -29
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +2 -14
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +6 -32
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/Supervisor.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +28 -55
- package/_mjs/SupervisorPatch.mjs.map +1 -1
- package/_mjs/TExit/constructors.mjs +0 -6
- package/_mjs/TExit/constructors.mjs.map +1 -1
- package/_mjs/TExit/definition.mjs +14 -57
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TExit.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +17 -17
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +1 -4
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TFuture.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +41 -85
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +7 -26
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +79 -257
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/constructors.mjs +0 -7
- package/_mjs/TRef/constructors.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +84 -19
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TRef/symbols.mjs +17 -0
- package/_mjs/TRef/symbols.mjs.map +1 -0
- package/_mjs/TRef.mjs +1 -0
- package/_mjs/TRef.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +26 -32
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +10 -4
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/TSemaphore/definition.mjs.map +1 -1
- package/_mjs/TSemaphore.mjs.map +1 -1
- package/_mjs/TxnId.mjs +0 -1
- package/_mjs/TxnId.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +19 -20
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +19 -20
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +14 -15
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +17 -22
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +10 -9
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +28 -30
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +5 -4
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/internal/HashedPair.mjs +4 -7
- package/_mjs/internal/HashedPair.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs +13 -158
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +24 -51
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs +10 -57
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/Scheduler.mjs +0 -11
- package/_mjs/internal/Scheduler.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs +0 -3
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/Cached/api.ts +2 -2
- package/_src/Channel/ChildExecutorDecision/api.ts +14 -17
- package/_src/Channel/UpstreamPullRequest/api.ts +11 -13
- package/_src/Channel/api/interruptWhen.ts +18 -17
- package/_src/Channel/api/mapOutConcurrentIO.ts +66 -0
- package/_src/Channel/api/mergeAll.ts +15 -16
- package/_src/Channel/api/mergeAllUnboundedWith.ts +15 -27
- package/_src/Channel/api/mergeAllWith.ts +114 -126
- package/_src/Channel/api/mergeMap.ts +8 -18
- package/_src/Channel/api/mergeWith.ts +154 -158
- package/_src/Channel/api/toPull.ts +1 -1
- package/_src/Channel/api/zipConcurrent.ts +68 -0
- package/_src/Channel/api.ts +354 -414
- package/_src/Channel/core-api.ts +75 -122
- package/_src/Channel/definition.ts +49 -7
- package/_src/Channel/internal/ChannelExecutor.ts +12 -16
- package/_src/Channel/internal/SingleProducerAsyncInput.ts +2 -4
- package/_src/CountdownLatch.ts +39 -0
- package/_src/Fiber/FiberMessage.ts +78 -0
- package/_src/Fiber/FiberRuntime.ts +822 -0
- package/_src/Fiber/api/awaitAll.ts +1 -1
- package/_src/Fiber/api/collectAll.ts +2 -2
- package/_src/Fiber/api/inheritRefs.ts +1 -1
- package/_src/Fiber/api/interrupt.ts +1 -2
- package/_src/Fiber/api/interruptAll.ts +1 -2
- package/_src/Fiber/api/interruptAs.ts +9 -2
- package/_src/Fiber/api/interruptFork.ts +1 -1
- package/_src/Fiber/api/location.ts +2 -2
- package/_src/Fiber/api/mapFiber.ts +5 -7
- package/_src/Fiber/api/mapIO.ts +21 -21
- package/_src/Fiber/api/zipWith.ts +14 -17
- package/_src/Fiber/definition.ts +17 -16
- package/_src/Fiber.ts +2 -4
- package/_src/FiberDescriptor.ts +1 -8
- package/_src/FiberRef/api/locallyScoped.ts +8 -6
- package/_src/FiberRef/api/locallyScopedWith.ts +5 -7
- package/_src/FiberRef/api.ts +59 -52
- package/_src/FiberRef/unsafe.ts +6 -1
- package/_src/FiberRef.ts +0 -1
- package/_src/FiberRefs/api.ts +69 -14
- package/_src/FiberRefs/definition.ts +15 -7
- package/_src/FiberRefs/join.ts +39 -48
- package/_src/FiberScope/constructors.ts +2 -2
- package/_src/FiberScope/definition.ts +21 -9
- package/_src/FiberStatus/constructors.ts +6 -18
- package/_src/FiberStatus/definition.ts +13 -54
- package/_src/Future/api.ts +67 -53
- package/_src/Hub/api.ts +84 -96
- package/_src/Hub/definition.ts +22 -7
- package/_src/Hub/internal.ts +8 -8
- package/_src/IO/api/acquireRelease.ts +1 -1
- package/_src/IO/api/acquireReleaseExit.ts +1 -1
- package/_src/IO/api/asyncInterrupt.ts +77 -0
- package/_src/IO/api/bracket.ts +1 -1
- package/_src/IO/api/bracketExit.ts +1 -1
- package/_src/IO/api/clockWith.ts +0 -1
- package/_src/IO/api/concurrency.ts +5 -7
- package/_src/IO/api/consoleWith.ts +0 -2
- package/_src/IO/api/core-scope.ts +74 -90
- package/_src/IO/api/delay.ts +8 -0
- package/_src/IO/api/ensuringChildren.ts +8 -7
- package/_src/IO/api/environment.ts +24 -42
- package/_src/IO/api/{foreachC.ts → foreachConcurrent.ts} +30 -18
- package/_src/IO/api/foreachExec.ts +3 -3
- package/_src/IO/api/fork.ts +83 -0
- package/_src/IO/api/forkIn.ts +7 -9
- package/_src/IO/api/fulfill.ts +5 -3
- package/_src/IO/api/interrupt.ts +49 -32
- package/_src/IO/api/onExit.ts +8 -10
- package/_src/IO/api/onTermination.ts +12 -14
- package/_src/IO/api/provideLayer.ts +8 -10
- package/_src/IO/api/provideSomeLayer.ts +5 -14
- package/_src/IO/api/race.ts +19 -21
- package/_src/IO/api/raceFirst.ts +5 -7
- package/_src/IO/api/repeat.ts +3 -5
- package/_src/IO/api/retry.ts +19 -21
- package/_src/IO/api/schedule.ts +20 -21
- package/_src/IO/api/scoped.ts +2 -2
- package/_src/IO/api/sequenceT.ts +7 -1
- package/_src/IO/api/stateful.ts +0 -2
- package/_src/IO/api/supervised.ts +4 -8
- package/_src/IO/api/timeout.ts +10 -16
- package/_src/IO/api/withChildren.ts +2 -4
- package/_src/IO/api/withFinalizer.ts +5 -7
- package/_src/IO/api/withFinalizerExit.ts +6 -5
- package/_src/IO/api/zipConcurrent.ts +69 -0
- package/_src/IO/api.ts +576 -782
- package/_src/IO/definition.ts +150 -137
- package/_src/IO/runtime.ts +53 -64
- package/_src/IO.ts +5 -3
- package/_src/Layer/MemoMap.ts +62 -64
- package/_src/Layer/api.ts +95 -104
- package/_src/Layer/definition.ts +0 -1
- package/_src/LogLevel.ts +24 -16
- package/_src/LogSpan.ts +16 -16
- package/_src/Logger/api.ts +18 -17
- package/_src/Logger/constructors.ts +9 -15
- package/_src/Push/api.ts +702 -0
- package/_src/Push/definition.ts +42 -0
- package/_src/Push/internal.ts +39 -0
- package/_src/Push.ts +5 -0
- package/_src/Queue/api/dimapIO.ts +124 -47
- package/_src/Queue/api/filterInputIO.ts +69 -24
- package/_src/Queue/api/filterOutputIO.ts +77 -17
- package/_src/Queue/api/operations.ts +33 -31
- package/_src/Queue/api/poll.ts +3 -1
- package/_src/Queue/api/takeBetween.ts +29 -30
- package/_src/Queue/api/zipWithIO.ts +47 -36
- package/_src/Queue/constructors.ts +5 -5
- package/_src/Queue/definition.ts +129 -8
- package/_src/Queue/internal.ts +24 -38
- package/_src/Queue/strategy.ts +12 -26
- package/_src/Ref/Atomic.ts +70 -4
- package/_src/Ref/Derived.ts +22 -1
- package/_src/Ref/DerivedAll.ts +26 -2
- package/_src/Ref/Synchronized/api.ts +129 -130
- package/_src/Ref/Synchronized/constructors.ts +1 -1
- package/_src/Ref/Synchronized/definition.ts +21 -14
- package/_src/Ref/Synchronized.ts +5 -0
- package/_src/Ref/api/collect.ts +6 -8
- package/_src/Ref/api/dimap.ts +51 -64
- package/_src/Ref/api/filter.ts +12 -16
- package/_src/Ref/api/get.ts +2 -5
- package/_src/Ref/api/match.ts +8 -7
- package/_src/Ref/api/matchAll.ts +6 -5
- package/_src/Ref/api/modify.ts +61 -165
- package/_src/Ref/api/set.ts +7 -9
- package/_src/Ref/constructors.ts +3 -1
- package/_src/Ref/definition.ts +56 -23
- package/_src/Ref/symbols.ts +29 -0
- package/_src/Ref.ts +2 -0
- package/_src/RefSubject/Atomic.ts +120 -0
- package/_src/RefSubject/Synchronized/api.ts +14 -0
- package/_src/RefSubject/Synchronized/definition.ts +72 -0
- package/_src/RefSubject/api.ts +240 -0
- package/_src/RefSubject/definition.ts +62 -0
- package/_src/RefSubject.ts +5 -0
- package/_src/Reloadable/constructors.ts +2 -2
- package/_src/RuntimeConfig.ts +0 -31
- package/_src/RuntimeFlag.ts +10 -0
- package/_src/RuntimeFlags/Patch.ts +79 -0
- package/_src/RuntimeFlags/RuntimeFlags.ts +112 -0
- package/_src/RuntimeFlags.ts +4 -0
- package/_src/STM/api/core-api.ts +32 -35
- package/_src/STM/api.ts +211 -201
- package/_src/STM/internal/Entry.ts +0 -10
- package/_src/STM/internal/Journal.ts +24 -27
- package/_src/STM.ts +0 -1
- package/_src/Schedule/Decision.ts +10 -8
- package/_src/Schedule/api/driver.ts +2 -6
- package/_src/Schedule/api.ts +471 -474
- package/_src/Schedule/definition.ts +0 -1
- package/_src/Scope/ReleaseMap/api/releaseAll.ts +24 -26
- package/_src/Scope/ReleaseMap/api.ts +77 -74
- package/_src/Scope/ReleaseMap/constructors.ts +1 -1
- package/_src/Scope/api.ts +16 -18
- package/_src/ScopedRef/api.ts +0 -3
- package/_src/ScopedRef/definition.ts +1 -2
- package/_src/Sink/api.ts +326 -354
- package/_src/State/api.ts +12 -8
- package/_src/State/internal.ts +1 -1
- package/_src/Stream/api/zipAllWith.ts +7 -6
- package/_src/Stream/api/zipWith.ts +5 -8
- package/_src/Stream/api/zipWithChunks.ts +7 -6
- package/_src/Stream/api.ts +1086 -1203
- package/_src/Stream/definition.ts +0 -2
- package/_src/Stream/internal/DebounceState.ts +16 -17
- package/_src/Stream/internal/Handoff.ts +32 -36
- package/_src/Stream/internal/SinkEndReason.ts +13 -14
- package/_src/Stream/internal/Take.ts +21 -21
- package/_src/Stream/internal/util.ts +0 -2
- package/_src/Subject/Atomic.ts +28 -0
- package/_src/Subject/api.ts +18 -0
- package/_src/Subject/definition.ts +18 -0
- package/_src/Subject.ts +5 -0
- package/_src/SubscriptionRef.ts +58 -0
- package/_src/Supervisor/api.ts +20 -16
- package/_src/Supervisor/definition.ts +0 -1
- package/_src/SupervisorPatch.ts +10 -6
- package/_src/TExit/definition.ts +0 -8
- package/_src/TFuture/api.ts +23 -17
- package/_src/TFuture/definition.ts +2 -3
- package/_src/TReentrantLock/api.ts +18 -14
- package/_src/TReentrantLock/definition.ts +1 -8
- package/_src/TRef/api.ts +80 -250
- package/_src/TRef/constructors.ts +6 -6
- package/_src/TRef/definition.ts +161 -45
- package/_src/TRef/symbols.ts +19 -0
- package/_src/TRef.ts +1 -0
- package/_src/TSemaphore/api.ts +20 -19
- package/_src/TSemaphore/constructors.ts +7 -0
- package/_src/TSemaphore/definition.ts +1 -1
- package/_src/collection/immutable/Conc/dropUntilIO.ts +19 -21
- package/_src/collection/immutable/Conc/dropWhileIO.ts +21 -23
- package/_src/collection/immutable/Conc/filterIO.ts +15 -17
- package/_src/collection/immutable/Conc/findIO.ts +17 -19
- package/_src/collection/immutable/Conc/mapIO.ts +12 -10
- package/_src/collection/immutable/Conc/takeWhileIO.ts +27 -29
- package/_src/data/Exit/foreachIO.ts +8 -10
- package/_src/global.ts +11 -3
- package/_src/index.ts +10 -1
- package/_src/internal/Hub.ts +17 -27
- package/_src/internal/IsFatal.ts +14 -12
- package/_src/internal/MutableQueue.ts +8 -8
- package/_src/internal/StackTraceBuilder.ts +1 -2
- package/collection/immutable/Conc/dropUntilIO.d.ts +3 -3
- package/collection/immutable/Conc/dropWhileIO.d.ts +3 -3
- package/collection/immutable/Conc/filterIO.d.ts +3 -3
- package/collection/immutable/Conc/findIO.d.ts +2 -2
- package/collection/immutable/Conc/mapIO.d.ts +3 -3
- package/collection/immutable/Conc/takeWhileIO.d.ts +3 -3
- package/data/Exit/foreachIO.d.ts +3 -3
- package/global.d.ts +11 -3
- package/index.d.ts +10 -1
- package/internal/HashedPair.d.ts +2 -2
- package/internal/Hub.d.ts +2 -2
- package/internal/IsFatal.d.ts +3 -3
- package/internal/MutableQueue.d.ts +3 -3
- package/package.json +4 -4
- package/Channel/api/mapOutIOC.d.ts +0 -8
- package/Channel/api/zipC.d.ts +0 -16
- package/Fiber/FiberContext.d.ts +0 -153
- package/Fiber/api/evalOn.d.ts +0 -7
- package/Fiber/api/evalOnIO.d.ts +0 -9
- package/Fiber/api/interruptAsFork.d.ts +0 -8
- package/FiberState/api.d.ts +0 -7
- package/FiberState/constructors.d.ts +0 -22
- package/FiberState/definition.d.ts +0 -38
- package/FiberState.d.ts +0 -3
- package/IO/api/withRuntimeConfig.d.ts +0 -10
- package/IO/api/zipC.d.ts +0 -13
- package/Ref/Atomic/Atomic.d.ts +0 -18
- package/Ref/Atomic/api.d.ts +0 -53
- package/_cjs/Channel/api/mapOutIOC.cjs +0 -63
- package/_cjs/Channel/api/mapOutIOC.cjs.map +0 -1
- package/_cjs/Channel/api/zipC.cjs.map +0 -1
- package/_cjs/Fiber/FiberContext.cjs +0 -1088
- package/_cjs/Fiber/FiberContext.cjs.map +0 -1
- package/_cjs/Fiber/api/evalOn.cjs.map +0 -1
- package/_cjs/Fiber/api/evalOnIO.cjs +0 -31
- package/_cjs/Fiber/api/evalOnIO.cjs.map +0 -1
- package/_cjs/Fiber/api/interruptAsFork.cjs +0 -15
- package/_cjs/Fiber/api/interruptAsFork.cjs.map +0 -1
- package/_cjs/FiberState/api.cjs.map +0 -1
- package/_cjs/FiberState/constructors.cjs.map +0 -1
- package/_cjs/FiberState/definition.cjs.map +0 -1
- package/_cjs/FiberState.cjs.map +0 -1
- package/_cjs/IO/api/foreachC.cjs.map +0 -1
- package/_cjs/IO/api/withRuntimeConfig.cjs.map +0 -1
- package/_cjs/IO/api/zipC.cjs +0 -67
- package/_cjs/IO/api/zipC.cjs.map +0 -1
- package/_cjs/Ref/Atomic/Atomic.cjs +0 -64
- package/_cjs/Ref/Atomic/Atomic.cjs.map +0 -1
- package/_cjs/Ref/Atomic/api.cjs +0 -156
- package/_cjs/Ref/Atomic/api.cjs.map +0 -1
- package/_mjs/Channel/api/mapOutIOC.mjs +0 -32
- package/_mjs/Channel/api/mapOutIOC.mjs.map +0 -1
- package/_mjs/Channel/api/zipC.mjs +0 -30
- package/_mjs/Channel/api/zipC.mjs.map +0 -1
- package/_mjs/Fiber/FiberContext.mjs +0 -1013
- package/_mjs/Fiber/FiberContext.mjs.map +0 -1
- package/_mjs/Fiber/api/evalOn.mjs +0 -17
- package/_mjs/Fiber/api/evalOn.mjs.map +0 -1
- package/_mjs/Fiber/api/evalOnIO.mjs +0 -16
- package/_mjs/Fiber/api/evalOnIO.mjs.map +0 -1
- package/_mjs/Fiber/api/interruptAsFork.mjs +0 -8
- package/_mjs/Fiber/api/interruptAsFork.mjs.map +0 -1
- package/_mjs/FiberState/api.mjs +0 -15
- package/_mjs/FiberState/api.mjs.map +0 -1
- package/_mjs/FiberState/constructors.mjs +0 -26
- package/_mjs/FiberState/constructors.mjs.map +0 -1
- package/_mjs/FiberState/definition.mjs +0 -26
- package/_mjs/FiberState/definition.mjs.map +0 -1
- package/_mjs/FiberState.mjs +0 -5
- package/_mjs/FiberState.mjs.map +0 -1
- package/_mjs/IO/api/foreachC.mjs +0 -118
- package/_mjs/IO/api/foreachC.mjs.map +0 -1
- package/_mjs/IO/api/withRuntimeConfig.mjs +0 -13
- package/_mjs/IO/api/withRuntimeConfig.mjs.map +0 -1
- package/_mjs/IO/api/zipC.mjs +0 -39
- package/_mjs/IO/api/zipC.mjs.map +0 -1
- package/_mjs/Ref/Atomic/Atomic.mjs +0 -47
- package/_mjs/Ref/Atomic/Atomic.mjs.map +0 -1
- package/_mjs/Ref/Atomic/api.mjs +0 -127
- package/_mjs/Ref/Atomic/api.mjs.map +0 -1
- package/_src/Channel/api/mapOutIOC.ts +0 -63
- package/_src/Channel/api/zipC.ts +0 -104
- package/_src/Fiber/FiberContext.ts +0 -1019
- package/_src/Fiber/api/evalOn.ts +0 -17
- package/_src/Fiber/api/evalOnIO.ts +0 -19
- package/_src/Fiber/api/interruptAsFork.ts +0 -7
- package/_src/FiberState/api.ts +0 -12
- package/_src/FiberState/constructors.ts +0 -33
- package/_src/FiberState/definition.ts +0 -44
- package/_src/FiberState.ts +0 -5
- package/_src/IO/api/withRuntimeConfig.ts +0 -20
- package/_src/IO/api/zipC.ts +0 -74
- package/_src/Ref/Atomic/Atomic.ts +0 -56
- package/_src/Ref/Atomic/api.ts +0 -124
package/IO/api.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { FiberId } from "@fncts/base/data/FiberId/definition";
|
|
2
|
-
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
3
|
-
import { Either } from "@fncts/base/data/Either/definition";
|
|
4
2
|
import { Lazy } from "@fncts/base/data/function/definition";
|
|
3
|
+
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
5
4
|
import { Cause } from "@fncts/base/data/Cause/definition";
|
|
6
5
|
import { InterruptStatus } from "@fncts/io/InterruptStatus";
|
|
7
6
|
import { URIO, FIO, UIO } from "@fncts/io/IO/definition";
|
|
8
|
-
import {
|
|
9
|
-
import { FiberDescriptor } from "@fncts/io/FiberDescriptor";
|
|
7
|
+
import { Either } from "@fncts/base/data/Either/definition";
|
|
10
8
|
import { Conc, ConcBuilder } from "@fncts/base/collection/immutable/Conc";
|
|
11
9
|
import { Refinement } from "@fncts/base/data/Refinement/definition";
|
|
12
10
|
import { Predicate } from "@fncts/base/data/Predicate/definition";
|
|
@@ -17,11 +15,11 @@ import { Trace } from "@fncts/base/data/Trace/definition";
|
|
|
17
15
|
import { List } from "@fncts/base/collection/immutable/List/definition";
|
|
18
16
|
import { ImmutableArray } from "@fncts/base/collection/immutable/ImmutableArray/definition";
|
|
19
17
|
import { FiberRefs } from "@fncts/io/FiberRefs";
|
|
20
|
-
import type {
|
|
18
|
+
import type { Running } from "../FiberStatus.js";
|
|
21
19
|
import type * as P from "@fncts/base/typeclass";
|
|
22
20
|
import type { _E, _R } from "@fncts/base/types";
|
|
23
|
-
import type {
|
|
24
|
-
import type {
|
|
21
|
+
import type { FiberRuntime } from "@fncts/io/Fiber/FiberRuntime";
|
|
22
|
+
import type { RuntimeFlags } from "@fncts/io/RuntimeFlags";
|
|
25
23
|
import { pipe } from "@fncts/base/data/function";
|
|
26
24
|
import { IO } from "@fncts/io/IO/definition";
|
|
27
25
|
/**
|
|
@@ -30,59 +28,31 @@ import { IO } from "@fncts/io/IO/definition";
|
|
|
30
28
|
* @tsplus location "@fncts/io/IO/api"
|
|
31
29
|
*/
|
|
32
30
|
export declare function async<R, E, A>(register: (resolve: (_: IO<R, E, A>) => void) => void, blockingOn?: FiberId, __tsplusTrace?: string): IO<R, E, A>;
|
|
33
|
-
/**
|
|
34
|
-
* Imports an asynchronous effect into a pure `IO`, possibly returning the value synchronously.
|
|
35
|
-
*
|
|
36
|
-
* If the register function returns a value synchronously, then the callback
|
|
37
|
-
* function must not be called. Otherwise the callback function must be called at most once.
|
|
38
|
-
* @tsplus static fncts.io.IOOps asyncMaybe
|
|
39
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
40
|
-
*/
|
|
41
|
-
export declare function asyncMaybe<R, E, A>(register: (resolve: (_: IO<R, E, A>) => void) => Maybe<IO<R, E, A>>, blockingOn?: FiberId, __tsplusTrace?: string): IO<R, E, A>;
|
|
42
|
-
/**
|
|
43
|
-
* Imports an asynchronous side-effect into an IO. The side-effect
|
|
44
|
-
* has the option of returning the value synchronously, which is useful in
|
|
45
|
-
* cases where it cannot be determined if the effect is synchronous or
|
|
46
|
-
* asynchronous until the side-effect is actually executed. The effect also
|
|
47
|
-
* has the option of returning a canceler, which will be used by the runtime
|
|
48
|
-
* to cancel the asynchronous effect if the fiber executing the effect is
|
|
49
|
-
* interrupted.
|
|
50
|
-
*
|
|
51
|
-
* If the register function returns a value synchronously, then the callback
|
|
52
|
-
* function must not be called. Otherwise the callback function must be called
|
|
53
|
-
* at most once.
|
|
54
|
-
*
|
|
55
|
-
* The list of fibers, that may complete the async callback, is used to
|
|
56
|
-
* provide better diagnostics.
|
|
57
|
-
* @tsplus static fncts.io.IOOps asyncInterrupt
|
|
58
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
59
|
-
*/
|
|
60
|
-
export declare function asyncInterrupt<R, E, A>(register: (cb: (resolve: IO<R, E, A>) => void) => Either<Canceler<R>, IO<R, E, A>>, blockingOn?: FiberId, __tsplusTrace?: string): IO<R, E, A>;
|
|
61
31
|
/**
|
|
62
32
|
* Attempts to convert defects into a failure, throwing away all information
|
|
63
33
|
* about the cause of the failure.
|
|
64
|
-
* @tsplus
|
|
34
|
+
* @tsplus pipeable fncts.io.IO absorbWith
|
|
65
35
|
* @tsplus location "@fncts/io/IO/api"
|
|
66
36
|
*/
|
|
67
|
-
export declare function
|
|
37
|
+
export declare function absorbWith<R, E, A>(f: (e: E) => unknown, __tsplusTrace?: string): (ma: IO<R, E, A>) => IO<R, unknown, A>;
|
|
68
38
|
/**
|
|
69
|
-
* @tsplus
|
|
70
|
-
* @tsplus operator fncts.io.IO <
|
|
39
|
+
* @tsplus pipeable fncts.io.IO zipLeft
|
|
40
|
+
* @tsplus pipeable-operator fncts.io.IO <
|
|
71
41
|
* @tsplus location "@fncts/io/IO/api"
|
|
72
42
|
*/
|
|
73
|
-
export declare function
|
|
43
|
+
export declare function zipLeft<R1, E1, B>(fb: IO<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: IO<R, E, A>) => IO<R1 | R, E1 | E, A>;
|
|
74
44
|
/**
|
|
75
45
|
* Combine two effectful actions, keeping only the result of the second
|
|
76
|
-
* @tsplus
|
|
77
|
-
* @tsplus operator fncts.io.IO >
|
|
46
|
+
* @tsplus pipeable fncts.io.IO zipRight
|
|
47
|
+
* @tsplus pipeable-operator fncts.io.IO >
|
|
78
48
|
* @tsplus location "@fncts/io/IO/api"
|
|
79
49
|
*/
|
|
80
|
-
export declare function
|
|
50
|
+
export declare function zipRight<R1, E1, B>(fb: IO<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: IO<R, E, A>) => IO<R1 | R, E1 | E, B>;
|
|
81
51
|
/**
|
|
82
|
-
* @tsplus
|
|
52
|
+
* @tsplus pipeable fncts.io.IO as
|
|
83
53
|
* @tsplus location "@fncts/io/IO/api"
|
|
84
54
|
*/
|
|
85
|
-
export declare function
|
|
55
|
+
export declare function as<B>(b: Lazy<B>, __tsplusTrace?: string): <R, E, A>(self: IO<R, E, A>) => IO<R, E, B>;
|
|
86
56
|
/**
|
|
87
57
|
* Maps the success value of this effect to an optional value.
|
|
88
58
|
* @tsplus getter fncts.io.IO asJust
|
|
@@ -103,52 +73,50 @@ export declare function asUnit<R, E, A>(self: IO<R, E, A>, __tsplusTrace?: strin
|
|
|
103
73
|
/**
|
|
104
74
|
* Returns an IO whose failure and success channels have been mapped by
|
|
105
75
|
* the specified pair of functions, `f` and `g`.
|
|
106
|
-
* @tsplus
|
|
76
|
+
* @tsplus pipeable fncts.io.IO bimap
|
|
107
77
|
* @tsplus location "@fncts/io/IO/api"
|
|
108
78
|
*/
|
|
109
|
-
export declare function
|
|
79
|
+
export declare function bimap<E, A, E1, B>(f: (e: E) => E1, g: (a: A) => B, __tsplusTrace?: string): <R>(self: IO<R, E, A>) => IO<R, E1, B>;
|
|
110
80
|
/**
|
|
111
81
|
* Returns an IO that effectfully "peeks" at the failure or success of
|
|
112
82
|
* this effect.
|
|
113
|
-
* @tsplus
|
|
83
|
+
* @tsplus pipeable fncts.io.IO bitap
|
|
114
84
|
* @tsplus location "@fncts/io/IO/api"
|
|
115
85
|
*/
|
|
116
|
-
export declare function
|
|
86
|
+
export declare function bitap<E, A, R1, E1, R2, E2>(onFailure: (e: E) => IO<R1, E1, any>, onSuccess: (a: A) => IO<R2, E2, any>, __tsplusTrace?: string): <R>(self: IO<R, E, A>) => IO<R1 | R2 | R, E | E1 | E2, A>;
|
|
117
87
|
/**
|
|
118
88
|
* Recovers from the specified error
|
|
119
|
-
* @tsplus
|
|
89
|
+
* @tsplus pipeable fncts.io.IO catch
|
|
120
90
|
* @tsplus location "@fncts/io/IO/api"
|
|
121
91
|
*/
|
|
122
|
-
export declare function
|
|
123
|
-
[n in N]: K;
|
|
124
|
-
}>) => IO<R1, E1, A1>, __tsplusTrace?: string): IO<R | R1, Exclude<E, {
|
|
92
|
+
export declare function catchTagWith<N extends keyof E, K extends E[N] & string, E, R1, E1, A1>(tag: N, k: K, f: (e: Extract<E, {
|
|
125
93
|
[n in N]: K;
|
|
126
|
-
}>
|
|
94
|
+
}>) => IO<R1, E1, A1>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R1 | R, E1 | Exclude<E, { [n in N]: K; }>, A1 | A>;
|
|
127
95
|
/**
|
|
128
96
|
* Recovers from all errors
|
|
129
|
-
* @tsplus
|
|
97
|
+
* @tsplus pipeable fncts.io.IO catchAll
|
|
130
98
|
* @tsplus location "@fncts/io/IO/api"
|
|
131
99
|
*/
|
|
132
|
-
export declare function
|
|
100
|
+
export declare function catchAll<E, R1, E1, A1>(f: (e: E) => IO<R1, E1, A1>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R1 | R, E1, A1 | A>;
|
|
133
101
|
/**
|
|
134
102
|
*
|
|
135
103
|
* Recovers from all errors with provided cause.
|
|
136
|
-
* @tsplus
|
|
104
|
+
* @tsplus pipeable fncts.io.IO catchAllCause
|
|
137
105
|
* @tsplus location "@fncts/io/IO/api"
|
|
138
106
|
*/
|
|
139
|
-
export declare function
|
|
107
|
+
export declare function catchAllCause<R, E, A, R1, E1, A1>(f: (_: Cause<E>) => IO<R1, E1, A1>, __tsplusTrace?: string): (ma: IO<R, E, A>) => IO<R | R1, E1, A | A1>;
|
|
140
108
|
/**
|
|
141
109
|
* Recovers from some or all of the error cases.
|
|
142
|
-
* @tsplus
|
|
110
|
+
* @tsplus pipeable fncts.io.IO catchJust
|
|
143
111
|
* @tsplus location "@fncts/io/IO/api"
|
|
144
112
|
*/
|
|
145
|
-
export declare function
|
|
113
|
+
export declare function catchJust<E, R1, E1, A1>(f: (e: E) => Maybe<IO<R1, E1, A1>>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R1 | R, E | E1, A1 | A>;
|
|
146
114
|
/**
|
|
147
115
|
* Recovers from some or all of the error cases with provided cause.
|
|
148
|
-
* @tsplus
|
|
116
|
+
* @tsplus pipeable fncts.io.IO catchJustCause
|
|
149
117
|
* @tsplus location "@fncts/io/IO/api"
|
|
150
118
|
*/
|
|
151
|
-
export declare function
|
|
119
|
+
export declare function catchJustCause<E, R1, E1, A1>(f: (_: Cause<E>) => Maybe<IO<R1, E1, A1>>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R1 | R, E | E1, A1 | A>;
|
|
152
120
|
/**
|
|
153
121
|
* Recovers from some or all of the defects with provided partial function.
|
|
154
122
|
*
|
|
@@ -156,67 +124,67 @@ export declare function catchJustCause_<R, E, A, R1, E1, A1>(ma: IO<R, E, A>, f:
|
|
|
156
124
|
* method should be used only at the boundary between IO and an external
|
|
157
125
|
* system, to transmit information on a defect for diagnostic or explanatory
|
|
158
126
|
* purposes.
|
|
159
|
-
* @tsplus
|
|
127
|
+
* @tsplus pipeable fncts.io.IO catchJustDefect
|
|
160
128
|
* @tsplus location "@fncts/io/IO/api"
|
|
161
129
|
*/
|
|
162
|
-
export declare function
|
|
130
|
+
export declare function catchJustDefect<R1, E1, A1>(f: (_: unknown) => Maybe<IO<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R1 | R, E1 | E, A1 | A>;
|
|
163
131
|
/**
|
|
164
132
|
* Recovers from the specified error
|
|
165
|
-
* @tsplus
|
|
133
|
+
* @tsplus pipeable IO catchTag
|
|
166
134
|
* @tsplus location "@fncts/io/IO/api"
|
|
167
135
|
*/
|
|
168
|
-
export declare function
|
|
136
|
+
export declare function catchTag<K extends E["_tag"] & string, E extends {
|
|
169
137
|
_tag: string;
|
|
170
|
-
},
|
|
138
|
+
}, R1, E1, A1>(k: K, f: (e: Extract<E, {
|
|
171
139
|
_tag: K;
|
|
172
|
-
}>) => IO<R1, E1, A1>, __tsplusTrace?: string): IO<R |
|
|
140
|
+
}>) => IO<R1, E1, A1>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R1 | R, E1 | Exclude<E, {
|
|
173
141
|
_tag: K;
|
|
174
|
-
}
|
|
142
|
+
}>, A1 | A>;
|
|
175
143
|
/**
|
|
176
144
|
* @tsplus getter fncts.io.IO cause
|
|
177
145
|
* @tsplus location "@fncts/io/IO/api"
|
|
178
146
|
*/
|
|
179
147
|
export declare function cause<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): IO<R, never, Cause<E>>;
|
|
180
148
|
/**
|
|
181
|
-
* @tsplus
|
|
149
|
+
* @tsplus pipeable fncts.io.IO causeAsError
|
|
182
150
|
* @tsplus location "@fncts/io/IO/api"
|
|
183
151
|
*/
|
|
184
|
-
export declare function causeAsError<R, E, A>(ma: IO<R, E, A
|
|
152
|
+
export declare function causeAsError(__tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, import("@fncts/base/data/Cause.js").Cause<E>, A>;
|
|
185
153
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* @tsplus fluent fncts.io.IO flatMap
|
|
154
|
+
* Checks the interrupt status, and produces the IO returned by the
|
|
155
|
+
* specified callback.
|
|
156
|
+
* @tsplus static fncts.io.IOOps checkInterruptible
|
|
190
157
|
* @tsplus location "@fncts/io/IO/api"
|
|
191
158
|
*/
|
|
192
|
-
export declare function
|
|
159
|
+
export declare function checkInterruptible<R, E, A>(f: (i: InterruptStatus) => IO<R, E, A>, __tsplusTrace?: string): IO<R, E, A>;
|
|
193
160
|
/**
|
|
194
|
-
*
|
|
161
|
+
* Returns an IO that models the execution of this effect, followed by
|
|
162
|
+
* the passing of its value to the specified continuation function `f`,
|
|
163
|
+
* followed by the effect that it returns.
|
|
164
|
+
* @tsplus pipeable fncts.io.IO flatMap
|
|
195
165
|
* @tsplus location "@fncts/io/IO/api"
|
|
196
166
|
*/
|
|
197
|
-
export declare function
|
|
167
|
+
export declare function flatMap<A, R1, E1, B>(f: (a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R1 | R, E1 | E, B>;
|
|
198
168
|
/**
|
|
199
|
-
*
|
|
200
|
-
* specified callback.
|
|
201
|
-
* @tsplus static fncts.io.IOOps checkInterruptible
|
|
169
|
+
* @tsplus pipeable fncts.io.IO flatMapError
|
|
202
170
|
* @tsplus location "@fncts/io/IO/api"
|
|
203
171
|
*/
|
|
204
|
-
export declare function
|
|
172
|
+
export declare function flatMapError<R1, E, E1>(f: (e: E) => IO<R1, never, E1>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R1 | R, E1, A>;
|
|
205
173
|
/**
|
|
206
|
-
* @tsplus
|
|
174
|
+
* @tsplus pipeable fncts.io.IO collect
|
|
207
175
|
* @tsplus location "@fncts/io/IO/api"
|
|
208
176
|
*/
|
|
209
|
-
export declare function
|
|
177
|
+
export declare function collect<A, E1, A1>(f: Lazy<E1>, pf: (a: A) => Maybe<A1>, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R, E1 | E, A1>;
|
|
210
178
|
/**
|
|
211
|
-
* @tsplus
|
|
179
|
+
* @tsplus pipeable fncts.io.IO collectIO
|
|
212
180
|
* @tsplus location "@fncts/io/IO/api"
|
|
213
181
|
*/
|
|
214
|
-
export declare function
|
|
182
|
+
export declare function collectIO<A, R1, E1, A1, E2>(f: Lazy<E2>, pf: (a: A) => Maybe<IO<R1, E1, A1>>, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R1 | R, E1 | E2 | E, A1>;
|
|
215
183
|
/**
|
|
216
184
|
* @tsplus static fncts.io.IOOps condIO
|
|
217
185
|
* @tsplus location "@fncts/io/IO/api"
|
|
218
186
|
*/
|
|
219
|
-
export declare function
|
|
187
|
+
export declare function condIO<R, R1, E, A>(b: boolean, onTrue: URIO<R, A>, onFalse: URIO<R1, E>, __tsplusTrace?: string): IO<R | R1, E, A>;
|
|
220
188
|
/**
|
|
221
189
|
* Returns a lazily constructed effect, whose construction may itself require
|
|
222
190
|
* effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == unknown)
|
|
@@ -226,15 +194,6 @@ export declare function condIO_<R, R1, E, A>(b: boolean, onTrue: URIO<R, A>, onF
|
|
|
226
194
|
* @tsplus location "@fncts/io/IO/api"
|
|
227
195
|
*/
|
|
228
196
|
export declare function defer<R, E, A>(io: Lazy<IO<R, E, A>>, __tsplusTrace?: string): IO<R, E, A>;
|
|
229
|
-
/**
|
|
230
|
-
* Returns a lazily constructed effect, whose construction may itself require
|
|
231
|
-
* effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == unknown)
|
|
232
|
-
* it is conceptually equivalent to `flatten(effectTotal(io))`. If you wonder if the effect throws exceptions,
|
|
233
|
-
* do not use this method, use `IO.deferTryCatchWith`.
|
|
234
|
-
* @tsplus static fncts.io.IOOps deferWith
|
|
235
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
236
|
-
*/
|
|
237
|
-
export declare function deferWith<R, E, A>(io: (runtimeConfig: RuntimeConfig, id: FiberId) => IO<R, E, A>, __tsplusTrace?: string): IO<R, E, A>;
|
|
238
197
|
/**
|
|
239
198
|
* Returns a lazily constructed effect, whose construction may itself require effects.
|
|
240
199
|
* When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(try(io))`.
|
|
@@ -242,13 +201,6 @@ export declare function deferWith<R, E, A>(io: (runtimeConfig: RuntimeConfig, id
|
|
|
242
201
|
* @tsplus location "@fncts/io/IO/api"
|
|
243
202
|
*/
|
|
244
203
|
export declare function deferTry<R, E, A>(io: () => IO<R, E, A>, __tsplusTrace?: string): IO<R, unknown, A>;
|
|
245
|
-
/**
|
|
246
|
-
* Returns a lazily constructed effect, whose construction may itself require effects.
|
|
247
|
-
* When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(effect(io))`.
|
|
248
|
-
* @tsplus static IOOps deferTryWith
|
|
249
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
250
|
-
*/
|
|
251
|
-
export declare function deferTryWith<R, E, A>(io: (runtimeConfig: RuntimeConfig, id: FiberId) => IO<R, E, A>, __tsplusTrace?: string): IO<R, unknown, A>;
|
|
252
204
|
/**
|
|
253
205
|
* Returns a lazily constructed effect, whose construction may itself require effects,
|
|
254
206
|
* translating any thrown exceptions into typed failed effects and mapping the error.
|
|
@@ -258,27 +210,6 @@ export declare function deferTryWith<R, E, A>(io: (runtimeConfig: RuntimeConfig,
|
|
|
258
210
|
* @tsplus location "@fncts/io/IO/api"
|
|
259
211
|
*/
|
|
260
212
|
export declare function deferTryCatch<R, E, A, E1>(io: () => IO<R, E, A>, onThrow: (error: unknown) => E1, __tsplusTrace?: string): IO<R, E | E1, A>;
|
|
261
|
-
/**
|
|
262
|
-
* Returns a lazily constructed effect, whose construction may itself require effects,
|
|
263
|
-
* translating any thrown exceptions into typed failed effects and mapping the error.
|
|
264
|
-
*
|
|
265
|
-
* When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(effect(io))`.
|
|
266
|
-
* @tsplus static IOOps deferTryCatchWith
|
|
267
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
268
|
-
*/
|
|
269
|
-
export declare function deferTryCatchWith<R, E, A, E1>(io: (runtimeConfig: RuntimeConfig, id: FiberId) => IO<R, E, A>, onThrow: (error: unknown) => E1, __tsplusTrace?: string): IO<R, E | E1, A>;
|
|
270
|
-
/**
|
|
271
|
-
* @tsplus static fncts.io.IOOps descriptor
|
|
272
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
273
|
-
*/
|
|
274
|
-
export declare const descriptor: IO<never, never, import("../FiberDescriptor.js").FiberDescriptor>;
|
|
275
|
-
/**
|
|
276
|
-
* Constructs an IO based on information about the current fiber, such as
|
|
277
|
-
* its identity.
|
|
278
|
-
* @tsplus static fncts.io.IOOps descriptorWith
|
|
279
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
280
|
-
*/
|
|
281
|
-
export declare function descriptorWith<R, E, A>(f: (d: FiberDescriptor) => IO<R, E, A>, __tsplusTrace?: string): IO<R, E, A>;
|
|
282
213
|
/**
|
|
283
214
|
* Folds an `IO` that may fail with `E` or succeed with `A` into one that never fails but succeeds with `Either<E, A>`
|
|
284
215
|
* @tsplus getter fncts.io.IO either
|
|
@@ -286,25 +217,20 @@ export declare function descriptorWith<R, E, A>(f: (d: FiberDescriptor) => IO<R,
|
|
|
286
217
|
*/
|
|
287
218
|
export declare function either<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): URIO<R, Either<E, A>>;
|
|
288
219
|
/**
|
|
289
|
-
* @tsplus
|
|
220
|
+
* @tsplus pipeable fncts.io.IO errorAsCause
|
|
290
221
|
* @tsplus location "@fncts/io/IO/api"
|
|
291
222
|
*/
|
|
292
|
-
export declare function
|
|
293
|
-
/**
|
|
294
|
-
* @tsplus fluent fncts.io.IO errorAsCause
|
|
295
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
296
|
-
*/
|
|
297
|
-
export declare function errorAsCause<R, E, A>(ma: IO<R, Cause<E>, A>, __tsplusTrace?: string): IO<R, E, A>;
|
|
223
|
+
export declare function errorAsCause(__tsplusTrace?: string): <R, E, A>(ma: IO<R, import("@fncts/base/data/Cause.js").Cause<E>, A>) => IO<R, E, A>;
|
|
298
224
|
/**
|
|
299
225
|
* @tsplus getter fncts.io.IO eventually
|
|
300
226
|
* @tsplus location "@fncts/io/IO/api"
|
|
301
227
|
*/
|
|
302
228
|
export declare function eventually<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): IO<R, never, A>;
|
|
303
229
|
/**
|
|
304
|
-
* @tsplus
|
|
230
|
+
* @tsplus pipeable fncts.io.IO extend
|
|
305
231
|
* @tsplus location "@fncts/io/IO/api"
|
|
306
232
|
*/
|
|
307
|
-
export declare function
|
|
233
|
+
export declare function extend<R, E, A, B>(f: (wa: IO<R, E, A>) => B, __tsplusTrace?: string): (wa: IO<R, E, A>) => IO<R, E, B>;
|
|
308
234
|
/**
|
|
309
235
|
* @tsplus static fncts.io.IOOps fail
|
|
310
236
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -315,6 +241,11 @@ export declare function fail<E>(e: Lazy<E>, __tsplusTrace?: string): FIO<E, neve
|
|
|
315
241
|
* @tsplus location "@fncts/io/IO/api"
|
|
316
242
|
*/
|
|
317
243
|
export declare function failNow<E>(e: E, __tsplusTrace?: string): FIO<E, never>;
|
|
244
|
+
/**
|
|
245
|
+
* @tsplus static fncts.io.IOOps refailCause
|
|
246
|
+
* @tsplus location "@fncts/io/IO/api"
|
|
247
|
+
*/
|
|
248
|
+
export declare function refailCause<E>(cause: Cause<E>, __tsplusTrace?: string): FIO<E, never>;
|
|
318
249
|
/**
|
|
319
250
|
* Creates a `IO` that has failed with the specified `Cause`
|
|
320
251
|
* @tsplus static fncts.io.IOOps failCauseNow
|
|
@@ -338,38 +269,38 @@ export declare const fiberId: IO<never, never, FiberId>;
|
|
|
338
269
|
* @tsplus static fncts.io.IOOps filter
|
|
339
270
|
* @tsplus location "@fncts/io/IO/api"
|
|
340
271
|
*/
|
|
341
|
-
export declare function
|
|
272
|
+
export declare function filter<A, R, E>(as: Iterable<A>, f: (a: A) => IO<R, E, boolean>, __tsplusTrace?: string): IO<R, E, Conc<A>>;
|
|
342
273
|
/**
|
|
343
274
|
* @tsplus static fncts.io.IOOps filterMap
|
|
344
275
|
* @tsplus location "@fncts/io/IO/api"
|
|
345
276
|
*/
|
|
346
|
-
export declare function
|
|
277
|
+
export declare function filterMap<A, R, E, B>(as: Iterable<A>, f: (a: A) => IO<R, E, Maybe<B>>, __tsplusTrace?: string): IO<R, E, Conc<B>>;
|
|
347
278
|
/**
|
|
348
279
|
* @tsplus static fncts.io.IOOps filterMapWithIndex
|
|
349
280
|
* @tsplus location "@fncts/io/IO/api"
|
|
350
281
|
*/
|
|
351
|
-
export declare function
|
|
282
|
+
export declare function filterMapWithIndex<A, R, E, B>(as: Iterable<A>, f: (i: number, a: A) => IO<R, E, Maybe<B>>, __tsplusTrace?: string): IO<R, E, Conc<B>>;
|
|
352
283
|
/**
|
|
353
284
|
* Filters the collection using the specified effectual predicate, removing
|
|
354
285
|
* all elements that satisfy the predicate.
|
|
355
286
|
* @tsplus static fncts.io.IOOps filterNot
|
|
356
287
|
* @tsplus location "@fncts/io/IO/api"
|
|
357
288
|
*/
|
|
358
|
-
export declare function
|
|
289
|
+
export declare function filterNot<A, R, E>(as: Iterable<A>, f: (a: A) => IO<R, E, boolean>, __tsplusTrace?: string): IO<R, E, Conc<A>>;
|
|
359
290
|
/**
|
|
360
291
|
* Applies `or` if the predicate fails.
|
|
361
|
-
* @tsplus
|
|
292
|
+
* @tsplus pipeable fncts.io.IO filterOrElse
|
|
362
293
|
* @tsplus location "@fncts/io/IO/api"
|
|
363
294
|
*/
|
|
364
|
-
export declare function
|
|
365
|
-
export declare function
|
|
295
|
+
export declare function filterOrElse<A, B extends A, R1, E1, A1>(refinement: Refinement<A, B>, or: (a: Exclude<A, B>) => IO<R1, E1, A1>, __tsplusTrace?: string): <R, E>(fa: IO<R, E, A>) => IO<R | R1, E | E1, B | A1>;
|
|
296
|
+
export declare function filterOrElse<A, R1, E1, A1>(predicate: Predicate<A>, or: (a: A) => IO<R1, E1, A1>, __tsplusTrace?: string): <R, E>(fa: IO<R, E, A>) => IO<R | R1, E | E1, A | A1>;
|
|
366
297
|
/**
|
|
367
298
|
* Fails with `failWith` if the predicate fails.
|
|
368
|
-
* @tsplus
|
|
299
|
+
* @tsplus pipeable fncts.io.IO filterOrFail
|
|
369
300
|
* @tsplus location "@fncts/io/IO/api"
|
|
370
301
|
*/
|
|
371
|
-
export declare function
|
|
372
|
-
export declare function
|
|
302
|
+
export declare function filterOrFail<A, B extends A, E1>(refinement: Refinement<A, B>, failWith: (a: Exclude<A, B>) => E1): <R, E>(fa: IO<R, E, A>) => IO<R, E | E1, B>;
|
|
303
|
+
export declare function filterOrFail<A, E1>(predicate: Predicate<A>, failWith: (a: A) => E1): <R, E>(fa: IO<R, E, A>) => IO<R, E | E1, A>;
|
|
373
304
|
/**
|
|
374
305
|
* Returns an `IO` that yields the value of the first
|
|
375
306
|
* `IO` to succeed.
|
|
@@ -379,11 +310,11 @@ export declare function filterOrFail_<R, E, A, E1>(fa: IO<R, E, A>, predicate: P
|
|
|
379
310
|
export declare function firstSuccess<R, E, A>(mas: NonEmptyArray<IO<R, E, A>>, __tsplusTrace?: string): IO<R, E, A>;
|
|
380
311
|
/**
|
|
381
312
|
* Halts with specified `unknown` if the predicate fails.
|
|
382
|
-
* @tsplus
|
|
313
|
+
* @tsplus pipeable fncts.io.IO filterOrHalt
|
|
383
314
|
* @tsplus location "@fncts/io/IO/api"
|
|
384
315
|
*/
|
|
385
|
-
export declare function
|
|
386
|
-
export declare function
|
|
316
|
+
export declare function filterOrHalt<A, B extends A>(refinement: Refinement<A, B>, haltWith: (a: Exclude<A, B>) => unknown, __tsplusTrace?: string): <R, E>(fa: IO<R, E, A>) => IO<R, E, A>;
|
|
317
|
+
export declare function filterOrHalt<A>(predicate: Predicate<A>, haltWith: (a: A) => unknown, __tsplusTrace?: string): <R, E>(fa: IO<R, E, A>) => IO<R, E, A>;
|
|
387
318
|
/**
|
|
388
319
|
* @tsplus getter fncts.io.IO flatten
|
|
389
320
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -394,20 +325,20 @@ export declare function flatten<R, E, R1, E1, A>(self: IO<R, E, IO<R1, E1, A>>,
|
|
|
394
325
|
* @tsplus static fncts.io.IOOps foldLeft
|
|
395
326
|
* @tsplus location "@fncts/io/IO/api"
|
|
396
327
|
*/
|
|
397
|
-
export declare function
|
|
328
|
+
export declare function foldLeft<A, B, R, E>(as: Iterable<A>, b: B, f: (b: B, a: A) => IO<R, E, B>, __tsplusTrace?: string): IO<R, E, B>;
|
|
398
329
|
/**
|
|
399
330
|
* Combines an array of `IO`s using a `Monoid`
|
|
400
331
|
* @tsplus static fncts.io.IOOps foldMap
|
|
401
332
|
* @tsplus location "@fncts/io/IO/api"
|
|
402
333
|
*/
|
|
403
|
-
export declare function
|
|
334
|
+
export declare function foldMap<R, E, A, M>(as: Iterable<IO<R, E, A>>, f: (a: A) => M,
|
|
404
335
|
/** @tsplus auto */ M: P.Monoid<M>): IO<R, E, M>;
|
|
405
336
|
/**
|
|
406
337
|
* Performs a right-associative fold of an `Iterable<A>`
|
|
407
338
|
* @tsplus static fncts.io.IOOps foldRight
|
|
408
339
|
* @tsplus location "@fncts/io/IO/api"
|
|
409
340
|
*/
|
|
410
|
-
export declare function
|
|
341
|
+
export declare function foldRight<A, B, R, E>(as: Iterable<A>, b: UIO<B>, f: (a: A, b: IO<R, E, B>) => IO<R, E, B>, __tsplusTrace?: string): IO<R, E, B>;
|
|
411
342
|
/**
|
|
412
343
|
* Applies the function `f` to each element of the `Iterable<A>` and
|
|
413
344
|
* returns the results in a new `Conc<B>`.
|
|
@@ -417,7 +348,7 @@ export declare function foldRight_<A, B, R, E>(as: Iterable<A>, b: UIO<B>, f: (a
|
|
|
417
348
|
* @tsplus static fncts.io.IOOps foreach
|
|
418
349
|
* @tsplus location "@fncts/io/IO/api"
|
|
419
350
|
*/
|
|
420
|
-
export declare function
|
|
351
|
+
export declare function foreach<A, R, E, B>(as: Iterable<A>, f: (a: A) => IO<R, E, B>, __tsplusTrace?: string): IO<R, E, Conc<B>>;
|
|
421
352
|
/**
|
|
422
353
|
* Applies the function `f` to each element of the `Iterable<A>` and
|
|
423
354
|
* returns the results in a new `Conc<B>`.
|
|
@@ -427,50 +358,25 @@ export declare function foreach_<A, R, E, B>(as: Iterable<A>, f: (a: A) => IO<R,
|
|
|
427
358
|
* @tsplus static fncts.io.IOOps foreachWithIndex
|
|
428
359
|
* @tsplus location "@fncts/io/IO/api"
|
|
429
360
|
*/
|
|
430
|
-
export declare function
|
|
361
|
+
export declare function foreachWithIndex<A, R, E, B>(as: Iterable<A>, f: (i: number, a: A) => IO<R, E, B>, __tsplusTrace?: string): IO<R, E, Conc<B>>;
|
|
431
362
|
/**
|
|
432
363
|
* @tsplus static fncts.io.IOOps foreachWithIndexDiscard
|
|
433
364
|
* @tsplus location "@fncts/io/IO/api"
|
|
434
365
|
*/
|
|
435
|
-
export declare function
|
|
366
|
+
export declare function foreachWithIndexDiscard<A, R, E, B>(as: Iterable<A>, f: (i: number, a: A) => IO<R, E, B>, __tsplusTrace?: string): IO<R, E, void>;
|
|
436
367
|
/**
|
|
437
368
|
* Applies the function `f` to each element of the `Iterable<A>` and runs
|
|
438
369
|
* produced IOs sequentially.
|
|
439
370
|
* @tsplus static fncts.io.IOOps foreachDiscard
|
|
440
371
|
* @tsplus location "@fncts/io/IO/api"
|
|
441
372
|
*/
|
|
442
|
-
export declare function
|
|
373
|
+
export declare function foreachDiscard<A, R, E, B>(as: Iterable<A>, f: (a: A) => IO<R, E, B>, __tsplusTrace?: string): IO<R, E, void>;
|
|
443
374
|
/**
|
|
444
375
|
* Repeats this effect forever (until the first failure).
|
|
445
376
|
* @tsplus getter fncts.io.IO forever
|
|
446
377
|
* @tsplus location "@fncts/io/IO/api"
|
|
447
378
|
*/
|
|
448
379
|
export declare function forever<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): IO<R, E, never>;
|
|
449
|
-
/**
|
|
450
|
-
* Returns an IO that forks this IO into its own separate fiber,
|
|
451
|
-
* returning the fiber immediately, without waiting for it to begin executing
|
|
452
|
-
* the IO.
|
|
453
|
-
*
|
|
454
|
-
* You can use the `fork` method whenever you want to execute an IO in a
|
|
455
|
-
* new fiber, concurrently and without "blocking" the fiber executing other
|
|
456
|
-
* IOs. Using fibers can be tricky, so instead of using this method
|
|
457
|
-
* directly, consider other higher-level methods, such as `raceWith`,
|
|
458
|
-
* `zipPar`, and so forth.
|
|
459
|
-
*
|
|
460
|
-
* The fiber returned by this method has methods interrupt the fiber and to
|
|
461
|
-
* wait for it to finish executing the IO. See `Fiber` for more
|
|
462
|
-
* information.
|
|
463
|
-
*
|
|
464
|
-
* Whenever you use this method to launch a new fiber, the new fiber is
|
|
465
|
-
* attached to the parent fiber's scope. This means when the parent fiber
|
|
466
|
-
* terminates, the child fiber will be terminated as well, ensuring that no
|
|
467
|
-
* fibers leak. This behavior is called "None supervision", and if this
|
|
468
|
-
* behavior is not desired, you may use the `forkDaemon` or `forkIn`
|
|
469
|
-
* methods.
|
|
470
|
-
* @tsplus getter fncts.io.IO fork
|
|
471
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
472
|
-
*/
|
|
473
|
-
export declare function fork<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): URIO<R, FiberContext<E, A>>;
|
|
474
380
|
/**
|
|
475
381
|
* Lifts an `Either` into an `IO`
|
|
476
382
|
* @tsplus static fncts.io.IOOps fromEither
|
|
@@ -480,12 +386,14 @@ export declare function fromEither<E, A>(either: Lazy<Either<E, A>>, __tsplusTra
|
|
|
480
386
|
/**
|
|
481
387
|
* Lifts an `Either` into an `IO`
|
|
482
388
|
* @tsplus static fncts.io.IOOps fromEitherNow
|
|
389
|
+
* @tsplus getter fncts.Either toIO
|
|
483
390
|
* @tsplus location "@fncts/io/IO/api"
|
|
484
391
|
*/
|
|
485
392
|
export declare function fromEitherNow<E, A>(either: Either<E, A>, __tsplusTrace?: string): IO<never, E, A>;
|
|
486
393
|
/**
|
|
487
394
|
* Lifts an `Eval` into an `IO`
|
|
488
395
|
* @tsplus static fncts.io.IOOps fromEval
|
|
396
|
+
* @tsplus getter fncts.Eval toIO
|
|
489
397
|
* @tsplus location "@fncts/io/IO/api"
|
|
490
398
|
*/
|
|
491
399
|
export declare function fromEval<A>(computation: Eval<A>, __tsplusTrace?: string): IO<never, never, A>;
|
|
@@ -498,6 +406,7 @@ export declare function fromExit<E, A>(exit: Lazy<Exit<E, A>>, __tsplusTrace?: s
|
|
|
498
406
|
/**
|
|
499
407
|
* Creates a `IO` from an exit value
|
|
500
408
|
* @tsplus static fncts.io.IOOps fromExitNow
|
|
409
|
+
* @tsplus getter fncts.Exit toIO
|
|
501
410
|
* @tsplus location "@fncts/io/IO/api"
|
|
502
411
|
*/
|
|
503
412
|
export declare function fromExitNow<E, A>(exit: Exit<E, A>, __tsplusTrace?: string): FIO<E, A>;
|
|
@@ -510,6 +419,7 @@ export declare function fromExitNow<E, A>(exit: Exit<E, A>, __tsplusTrace?: stri
|
|
|
510
419
|
export declare function fromMaybe<A>(maybe: Lazy<Maybe<A>>, __tsplusTrace?: string): FIO<Maybe<never>, A>;
|
|
511
420
|
/**
|
|
512
421
|
* @tsplus static fncts.io.IOOps fromMaybeNow
|
|
422
|
+
* @tsplus getter fncts.Maybe toIO
|
|
513
423
|
* @tsplus location "@fncts/io/IO/api"
|
|
514
424
|
*/
|
|
515
425
|
export declare function fromMaybeNow<A = never>(maybe: Maybe<A>, __tsplusTrace?: string): IO<unknown, Maybe<never>, A>;
|
|
@@ -541,22 +451,22 @@ export declare function fromPromiseHalt<A>(promise: Lazy<Promise<A>>, __tsplusTr
|
|
|
541
451
|
export declare function get<R, E, A>(ma: IO<R, E, Maybe<A>>, __tsplusTrace?: string): IO<R, Maybe<E>, A>;
|
|
542
452
|
/**
|
|
543
453
|
* Extracts the optional value, or returns the given 'orElse'.
|
|
544
|
-
* @tsplus
|
|
454
|
+
* @tsplus pipeable fncts.io.IO getOrElse
|
|
545
455
|
* @tsplus location "@fncts/io/IO/api"
|
|
546
456
|
*/
|
|
547
|
-
export declare function
|
|
457
|
+
export declare function getOrElse<B>(orElse: Lazy<B>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, import("@fncts/base/data/Maybe.js").Maybe<A>>) => IO<R, E, B | A>;
|
|
548
458
|
/**
|
|
549
459
|
* Extracts the optional value, or executes the effect 'orElse'.
|
|
550
|
-
* @tsplus
|
|
460
|
+
* @tsplus pipeable fncts.io.IO getOrElseIO
|
|
551
461
|
* @tsplus location "@fncts/io/IO/api"
|
|
552
462
|
*/
|
|
553
|
-
export declare function
|
|
463
|
+
export declare function getOrElseIO<R1, E1, B>(orElse: Lazy<IO<R1, E1, B>>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, import("@fncts/base/data/Maybe.js").Maybe<A>>) => IO<R1 | R, E1 | E, B | A>;
|
|
554
464
|
/**
|
|
555
465
|
* Lifts a Maybe into an IO. If the option is `Nothing`, fail with `onNothing`.
|
|
556
466
|
* @tsplus static fncts.io.IOOps getOrFailWith
|
|
557
467
|
* @tsplus location "@fncts/io/IO/api"
|
|
558
468
|
*/
|
|
559
|
-
export declare function
|
|
469
|
+
export declare function getOrFailWith<E, A>(maybe: Maybe<A>, onNothing: Lazy<E>, __tsplusTrace?: string): FIO<E, A>;
|
|
560
470
|
/**
|
|
561
471
|
* Lifts a Maybe into a IO, if the Maybe is `Nothing` it fails with Unit.
|
|
562
472
|
* @tsplus static fncts.io.IOOps getOrFailUnit
|
|
@@ -580,15 +490,15 @@ export declare function halt(e: Lazy<unknown>, __tsplusTrace?: string): UIO<neve
|
|
|
580
490
|
*/
|
|
581
491
|
export declare function haltNow(e: unknown, __tsplusTrace?: string): UIO<never>;
|
|
582
492
|
/**
|
|
583
|
-
* @tsplus
|
|
493
|
+
* @tsplus pipeable fncts.io.IO ifIO
|
|
584
494
|
* @tsplus location "@fncts/io/IO/api"
|
|
585
495
|
*/
|
|
586
|
-
export declare function
|
|
496
|
+
export declare function ifIO<R1, E1, B, R2, E2, C>(onFalse: Lazy<IO<R1, E1, B>>, onTrue: Lazy<IO<R2, E2, C>>, __tsplusTrace?: string): <R, E>(self: IO<R, E, boolean>) => IO<R1 | R2 | R, E1 | E2 | E, B | C>;
|
|
587
497
|
/**
|
|
588
498
|
* @tsplus static fncts.io.IOOps if
|
|
589
499
|
* @tsplus location "@fncts/io/IO/api"
|
|
590
500
|
*/
|
|
591
|
-
export declare function
|
|
501
|
+
export declare function cond<R, E, A, R1, E1, A1>(b: boolean, onTrue: Lazy<IO<R, E, A>>, onFalse: Lazy<IO<R1, E1, A1>>, __tsplusTrace?: string): IO<R | R1, E | E1, A | A1>;
|
|
592
502
|
/**
|
|
593
503
|
* @tsplus getter fncts.io.IO ignore
|
|
594
504
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -621,7 +531,7 @@ export declare function isSuccess<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: stri
|
|
|
621
531
|
* @tsplus static fncts.io.IOOps iterate
|
|
622
532
|
* @tsplus location "@fncts/io/IO/api"
|
|
623
533
|
*/
|
|
624
|
-
export declare function
|
|
534
|
+
export declare function iterate<R, E, A>(initial: A, cont: (a: A) => boolean, body: (a: A) => IO<R, E, A>, __tsplusTrace?: string): IO<R, E, A>;
|
|
625
535
|
/**
|
|
626
536
|
* Returns an IO with the value on the left part.
|
|
627
537
|
* @tsplus static fncts.io.IOOps left
|
|
@@ -651,7 +561,7 @@ export declare function log(message: Lazy<string>, __tsplusTrace?: string): UIO<
|
|
|
651
561
|
* @tsplus static fncts.io.IOOps loop
|
|
652
562
|
* @tsplus location "@fncts/io/IO/api"
|
|
653
563
|
*/
|
|
654
|
-
export declare function
|
|
564
|
+
export declare function loop<A, R, E, B>(initial: A, cont: (a: A) => boolean, inc: (b: A) => A, body: (b: A) => IO<R, E, B>, __tsplusTrace?: string): IO<R, E, Conc<B>>;
|
|
655
565
|
/**
|
|
656
566
|
* Loops with the specified effectual function purely for its effects. The
|
|
657
567
|
* moral equivalent of:
|
|
@@ -667,67 +577,67 @@ export declare function loop_<A, R, E, B>(initial: A, cont: (a: A) => boolean, i
|
|
|
667
577
|
* @tsplus static fncts.io.IOOps loopUnit
|
|
668
578
|
* @tsplus location "@fncts/io/IO/api"
|
|
669
579
|
*/
|
|
670
|
-
export declare function
|
|
580
|
+
export declare function loopUnit<A, R, E>(initial: A, cont: (a: A) => boolean, inc: (a: A) => A, body: (a: A) => IO<R, E, any>, __tsplusTrace?: string): IO<R, E, void>;
|
|
671
581
|
/**
|
|
672
582
|
* Returns an `IO` whose success is mapped by the specified function `f`.
|
|
673
|
-
* @tsplus
|
|
583
|
+
* @tsplus pipeable fncts.io.IO map
|
|
674
584
|
* @tsplus location "@fncts/io/IO/api"
|
|
675
585
|
*/
|
|
676
|
-
export declare function
|
|
586
|
+
export declare function map<A, B>(f: (a: A) => B, __tsplusTrace?: string): <R, E>(fa: IO<R, E, A>) => IO<R, E, B>;
|
|
677
587
|
/**
|
|
678
588
|
* Map covariantly over the first argument.
|
|
679
589
|
*
|
|
680
590
|
* Returns an IO with its error channel mapped using the specified
|
|
681
591
|
* function. This can be used to lift a "smaller" error into a "larger"
|
|
682
592
|
* error.
|
|
683
|
-
* @tsplus
|
|
593
|
+
* @tsplus pipeable fncts.io.IO mapError
|
|
684
594
|
* @tsplus location "@fncts/io/IO/api"
|
|
685
595
|
*/
|
|
686
|
-
export declare function
|
|
596
|
+
export declare function mapError<E, E1>(f: (e: E) => E1, __tsplusTrace?: string): <R, A>(fea: IO<R, E, A>) => IO<R, E1, A>;
|
|
687
597
|
/**
|
|
688
598
|
* @tsplus static fncts.io.IOOps mapTryCatch
|
|
689
599
|
* @tsplus location "@fncts/io/IO/api"
|
|
690
600
|
*/
|
|
691
|
-
export declare function
|
|
601
|
+
export declare function mapTryCatch<R, E, A, E1, B>(io: IO<R, E, A>, f: (a: A) => B, onThrow: (u: unknown) => E1, __tsplusTrace?: string): IO<R, E | E1, B>;
|
|
692
602
|
/**
|
|
693
603
|
* Returns an IO with its full cause of failure mapped using
|
|
694
604
|
* the specified function. This can be used to transform errors
|
|
695
605
|
* while preserving the original structure of Cause.
|
|
696
|
-
* @tsplus
|
|
606
|
+
* @tsplus pipeable fncts.io.IO mapErrorCause
|
|
697
607
|
* @tsplus location "@fncts/io/IO/api"
|
|
698
608
|
*/
|
|
699
|
-
export declare function
|
|
609
|
+
export declare function mapErrorCause<E, E1>(f: (cause: Cause<E>) => Cause<E1>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R, E1, A>;
|
|
700
610
|
/**
|
|
701
611
|
* A more powerful version of `match_` that allows recovering from any kind of failure except interruptions.
|
|
702
|
-
* @tsplus
|
|
612
|
+
* @tsplus pipeable fncts.io.IO matchCause
|
|
703
613
|
* @tsplus location "@fncts/io/IO/api"
|
|
704
614
|
*/
|
|
705
|
-
export declare function
|
|
615
|
+
export declare function matchCause<E, A, A1, A2>(onFailure: (cause: Cause<E>) => A1, onSuccess: (a: A) => A2, __tsplusTrace?: string): <R>(self: IO<R, E, A>) => IO<R, never, A1 | A2>;
|
|
706
616
|
/**
|
|
707
617
|
* A more powerful version of `matchIO` that allows recovering from any kind of failure except interruptions.
|
|
708
|
-
* @tsplus
|
|
618
|
+
* @tsplus pipeable fncts.io.IO matchCauseIO
|
|
709
619
|
* @tsplus location "@fncts/io/IO/api"
|
|
710
620
|
*/
|
|
711
|
-
export declare function
|
|
621
|
+
export declare function matchCauseIO<E, A, R1, E1, A1, R2, E2, A2>(onFailure: (cause: Cause<E>) => IO<R1, E1, A1>, onSuccess: (a: A) => IO<R2, E2, A2>, __tsplusTrace?: string): <R>(self: IO<R, E, A>) => IO<R1 | R2 | R, E1 | E2, A1 | A2>;
|
|
712
622
|
/**
|
|
713
|
-
* @tsplus
|
|
623
|
+
* @tsplus pipeable fncts.io.IO matchIO
|
|
714
624
|
* @tsplus location "@fncts/io/IO/api"
|
|
715
625
|
*/
|
|
716
|
-
export declare function
|
|
626
|
+
export declare function matchIO<R1, R2, E, E1, E2, A, A1, A2>(onFailure: (e: E) => IO<R1, E1, A1>, onSuccess: (a: A) => IO<R2, E2, A2>, __tsplusTrace?: string): <R>(self: IO<R, E, A>) => IO<R1 | R2 | R, E1 | E2, A1 | A2>;
|
|
717
627
|
/**
|
|
718
628
|
* Folds over the failure value or the success value to yield an IO that
|
|
719
629
|
* does not fail, but succeeds with the value returned by the left or right
|
|
720
630
|
* function passed to `match_`.
|
|
721
|
-
* @tsplus
|
|
631
|
+
* @tsplus pipeable fncts.io.IO match
|
|
722
632
|
* @tsplus location "@fncts/io/IO/api"
|
|
723
633
|
*/
|
|
724
|
-
export declare function
|
|
634
|
+
export declare function match<E, A, B, C>(onFailure: (e: E) => B, onSuccess: (a: A) => C, __tsplusTrace?: string): <R>(self: IO<R, E, A>) => IO<R, never, B | C>;
|
|
725
635
|
/**
|
|
726
636
|
* A version of `matchIO` that gives you the (optional) trace of the error.
|
|
727
|
-
* @tsplus
|
|
637
|
+
* @tsplus pipeable fncts.io.IO matchTraceIO
|
|
728
638
|
* @tsplus location "@fncts/io/IO/api"
|
|
729
639
|
*/
|
|
730
|
-
export declare function
|
|
640
|
+
export declare function matchTraceIO<E, A, R1, E1, A1, R2, E2, A2>(onFailure: (e: E, trace: Trace) => IO<R1, E1, A1>, onSuccess: (a: A) => IO<R2, E2, A2>, __tsplusTrace?: string): <R>(ma: IO<R, E, A>) => IO<R1 | R2 | R, E1 | E2, A1 | A2>;
|
|
731
641
|
/**
|
|
732
642
|
* @tsplus getter fncts.io.IO maybe
|
|
733
643
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -743,14 +653,7 @@ export declare function merge<R, E, A>(io: IO<R, E, A>, __tsplusTrace?: string):
|
|
|
743
653
|
* @tsplus static fncts.io.IOOps mergeAll
|
|
744
654
|
* @tsplus location "@fncts/io/IO/api"
|
|
745
655
|
*/
|
|
746
|
-
export declare function
|
|
747
|
-
/**
|
|
748
|
-
* Returns a `IO` that will never produce anything. The moral equivalent of
|
|
749
|
-
* `while(true) {}`, only without the wasted CPU cycles.
|
|
750
|
-
* @tsplus static fncts.io.IOOps never
|
|
751
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
752
|
-
*/
|
|
753
|
-
export declare const never: UIO<never>;
|
|
656
|
+
export declare function mergeAll<R, E, A, B>(fas: Iterable<IO<R, E, A>>, b: B, f: (b: B, a: A) => B, __tsplusTrace?: string): IO<R, E, B>;
|
|
754
657
|
/**
|
|
755
658
|
* Converts an option on errors into an option on values.
|
|
756
659
|
* @tsplus getter fncts.io.IO optional
|
|
@@ -762,35 +665,36 @@ export declare function optional<R, E, A>(ma: IO<R, Maybe<E>, A>, __tsplusTrace?
|
|
|
762
665
|
* effect and the `Boolean` value returned by the specified effect. This
|
|
763
666
|
* operator has "short circuiting" behavior so if the value returned by this
|
|
764
667
|
* effect is true the specified effect will not be evaluated.
|
|
765
|
-
* @tsplus
|
|
668
|
+
* @tsplus pipeable fncts.io.IO or
|
|
669
|
+
* @tsplus pipeable-operator fncts.io.IO ||
|
|
766
670
|
* @tsplus location "@fncts/io/IO/api"
|
|
767
671
|
*/
|
|
768
|
-
export declare function
|
|
672
|
+
export declare function or<R1, E1>(mb: IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(ma: IO<R, E, boolean>) => IO<R1 | R, E1 | E, boolean>;
|
|
769
673
|
/**
|
|
770
|
-
* @tsplus
|
|
674
|
+
* @tsplus pipeable fncts.io.IO orElse
|
|
771
675
|
* @tsplus location "@fncts/io/IO/api"
|
|
772
676
|
*/
|
|
773
|
-
export declare function
|
|
677
|
+
export declare function orElse<R1, E1, A1>(that: Lazy<IO<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R1 | R, E1, A1 | A>;
|
|
774
678
|
/**
|
|
775
|
-
* @tsplus
|
|
679
|
+
* @tsplus pipeable fncts.io.IO orElseEither
|
|
776
680
|
* @tsplus location "@fncts/io/IO/api"
|
|
777
681
|
*/
|
|
778
|
-
export declare function
|
|
682
|
+
export declare function orElseEither<R1, E1, A1>(that: Lazy<IO<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(self: IO<R, E, A>) => IO<R1 | R, E1, import("@fncts/base/data/Either.js").Either<A, A1>>;
|
|
779
683
|
/**
|
|
780
|
-
* @tsplus
|
|
684
|
+
* @tsplus pipeable fncts.io.IO orElseFail
|
|
781
685
|
* @tsplus location "@fncts/io/IO/api"
|
|
782
686
|
*/
|
|
783
|
-
export declare function
|
|
687
|
+
export declare function orElseFail<E1>(e: Lazy<E1>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, E1, A>;
|
|
784
688
|
/**
|
|
785
|
-
* @tsplus
|
|
689
|
+
* @tsplus pipeable fncts.io.IO orElseMaybe
|
|
786
690
|
* @tsplus location "@fncts/io/IO/api"
|
|
787
691
|
*/
|
|
788
|
-
export declare function
|
|
692
|
+
export declare function orElseMaybe<R1, E1, A1>(that: Lazy<IO<R1, Maybe<E1>, A1>>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, import("@fncts/base/data/Maybe.js").Maybe<E>, A>) => IO<R1 | R, import("@fncts/base/data/Maybe.js").Maybe<E1 | E>, A1 | A>;
|
|
789
693
|
/**
|
|
790
|
-
* @tsplus
|
|
694
|
+
* @tsplus pipeable fncts.io.IO orElseSucceed
|
|
791
695
|
* @tsplus location "@fncts/io/IO/api"
|
|
792
696
|
*/
|
|
793
|
-
export declare function
|
|
697
|
+
export declare function orElseSucceed<A1>(a: Lazy<A1>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, E, A1 | A>;
|
|
794
698
|
/**
|
|
795
699
|
* @tsplus getter fncts.io.IO orHalt
|
|
796
700
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -802,91 +706,91 @@ export declare function orHalt<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string)
|
|
|
802
706
|
*/
|
|
803
707
|
export declare function orHaltKeep<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): IO<R, never, A>;
|
|
804
708
|
/**
|
|
805
|
-
* @tsplus
|
|
709
|
+
* @tsplus pipeable fncts.io.IO orHaltWith
|
|
806
710
|
* @tsplus location "@fncts/io/IO/api"
|
|
807
711
|
*/
|
|
808
|
-
export declare function
|
|
712
|
+
export declare function orHaltWith<E>(f: (e: E) => unknown, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R, never, A>;
|
|
809
713
|
/**
|
|
810
714
|
* Exposes all parallel errors in a single call
|
|
811
|
-
* @tsplus
|
|
715
|
+
* @tsplus pipeable fncts.io.IO concurrentErrors
|
|
812
716
|
* @tsplus location "@fncts/io/IO/api"
|
|
813
717
|
*/
|
|
814
|
-
export declare function
|
|
718
|
+
export declare function concurrentErrors(__tsplusTrace?: string): <R, E, A>(io: IO<R, E, A>) => IO<R, import("@fncts/base/collection/immutable/List.js").List<E>, A>;
|
|
815
719
|
/**
|
|
816
720
|
* Feeds elements of type `A` to a function `f` that returns an IO.
|
|
817
721
|
* Collects all successes and failures in a separated fashion.
|
|
818
722
|
* @tsplus static fncts.io.IOOps partition
|
|
819
723
|
* @tsplus location "@fncts/io/IO/api"
|
|
820
724
|
*/
|
|
821
|
-
export declare function
|
|
725
|
+
export declare function partition<R, E, A, B>(as: Iterable<A>, f: (a: A) => IO<R, E, B>, __tsplusTrace?: string): IO<R, never, readonly [Conc<E>, Conc<B>]>;
|
|
822
726
|
/**
|
|
823
727
|
* Keeps some of the errors, and terminates the fiber with the rest
|
|
824
|
-
* @tsplus
|
|
728
|
+
* @tsplus pipeable fncts.io.IO refineOrHalt
|
|
825
729
|
* @tsplus location "@fncts/io/IO/api"
|
|
826
730
|
*/
|
|
827
|
-
export declare function
|
|
731
|
+
export declare function refineOrHalt<E, E1>(pf: (e: E) => Maybe<E1>, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R, E1, A>;
|
|
828
732
|
/**
|
|
829
733
|
* Keeps some of the errors, and terminates the fiber with the rest, using
|
|
830
734
|
* the specified function to convert the `E` into a `Throwable`.
|
|
831
|
-
* @tsplus
|
|
735
|
+
* @tsplus pipeable fncts.io.IO refineOrHaltWith
|
|
832
736
|
* @tsplus location "@fncts/io/IO/api"
|
|
833
737
|
*/
|
|
834
|
-
export declare function
|
|
738
|
+
export declare function refineOrHaltWith<E, E1>(pf: (e: E) => Maybe<E1>, f: (e: E) => unknown, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R, E1, A>;
|
|
835
739
|
/**
|
|
836
740
|
* Fail with the returned value if the partial function `pf` matches, otherwise
|
|
837
741
|
* continue with the held value.
|
|
838
|
-
* @tsplus
|
|
742
|
+
* @tsplus pipeable fncts.io.IO reject
|
|
839
743
|
* @tsplus location "@fncts/io/IO/api"
|
|
840
744
|
*/
|
|
841
|
-
export declare function
|
|
745
|
+
export declare function reject<A, E1>(pf: (a: A) => Maybe<E1>, __tsplusTrace?: string): <R, E>(fa: IO<R, E, A>) => IO<R, E1 | E, A>;
|
|
842
746
|
/**
|
|
843
747
|
* Continue with the returned computation if the partial function `pf` matches,
|
|
844
748
|
* translating the successful match into a failure, otherwise continue with
|
|
845
749
|
* the held value.
|
|
846
|
-
* @tsplus
|
|
750
|
+
* @tsplus pipeable fncts.io.IO rejectIO
|
|
847
751
|
* @tsplus location "@fncts/io/IO/api"
|
|
848
752
|
*/
|
|
849
|
-
export declare function
|
|
753
|
+
export declare function rejectIO<A, R1, E1>(pf: (a: A) => Maybe<IO<R1, E1, E1>>, __tsplusTrace?: string): <R, E>(fa: IO<R, E, A>) => IO<R1 | R, E1 | E, A>;
|
|
850
754
|
/**
|
|
851
755
|
* Repeats this effect the specified number of times.
|
|
852
|
-
* @tsplus
|
|
756
|
+
* @tsplus pipeable fncts.io.IO repeatN
|
|
853
757
|
* @tsplus location "@fncts/io/IO/api"
|
|
854
758
|
*/
|
|
855
|
-
export declare function repeatN_<R, E, A>(ma: IO<R, E, A
|
|
759
|
+
export declare function repeatN_(n: number, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, E, A>;
|
|
856
760
|
/**
|
|
857
761
|
* Repeats this effect until its result satisfies the specified predicate.
|
|
858
|
-
* @tsplus
|
|
762
|
+
* @tsplus pipeable fncts.io.IO repeatUntil
|
|
859
763
|
* @tsplus location "@fncts/io/IO/api"
|
|
860
764
|
*/
|
|
861
|
-
export declare function
|
|
765
|
+
export declare function repeatUntil<A>(f: (a: A) => boolean, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R, E, A>;
|
|
862
766
|
/**
|
|
863
767
|
* Repeats this effect until its error satisfies the specified effectful predicate.
|
|
864
|
-
* @tsplus
|
|
768
|
+
* @tsplus pipeable fncts.io.IO repeatUntilIO
|
|
865
769
|
* @tsplus location "@fncts/io/IO/api"
|
|
866
770
|
*/
|
|
867
|
-
export declare function
|
|
771
|
+
export declare function repeatUntilIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R1 | R, E1 | E, A>;
|
|
868
772
|
/**
|
|
869
773
|
* Repeats this effect while its error satisfies the specified predicate.
|
|
870
|
-
* @tsplus
|
|
774
|
+
* @tsplus pipeable fncts.io.IO repeatWhile
|
|
871
775
|
* @tsplus location "@fncts/io/IO/api"
|
|
872
776
|
*/
|
|
873
|
-
export declare function
|
|
777
|
+
export declare function repeatWhile<A>(f: (a: A) => boolean, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R, E, A>;
|
|
874
778
|
/**
|
|
875
779
|
* Repeats this effect while its error satisfies the specified effectful predicate.
|
|
876
|
-
* @tsplus
|
|
780
|
+
* @tsplus pipeable fncts.io.IO repeatWhileIO
|
|
877
781
|
* @tsplus location "@fncts/io/IO/api"
|
|
878
782
|
*/
|
|
879
|
-
export declare function
|
|
783
|
+
export declare function repeatWhileIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R1 | R, E1 | E, A>;
|
|
880
784
|
/**
|
|
881
|
-
* @tsplus
|
|
785
|
+
* @tsplus pipeable fncts.io.IO replicate
|
|
882
786
|
* @tsplus location "@fncts/io/IO/api"
|
|
883
787
|
*/
|
|
884
|
-
export declare function
|
|
788
|
+
export declare function replicate(n: number, __tsplusTrace?: string): <R, E, A>(self: IO<R, E, A>) => import("@fncts/base/collection/immutable/ImmutableArray.js").ImmutableArray<IO<R, E, A>>;
|
|
885
789
|
/**
|
|
886
|
-
* @tsplus
|
|
790
|
+
* @tsplus pipeable fncts.io.IO require
|
|
887
791
|
* @tsplus location "@fncts/io/IO/api"
|
|
888
792
|
*/
|
|
889
|
-
export declare function
|
|
793
|
+
export declare function require<E>(error: Lazy<E>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, import("@fncts/base/data/Maybe.js").Maybe<A>>) => IO<R, E, A>;
|
|
890
794
|
/**
|
|
891
795
|
* Returns an IO that semantically runs the IO on a fiber,
|
|
892
796
|
* producing an `Exit` for the completion value of the fiber.
|
|
@@ -902,34 +806,28 @@ export declare function result<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string)
|
|
|
902
806
|
export declare function resurrect<R, E, A>(io: IO<R, E, A>, __tsplusTrace?: string): IO<R, unknown, A>;
|
|
903
807
|
/**
|
|
904
808
|
* Retries this effect until its error satisfies the specified predicate.
|
|
905
|
-
* @tsplus
|
|
809
|
+
* @tsplus pipeable fncts.io.IO retryUntil
|
|
906
810
|
* @tsplus location "@fncts/io/IO/api"
|
|
907
811
|
*/
|
|
908
|
-
export declare function
|
|
812
|
+
export declare function retryUntil<E>(f: (e: E) => boolean, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R, E, A>;
|
|
909
813
|
/**
|
|
910
814
|
* Retries this effect until its error satisfies the specified effectful predicate.
|
|
911
|
-
* @tsplus
|
|
815
|
+
* @tsplus pipeable fncts.io.IO retryUntilIO
|
|
912
816
|
* @tsplus location "@fncts/io/IO/api"
|
|
913
817
|
*/
|
|
914
|
-
export declare function
|
|
818
|
+
export declare function retryUntilIO<E, R1, E1>(f: (e: E) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R1 | R, E | E1, A>;
|
|
915
819
|
/**
|
|
916
820
|
* Retries this effect while its error satisfies the specified predicate.
|
|
917
|
-
* @tsplus
|
|
821
|
+
* @tsplus pipeable fncts.io.IO retryWhile
|
|
918
822
|
* @tsplus location "@fncts/io/IO/api"
|
|
919
823
|
*/
|
|
920
|
-
export declare function
|
|
824
|
+
export declare function retryWhile<E>(f: (e: E) => boolean, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R, E, A>;
|
|
921
825
|
/**
|
|
922
826
|
* Retries this effect while its error satisfies the specified effectful predicate.
|
|
923
|
-
* @tsplus
|
|
924
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
925
|
-
*/
|
|
926
|
-
export declare function retryWhileIO_<R, E, A, R1, E1>(fa: IO<R, E, A>, f: (e: E) => IO<R1, E1, boolean>, __tsplusTrace?: string): IO<R | R1, E | E1, A>;
|
|
927
|
-
/**
|
|
928
|
-
* Retrieves the runtimeConfig that this effect is running on.
|
|
929
|
-
* @tsplus static fncts.io.IOOps runtimeConfig
|
|
827
|
+
* @tsplus pipeable fncts.io.IO retryWhileIO
|
|
930
828
|
* @tsplus location "@fncts/io/IO/api"
|
|
931
829
|
*/
|
|
932
|
-
export declare
|
|
830
|
+
export declare function retryWhileIO<E, R1, E1>(f: (e: E) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R1 | R, E | E1, A>;
|
|
933
831
|
/**
|
|
934
832
|
* Exposes the full cause of failure of this effect.
|
|
935
833
|
* @tsplus getter fncts.io.IO sandbox
|
|
@@ -937,16 +835,10 @@ export declare const runtimeConfig: UIO<RuntimeConfig>;
|
|
|
937
835
|
*/
|
|
938
836
|
export declare function sandbox<R, E, A>(fa: IO<R, E, A>, __tsplusTrace?: string): IO<R, Cause<E>, A>;
|
|
939
837
|
/**
|
|
940
|
-
* @tsplus
|
|
838
|
+
* @tsplus pipeable fncts.io.IO sandboxWith
|
|
941
839
|
* @tsplus location "@fncts/io/IO/api"
|
|
942
840
|
*/
|
|
943
|
-
export declare function
|
|
944
|
-
/**
|
|
945
|
-
* Sets the runtime configuration to the specified value.
|
|
946
|
-
* @tsplus static fncts.io.IOOps setRuntimeConfig
|
|
947
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
948
|
-
*/
|
|
949
|
-
export declare function setRuntimeConfig(runtimeConfig: Lazy<RuntimeConfig>, __tsplusTrace?: string): UIO<void>;
|
|
841
|
+
export declare function sandboxWith<R, E, A, E1>(f: (_: IO<R, Cause<E>, A>) => IO<R, Cause<E1>, A>, __tsplusTrace?: string): (ma: IO<R, E, A>) => IO<R, E1, A>;
|
|
950
842
|
/**
|
|
951
843
|
* @tsplus static fncts.io.IOOps sequenceIterable
|
|
952
844
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -973,10 +865,10 @@ export declare function succeedNow<A>(value: A, __tsplusTrace?: string): IO<neve
|
|
|
973
865
|
*/
|
|
974
866
|
export declare function succeed<A>(effect: Lazy<A>, __tsplusTrace?: string): UIO<A>;
|
|
975
867
|
/**
|
|
976
|
-
* @tsplus
|
|
868
|
+
* @tsplus pipeable fncts.io.IO summarized
|
|
977
869
|
* @tsplus location "@fncts/io/IO/api"
|
|
978
870
|
*/
|
|
979
|
-
export declare function
|
|
871
|
+
export declare function summarized<R1, E1, B, C>(summary: IO<R1, E1, B>, f: (start: B, end: B) => C, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R1 | R, E1 | E, readonly [C, A]>;
|
|
980
872
|
/**
|
|
981
873
|
* Swaps the positions of a Bifunctor's arguments
|
|
982
874
|
* @tsplus getter fncts.io.IO swap
|
|
@@ -985,16 +877,16 @@ export declare function summarized_<R, E, A, R1, E1, B, C>(ma: IO<R, E, A>, summ
|
|
|
985
877
|
export declare function swap<R, E, A>(pab: IO<R, E, A>, __tsplusTrace?: string): IO<R, A, E>;
|
|
986
878
|
/**
|
|
987
879
|
* Swaps the error/value parameters, applies the function `f` and flips the parameters back
|
|
988
|
-
* @tsplus
|
|
880
|
+
* @tsplus pipeable fncts.io.IO swapWith
|
|
989
881
|
* @tsplus location "@fncts/io/IO/api"
|
|
990
882
|
*/
|
|
991
|
-
export declare function
|
|
883
|
+
export declare function swapWith<R, E, A, R1, E1, A1>(f: (ma: IO<R, A, E>) => IO<R1, A1, E1>, __tsplusTrace?: string): (fa: IO<R, E, A>) => IO<R1, E1, A1>;
|
|
992
884
|
/**
|
|
993
885
|
* A more powerful variation of `timed` that allows specifying the clock.
|
|
994
|
-
* @tsplus
|
|
886
|
+
* @tsplus pipeable fncts.io.IO timedWith
|
|
995
887
|
* @tsplus location "@fncts/io/IO/api"
|
|
996
888
|
*/
|
|
997
|
-
export declare function
|
|
889
|
+
export declare function timedWith<R1, E1>(msTime: IO<R1, E1, number>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R1 | R, E1 | E, readonly [number, A]>;
|
|
998
890
|
/**
|
|
999
891
|
* Creates a `IO` that has succeeded with a pure value
|
|
1000
892
|
* @tsplus static fncts.io.IOOps tryCatch
|
|
@@ -1012,35 +904,35 @@ export declare function absolve<R, E, E1, A>(ma: IO<R, E, Either<E1, A>>, __tspl
|
|
|
1012
904
|
* and keeping only the result of the first
|
|
1013
905
|
*
|
|
1014
906
|
* Returns an IO that effectfully "peeks" at the success of this effect.
|
|
1015
|
-
* @tsplus
|
|
907
|
+
* @tsplus pipeable fncts.io.IO tap
|
|
1016
908
|
* @tsplus location "@fncts/io/IO/api"
|
|
1017
909
|
*/
|
|
1018
|
-
export declare function
|
|
910
|
+
export declare function tap<A, R1, E1, B>(f: (a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(self: IO<R, E, A>) => IO<R1 | R, E1 | E, A>;
|
|
1019
911
|
/**
|
|
1020
912
|
* Returns an IO that effectually "peeks" at the cause of the failure of
|
|
1021
913
|
* this IO.
|
|
1022
|
-
* @tsplus
|
|
914
|
+
* @tsplus pipeable fncts.io.IO tapCause
|
|
1023
915
|
* @tsplus location "@fncts/io/IO/api"
|
|
1024
916
|
*/
|
|
1025
|
-
export declare function
|
|
917
|
+
export declare function tapCause<R, E, E2>(f: (e: Cause<E2>) => IO<R, E, any>, __tsplusTrace?: string): <R2, A2>(ma: IO<R2, E2, A2>) => IO<R | R2, E | E2, A2>;
|
|
1026
918
|
/**
|
|
1027
919
|
* Returns an IO that effectfully "peeks" at the failure of this effect.
|
|
1028
|
-
* @tsplus
|
|
920
|
+
* @tsplus pipeable fncts.io.IO tapError
|
|
1029
921
|
* @tsplus location "@fncts/io/IO/api"
|
|
1030
922
|
*/
|
|
1031
|
-
export declare function
|
|
923
|
+
export declare function tapError<E, R1, E1>(f: (e: E) => IO<R1, E1, any>, __tsplusTrace?: string): <R, A>(self: IO<R, E, A>) => IO<R1 | R, E | E1, A>;
|
|
1032
924
|
/**
|
|
1033
925
|
* Returns an effect that effectually "peeks" at the cause of the failure of
|
|
1034
926
|
* this effect.
|
|
1035
|
-
* @tsplus
|
|
927
|
+
* @tsplus pipeable fncts.io.IO tapErrorCause
|
|
1036
928
|
* @tsplus location "@fncts/io/IO/api"
|
|
1037
929
|
*/
|
|
1038
|
-
export declare function
|
|
930
|
+
export declare function tapErrorCause<E, R1, E1>(f: (e: Cause<E>) => IO<R1, E1, any>, __tsplusTrace?: string): <R, A>(self: IO<R, E, A>) => IO<R1 | R, E | E1, A>;
|
|
1039
931
|
/**
|
|
1040
|
-
* @tsplus
|
|
932
|
+
* @tsplus pipeable fncts.io.IO tryOrElse
|
|
1041
933
|
* @tsplus location "@fncts/io/IO/api"
|
|
1042
934
|
*/
|
|
1043
|
-
export declare function
|
|
935
|
+
export declare function tryOrElse<A, R1, E1, A1, R2, E2, A2>(that: Lazy<IO<R1, E1, A1>>, onSuccess: (a: A) => IO<R2, E2, A2>, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R1 | R2 | R, E1 | E2, A1 | A2>;
|
|
1044
936
|
/**
|
|
1045
937
|
* @tsplus static fncts.io.IOOps unit
|
|
1046
938
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -1055,10 +947,10 @@ export declare function unjust<R, E, A>(self: IO<R, Maybe<E>, A>, __tsplusTrace?
|
|
|
1055
947
|
/**
|
|
1056
948
|
* Takes some fiber failures and converts them into errors, using the
|
|
1057
949
|
* specified function to convert the `E` into an `E1 | E2`.
|
|
1058
|
-
* @tsplus
|
|
950
|
+
* @tsplus pipeable fncts.io.IO unrefineWith
|
|
1059
951
|
* @tsplus location "@fncts/io/IO/api"
|
|
1060
952
|
*/
|
|
1061
|
-
export declare function
|
|
953
|
+
export declare function unrefineWith<E, E1, E2>(pf: (u: unknown) => Maybe<E1>, f: (e: E) => E2, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R, E1 | E2, A>;
|
|
1062
954
|
/**
|
|
1063
955
|
* The inverse operation `sandbox`
|
|
1064
956
|
* @tsplus getter fncts.io.IO unsandbox
|
|
@@ -1072,27 +964,37 @@ export declare function unsandbox<R, E, A>(ma: IO<R, Cause<E>, A>, __tsplusTrace
|
|
|
1072
964
|
* @tsplus location "@fncts/io/IO/api"
|
|
1073
965
|
*/
|
|
1074
966
|
export declare function updateFiberRefs(f: (fiberId: FiberId.Runtime, fiberRefs: FiberRefs) => FiberRefs, __tsplusTrace?: string): UIO<void>;
|
|
1075
|
-
/**
|
|
1076
|
-
* @tsplus static fncts.io.IOOps withFiberContext
|
|
1077
|
-
* @tsplus location "@fncts/io/IO/api"
|
|
1078
|
-
*/
|
|
1079
|
-
export declare function withFiberContext<R, E, A>(onState: (fiber: FiberContext<E, A>, status: FiberStatus) => IO<R, E, A>, __tsplusTrace?: string): IO<R, E, A>;
|
|
1080
967
|
/**
|
|
1081
968
|
* @tsplus fluent fncts.io.IO __call
|
|
1082
969
|
* @tsplus location "@fncts/io/IO/api"
|
|
1083
970
|
*/
|
|
1084
971
|
export declare const via: typeof pipe;
|
|
1085
972
|
/**
|
|
1086
|
-
* @tsplus
|
|
973
|
+
* @tsplus pipeable fncts.io.IO when
|
|
1087
974
|
* @tsplus location "@fncts/io/IO/api"
|
|
1088
975
|
*/
|
|
1089
|
-
export declare function
|
|
976
|
+
export declare function when(b: Lazy<boolean>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, E, void>;
|
|
1090
977
|
/**
|
|
1091
978
|
* The moral equivalent of `if (p) exp` when `p` has side-effects
|
|
1092
|
-
* @tsplus
|
|
979
|
+
* @tsplus pipeable fncts.io.IO whenIO
|
|
980
|
+
* @tsplus location "@fncts/io/IO/api"
|
|
981
|
+
*/
|
|
982
|
+
export declare function whenIO<R1, E1>(mb: IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R1 | R, E1 | E, void>;
|
|
983
|
+
/**
|
|
984
|
+
* @tsplus static fncts.io.IOOps withFiberRuntime
|
|
985
|
+
* @tsplus location "@fncts/io/IO/api"
|
|
986
|
+
*/
|
|
987
|
+
export declare function withFiberRuntime<R, E, A>(onState: (fiber: FiberRuntime<E, A>, status: Running) => IO<R, E, A>, __tsplusTrace?: string): IO<R, E, A>;
|
|
988
|
+
/**
|
|
989
|
+
* @tsplus static fncts.io.IOOps updateRuntimeFlags
|
|
990
|
+
* @tsplus location "@fncts/io/IO/api"
|
|
991
|
+
*/
|
|
992
|
+
export declare function updateRuntimeFlags(patch: RuntimeFlags.Patch, __tsplusTrace?: string): IO<never, never, void>;
|
|
993
|
+
/**
|
|
994
|
+
* @tsplus static fncts.io.IOOps stackTrace
|
|
1093
995
|
* @tsplus location "@fncts/io/IO/api"
|
|
1094
996
|
*/
|
|
1095
|
-
export declare function
|
|
997
|
+
export declare function stackTrace(__tsplusTrace?: string): UIO<Trace>;
|
|
1096
998
|
/**
|
|
1097
999
|
* Returns an effect that yields to the runtime system, starting on a fresh
|
|
1098
1000
|
* stack. Manual use of this method can improve fairness, at the cost of
|
|
@@ -1102,15 +1004,15 @@ export declare function whenIO_<R, E, A, R1, E1>(ma: IO<R, E, A>, mb: IO<R1, E1,
|
|
|
1102
1004
|
*/
|
|
1103
1005
|
export declare const yieldNow: UIO<void>;
|
|
1104
1006
|
/**
|
|
1105
|
-
* @tsplus
|
|
1007
|
+
* @tsplus pipeable fncts.io.IO zip
|
|
1106
1008
|
* @tsplus location "@fncts/io/IO/api"
|
|
1107
1009
|
*/
|
|
1108
|
-
export declare function
|
|
1010
|
+
export declare function zip<R1, E1, B>(that: IO<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: IO<R, E, A>) => IO<R1 | R, E1 | E, readonly [A, B]>;
|
|
1109
1011
|
/**
|
|
1110
|
-
* @tsplus
|
|
1012
|
+
* @tsplus pipeable fncts.io.IO zipWith
|
|
1111
1013
|
* @tsplus location "@fncts/io/IO/api"
|
|
1112
1014
|
*/
|
|
1113
|
-
export declare function
|
|
1015
|
+
export declare function zipWith<A, R1, E1, B, C>(that: IO<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(self: IO<R, E, A>) => IO<R1 | R, E1 | E, C>;
|
|
1114
1016
|
export declare class GenIO<R, E, A> {
|
|
1115
1017
|
readonly effect: IO<R, E, A>;
|
|
1116
1018
|
readonly _trace?: string | undefined;
|