@fncts/io 0.0.19 → 0.0.21
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/mapOutIOC.d.ts +3 -3
- 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/zipC.d.ts +6 -6
- package/Channel/api.d.ts +64 -64
- package/Channel/core-api.d.ts +11 -11
- package/Channel/definition.d.ts +35 -21
- package/Differ/api.d.ts +24 -0
- package/Differ/definition.d.ts +15 -0
- package/Fiber/api/evalOn.d.ts +3 -3
- package/Fiber/api/evalOnIO.d.ts +3 -3
- package/Fiber/api/interruptAs.d.ts +3 -3
- package/Fiber/api/interruptAsFork.d.ts +3 -3
- 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.d.ts +1 -0
- 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/unsafe.d.ts +12 -6
- package/FiberRefs/api.d.ts +2 -2
- package/FiberRefs/join.d.ts +3 -3
- package/Future/api.d.ts +21 -21
- package/Hub/constructors.d.ts +49 -0
- package/Hub/definition.d.ts +37 -81
- package/Hub/internal.d.ts +4 -11
- package/Hub.d.ts +1 -1
- package/IO/api/acquireRelease.d.ts +1 -1
- package/IO/api/acquireReleaseExit.d.ts +1 -1
- 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 +5 -5
- package/IO/api/ensuringChildren.d.ts +3 -3
- package/IO/api/environment.d.ts +11 -15
- package/IO/api/foreachC.d.ts +2 -2
- package/IO/api/foreachExec.d.ts +1 -1
- package/IO/api/forkIn.d.ts +3 -3
- package/IO/api/fulfill.d.ts +3 -3
- package/IO/api/interrupt.d.ts +6 -6
- 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 +3 -3
- 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/withRuntimeConfig.d.ts +3 -3
- package/IO/api/zipC.d.ts +4 -4
- package/IO/api.d.ts +179 -176
- package/IO/definition.d.ts +15 -9
- package/IOEnv/services.d.ts +2 -2
- package/Layer/MemoMap.d.ts +4 -4
- 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/Queue/constructors.d.ts +2 -1
- package/Queue/definition.d.ts +91 -82
- package/Queue/internal.d.ts +7 -9
- package/Queue.d.ts +0 -2
- package/Ref/Atomic.d.ts +15 -2
- package/Ref/Synchronized.d.ts +72 -0
- package/Ref/constructors.d.ts +7 -0
- package/Ref/definition.d.ts +60 -58
- package/Ref.d.ts +1 -6
- 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 +94 -94
- package/Scope/ReleaseMap/api/releaseAll.d.ts +2 -2
- package/Scope/ReleaseMap/api.d.ts +10 -10
- package/Scope/api.d.ts +8 -8
- package/Sink/api.d.ts +68 -68
- 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 +216 -205
- package/Stream/internal/DebounceState.d.ts +3 -3
- package/Stream/internal/Handoff.d.ts +5 -5
- package/Stream/internal/Pull.d.ts +2 -2
- package/Stream/internal/SinkEndReason.d.ts +3 -3
- package/Stream/internal/Take.d.ts +8 -8
- package/SubscriptionRef.d.ts +29 -0
- package/Supervisor/api.d.ts +13 -7
- package/Supervisor/definition.d.ts +28 -0
- package/SupervisorPatch.d.ts +61 -0
- package/TFuture/api.d.ts +7 -7
- package/TReentrantLock/api.d.ts +4 -4
- package/TRef/api.d.ts +24 -24
- package/TSemaphore/api.d.ts +4 -4
- package/TSemaphore/constructors.d.ts +6 -0
- package/_cjs/Cached/api.cjs +9 -9
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs +19 -17
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +16 -14
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +14 -10
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutIOC.cjs +25 -25
- package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAll.cjs +6 -4
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +6 -4
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +48 -52
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +6 -4
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +48 -46
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +1 -1
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +2 -2
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +3 -3
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipC.cjs +20 -14
- package/_cjs/Channel/api/zipC.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +264 -218
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +34 -24
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +1 -1
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +83 -83
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +22 -24
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +108 -0
- package/_cjs/Differ/api.cjs.map +1 -0
- package/_cjs/Differ/definition.cjs +23 -0
- package/_cjs/Differ/definition.cjs.map +1 -0
- package/_cjs/Fiber/FiberContext.cjs +48 -48
- package/_cjs/Fiber/FiberContext.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +1 -1
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/evalOn.cjs +12 -10
- package/_cjs/Fiber/api/evalOn.cjs.map +1 -1
- package/_cjs/Fiber/api/evalOnIO.cjs +6 -4
- package/_cjs/Fiber/api/evalOnIO.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +1 -1
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +1 -1
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +2 -2
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +6 -4
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAsFork.cjs +6 -4
- package/_cjs/Fiber/api/interruptAsFork.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +1 -1
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +1 -1
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +6 -4
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +14 -10
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +6 -4
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/Fiber.cjs +13 -0
- package/_cjs/Fiber.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +6 -4
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +5 -3
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +64 -47
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +1 -1
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +35 -21
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +15 -13
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/join.cjs +37 -35
- package/_cjs/FiberRefs/join.cjs.map +1 -1
- package/_cjs/FiberState/definition.cjs.map +1 -1
- package/_cjs/Future/api.cjs +97 -79
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +1 -1
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Hub/constructors.cjs +93 -0
- package/_cjs/Hub/constructors.cjs.map +1 -0
- package/_cjs/Hub/definition.cjs +104 -13
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +104 -129
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/Hub.cjs +4 -4
- package/_cjs/IO/api/acquireReleaseExit.cjs +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +4 -4
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +3 -3
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +3 -3
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/clockWith.cjs +2 -2
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +9 -7
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +2 -2
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/core-scope.cjs +45 -41
- package/_cjs/IO/api/core-scope.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +5 -3
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +35 -35
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachC.cjs +19 -23
- package/_cjs/IO/api/foreachC.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +3 -3
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +1 -1
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +8 -6
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +1 -1
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +8 -6
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +36 -30
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +1 -1
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onExit.cjs +6 -4
- package/_cjs/IO/api/onExit.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +5 -3
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +3 -5
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +6 -4
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +5 -15
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +6 -4
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +6 -4
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +1 -1
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +12 -12
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +14 -14
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +15 -11
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +6 -6
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sequenceT.cjs +1 -1
- package/_cjs/IO/api/sequenceT.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +6 -4
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +10 -6
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +1 -1
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +6 -4
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +6 -4
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/withRuntimeConfig.cjs +6 -4
- package/_cjs/IO/api/withRuntimeConfig.cjs.map +1 -1
- package/_cjs/IO/api/zipC.cjs +21 -17
- package/_cjs/IO/api/zipC.cjs.map +1 -1
- package/_cjs/IO/api.cjs +634 -509
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +7 -7
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +1 -1
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +1 -1
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +86 -92
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +110 -81
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +24 -16
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs +18 -16
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +18 -14
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +1 -1
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +19 -5
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +191 -16
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +27 -181
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +19 -19
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Queue.cjs +0 -26
- package/_cjs/Queue.cjs.map +1 -1
- package/_cjs/Random/live.cjs +2 -2
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +47 -24
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Synchronized.cjs +140 -0
- package/_cjs/Ref/Synchronized.cjs.map +1 -0
- package/_cjs/Ref/constructors.cjs +21 -2
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +105 -10
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Ref.cjs +4 -69
- package/_cjs/Ref.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +10 -10
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/RuntimeConfig.cjs +2 -2
- package/_cjs/RuntimeConfig.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +36 -26
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api.cjs +217 -163
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +3 -3
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +33 -29
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +16 -14
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +16 -20
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +381 -290
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +14 -14
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +68 -61
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +34 -27
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +9 -13
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +1 -1
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +307 -249
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/State/api.cjs +18 -14
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +15 -13
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +6 -4
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +13 -11
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +992 -788
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +21 -19
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +35 -33
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +9 -11
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +16 -14
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +32 -24
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +3 -3
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +68 -0
- package/_cjs/SubscriptionRef.cjs.map +1 -0
- package/_cjs/Supervisor/api.cjs +49 -34
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +2 -2
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +66 -1
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +176 -0
- package/_cjs/SupervisorPatch.cjs.map +1 -0
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +21 -15
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +1 -1
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +32 -28
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +4 -4
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +233 -209
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +4 -4
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +27 -23
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +18 -3
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +21 -19
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +21 -19
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +16 -14
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +19 -17
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +11 -9
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +31 -29
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +6 -4
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +13 -11
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +18 -16
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +11 -9
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs +6 -6
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs +18 -16
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +14 -12
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/api/interruptWhen.mjs +11 -7
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutIOC.mjs +24 -23
- package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAll.mjs +5 -3
- package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +5 -3
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +45 -46
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeMap.mjs +5 -3
- package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +46 -44
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +1 -1
- package/_mjs/Channel/api/run.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +2 -2
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs +3 -3
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api/zipC.mjs +16 -10
- package/_mjs/Channel/api/zipC.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +224 -173
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +28 -18
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +1 -1
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +83 -83
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +22 -23
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Differ/api.mjs +90 -0
- package/_mjs/Differ/api.mjs.map +1 -0
- package/_mjs/Differ/definition.mjs +13 -0
- package/_mjs/Differ/definition.mjs.map +1 -0
- package/_mjs/Fiber/FiberContext.mjs +48 -48
- package/_mjs/Fiber/FiberContext.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +1 -1
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/evalOn.mjs +11 -9
- package/_mjs/Fiber/api/evalOn.mjs.map +1 -1
- package/_mjs/Fiber/api/evalOnIO.mjs +5 -3
- package/_mjs/Fiber/api/evalOnIO.mjs.map +1 -1
- package/_mjs/Fiber/api/fromIO.mjs +1 -1
- package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +1 -1
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +2 -2
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +6 -4
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAsFork.mjs +6 -4
- package/_mjs/Fiber/api/interruptAsFork.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/api/join.mjs +1 -1
- package/_mjs/Fiber/api/join.mjs.map +1 -1
- package/_mjs/Fiber/api/joinAll.mjs +1 -1
- package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +5 -3
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +11 -7
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +5 -3
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/Fiber.mjs +1 -0
- package/_mjs/Fiber.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +5 -3
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +5 -3
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +52 -36
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +1 -1
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +31 -20
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +14 -12
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/join.mjs +35 -33
- package/_mjs/FiberRefs/join.mjs.map +1 -1
- package/_mjs/FiberState/definition.mjs.map +1 -1
- package/_mjs/Future/api.mjs +84 -66
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +1 -1
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Hub/constructors.mjs +66 -0
- package/_mjs/Hub/constructors.mjs.map +1 -0
- package/_mjs/Hub/definition.mjs +88 -9
- package/_mjs/Hub/definition.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +105 -122
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/Hub.mjs +1 -1
- package/_mjs/Hub.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +4 -4
- package/_mjs/IO/api/asyncIO.mjs.map +1 -1
- package/_mjs/IO/api/bracket.mjs +2 -2
- package/_mjs/IO/api/bracket.mjs.map +1 -1
- package/_mjs/IO/api/bracketExit.mjs +2 -2
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/clockWith.mjs +2 -2
- package/_mjs/IO/api/clockWith.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +8 -6
- package/_mjs/IO/api/concurrency.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/consoleWith.mjs +2 -2
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/core-scope.mjs +40 -36
- package/_mjs/IO/api/core-scope.mjs.map +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs +5 -3
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +29 -27
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/foreachC.mjs +17 -19
- package/_mjs/IO/api/foreachC.mjs.map +1 -1
- package/_mjs/IO/api/foreachExec.mjs +2 -2
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/forkAll.mjs +1 -1
- package/_mjs/IO/api/forkAll.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +7 -5
- package/_mjs/IO/api/forkIn.mjs.map +1 -1
- package/_mjs/IO/api/forkScoped.mjs +1 -1
- package/_mjs/IO/api/forkScoped.mjs.map +1 -1
- package/_mjs/IO/api/fulfill.mjs +7 -5
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +34 -28
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/memoize.mjs +1 -1
- package/_mjs/IO/api/memoize.mjs.map +1 -1
- package/_mjs/IO/api/onExit.mjs +5 -3
- package/_mjs/IO/api/onExit.mjs.map +1 -1
- package/_mjs/IO/api/onTermination.mjs +5 -3
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/once.mjs +3 -4
- package/_mjs/IO/api/once.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +5 -3
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +5 -11
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +5 -3
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +5 -3
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +1 -1
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +8 -8
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +12 -12
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +15 -11
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +3 -3
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/sequenceT.mjs +1 -1
- package/_mjs/IO/api/sequenceT.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +5 -3
- package/_mjs/IO/api/supervised.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +10 -6
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/withChildren.mjs +1 -1
- package/_mjs/IO/api/withChildren.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizer.mjs +5 -3
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +5 -3
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/withRuntimeConfig.mjs +5 -3
- package/_mjs/IO/api/withRuntimeConfig.mjs.map +1 -1
- package/_mjs/IO/api/zipC.mjs +18 -14
- package/_mjs/IO/api/zipC.mjs.map +1 -1
- package/_mjs/IO/api.mjs +511 -387
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +7 -7
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs +1 -1
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/IOEnv/live.mjs +1 -1
- package/_mjs/IOEnv/live.mjs.map +1 -1
- package/_mjs/IOEnv/services.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +86 -87
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +91 -63
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/LogLevel.mjs +24 -16
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs +16 -14
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs +16 -12
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs +1 -1
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Queue/constructors.mjs +16 -5
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/definition.mjs +174 -12
- package/_mjs/Queue/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +21 -170
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +20 -23
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Queue.mjs +1 -3
- package/_mjs/Queue.mjs.map +1 -1
- package/_mjs/Random/live.mjs +2 -2
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Ref/Atomic.mjs +39 -3
- package/_mjs/Ref/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Synchronized.mjs +123 -0
- package/_mjs/Ref/Synchronized.mjs.map +1 -0
- package/_mjs/Ref/constructors.mjs +15 -1
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs +96 -4
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/Ref.mjs +1 -8
- package/_mjs/Ref.mjs.map +1 -1
- package/_mjs/Reloadable/constructors.mjs +10 -10
- package/_mjs/Reloadable/constructors.mjs.map +1 -1
- package/_mjs/RuntimeConfig.mjs +2 -2
- package/_mjs/RuntimeConfig.mjs.map +1 -1
- package/_mjs/STM/api/core-api.mjs +29 -19
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api.mjs +180 -127
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +3 -3
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/Entry.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +33 -29
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +14 -12
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +15 -17
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +326 -234
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +12 -11
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +60 -51
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +28 -22
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +9 -11
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef/definition.mjs +1 -1
- package/_mjs/ScopedRef/definition.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +301 -240
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/State/api.mjs +16 -12
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +14 -12
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +5 -3
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +12 -10
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +856 -653
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +18 -16
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +35 -32
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +9 -10
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +14 -12
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +28 -20
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs +3 -3
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +45 -0
- package/_mjs/SubscriptionRef.mjs.map +1 -0
- package/_mjs/Supervisor/api.mjs +44 -33
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +2 -2
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +55 -0
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +135 -0
- package/_mjs/SupervisorPatch.mjs.map +1 -0
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +17 -11
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +1 -1
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +32 -28
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +4 -4
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +218 -194
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +4 -4
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +23 -19
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +12 -2
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +19 -17
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +19 -17
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +14 -12
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +17 -15
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +10 -8
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +28 -26
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +5 -3
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs +13 -11
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +18 -16
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs +10 -8
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- 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/mapOutIOC.ts +58 -58
- 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/zipC.ts +52 -88
- package/_src/Channel/api.ts +345 -405
- package/_src/Channel/core-api.ts +75 -122
- package/_src/Channel/definition.ts +49 -7
- package/_src/Channel/internal/ChannelExecutor.ts +1 -5
- package/_src/Channel/internal/SingleProducerAsyncInput.ts +1 -3
- package/_src/Differ/api.ts +72 -0
- package/_src/Differ/definition.ts +16 -0
- package/_src/Fiber/FiberContext.ts +13 -33
- package/_src/Fiber/api/collectAll.ts +1 -2
- package/_src/Fiber/api/evalOn.ts +11 -14
- package/_src/Fiber/api/evalOnIO.ts +10 -13
- package/_src/Fiber/api/interruptAll.ts +1 -2
- package/_src/Fiber/api/interruptAs.ts +6 -4
- package/_src/Fiber/api/interruptAsFork.ts +6 -4
- package/_src/Fiber/api/interruptFork.ts +1 -1
- 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 +1 -15
- package/_src/Fiber.ts +1 -1
- package/_src/FiberRef/api/locallyScoped.ts +8 -6
- package/_src/FiberRef/api/locallyScopedWith.ts +5 -7
- package/_src/FiberRef/api.ts +50 -39
- package/_src/FiberRef/unsafe.ts +24 -22
- package/_src/FiberRef.ts +0 -1
- package/_src/FiberRefs/api.ts +14 -12
- package/_src/FiberRefs/join.ts +37 -46
- package/_src/FiberState/definition.ts +1 -2
- package/_src/Future/api.ts +67 -53
- package/_src/Hub/constructors.ts +80 -0
- package/_src/Hub/definition.ts +95 -89
- package/_src/Hub/internal.ts +115 -165
- package/_src/Hub.ts +1 -1
- package/_src/IO/api/acquireRelease.ts +1 -1
- package/_src/IO/api/acquireReleaseExit.ts +1 -1
- 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 +36 -33
- package/_src/IO/api/ensuringChildren.ts +8 -7
- package/_src/IO/api/environment.ts +24 -42
- package/_src/IO/api/foreachC.ts +24 -12
- package/_src/IO/api/foreachExec.ts +1 -1
- package/_src/IO/api/forkIn.ts +7 -9
- package/_src/IO/api/fulfill.ts +5 -3
- package/_src/IO/api/interrupt.ts +37 -40
- 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 +5 -7
- package/_src/IO/api/timeout.ts +10 -16
- package/_src/IO/api/withFinalizer.ts +5 -7
- package/_src/IO/api/withFinalizerExit.ts +6 -5
- package/_src/IO/api/withRuntimeConfig.ts +12 -14
- package/_src/IO/api/zipC.ts +57 -62
- package/_src/IO/api.ts +512 -539
- package/_src/IO/definition.ts +21 -9
- package/_src/IO/runtime.ts +0 -12
- package/_src/IO.ts +0 -1
- package/_src/IOEnv/definition.ts +0 -2
- package/_src/IOEnv/services.ts +5 -4
- package/_src/Layer/MemoMap.ts +61 -63
- 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/Queue/constructors.ts +22 -6
- package/_src/Queue/definition.ts +230 -81
- package/_src/Queue/internal.ts +9 -180
- package/_src/Queue/strategy.ts +9 -23
- package/_src/Queue.ts +1 -3
- package/_src/Ref/Atomic.ts +37 -4
- package/_src/Ref/Synchronized.ts +107 -0
- package/_src/Ref/constructors.ts +15 -0
- package/_src/Ref/definition.ts +86 -85
- package/_src/Ref.ts +1 -9
- package/_src/Reloadable/constructors.ts +2 -2
- package/_src/RuntimeConfig.ts +0 -2
- package/_src/STM/api/core-api.ts +32 -35
- package/_src/STM/api.ts +210 -200
- package/_src/STM/internal/Entry.ts +0 -10
- package/_src/STM/internal/Journal.ts +23 -26
- package/_src/STM.ts +0 -1
- package/_src/Schedule/Decision.ts +10 -8
- package/_src/Schedule/api/driver.ts +0 -4
- package/_src/Schedule/api.ts +419 -444
- package/_src/Schedule/definition.ts +0 -1
- package/_src/Scope/ReleaseMap/api/releaseAll.ts +23 -26
- package/_src/Scope/ReleaseMap/api.ts +77 -74
- 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 -357
- package/_src/State/api.ts +12 -8
- package/_src/State/internal.ts +1 -1
- package/_src/Stream/api/zipAllWith.ts +6 -5
- package/_src/Stream/api/zipWith.ts +5 -8
- package/_src/Stream/api/zipWithChunks.ts +6 -5
- package/_src/Stream/api.ts +1049 -1176
- package/_src/Stream/definition.ts +0 -2
- package/_src/Stream/internal/DebounceState.ts +16 -17
- package/_src/Stream/internal/Handoff.ts +31 -35
- package/_src/Stream/internal/Pull.ts +1 -2
- 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/SubscriptionRef.ts +44 -0
- package/_src/Supervisor/api.ts +39 -31
- package/_src/Supervisor/definition.ts +58 -0
- package/_src/SupervisorPatch.ts +111 -0
- package/_src/TExit/definition.ts +0 -8
- package/_src/TFuture/api.ts +23 -17
- package/_src/TFuture/definition.ts +0 -1
- package/_src/TReentrantLock/api.ts +14 -10
- package/_src/TReentrantLock/definition.ts +0 -7
- package/_src/TRef/api.ts +207 -209
- package/_src/TRef/definition.ts +0 -12
- package/_src/TSemaphore/api.ts +19 -18
- package/_src/TSemaphore/constructors.ts +7 -0
- 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 +3 -0
- 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 +3 -0
- package/internal/Hub.d.ts +2 -2
- package/internal/IsFatal.d.ts +3 -3
- package/internal/MutableQueue.d.ts +3 -3
- package/package.json +3 -3
- package/Hub/api.d.ts +0 -190
- package/Queue/api/dimapIO.d.ts +0 -41
- package/Queue/api/filterInputIO.d.ts +0 -33
- package/Queue/api/filterOutputIO.d.ts +0 -31
- package/Queue/api/operations.d.ts +0 -82
- package/Queue/api/poll.d.ts +0 -9
- package/Queue/api/takeBetween.d.ts +0 -11
- package/Queue/api/zipWithIO.d.ts +0 -44
- package/Queue/api.d.ts +0 -7
- package/Ref/Atomic/Atomic.d.ts +0 -18
- package/Ref/Atomic/api.d.ts +0 -53
- package/Ref/Derived.d.ts +0 -14
- package/Ref/DerivedAll.d.ts +0 -14
- package/Ref/Synchronized/api.d.ts +0 -100
- package/Ref/Synchronized/constructors.d.ts +0 -8
- package/Ref/Synchronized/definition.d.ts +0 -42
- package/Ref/api/collect.d.ts +0 -11
- package/Ref/api/dimap.d.ts +0 -56
- package/Ref/api/filter.d.ts +0 -20
- package/Ref/api/get.d.ts +0 -9
- package/Ref/api/match.d.ts +0 -13
- package/Ref/api/matchAll.d.ts +0 -11
- package/Ref/api/modify.d.ts +0 -79
- package/Ref/api/set.d.ts +0 -10
- package/Ref/api.d.ts +0 -23
- package/_cjs/Hub/api.cjs +0 -456
- package/_cjs/Hub/api.cjs.map +0 -1
- package/_cjs/Queue/api/dimapIO.cjs +0 -120
- package/_cjs/Queue/api/dimapIO.cjs.map +0 -1
- package/_cjs/Queue/api/filterInputIO.cjs +0 -84
- package/_cjs/Queue/api/filterInputIO.cjs.map +0 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +0 -89
- package/_cjs/Queue/api/filterOutputIO.cjs.map +0 -1
- package/_cjs/Queue/api/operations.cjs +0 -147
- package/_cjs/Queue/api/operations.cjs.map +0 -1
- package/_cjs/Queue/api/poll.cjs +0 -27
- package/_cjs/Queue/api/poll.cjs.map +0 -1
- package/_cjs/Queue/api/takeBetween.cjs +0 -57
- package/_cjs/Queue/api/takeBetween.cjs.map +0 -1
- package/_cjs/Queue/api/zipWithIO.cjs +0 -97
- package/_cjs/Queue/api/zipWithIO.cjs.map +0 -1
- package/_cjs/Queue/api.cjs +0 -97
- package/_cjs/Queue/api.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/_cjs/Ref/Derived.cjs +0 -55
- package/_cjs/Ref/Derived.cjs.map +0 -1
- package/_cjs/Ref/DerivedAll.cjs +0 -55
- package/_cjs/Ref/DerivedAll.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/api.cjs +0 -196
- package/_cjs/Ref/Synchronized/api.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +0 -32
- package/_cjs/Ref/Synchronized/constructors.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/definition.cjs +0 -88
- package/_cjs/Ref/Synchronized/definition.cjs.map +0 -1
- package/_cjs/Ref/api/collect.cjs +0 -31
- package/_cjs/Ref/api/collect.cjs.map +0 -1
- package/_cjs/Ref/api/dimap.cjs +0 -110
- package/_cjs/Ref/api/dimap.cjs.map +0 -1
- package/_cjs/Ref/api/filter.cjs +0 -45
- package/_cjs/Ref/api/filter.cjs.map +0 -1
- package/_cjs/Ref/api/get.cjs +0 -20
- package/_cjs/Ref/api/get.cjs.map +0 -1
- package/_cjs/Ref/api/match.cjs +0 -26
- package/_cjs/Ref/api/match.cjs.map +0 -1
- package/_cjs/Ref/api/matchAll.cjs +0 -24
- package/_cjs/Ref/api/matchAll.cjs.map +0 -1
- package/_cjs/Ref/api/modify.cjs +0 -239
- package/_cjs/Ref/api/modify.cjs.map +0 -1
- package/_cjs/Ref/api/set.cjs +0 -21
- package/_cjs/Ref/api/set.cjs.map +0 -1
- package/_cjs/Ref/api.cjs +0 -158
- package/_cjs/Ref/api.cjs.map +0 -1
- package/_mjs/Hub/api.mjs +0 -384
- package/_mjs/Hub/api.mjs.map +0 -1
- package/_mjs/Queue/api/dimapIO.mjs +0 -97
- package/_mjs/Queue/api/dimapIO.mjs.map +0 -1
- package/_mjs/Queue/api/filterInputIO.mjs +0 -63
- package/_mjs/Queue/api/filterInputIO.mjs.map +0 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +0 -68
- package/_mjs/Queue/api/filterOutputIO.mjs.map +0 -1
- package/_mjs/Queue/api/operations.mjs +0 -122
- package/_mjs/Queue/api/operations.mjs.map +0 -1
- package/_mjs/Queue/api/poll.mjs +0 -14
- package/_mjs/Queue/api/poll.mjs.map +0 -1
- package/_mjs/Queue/api/takeBetween.mjs +0 -43
- package/_mjs/Queue/api/takeBetween.mjs.map +0 -1
- package/_mjs/Queue/api/zipWithIO.mjs +0 -74
- package/_mjs/Queue/api/zipWithIO.mjs.map +0 -1
- package/_mjs/Queue/api.mjs +0 -9
- package/_mjs/Queue/api.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/_mjs/Ref/Derived.mjs +0 -35
- package/_mjs/Ref/Derived.mjs.map +0 -1
- package/_mjs/Ref/DerivedAll.mjs +0 -35
- package/_mjs/Ref/DerivedAll.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/api.mjs +0 -154
- package/_mjs/Ref/Synchronized/api.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +0 -15
- package/_mjs/Ref/Synchronized/constructors.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/definition.mjs +0 -66
- package/_mjs/Ref/Synchronized/definition.mjs.map +0 -1
- package/_mjs/Ref/api/collect.mjs +0 -17
- package/_mjs/Ref/api/collect.mjs.map +0 -1
- package/_mjs/Ref/api/dimap.mjs +0 -84
- package/_mjs/Ref/api/dimap.mjs.map +0 -1
- package/_mjs/Ref/api/filter.mjs +0 -29
- package/_mjs/Ref/api/filter.mjs.map +0 -1
- package/_mjs/Ref/api/get.mjs +0 -13
- package/_mjs/Ref/api/get.mjs.map +0 -1
- package/_mjs/Ref/api/match.mjs +0 -18
- package/_mjs/Ref/api/match.mjs.map +0 -1
- package/_mjs/Ref/api/matchAll.mjs +0 -16
- package/_mjs/Ref/api/matchAll.mjs.map +0 -1
- package/_mjs/Ref/api/modify.mjs +0 -204
- package/_mjs/Ref/api/modify.mjs.map +0 -1
- package/_mjs/Ref/api/set.mjs +0 -14
- package/_mjs/Ref/api/set.mjs.map +0 -1
- package/_mjs/Ref/api.mjs +0 -34
- package/_mjs/Ref/api.mjs.map +0 -1
- package/_src/Hub/api.ts +0 -461
- package/_src/Queue/api/dimapIO.ts +0 -130
- package/_src/Queue/api/filterInputIO.ts +0 -75
- package/_src/Queue/api/filterOutputIO.ts +0 -76
- package/_src/Queue/api/operations.ts +0 -139
- package/_src/Queue/api/poll.ts +0 -14
- package/_src/Queue/api/takeBetween.ts +0 -45
- package/_src/Queue/api/zipWithIO.ts +0 -99
- package/_src/Queue/api.ts +0 -9
- package/_src/Ref/Atomic/Atomic.ts +0 -56
- package/_src/Ref/Atomic/api.ts +0 -124
- package/_src/Ref/Derived.ts +0 -71
- package/_src/Ref/DerivedAll.ts +0 -75
- package/_src/Ref/Synchronized/api.ts +0 -249
- package/_src/Ref/Synchronized/constructors.ts +0 -12
- package/_src/Ref/Synchronized/definition.ts +0 -126
- package/_src/Ref/api/collect.ts +0 -19
- package/_src/Ref/api/dimap.ts +0 -115
- package/_src/Ref/api/filter.ts +0 -35
- package/_src/Ref/api/get.ts +0 -17
- package/_src/Ref/api/match.ts +0 -24
- package/_src/Ref/api/matchAll.ts +0 -23
- package/_src/Ref/api/modify.ts +0 -237
- package/_src/Ref/api/set.ts +0 -19
- package/_src/Ref/api.ts +0 -39
package/IO/api.d.ts
CHANGED
|
@@ -61,28 +61,28 @@ export declare function asyncInterrupt<R, E, A>(register: (cb: (resolve: IO<R, E
|
|
|
61
61
|
/**
|
|
62
62
|
* Attempts to convert defects into a failure, throwing away all information
|
|
63
63
|
* about the cause of the failure.
|
|
64
|
-
* @tsplus
|
|
64
|
+
* @tsplus pipeable fncts.io.IO absorbWith
|
|
65
65
|
* @tsplus location "@fncts/io/IO/api"
|
|
66
66
|
*/
|
|
67
|
-
export declare function
|
|
67
|
+
export declare function absorbWith<R, E, A>(f: (e: E) => unknown, __tsplusTrace?: string): (ma: IO<R, E, A>) => IO<R, unknown, A>;
|
|
68
68
|
/**
|
|
69
|
-
* @tsplus
|
|
70
|
-
* @tsplus operator fncts.io.IO <
|
|
69
|
+
* @tsplus pipeable fncts.io.IO apFirst
|
|
70
|
+
* @tsplus pipeable-operator fncts.io.IO <
|
|
71
71
|
* @tsplus location "@fncts/io/IO/api"
|
|
72
72
|
*/
|
|
73
|
-
export declare function
|
|
73
|
+
export declare function apFirst<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
74
|
/**
|
|
75
75
|
* Combine two effectful actions, keeping only the result of the second
|
|
76
|
-
* @tsplus
|
|
77
|
-
* @tsplus operator fncts.io.IO >
|
|
76
|
+
* @tsplus pipeable fncts.io.IO apSecond
|
|
77
|
+
* @tsplus pipeable-operator fncts.io.IO >
|
|
78
78
|
* @tsplus location "@fncts/io/IO/api"
|
|
79
79
|
*/
|
|
80
|
-
export declare function
|
|
80
|
+
export declare function apSecond<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
81
|
/**
|
|
82
|
-
* @tsplus
|
|
82
|
+
* @tsplus pipeable fncts.io.IO as
|
|
83
83
|
* @tsplus location "@fncts/io/IO/api"
|
|
84
84
|
*/
|
|
85
|
-
export declare function
|
|
85
|
+
export declare function as<B>(b: Lazy<B>, __tsplusTrace?: string): <R, E, A>(self: IO<R, E, A>) => IO<R, E, B>;
|
|
86
86
|
/**
|
|
87
87
|
* Maps the success value of this effect to an optional value.
|
|
88
88
|
* @tsplus getter fncts.io.IO asJust
|
|
@@ -103,52 +103,50 @@ export declare function asUnit<R, E, A>(self: IO<R, E, A>, __tsplusTrace?: strin
|
|
|
103
103
|
/**
|
|
104
104
|
* Returns an IO whose failure and success channels have been mapped by
|
|
105
105
|
* the specified pair of functions, `f` and `g`.
|
|
106
|
-
* @tsplus
|
|
106
|
+
* @tsplus pipeable fncts.io.IO bimap
|
|
107
107
|
* @tsplus location "@fncts/io/IO/api"
|
|
108
108
|
*/
|
|
109
|
-
export declare function
|
|
109
|
+
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
110
|
/**
|
|
111
111
|
* Returns an IO that effectfully "peeks" at the failure or success of
|
|
112
112
|
* this effect.
|
|
113
|
-
* @tsplus
|
|
113
|
+
* @tsplus pipeable fncts.io.IO bitap
|
|
114
114
|
* @tsplus location "@fncts/io/IO/api"
|
|
115
115
|
*/
|
|
116
|
-
export declare function
|
|
116
|
+
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
117
|
/**
|
|
118
118
|
* Recovers from the specified error
|
|
119
|
-
* @tsplus
|
|
119
|
+
* @tsplus pipeable fncts.io.IO catch
|
|
120
120
|
* @tsplus location "@fncts/io/IO/api"
|
|
121
121
|
*/
|
|
122
|
-
export declare function
|
|
122
|
+
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, {
|
|
123
123
|
[n in N]: K;
|
|
124
|
-
}>) => IO<R1, E1, A1>, __tsplusTrace?: string): IO<R |
|
|
125
|
-
[n in N]: K;
|
|
126
|
-
}> | E1, A | A1>;
|
|
124
|
+
}>) => 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
125
|
/**
|
|
128
126
|
* Recovers from all errors
|
|
129
|
-
* @tsplus
|
|
127
|
+
* @tsplus pipeable fncts.io.IO catchAll
|
|
130
128
|
* @tsplus location "@fncts/io/IO/api"
|
|
131
129
|
*/
|
|
132
|
-
export declare function
|
|
130
|
+
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
131
|
/**
|
|
134
132
|
*
|
|
135
133
|
* Recovers from all errors with provided cause.
|
|
136
|
-
* @tsplus
|
|
134
|
+
* @tsplus pipeable fncts.io.IO catchAllCause
|
|
137
135
|
* @tsplus location "@fncts/io/IO/api"
|
|
138
136
|
*/
|
|
139
|
-
export declare function
|
|
137
|
+
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
138
|
/**
|
|
141
139
|
* Recovers from some or all of the error cases.
|
|
142
|
-
* @tsplus
|
|
140
|
+
* @tsplus pipeable fncts.io.IO catchJust
|
|
143
141
|
* @tsplus location "@fncts/io/IO/api"
|
|
144
142
|
*/
|
|
145
|
-
export declare function
|
|
143
|
+
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
144
|
/**
|
|
147
145
|
* Recovers from some or all of the error cases with provided cause.
|
|
148
|
-
* @tsplus
|
|
146
|
+
* @tsplus pipeable fncts.io.IO catchJustCause
|
|
149
147
|
* @tsplus location "@fncts/io/IO/api"
|
|
150
148
|
*/
|
|
151
|
-
export declare function
|
|
149
|
+
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
150
|
/**
|
|
153
151
|
* Recovers from some or all of the defects with provided partial function.
|
|
154
152
|
*
|
|
@@ -156,45 +154,45 @@ export declare function catchJustCause_<R, E, A, R1, E1, A1>(ma: IO<R, E, A>, f:
|
|
|
156
154
|
* method should be used only at the boundary between IO and an external
|
|
157
155
|
* system, to transmit information on a defect for diagnostic or explanatory
|
|
158
156
|
* purposes.
|
|
159
|
-
* @tsplus
|
|
157
|
+
* @tsplus pipeable fncts.io.IO catchJustDefect
|
|
160
158
|
* @tsplus location "@fncts/io/IO/api"
|
|
161
159
|
*/
|
|
162
|
-
export declare function
|
|
160
|
+
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
161
|
/**
|
|
164
162
|
* Recovers from the specified error
|
|
165
|
-
* @tsplus
|
|
163
|
+
* @tsplus pipeable IO catchTag
|
|
166
164
|
* @tsplus location "@fncts/io/IO/api"
|
|
167
165
|
*/
|
|
168
|
-
export declare function
|
|
166
|
+
export declare function catchTag<K extends E["_tag"] & string, E extends {
|
|
169
167
|
_tag: string;
|
|
170
|
-
},
|
|
168
|
+
}, R1, E1, A1>(k: K, f: (e: Extract<E, {
|
|
171
169
|
_tag: K;
|
|
172
|
-
}>) => IO<R1, E1, A1>, __tsplusTrace?: string): IO<R |
|
|
170
|
+
}>) => IO<R1, E1, A1>, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R1 | R, E1 | Exclude<E, {
|
|
173
171
|
_tag: K;
|
|
174
|
-
}
|
|
172
|
+
}>, A1 | A>;
|
|
175
173
|
/**
|
|
176
174
|
* @tsplus getter fncts.io.IO cause
|
|
177
175
|
* @tsplus location "@fncts/io/IO/api"
|
|
178
176
|
*/
|
|
179
177
|
export declare function cause<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): IO<R, never, Cause<E>>;
|
|
180
178
|
/**
|
|
181
|
-
* @tsplus
|
|
179
|
+
* @tsplus pipeable fncts.io.IO causeAsError
|
|
182
180
|
* @tsplus location "@fncts/io/IO/api"
|
|
183
181
|
*/
|
|
184
|
-
export declare function causeAsError<R, E, A>(ma: IO<R, E, A
|
|
182
|
+
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
183
|
/**
|
|
186
184
|
* Returns an IO that models the execution of this effect, followed by
|
|
187
185
|
* the passing of its value to the specified continuation function `f`,
|
|
188
186
|
* followed by the effect that it returns.
|
|
189
|
-
* @tsplus
|
|
187
|
+
* @tsplus pipeable fncts.io.IO flatMap
|
|
190
188
|
* @tsplus location "@fncts/io/IO/api"
|
|
191
189
|
*/
|
|
192
|
-
export declare function
|
|
190
|
+
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>;
|
|
193
191
|
/**
|
|
194
|
-
* @tsplus
|
|
192
|
+
* @tsplus pipeable fncts.io.IO flatMapError
|
|
195
193
|
* @tsplus location "@fncts/io/IO/api"
|
|
196
194
|
*/
|
|
197
|
-
export declare function
|
|
195
|
+
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>;
|
|
198
196
|
/**
|
|
199
197
|
* Checks the interrupt status, and produces the IO returned by the
|
|
200
198
|
* specified callback.
|
|
@@ -203,20 +201,20 @@ export declare function flatMapError_<R, R1, E, E1, A>(ma: IO<R, E, A>, f: (e: E
|
|
|
203
201
|
*/
|
|
204
202
|
export declare function checkInterruptible<R, E, A>(f: (i: InterruptStatus) => IO<R, E, A>, __tsplusTrace?: string): IO<R, E, A>;
|
|
205
203
|
/**
|
|
206
|
-
* @tsplus
|
|
204
|
+
* @tsplus pipeable fncts.io.IO collect
|
|
207
205
|
* @tsplus location "@fncts/io/IO/api"
|
|
208
206
|
*/
|
|
209
|
-
export declare function
|
|
207
|
+
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
208
|
/**
|
|
211
|
-
* @tsplus
|
|
209
|
+
* @tsplus pipeable fncts.io.IO collectIO
|
|
212
210
|
* @tsplus location "@fncts/io/IO/api"
|
|
213
211
|
*/
|
|
214
|
-
export declare function
|
|
212
|
+
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
213
|
/**
|
|
216
214
|
* @tsplus static fncts.io.IOOps condIO
|
|
217
215
|
* @tsplus location "@fncts/io/IO/api"
|
|
218
216
|
*/
|
|
219
|
-
export declare function
|
|
217
|
+
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
218
|
/**
|
|
221
219
|
* Returns a lazily constructed effect, whose construction may itself require
|
|
222
220
|
* effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == unknown)
|
|
@@ -286,25 +284,25 @@ export declare function descriptorWith<R, E, A>(f: (d: FiberDescriptor) => IO<R,
|
|
|
286
284
|
*/
|
|
287
285
|
export declare function either<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): URIO<R, Either<E, A>>;
|
|
288
286
|
/**
|
|
289
|
-
* @tsplus
|
|
287
|
+
* @tsplus pipeable fncts.io.IO ensuring
|
|
290
288
|
* @tsplus location "@fncts/io/IO/api"
|
|
291
289
|
*/
|
|
292
|
-
export declare function
|
|
290
|
+
export declare function ensuring<R1>(finalizer: IO<R1, never, any>, __tsplusTrace?: string): <R, E, A>(self: IO<R, E, A>) => IO<R1 | R, E, A>;
|
|
293
291
|
/**
|
|
294
|
-
* @tsplus
|
|
292
|
+
* @tsplus pipeable fncts.io.IO errorAsCause
|
|
295
293
|
* @tsplus location "@fncts/io/IO/api"
|
|
296
294
|
*/
|
|
297
|
-
export declare function errorAsCause<R, E, A>(ma: IO<R, Cause<E>, A
|
|
295
|
+
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
296
|
/**
|
|
299
297
|
* @tsplus getter fncts.io.IO eventually
|
|
300
298
|
* @tsplus location "@fncts/io/IO/api"
|
|
301
299
|
*/
|
|
302
300
|
export declare function eventually<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): IO<R, never, A>;
|
|
303
301
|
/**
|
|
304
|
-
* @tsplus
|
|
302
|
+
* @tsplus pipeable fncts.io.IO extend
|
|
305
303
|
* @tsplus location "@fncts/io/IO/api"
|
|
306
304
|
*/
|
|
307
|
-
export declare function
|
|
305
|
+
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
306
|
/**
|
|
309
307
|
* @tsplus static fncts.io.IOOps fail
|
|
310
308
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -338,38 +336,38 @@ export declare const fiberId: IO<never, never, FiberId>;
|
|
|
338
336
|
* @tsplus static fncts.io.IOOps filter
|
|
339
337
|
* @tsplus location "@fncts/io/IO/api"
|
|
340
338
|
*/
|
|
341
|
-
export declare function
|
|
339
|
+
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
340
|
/**
|
|
343
341
|
* @tsplus static fncts.io.IOOps filterMap
|
|
344
342
|
* @tsplus location "@fncts/io/IO/api"
|
|
345
343
|
*/
|
|
346
|
-
export declare function
|
|
344
|
+
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
345
|
/**
|
|
348
346
|
* @tsplus static fncts.io.IOOps filterMapWithIndex
|
|
349
347
|
* @tsplus location "@fncts/io/IO/api"
|
|
350
348
|
*/
|
|
351
|
-
export declare function
|
|
349
|
+
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
350
|
/**
|
|
353
351
|
* Filters the collection using the specified effectual predicate, removing
|
|
354
352
|
* all elements that satisfy the predicate.
|
|
355
353
|
* @tsplus static fncts.io.IOOps filterNot
|
|
356
354
|
* @tsplus location "@fncts/io/IO/api"
|
|
357
355
|
*/
|
|
358
|
-
export declare function
|
|
356
|
+
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
357
|
/**
|
|
360
358
|
* Applies `or` if the predicate fails.
|
|
361
|
-
* @tsplus
|
|
359
|
+
* @tsplus pipeable fncts.io.IO filterOrElse
|
|
362
360
|
* @tsplus location "@fncts/io/IO/api"
|
|
363
361
|
*/
|
|
364
|
-
export declare function
|
|
365
|
-
export declare function
|
|
362
|
+
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>;
|
|
363
|
+
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
364
|
/**
|
|
367
365
|
* Fails with `failWith` if the predicate fails.
|
|
368
|
-
* @tsplus
|
|
366
|
+
* @tsplus pipeable fncts.io.IO filterOrFail
|
|
369
367
|
* @tsplus location "@fncts/io/IO/api"
|
|
370
368
|
*/
|
|
371
|
-
export declare function
|
|
372
|
-
export declare function
|
|
369
|
+
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>;
|
|
370
|
+
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
371
|
/**
|
|
374
372
|
* Returns an `IO` that yields the value of the first
|
|
375
373
|
* `IO` to succeed.
|
|
@@ -379,11 +377,11 @@ export declare function filterOrFail_<R, E, A, E1>(fa: IO<R, E, A>, predicate: P
|
|
|
379
377
|
export declare function firstSuccess<R, E, A>(mas: NonEmptyArray<IO<R, E, A>>, __tsplusTrace?: string): IO<R, E, A>;
|
|
380
378
|
/**
|
|
381
379
|
* Halts with specified `unknown` if the predicate fails.
|
|
382
|
-
* @tsplus
|
|
380
|
+
* @tsplus pipeable fncts.io.IO filterOrHalt
|
|
383
381
|
* @tsplus location "@fncts/io/IO/api"
|
|
384
382
|
*/
|
|
385
|
-
export declare function
|
|
386
|
-
export declare function
|
|
383
|
+
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>;
|
|
384
|
+
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
385
|
/**
|
|
388
386
|
* @tsplus getter fncts.io.IO flatten
|
|
389
387
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -394,20 +392,20 @@ export declare function flatten<R, E, R1, E1, A>(self: IO<R, E, IO<R1, E1, A>>,
|
|
|
394
392
|
* @tsplus static fncts.io.IOOps foldLeft
|
|
395
393
|
* @tsplus location "@fncts/io/IO/api"
|
|
396
394
|
*/
|
|
397
|
-
export declare function
|
|
395
|
+
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
396
|
/**
|
|
399
397
|
* Combines an array of `IO`s using a `Monoid`
|
|
400
398
|
* @tsplus static fncts.io.IOOps foldMap
|
|
401
399
|
* @tsplus location "@fncts/io/IO/api"
|
|
402
400
|
*/
|
|
403
|
-
export declare function
|
|
401
|
+
export declare function foldMap<R, E, A, M>(as: Iterable<IO<R, E, A>>, f: (a: A) => M,
|
|
404
402
|
/** @tsplus auto */ M: P.Monoid<M>): IO<R, E, M>;
|
|
405
403
|
/**
|
|
406
404
|
* Performs a right-associative fold of an `Iterable<A>`
|
|
407
405
|
* @tsplus static fncts.io.IOOps foldRight
|
|
408
406
|
* @tsplus location "@fncts/io/IO/api"
|
|
409
407
|
*/
|
|
410
|
-
export declare function
|
|
408
|
+
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
409
|
/**
|
|
412
410
|
* Applies the function `f` to each element of the `Iterable<A>` and
|
|
413
411
|
* returns the results in a new `Conc<B>`.
|
|
@@ -417,7 +415,7 @@ export declare function foldRight_<A, B, R, E>(as: Iterable<A>, b: UIO<B>, f: (a
|
|
|
417
415
|
* @tsplus static fncts.io.IOOps foreach
|
|
418
416
|
* @tsplus location "@fncts/io/IO/api"
|
|
419
417
|
*/
|
|
420
|
-
export declare function
|
|
418
|
+
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
419
|
/**
|
|
422
420
|
* Applies the function `f` to each element of the `Iterable<A>` and
|
|
423
421
|
* returns the results in a new `Conc<B>`.
|
|
@@ -427,19 +425,19 @@ export declare function foreach_<A, R, E, B>(as: Iterable<A>, f: (a: A) => IO<R,
|
|
|
427
425
|
* @tsplus static fncts.io.IOOps foreachWithIndex
|
|
428
426
|
* @tsplus location "@fncts/io/IO/api"
|
|
429
427
|
*/
|
|
430
|
-
export declare function
|
|
428
|
+
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
429
|
/**
|
|
432
430
|
* @tsplus static fncts.io.IOOps foreachWithIndexDiscard
|
|
433
431
|
* @tsplus location "@fncts/io/IO/api"
|
|
434
432
|
*/
|
|
435
|
-
export declare function
|
|
433
|
+
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
434
|
/**
|
|
437
435
|
* Applies the function `f` to each element of the `Iterable<A>` and runs
|
|
438
436
|
* produced IOs sequentially.
|
|
439
437
|
* @tsplus static fncts.io.IOOps foreachDiscard
|
|
440
438
|
* @tsplus location "@fncts/io/IO/api"
|
|
441
439
|
*/
|
|
442
|
-
export declare function
|
|
440
|
+
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
441
|
/**
|
|
444
442
|
* Repeats this effect forever (until the first failure).
|
|
445
443
|
* @tsplus getter fncts.io.IO forever
|
|
@@ -455,7 +453,7 @@ export declare function forever<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string
|
|
|
455
453
|
* new fiber, concurrently and without "blocking" the fiber executing other
|
|
456
454
|
* IOs. Using fibers can be tricky, so instead of using this method
|
|
457
455
|
* directly, consider other higher-level methods, such as `raceWith`,
|
|
458
|
-
* `
|
|
456
|
+
* `zipC`, and so forth.
|
|
459
457
|
*
|
|
460
458
|
* The fiber returned by this method has methods interrupt the fiber and to
|
|
461
459
|
* wait for it to finish executing the IO. See `Fiber` for more
|
|
@@ -480,12 +478,14 @@ export declare function fromEither<E, A>(either: Lazy<Either<E, A>>, __tsplusTra
|
|
|
480
478
|
/**
|
|
481
479
|
* Lifts an `Either` into an `IO`
|
|
482
480
|
* @tsplus static fncts.io.IOOps fromEitherNow
|
|
481
|
+
* @tsplus getter fncts.Either toIO
|
|
483
482
|
* @tsplus location "@fncts/io/IO/api"
|
|
484
483
|
*/
|
|
485
484
|
export declare function fromEitherNow<E, A>(either: Either<E, A>, __tsplusTrace?: string): IO<never, E, A>;
|
|
486
485
|
/**
|
|
487
486
|
* Lifts an `Eval` into an `IO`
|
|
488
487
|
* @tsplus static fncts.io.IOOps fromEval
|
|
488
|
+
* @tsplus getter fncts.Eval toIO
|
|
489
489
|
* @tsplus location "@fncts/io/IO/api"
|
|
490
490
|
*/
|
|
491
491
|
export declare function fromEval<A>(computation: Eval<A>, __tsplusTrace?: string): IO<never, never, A>;
|
|
@@ -498,6 +498,7 @@ export declare function fromExit<E, A>(exit: Lazy<Exit<E, A>>, __tsplusTrace?: s
|
|
|
498
498
|
/**
|
|
499
499
|
* Creates a `IO` from an exit value
|
|
500
500
|
* @tsplus static fncts.io.IOOps fromExitNow
|
|
501
|
+
* @tsplus getter fncts.Exit toIO
|
|
501
502
|
* @tsplus location "@fncts/io/IO/api"
|
|
502
503
|
*/
|
|
503
504
|
export declare function fromExitNow<E, A>(exit: Exit<E, A>, __tsplusTrace?: string): FIO<E, A>;
|
|
@@ -510,6 +511,7 @@ export declare function fromExitNow<E, A>(exit: Exit<E, A>, __tsplusTrace?: stri
|
|
|
510
511
|
export declare function fromMaybe<A>(maybe: Lazy<Maybe<A>>, __tsplusTrace?: string): FIO<Maybe<never>, A>;
|
|
511
512
|
/**
|
|
512
513
|
* @tsplus static fncts.io.IOOps fromMaybeNow
|
|
514
|
+
* @tsplus getter fncts.Maybe toIO
|
|
513
515
|
* @tsplus location "@fncts/io/IO/api"
|
|
514
516
|
*/
|
|
515
517
|
export declare function fromMaybeNow<A = never>(maybe: Maybe<A>, __tsplusTrace?: string): IO<unknown, Maybe<never>, A>;
|
|
@@ -541,22 +543,22 @@ export declare function fromPromiseHalt<A>(promise: Lazy<Promise<A>>, __tsplusTr
|
|
|
541
543
|
export declare function get<R, E, A>(ma: IO<R, E, Maybe<A>>, __tsplusTrace?: string): IO<R, Maybe<E>, A>;
|
|
542
544
|
/**
|
|
543
545
|
* Extracts the optional value, or returns the given 'orElse'.
|
|
544
|
-
* @tsplus
|
|
546
|
+
* @tsplus pipeable fncts.io.IO getOrElse
|
|
545
547
|
* @tsplus location "@fncts/io/IO/api"
|
|
546
548
|
*/
|
|
547
|
-
export declare function
|
|
549
|
+
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
550
|
/**
|
|
549
551
|
* Extracts the optional value, or executes the effect 'orElse'.
|
|
550
|
-
* @tsplus
|
|
552
|
+
* @tsplus pipeable fncts.io.IO getOrElseIO
|
|
551
553
|
* @tsplus location "@fncts/io/IO/api"
|
|
552
554
|
*/
|
|
553
|
-
export declare function
|
|
555
|
+
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
556
|
/**
|
|
555
557
|
* Lifts a Maybe into an IO. If the option is `Nothing`, fail with `onNothing`.
|
|
556
558
|
* @tsplus static fncts.io.IOOps getOrFailWith
|
|
557
559
|
* @tsplus location "@fncts/io/IO/api"
|
|
558
560
|
*/
|
|
559
|
-
export declare function
|
|
561
|
+
export declare function getOrFailWith<E, A>(maybe: Maybe<A>, onNothing: Lazy<E>, __tsplusTrace?: string): FIO<E, A>;
|
|
560
562
|
/**
|
|
561
563
|
* Lifts a Maybe into a IO, if the Maybe is `Nothing` it fails with Unit.
|
|
562
564
|
* @tsplus static fncts.io.IOOps getOrFailUnit
|
|
@@ -580,15 +582,15 @@ export declare function halt(e: Lazy<unknown>, __tsplusTrace?: string): UIO<neve
|
|
|
580
582
|
*/
|
|
581
583
|
export declare function haltNow(e: unknown, __tsplusTrace?: string): UIO<never>;
|
|
582
584
|
/**
|
|
583
|
-
* @tsplus
|
|
585
|
+
* @tsplus pipeable fncts.io.IO ifIO
|
|
584
586
|
* @tsplus location "@fncts/io/IO/api"
|
|
585
587
|
*/
|
|
586
|
-
export declare function
|
|
588
|
+
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
589
|
/**
|
|
588
590
|
* @tsplus static fncts.io.IOOps if
|
|
589
591
|
* @tsplus location "@fncts/io/IO/api"
|
|
590
592
|
*/
|
|
591
|
-
export declare function
|
|
593
|
+
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
594
|
/**
|
|
593
595
|
* @tsplus getter fncts.io.IO ignore
|
|
594
596
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -621,7 +623,7 @@ export declare function isSuccess<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: stri
|
|
|
621
623
|
* @tsplus static fncts.io.IOOps iterate
|
|
622
624
|
* @tsplus location "@fncts/io/IO/api"
|
|
623
625
|
*/
|
|
624
|
-
export declare function
|
|
626
|
+
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
627
|
/**
|
|
626
628
|
* Returns an IO with the value on the left part.
|
|
627
629
|
* @tsplus static fncts.io.IOOps left
|
|
@@ -651,7 +653,7 @@ export declare function log(message: Lazy<string>, __tsplusTrace?: string): UIO<
|
|
|
651
653
|
* @tsplus static fncts.io.IOOps loop
|
|
652
654
|
* @tsplus location "@fncts/io/IO/api"
|
|
653
655
|
*/
|
|
654
|
-
export declare function
|
|
656
|
+
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
657
|
/**
|
|
656
658
|
* Loops with the specified effectual function purely for its effects. The
|
|
657
659
|
* moral equivalent of:
|
|
@@ -667,67 +669,67 @@ export declare function loop_<A, R, E, B>(initial: A, cont: (a: A) => boolean, i
|
|
|
667
669
|
* @tsplus static fncts.io.IOOps loopUnit
|
|
668
670
|
* @tsplus location "@fncts/io/IO/api"
|
|
669
671
|
*/
|
|
670
|
-
export declare function
|
|
672
|
+
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
673
|
/**
|
|
672
674
|
* Returns an `IO` whose success is mapped by the specified function `f`.
|
|
673
|
-
* @tsplus
|
|
675
|
+
* @tsplus pipeable fncts.io.IO map
|
|
674
676
|
* @tsplus location "@fncts/io/IO/api"
|
|
675
677
|
*/
|
|
676
|
-
export declare function
|
|
678
|
+
export declare function map<A, B>(f: (a: A) => B, __tsplusTrace?: string): <R, E>(fa: IO<R, E, A>) => IO<R, E, B>;
|
|
677
679
|
/**
|
|
678
680
|
* Map covariantly over the first argument.
|
|
679
681
|
*
|
|
680
682
|
* Returns an IO with its error channel mapped using the specified
|
|
681
683
|
* function. This can be used to lift a "smaller" error into a "larger"
|
|
682
684
|
* error.
|
|
683
|
-
* @tsplus
|
|
685
|
+
* @tsplus pipeable fncts.io.IO mapError
|
|
684
686
|
* @tsplus location "@fncts/io/IO/api"
|
|
685
687
|
*/
|
|
686
|
-
export declare function
|
|
688
|
+
export declare function mapError<E, E1>(f: (e: E) => E1, __tsplusTrace?: string): <R, A>(fea: IO<R, E, A>) => IO<R, E1, A>;
|
|
687
689
|
/**
|
|
688
690
|
* @tsplus static fncts.io.IOOps mapTryCatch
|
|
689
691
|
* @tsplus location "@fncts/io/IO/api"
|
|
690
692
|
*/
|
|
691
|
-
export declare function
|
|
693
|
+
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
694
|
/**
|
|
693
695
|
* Returns an IO with its full cause of failure mapped using
|
|
694
696
|
* the specified function. This can be used to transform errors
|
|
695
697
|
* while preserving the original structure of Cause.
|
|
696
|
-
* @tsplus
|
|
698
|
+
* @tsplus pipeable fncts.io.IO mapErrorCause
|
|
697
699
|
* @tsplus location "@fncts/io/IO/api"
|
|
698
700
|
*/
|
|
699
|
-
export declare function
|
|
701
|
+
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
702
|
/**
|
|
701
703
|
* A more powerful version of `match_` that allows recovering from any kind of failure except interruptions.
|
|
702
|
-
* @tsplus
|
|
704
|
+
* @tsplus pipeable fncts.io.IO matchCause
|
|
703
705
|
* @tsplus location "@fncts/io/IO/api"
|
|
704
706
|
*/
|
|
705
|
-
export declare function
|
|
707
|
+
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
708
|
/**
|
|
707
709
|
* A more powerful version of `matchIO` that allows recovering from any kind of failure except interruptions.
|
|
708
|
-
* @tsplus
|
|
710
|
+
* @tsplus pipeable fncts.io.IO matchCauseIO
|
|
709
711
|
* @tsplus location "@fncts/io/IO/api"
|
|
710
712
|
*/
|
|
711
|
-
export declare function
|
|
713
|
+
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
714
|
/**
|
|
713
|
-
* @tsplus
|
|
715
|
+
* @tsplus pipeable fncts.io.IO matchIO
|
|
714
716
|
* @tsplus location "@fncts/io/IO/api"
|
|
715
717
|
*/
|
|
716
|
-
export declare function
|
|
718
|
+
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
719
|
/**
|
|
718
720
|
* Folds over the failure value or the success value to yield an IO that
|
|
719
721
|
* does not fail, but succeeds with the value returned by the left or right
|
|
720
722
|
* function passed to `match_`.
|
|
721
|
-
* @tsplus
|
|
723
|
+
* @tsplus pipeable fncts.io.IO match
|
|
722
724
|
* @tsplus location "@fncts/io/IO/api"
|
|
723
725
|
*/
|
|
724
|
-
export declare function
|
|
726
|
+
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
727
|
/**
|
|
726
728
|
* A version of `matchIO` that gives you the (optional) trace of the error.
|
|
727
|
-
* @tsplus
|
|
729
|
+
* @tsplus pipeable fncts.io.IO matchTraceIO
|
|
728
730
|
* @tsplus location "@fncts/io/IO/api"
|
|
729
731
|
*/
|
|
730
|
-
export declare function
|
|
732
|
+
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
733
|
/**
|
|
732
734
|
* @tsplus getter fncts.io.IO maybe
|
|
733
735
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -743,7 +745,7 @@ export declare function merge<R, E, A>(io: IO<R, E, A>, __tsplusTrace?: string):
|
|
|
743
745
|
* @tsplus static fncts.io.IOOps mergeAll
|
|
744
746
|
* @tsplus location "@fncts/io/IO/api"
|
|
745
747
|
*/
|
|
746
|
-
export declare function
|
|
748
|
+
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>;
|
|
747
749
|
/**
|
|
748
750
|
* Returns a `IO` that will never produce anything. The moral equivalent of
|
|
749
751
|
* `while(true) {}`, only without the wasted CPU cycles.
|
|
@@ -762,35 +764,36 @@ export declare function optional<R, E, A>(ma: IO<R, Maybe<E>, A>, __tsplusTrace?
|
|
|
762
764
|
* effect and the `Boolean` value returned by the specified effect. This
|
|
763
765
|
* operator has "short circuiting" behavior so if the value returned by this
|
|
764
766
|
* effect is true the specified effect will not be evaluated.
|
|
765
|
-
* @tsplus
|
|
767
|
+
* @tsplus pipeable fncts.io.IO or
|
|
768
|
+
* @tsplus pipeable-operator fncts.io.IO ||
|
|
766
769
|
* @tsplus location "@fncts/io/IO/api"
|
|
767
770
|
*/
|
|
768
|
-
export declare function
|
|
771
|
+
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
772
|
/**
|
|
770
|
-
* @tsplus
|
|
773
|
+
* @tsplus pipeable fncts.io.IO orElse
|
|
771
774
|
* @tsplus location "@fncts/io/IO/api"
|
|
772
775
|
*/
|
|
773
|
-
export declare function
|
|
776
|
+
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
777
|
/**
|
|
775
|
-
* @tsplus
|
|
778
|
+
* @tsplus pipeable fncts.io.IO orElseEither
|
|
776
779
|
* @tsplus location "@fncts/io/IO/api"
|
|
777
780
|
*/
|
|
778
|
-
export declare function
|
|
781
|
+
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
782
|
/**
|
|
780
|
-
* @tsplus
|
|
783
|
+
* @tsplus pipeable fncts.io.IO orElseFail
|
|
781
784
|
* @tsplus location "@fncts/io/IO/api"
|
|
782
785
|
*/
|
|
783
|
-
export declare function
|
|
786
|
+
export declare function orElseFail<E1>(e: Lazy<E1>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, E1, A>;
|
|
784
787
|
/**
|
|
785
|
-
* @tsplus
|
|
788
|
+
* @tsplus pipeable fncts.io.IO orElseMaybe
|
|
786
789
|
* @tsplus location "@fncts/io/IO/api"
|
|
787
790
|
*/
|
|
788
|
-
export declare function
|
|
791
|
+
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
792
|
/**
|
|
790
|
-
* @tsplus
|
|
793
|
+
* @tsplus pipeable fncts.io.IO orElseSucceed
|
|
791
794
|
* @tsplus location "@fncts/io/IO/api"
|
|
792
795
|
*/
|
|
793
|
-
export declare function
|
|
796
|
+
export declare function orElseSucceed<A1>(a: Lazy<A1>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, E, A1 | A>;
|
|
794
797
|
/**
|
|
795
798
|
* @tsplus getter fncts.io.IO orHalt
|
|
796
799
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -802,91 +805,91 @@ export declare function orHalt<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string)
|
|
|
802
805
|
*/
|
|
803
806
|
export declare function orHaltKeep<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string): IO<R, never, A>;
|
|
804
807
|
/**
|
|
805
|
-
* @tsplus
|
|
808
|
+
* @tsplus pipeable fncts.io.IO orHaltWith
|
|
806
809
|
* @tsplus location "@fncts/io/IO/api"
|
|
807
810
|
*/
|
|
808
|
-
export declare function
|
|
811
|
+
export declare function orHaltWith<E>(f: (e: E) => unknown, __tsplusTrace?: string): <R, A>(ma: IO<R, E, A>) => IO<R, never, A>;
|
|
809
812
|
/**
|
|
810
813
|
* Exposes all parallel errors in a single call
|
|
811
|
-
* @tsplus
|
|
814
|
+
* @tsplus pipeable fncts.io.IO concurrentErrors
|
|
812
815
|
* @tsplus location "@fncts/io/IO/api"
|
|
813
816
|
*/
|
|
814
|
-
export declare function
|
|
817
|
+
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
818
|
/**
|
|
816
819
|
* Feeds elements of type `A` to a function `f` that returns an IO.
|
|
817
820
|
* Collects all successes and failures in a separated fashion.
|
|
818
821
|
* @tsplus static fncts.io.IOOps partition
|
|
819
822
|
* @tsplus location "@fncts/io/IO/api"
|
|
820
823
|
*/
|
|
821
|
-
export declare function
|
|
824
|
+
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
825
|
/**
|
|
823
826
|
* Keeps some of the errors, and terminates the fiber with the rest
|
|
824
|
-
* @tsplus
|
|
827
|
+
* @tsplus pipeable fncts.io.IO refineOrHalt
|
|
825
828
|
* @tsplus location "@fncts/io/IO/api"
|
|
826
829
|
*/
|
|
827
|
-
export declare function
|
|
830
|
+
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
831
|
/**
|
|
829
832
|
* Keeps some of the errors, and terminates the fiber with the rest, using
|
|
830
833
|
* the specified function to convert the `E` into a `Throwable`.
|
|
831
|
-
* @tsplus
|
|
834
|
+
* @tsplus pipeable fncts.io.IO refineOrHaltWith
|
|
832
835
|
* @tsplus location "@fncts/io/IO/api"
|
|
833
836
|
*/
|
|
834
|
-
export declare function
|
|
837
|
+
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
838
|
/**
|
|
836
839
|
* Fail with the returned value if the partial function `pf` matches, otherwise
|
|
837
840
|
* continue with the held value.
|
|
838
|
-
* @tsplus
|
|
841
|
+
* @tsplus pipeable fncts.io.IO reject
|
|
839
842
|
* @tsplus location "@fncts/io/IO/api"
|
|
840
843
|
*/
|
|
841
|
-
export declare function
|
|
844
|
+
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
845
|
/**
|
|
843
846
|
* Continue with the returned computation if the partial function `pf` matches,
|
|
844
847
|
* translating the successful match into a failure, otherwise continue with
|
|
845
848
|
* the held value.
|
|
846
|
-
* @tsplus
|
|
849
|
+
* @tsplus pipeable fncts.io.IO rejectIO
|
|
847
850
|
* @tsplus location "@fncts/io/IO/api"
|
|
848
851
|
*/
|
|
849
|
-
export declare function
|
|
852
|
+
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
853
|
/**
|
|
851
854
|
* Repeats this effect the specified number of times.
|
|
852
|
-
* @tsplus
|
|
855
|
+
* @tsplus pipeable fncts.io.IO repeatN
|
|
853
856
|
* @tsplus location "@fncts/io/IO/api"
|
|
854
857
|
*/
|
|
855
|
-
export declare function repeatN_<R, E, A>(ma: IO<R, E, A
|
|
858
|
+
export declare function repeatN_(n: number, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, E, A>;
|
|
856
859
|
/**
|
|
857
860
|
* Repeats this effect until its result satisfies the specified predicate.
|
|
858
|
-
* @tsplus
|
|
861
|
+
* @tsplus pipeable fncts.io.IO repeatUntil
|
|
859
862
|
* @tsplus location "@fncts/io/IO/api"
|
|
860
863
|
*/
|
|
861
|
-
export declare function
|
|
864
|
+
export declare function repeatUntil<A>(f: (a: A) => boolean, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R, E, A>;
|
|
862
865
|
/**
|
|
863
866
|
* Repeats this effect until its error satisfies the specified effectful predicate.
|
|
864
|
-
* @tsplus
|
|
867
|
+
* @tsplus pipeable fncts.io.IO repeatUntilIO
|
|
865
868
|
* @tsplus location "@fncts/io/IO/api"
|
|
866
869
|
*/
|
|
867
|
-
export declare function
|
|
870
|
+
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
871
|
/**
|
|
869
872
|
* Repeats this effect while its error satisfies the specified predicate.
|
|
870
|
-
* @tsplus
|
|
873
|
+
* @tsplus pipeable fncts.io.IO repeatWhile
|
|
871
874
|
* @tsplus location "@fncts/io/IO/api"
|
|
872
875
|
*/
|
|
873
|
-
export declare function
|
|
876
|
+
export declare function repeatWhile<A>(f: (a: A) => boolean, __tsplusTrace?: string): <R, E>(ma: IO<R, E, A>) => IO<R, E, A>;
|
|
874
877
|
/**
|
|
875
878
|
* Repeats this effect while its error satisfies the specified effectful predicate.
|
|
876
|
-
* @tsplus
|
|
879
|
+
* @tsplus pipeable fncts.io.IO repeatWhileIO
|
|
877
880
|
* @tsplus location "@fncts/io/IO/api"
|
|
878
881
|
*/
|
|
879
|
-
export declare function
|
|
882
|
+
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
883
|
/**
|
|
881
|
-
* @tsplus
|
|
884
|
+
* @tsplus pipeable fncts.io.IO replicate
|
|
882
885
|
* @tsplus location "@fncts/io/IO/api"
|
|
883
886
|
*/
|
|
884
|
-
export declare function
|
|
887
|
+
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
888
|
/**
|
|
886
|
-
* @tsplus
|
|
889
|
+
* @tsplus pipeable fncts.io.IO require
|
|
887
890
|
* @tsplus location "@fncts/io/IO/api"
|
|
888
891
|
*/
|
|
889
|
-
export declare function
|
|
892
|
+
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
893
|
/**
|
|
891
894
|
* Returns an IO that semantically runs the IO on a fiber,
|
|
892
895
|
* producing an `Exit` for the completion value of the fiber.
|
|
@@ -902,28 +905,28 @@ export declare function result<R, E, A>(ma: IO<R, E, A>, __tsplusTrace?: string)
|
|
|
902
905
|
export declare function resurrect<R, E, A>(io: IO<R, E, A>, __tsplusTrace?: string): IO<R, unknown, A>;
|
|
903
906
|
/**
|
|
904
907
|
* Retries this effect until its error satisfies the specified predicate.
|
|
905
|
-
* @tsplus
|
|
908
|
+
* @tsplus pipeable fncts.io.IO retryUntil
|
|
906
909
|
* @tsplus location "@fncts/io/IO/api"
|
|
907
910
|
*/
|
|
908
|
-
export declare function
|
|
911
|
+
export declare function retryUntil<E>(f: (e: E) => boolean, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R, E, A>;
|
|
909
912
|
/**
|
|
910
913
|
* Retries this effect until its error satisfies the specified effectful predicate.
|
|
911
|
-
* @tsplus
|
|
914
|
+
* @tsplus pipeable fncts.io.IO retryUntilIO
|
|
912
915
|
* @tsplus location "@fncts/io/IO/api"
|
|
913
916
|
*/
|
|
914
|
-
export declare function
|
|
917
|
+
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
918
|
/**
|
|
916
919
|
* Retries this effect while its error satisfies the specified predicate.
|
|
917
|
-
* @tsplus
|
|
920
|
+
* @tsplus pipeable fncts.io.IO retryWhile
|
|
918
921
|
* @tsplus location "@fncts/io/IO/api"
|
|
919
922
|
*/
|
|
920
|
-
export declare function
|
|
923
|
+
export declare function retryWhile<E>(f: (e: E) => boolean, __tsplusTrace?: string): <R, A>(fa: IO<R, E, A>) => IO<R, E, A>;
|
|
921
924
|
/**
|
|
922
925
|
* Retries this effect while its error satisfies the specified effectful predicate.
|
|
923
|
-
* @tsplus
|
|
926
|
+
* @tsplus pipeable fncts.io.IO retryWhileIO
|
|
924
927
|
* @tsplus location "@fncts/io/IO/api"
|
|
925
928
|
*/
|
|
926
|
-
export declare function
|
|
929
|
+
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>;
|
|
927
930
|
/**
|
|
928
931
|
* Retrieves the runtimeConfig that this effect is running on.
|
|
929
932
|
* @tsplus static fncts.io.IOOps runtimeConfig
|
|
@@ -937,10 +940,10 @@ export declare const runtimeConfig: UIO<RuntimeConfig>;
|
|
|
937
940
|
*/
|
|
938
941
|
export declare function sandbox<R, E, A>(fa: IO<R, E, A>, __tsplusTrace?: string): IO<R, Cause<E>, A>;
|
|
939
942
|
/**
|
|
940
|
-
* @tsplus
|
|
943
|
+
* @tsplus pipeable fncts.io.IO sandboxWith
|
|
941
944
|
* @tsplus location "@fncts/io/IO/api"
|
|
942
945
|
*/
|
|
943
|
-
export declare function
|
|
946
|
+
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>;
|
|
944
947
|
/**
|
|
945
948
|
* Sets the runtime configuration to the specified value.
|
|
946
949
|
* @tsplus static fncts.io.IOOps setRuntimeConfig
|
|
@@ -973,10 +976,10 @@ export declare function succeedNow<A>(value: A, __tsplusTrace?: string): IO<neve
|
|
|
973
976
|
*/
|
|
974
977
|
export declare function succeed<A>(effect: Lazy<A>, __tsplusTrace?: string): UIO<A>;
|
|
975
978
|
/**
|
|
976
|
-
* @tsplus
|
|
979
|
+
* @tsplus pipeable fncts.io.IO summarized
|
|
977
980
|
* @tsplus location "@fncts/io/IO/api"
|
|
978
981
|
*/
|
|
979
|
-
export declare function
|
|
982
|
+
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
983
|
/**
|
|
981
984
|
* Swaps the positions of a Bifunctor's arguments
|
|
982
985
|
* @tsplus getter fncts.io.IO swap
|
|
@@ -985,16 +988,16 @@ export declare function summarized_<R, E, A, R1, E1, B, C>(ma: IO<R, E, A>, summ
|
|
|
985
988
|
export declare function swap<R, E, A>(pab: IO<R, E, A>, __tsplusTrace?: string): IO<R, A, E>;
|
|
986
989
|
/**
|
|
987
990
|
* Swaps the error/value parameters, applies the function `f` and flips the parameters back
|
|
988
|
-
* @tsplus
|
|
991
|
+
* @tsplus pipeable fncts.io.IO swapWith
|
|
989
992
|
* @tsplus location "@fncts/io/IO/api"
|
|
990
993
|
*/
|
|
991
|
-
export declare function
|
|
994
|
+
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
995
|
/**
|
|
993
996
|
* A more powerful variation of `timed` that allows specifying the clock.
|
|
994
|
-
* @tsplus
|
|
997
|
+
* @tsplus pipeable fncts.io.IO timedWith
|
|
995
998
|
* @tsplus location "@fncts/io/IO/api"
|
|
996
999
|
*/
|
|
997
|
-
export declare function
|
|
1000
|
+
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
1001
|
/**
|
|
999
1002
|
* Creates a `IO` that has succeeded with a pure value
|
|
1000
1003
|
* @tsplus static fncts.io.IOOps tryCatch
|
|
@@ -1012,35 +1015,35 @@ export declare function absolve<R, E, E1, A>(ma: IO<R, E, Either<E1, A>>, __tspl
|
|
|
1012
1015
|
* and keeping only the result of the first
|
|
1013
1016
|
*
|
|
1014
1017
|
* Returns an IO that effectfully "peeks" at the success of this effect.
|
|
1015
|
-
* @tsplus
|
|
1018
|
+
* @tsplus pipeable fncts.io.IO tap
|
|
1016
1019
|
* @tsplus location "@fncts/io/IO/api"
|
|
1017
1020
|
*/
|
|
1018
|
-
export declare function
|
|
1021
|
+
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
1022
|
/**
|
|
1020
1023
|
* Returns an IO that effectually "peeks" at the cause of the failure of
|
|
1021
1024
|
* this IO.
|
|
1022
|
-
* @tsplus
|
|
1025
|
+
* @tsplus pipeable fncts.io.IO tapCause
|
|
1023
1026
|
* @tsplus location "@fncts/io/IO/api"
|
|
1024
1027
|
*/
|
|
1025
|
-
export declare function
|
|
1028
|
+
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
1029
|
/**
|
|
1027
1030
|
* Returns an IO that effectfully "peeks" at the failure of this effect.
|
|
1028
|
-
* @tsplus
|
|
1031
|
+
* @tsplus pipeable fncts.io.IO tapError
|
|
1029
1032
|
* @tsplus location "@fncts/io/IO/api"
|
|
1030
1033
|
*/
|
|
1031
|
-
export declare function
|
|
1034
|
+
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
1035
|
/**
|
|
1033
1036
|
* Returns an effect that effectually "peeks" at the cause of the failure of
|
|
1034
1037
|
* this effect.
|
|
1035
|
-
* @tsplus
|
|
1038
|
+
* @tsplus pipeable fncts.io.IO tapErrorCause
|
|
1036
1039
|
* @tsplus location "@fncts/io/IO/api"
|
|
1037
1040
|
*/
|
|
1038
|
-
export declare function
|
|
1041
|
+
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
1042
|
/**
|
|
1040
|
-
* @tsplus
|
|
1043
|
+
* @tsplus pipeable fncts.io.IO tryOrElse
|
|
1041
1044
|
* @tsplus location "@fncts/io/IO/api"
|
|
1042
1045
|
*/
|
|
1043
|
-
export declare function
|
|
1046
|
+
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
1047
|
/**
|
|
1045
1048
|
* @tsplus static fncts.io.IOOps unit
|
|
1046
1049
|
* @tsplus location "@fncts/io/IO/api"
|
|
@@ -1055,10 +1058,10 @@ export declare function unjust<R, E, A>(self: IO<R, Maybe<E>, A>, __tsplusTrace?
|
|
|
1055
1058
|
/**
|
|
1056
1059
|
* Takes some fiber failures and converts them into errors, using the
|
|
1057
1060
|
* specified function to convert the `E` into an `E1 | E2`.
|
|
1058
|
-
* @tsplus
|
|
1061
|
+
* @tsplus pipeable fncts.io.IO unrefineWith
|
|
1059
1062
|
* @tsplus location "@fncts/io/IO/api"
|
|
1060
1063
|
*/
|
|
1061
|
-
export declare function
|
|
1064
|
+
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
1065
|
/**
|
|
1063
1066
|
* The inverse operation `sandbox`
|
|
1064
1067
|
* @tsplus getter fncts.io.IO unsandbox
|
|
@@ -1083,16 +1086,16 @@ export declare function withFiberContext<R, E, A>(onState: (fiber: FiberContext<
|
|
|
1083
1086
|
*/
|
|
1084
1087
|
export declare const via: typeof pipe;
|
|
1085
1088
|
/**
|
|
1086
|
-
* @tsplus
|
|
1089
|
+
* @tsplus pipeable fncts.io.IO when
|
|
1087
1090
|
* @tsplus location "@fncts/io/IO/api"
|
|
1088
1091
|
*/
|
|
1089
|
-
export declare function
|
|
1092
|
+
export declare function when(b: Lazy<boolean>, __tsplusTrace?: string): <R, E, A>(ma: IO<R, E, A>) => IO<R, E, void>;
|
|
1090
1093
|
/**
|
|
1091
1094
|
* The moral equivalent of `if (p) exp` when `p` has side-effects
|
|
1092
|
-
* @tsplus
|
|
1095
|
+
* @tsplus pipeable fncts.io.IO whenIO
|
|
1093
1096
|
* @tsplus location "@fncts/io/IO/api"
|
|
1094
1097
|
*/
|
|
1095
|
-
export declare function
|
|
1098
|
+
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>;
|
|
1096
1099
|
/**
|
|
1097
1100
|
* Returns an effect that yields to the runtime system, starting on a fresh
|
|
1098
1101
|
* stack. Manual use of this method can improve fairness, at the cost of
|
|
@@ -1102,15 +1105,15 @@ export declare function whenIO_<R, E, A, R1, E1>(ma: IO<R, E, A>, mb: IO<R1, E1,
|
|
|
1102
1105
|
*/
|
|
1103
1106
|
export declare const yieldNow: UIO<void>;
|
|
1104
1107
|
/**
|
|
1105
|
-
* @tsplus
|
|
1108
|
+
* @tsplus pipeable fncts.io.IO zip
|
|
1106
1109
|
* @tsplus location "@fncts/io/IO/api"
|
|
1107
1110
|
*/
|
|
1108
|
-
export declare function
|
|
1111
|
+
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
1112
|
/**
|
|
1110
|
-
* @tsplus
|
|
1113
|
+
* @tsplus pipeable fncts.io.IO zipWith
|
|
1111
1114
|
* @tsplus location "@fncts/io/IO/api"
|
|
1112
1115
|
*/
|
|
1113
|
-
export declare function
|
|
1116
|
+
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
1117
|
export declare class GenIO<R, E, A> {
|
|
1115
1118
|
readonly effect: IO<R, E, A>;
|
|
1116
1119
|
readonly _trace?: string | undefined;
|