@fncts/io 0.0.10 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/Cached/api.d.ts +2 -3
- package/Channel/api/interruptWhen.d.ts +1 -1
- package/Channel/api/mapOutIOC.d.ts +1 -1
- package/Channel/api/mergeAll.d.ts +1 -1
- package/Channel/api/mergeAllUnboundedWith.d.ts +1 -1
- package/Channel/api/mergeAllWith.d.ts +1 -1
- package/Channel/api/mergeMap.d.ts +1 -1
- package/Channel/api/mergeWith.d.ts +1 -1
- package/Channel/api/runScoped.d.ts +1 -2
- package/Channel/api/toPull.d.ts +1 -2
- package/Channel/api/zipC.d.ts +3 -3
- package/Channel/api.d.ts +48 -49
- package/Channel/core-api.d.ts +10 -10
- package/Channel/definition.d.ts +12 -12
- package/Channel/internal/MergeDecision.d.ts +1 -1
- package/Channel/internal/SingleProducerAsyncInput.d.ts +1 -1
- package/Clock/api.d.ts +1 -1
- package/Fiber/FiberContext.d.ts +3 -3
- package/Fiber/api/awaitAll.d.ts +1 -1
- package/Fiber/api/evalOnIO.d.ts +1 -1
- package/Fiber/api/joinAll.d.ts +1 -1
- package/Fiber/definition.d.ts +1 -1
- package/FiberRef/api/locallyScoped.d.ts +1 -2
- package/FiberRef/api/locallyScopedWith.d.ts +1 -2
- package/FiberRef/constructors.d.ts +1 -2
- package/FiberRef/unsafe.d.ts +6 -0
- package/Future/api.d.ts +1 -1
- package/Future/constructors.d.ts +1 -1
- package/Hub/api.d.ts +6 -7
- package/Hub/definition.d.ts +6 -7
- package/Hub/internal.d.ts +0 -1
- package/IO/api/acquireRelease.d.ts +1 -2
- package/IO/api/acquireReleaseExit.d.ts +1 -2
- package/IO/api/acquireReleaseInterruptible.d.ts +1 -2
- package/IO/api/acquireReleaseInterruptibleExit.d.ts +1 -2
- package/IO/api/addFinalizer.d.ts +1 -2
- package/IO/api/addFinalizerExit.d.ts +1 -2
- package/IO/api/bracket.d.ts +1 -1
- package/IO/api/bracketExit.d.ts +1 -1
- package/IO/api/clockWith.d.ts +1 -1
- package/IO/api/concurrentFinalizers.d.ts +1 -2
- package/IO/api/consoleWith.d.ts +1 -1
- package/IO/api/core-scope.d.ts +1 -1
- package/IO/api/ensuringChildren.d.ts +1 -1
- package/IO/api/environment.d.ts +8 -10
- package/IO/api/forkScoped.d.ts +1 -2
- package/IO/api/interrupt.d.ts +3 -3
- package/IO/api/onExit.d.ts +1 -1
- package/IO/api/onTermination.d.ts +1 -1
- package/IO/api/provideSomeLayer.d.ts +1 -1
- package/IO/api/race.d.ts +1 -1
- package/IO/api/raceFirst.d.ts +1 -1
- package/IO/api/randomWith.d.ts +1 -1
- package/IO/api/repeat.d.ts +3 -3
- package/IO/api/retry.d.ts +3 -3
- package/IO/api/schedule.d.ts +2 -2
- package/IO/api/scope.d.ts +1 -2
- package/IO/api/scopeWith.d.ts +1 -2
- package/IO/api/scoped.d.ts +2 -3
- package/IO/api/sequenceT.d.ts +3 -3
- package/IO/api/stateful.d.ts +1 -2
- package/IO/api/withEarlyRelease.d.ts +1 -2
- package/IO/api/withFinalizer.d.ts +1 -2
- package/IO/api/withFinalizerExit.d.ts +1 -2
- package/IO/api/zipC.d.ts +2 -2
- package/IO/api.d.ts +50 -50
- package/IO/definition.d.ts +28 -24
- package/IO/runtime.d.ts +23 -10
- package/IOEnv/definition.d.ts +2 -3
- package/IOEnv/live.d.ts +1 -1
- package/IOSpec.d.ts +1 -2
- package/Layer/MemoMap.d.ts +2 -3
- package/Layer/api.d.ts +30 -32
- package/Layer/definition.d.ts +7 -8
- package/Queue/api/dimapIO.d.ts +3 -3
- package/Queue/api/filterInputIO.d.ts +4 -4
- package/Queue/api/filterOutputIO.d.ts +6 -6
- package/Queue/api/zipWithIO.d.ts +9 -9
- package/Queue/definition.d.ts +7 -7
- package/Queue/internal.d.ts +1 -1
- package/Random/api.d.ts +4 -4
- package/Random/live.d.ts +1 -1
- package/Ref/Atomic/Atomic.d.ts +3 -3
- package/Ref/Derived.d.ts +3 -3
- package/Ref/DerivedAll.d.ts +3 -3
- package/Ref/Synchronized/api.d.ts +15 -15
- package/Ref/Synchronized/definition.d.ts +2 -2
- package/Ref/api/get.d.ts +1 -1
- package/Ref/api/modify.d.ts +9 -9
- package/Ref/api/set.d.ts +1 -1
- package/Ref/definition.d.ts +13 -13
- package/STM/api/core-api.d.ts +4 -4
- package/STM/api/core-constructors.d.ts +7 -7
- package/STM/api.d.ts +27 -39
- package/STM/definition.d.ts +9 -8
- package/STM/driver.d.ts +1 -1
- package/STM/internal/Journal.d.ts +4 -3
- package/Schedule/Decision.d.ts +10 -4
- package/Schedule/Driver.d.ts +3 -3
- package/Schedule/api.d.ts +55 -43
- package/Schedule/definition.d.ts +1 -1
- package/Scope/Finalizer/definition.d.ts +2 -2
- package/Scope/ReleaseMap/api.d.ts +1 -1
- package/Scope/ReleaseMap/definition.d.ts +1 -1
- package/Scope/api.d.ts +3 -4
- package/ScopedRef/api.d.ts +1 -2
- package/ScopedRef/definition.d.ts +1 -2
- package/Sink/api.d.ts +255 -75
- package/State/api.d.ts +1 -2
- package/Stream/api/zipAllWith.d.ts +1 -1
- package/Stream/api/zipWith.d.ts +1 -1
- package/Stream/api/zipWithChunks.d.ts +1 -1
- package/Stream/api.d.ts +91 -93
- package/Stream/definition.d.ts +3 -3
- package/Stream/internal/Take.d.ts +1 -1
- package/Supervisor/constructors.d.ts +2 -2
- package/TFuture/api.d.ts +1 -1
- package/TFuture/definition.d.ts +1 -1
- package/TReentrantLock/api.d.ts +2 -3
- package/TRef/api.d.ts +11 -11
- package/TRef/constructors.d.ts +2 -2
- package/TSemaphore/api.d.ts +2 -2
- package/TSemaphore/definition.d.ts +1 -1
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutIOC.cjs +1 -1
- package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +3 -3
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Fiber/FiberContext.cjs +5 -7
- package/_cjs/Fiber/FiberContext.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +9 -1
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +1 -1
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +4 -12
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +4 -8
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +2 -3
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +1 -1
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +4 -8
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +1 -2
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +1 -1
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scoped.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.cjs +1 -1
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +5 -8
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +69 -21
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +22 -38
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +6 -4
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +2 -2
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +1 -5
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Ref/Atomic/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +7 -11
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +59 -78
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +7 -5
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +20 -22
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +17 -0
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +22 -21
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +91 -66
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +4 -6
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +2 -4
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +2 -12
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +14 -22
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +424 -131
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +94 -94
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +14 -8
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +2 -4
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +7 -7
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +2 -4
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +38 -0
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -0
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +38 -0
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -0
- package/_cjs/internal/Scheduler.cjs +64 -14
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutIOC.mjs +1 -1
- package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +3 -3
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Clock/live.mjs.map +1 -1
- package/_mjs/Fiber/FiberContext.mjs +5 -6
- package/_mjs/Fiber/FiberContext.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +6 -0
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +1 -1
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +4 -12
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs +4 -8
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +2 -3
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +1 -1
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/memoize.mjs +4 -8
- package/_mjs/IO/api/memoize.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +1 -2
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/scope.mjs +1 -1
- package/_mjs/IO/api/scope.mjs.map +1 -1
- package/_mjs/IO/api/scoped.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.mjs +1 -1
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +3 -5
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +61 -18
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +22 -38
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +5 -4
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +2 -2
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +1 -5
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Ref/Atomic/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Derived.mjs.map +1 -1
- package/_mjs/Ref/DerivedAll.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +7 -11
- package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -1
- package/_mjs/STM/api/core-constructors.mjs.map +1 -1
- package/_mjs/STM/api.mjs +52 -72
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/definition.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +6 -5
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +20 -21
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +9 -0
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +20 -20
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +84 -63
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Scope/Finalizer/definition.mjs +4 -5
- package/_mjs/Scope/Finalizer/definition.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/definition.mjs +2 -3
- package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +2 -12
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +14 -22
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +414 -129
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +94 -94
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +9 -6
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs +2 -3
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +4 -4
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/definition.mjs +2 -3
- package/_mjs/TSemaphore/definition.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +26 -0
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -0
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +26 -0
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -0
- package/_mjs/internal/Scheduler.mjs +62 -15
- package/_mjs/internal/Scheduler.mjs.map +1 -1
- package/_src/Cached/api.ts +3 -3
- package/_src/Channel/api/interruptWhen.ts +1 -1
- package/_src/Channel/api/mapOutIOC.ts +2 -2
- package/_src/Channel/api/mergeAll.ts +1 -1
- package/_src/Channel/api/mergeAllUnboundedWith.ts +1 -1
- package/_src/Channel/api/mergeAllWith.ts +3 -3
- package/_src/Channel/api/mergeMap.ts +1 -1
- package/_src/Channel/api/mergeWith.ts +9 -9
- package/_src/Channel/api/runScoped.ts +1 -1
- package/_src/Channel/api/toPull.ts +1 -1
- package/_src/Channel/api/zipC.ts +3 -3
- package/_src/Channel/api.ts +69 -69
- package/_src/Channel/core-api.ts +11 -11
- package/_src/Channel/definition.ts +12 -12
- package/_src/Channel/internal/MergeDecision.ts +1 -1
- package/_src/Clock/live.ts +1 -1
- package/_src/Fiber/FiberContext.ts +10 -8
- package/_src/Fiber/api/awaitAll.ts +1 -1
- package/_src/Fiber/api/evalOnIO.ts +1 -1
- package/_src/Fiber/api/joinAll.ts +1 -1
- package/_src/Fiber/definition.ts +1 -1
- package/_src/FiberRef/api/locallyScoped.ts +1 -1
- package/_src/FiberRef/api/locallyScopedWith.ts +1 -1
- package/_src/FiberRef/constructors.ts +2 -2
- package/_src/FiberRef/unsafe.ts +7 -0
- package/_src/Future/api.ts +3 -3
- package/_src/Future/constructors.ts +1 -1
- package/_src/Hub/api.ts +11 -11
- package/_src/Hub/definition.ts +6 -6
- package/_src/Hub/internal.ts +15 -15
- package/_src/IO/api/acquireRelease.ts +1 -1
- package/_src/IO/api/acquireReleaseExit.ts +1 -1
- package/_src/IO/api/acquireReleaseInterruptible.ts +1 -1
- package/_src/IO/api/acquireReleaseInterruptibleExit.ts +1 -1
- package/_src/IO/api/addFinalizer.ts +1 -1
- package/_src/IO/api/addFinalizerExit.ts +5 -7
- package/_src/IO/api/bracket.ts +1 -1
- package/_src/IO/api/bracketExit.ts +1 -1
- package/_src/IO/api/concurrentFinalizers.ts +1 -1
- package/_src/IO/api/core-scope.ts +1 -1
- package/_src/IO/api/ensuringChildren.ts +2 -2
- package/_src/IO/api/environment.ts +9 -11
- package/_src/IO/api/forkScoped.ts +1 -1
- package/_src/IO/api/interrupt.ts +3 -3
- package/_src/IO/api/memoize.ts +3 -3
- package/_src/IO/api/onExit.ts +1 -1
- package/_src/IO/api/onTermination.ts +1 -1
- package/_src/IO/api/provideSomeLayer.ts +1 -2
- package/_src/IO/api/race.ts +1 -1
- package/_src/IO/api/raceFirst.ts +1 -1
- package/_src/IO/api/repeat.ts +4 -4
- package/_src/IO/api/retry.ts +4 -4
- package/_src/IO/api/schedule.ts +3 -3
- package/_src/IO/api/scope.ts +1 -1
- package/_src/IO/api/scopeWith.ts +1 -1
- package/_src/IO/api/scoped.ts +2 -2
- package/_src/IO/api/sequenceT.ts +1 -1
- package/_src/IO/api/stateful.ts +1 -1
- package/_src/IO/api/withChildren.ts +1 -1
- package/_src/IO/api/withEarlyRelease.ts +1 -1
- package/_src/IO/api/withFinalizer.ts +1 -1
- package/_src/IO/api/withFinalizerExit.ts +1 -1
- package/_src/IO/api/zipC.ts +2 -2
- package/_src/IO/api.ts +48 -48
- package/_src/IO/definition.ts +29 -24
- package/_src/IO/runtime.ts +66 -12
- package/_src/IOEnv/definition.ts +1 -1
- package/_src/Layer/MemoMap.ts +19 -19
- package/_src/Layer/api.ts +38 -38
- package/_src/Layer/definition.ts +5 -5
- package/_src/Queue/api/dimapIO.ts +10 -10
- package/_src/Queue/api/filterInputIO.ts +4 -4
- package/_src/Queue/api/filterOutputIO.ts +6 -6
- package/_src/Queue/api/zipWithIO.ts +10 -10
- package/_src/Queue/definition.ts +7 -7
- package/_src/Queue/internal.ts +7 -7
- package/_src/Queue/strategy.ts +4 -4
- package/_src/Random/api.ts +1 -1
- package/_src/Ref/Atomic/Atomic.ts +3 -3
- package/_src/Ref/Derived.ts +3 -3
- package/_src/Ref/DerivedAll.ts +3 -3
- package/_src/Ref/Synchronized/api.ts +15 -15
- package/_src/Ref/Synchronized/constructors.ts +4 -4
- package/_src/Ref/Synchronized/definition.ts +2 -2
- package/_src/Ref/api/get.ts +2 -2
- package/_src/Ref/api/modify.ts +9 -9
- package/_src/Ref/api/set.ts +1 -1
- package/_src/Ref/definition.ts +13 -13
- package/_src/STM/api/core-api.ts +6 -6
- package/_src/STM/api/core-constructors.ts +7 -7
- package/_src/STM/api.ts +58 -89
- package/_src/STM/definition.ts +6 -6
- package/_src/STM/driver.ts +3 -3
- package/_src/STM/internal/Journal.ts +25 -16
- package/_src/Schedule/Decision.ts +10 -3
- package/_src/Schedule/Driver.ts +2 -2
- package/_src/Schedule/api/driver.ts +6 -6
- package/_src/Schedule/api.ts +97 -77
- package/_src/Schedule/definition.ts +1 -1
- package/_src/Scope/Finalizer/definition.ts +2 -2
- package/_src/Scope/ReleaseMap/api.ts +1 -1
- package/_src/Scope/ReleaseMap/definition.ts +1 -1
- package/_src/Scope/api.ts +11 -11
- package/_src/ScopedRef/api.ts +12 -17
- package/_src/ScopedRef/definition.ts +1 -1
- package/_src/Sink/api.ts +441 -86
- package/_src/State/api.ts +1 -1
- package/_src/Stream/api/zipAllWith.ts +2 -2
- package/_src/Stream/api/zipWith.ts +1 -1
- package/_src/Stream/api/zipWithChunks.ts +2 -2
- package/_src/Stream/api.ts +150 -149
- package/_src/Stream/definition.ts +3 -3
- package/_src/Stream/internal/Take.ts +1 -1
- package/_src/Supervisor/constructors.ts +7 -3
- package/_src/TFuture/api.ts +1 -1
- package/_src/TFuture/definition.ts +1 -1
- package/_src/TReentrantLock/api.ts +2 -2
- package/_src/TRef/api.ts +11 -11
- package/_src/TRef/constructors.ts +2 -2
- package/_src/TSemaphore/api.ts +2 -2
- package/_src/TSemaphore/definition.ts +1 -1
- package/_src/collection/immutable/Conc/dropUntilIO.ts +24 -0
- package/_src/collection/immutable/Conc/dropWhileIO.ts +26 -0
- package/_src/internal/Scheduler.ts +59 -15
- package/collection/immutable/Conc/dropUntilIO.d.ts +7 -0
- package/collection/immutable/Conc/dropWhileIO.d.ts +7 -0
- package/internal/Scheduler.d.ts +18 -1
- package/package.json +3 -3
package/Channel/definition.d.ts
CHANGED
@@ -28,13 +28,13 @@ export declare const enum ChannelTag {
|
|
28
28
|
* @tsplus companion fncts.io.ChannelOps
|
29
29
|
*/
|
30
30
|
export declare abstract class Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone> {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
31
|
+
_Env: () => Env;
|
32
|
+
_InErr: (_: InErr) => void;
|
33
|
+
_InElem: (_: InElem) => void;
|
34
|
+
_InDone: (_: InDone) => void;
|
35
|
+
_OutErr: () => OutErr;
|
36
|
+
_OutElem: () => OutElem;
|
37
|
+
_OutDone: () => OutDone;
|
38
38
|
}
|
39
39
|
/**
|
40
40
|
* @tsplus unify fncts.io.Channel
|
@@ -55,7 +55,7 @@ export declare function unifyChannel<X extends Channel<any, any, any, any, any,
|
|
55
55
|
X
|
56
56
|
] extends [Channel<any, any, any, any, any, any, infer OutDone>] ? OutDone : never>;
|
57
57
|
export declare abstract class Continuation<Env, InErr, InElem, InDone, OutErr, OutErr2, OutElem, OutDone, OutDone2> {
|
58
|
-
readonly _Env: (
|
58
|
+
readonly _Env: () => Env;
|
59
59
|
readonly _InErr: (_: InErr) => void;
|
60
60
|
readonly _InElem: (_: InElem) => void;
|
61
61
|
readonly _InDone: (_: InDone) => void;
|
@@ -99,12 +99,12 @@ export declare class Read<Env, InErr, InElem, InDone, OutErr, OutErr2, OutElem,
|
|
99
99
|
readonly _tag = ChannelTag.Read;
|
100
100
|
constructor(more: (_: InElem) => Channel<Env, InErr, InElem, InDone, OutErr2, OutElem, OutDone2>, done: ContinuationK<Env, InErr, InElem, InDone, OutErr, OutErr2, OutElem, OutDone, OutDone2>);
|
101
101
|
}
|
102
|
-
export declare class Done<OutDone> extends Channel<
|
102
|
+
export declare class Done<OutDone> extends Channel<never, unknown, unknown, unknown, never, never, OutDone> {
|
103
103
|
readonly terminal: () => OutDone;
|
104
104
|
readonly _tag = ChannelTag.Done;
|
105
105
|
constructor(terminal: () => OutDone);
|
106
106
|
}
|
107
|
-
export declare class Fail<OutErr> extends Channel<
|
107
|
+
export declare class Fail<OutErr> extends Channel<never, unknown, unknown, unknown, OutErr, never, never> {
|
108
108
|
readonly cause: () => Cause<OutErr>;
|
109
109
|
readonly _tag = ChannelTag.Halt;
|
110
110
|
constructor(cause: () => Cause<OutErr>);
|
@@ -141,13 +141,13 @@ export declare class BracketOut<R, E, Z, OutDone> extends Channel<R, unknown, un
|
|
141
141
|
readonly _tag = ChannelTag.BracketOut;
|
142
142
|
constructor(acquire: IO<R, E, Z>, finalizer: (_: Z, exit: Exit<any, any>) => URIO<R, any>);
|
143
143
|
}
|
144
|
-
export declare class Provide<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone> extends Channel<
|
144
|
+
export declare class Provide<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone> extends Channel<never, InErr, InElem, InDone, OutErr, OutElem, OutDone> {
|
145
145
|
readonly environment: Environment<Env>;
|
146
146
|
readonly inner: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
|
147
147
|
readonly _tag = ChannelTag.Provide;
|
148
148
|
constructor(environment: Environment<Env>, inner: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>);
|
149
149
|
}
|
150
|
-
export declare class Emit<OutElem, OutDone> extends Channel<
|
150
|
+
export declare class Emit<OutElem, OutDone> extends Channel<never, unknown, unknown, unknown, never, OutElem, OutDone> {
|
151
151
|
readonly out: () => OutElem;
|
152
152
|
readonly _tag = ChannelTag.Emit;
|
153
153
|
constructor(out: () => OutElem);
|
@@ -12,7 +12,7 @@ export declare type MergeDecisionTypeId = typeof MergeDecisionTypeId;
|
|
12
12
|
*/
|
13
13
|
export declare abstract class MergeDecision<R, E0, Z0, E, Z> {
|
14
14
|
readonly _typeId: MergeDecisionTypeId;
|
15
|
-
readonly _R: (
|
15
|
+
readonly _R: () => R;
|
16
16
|
readonly _E0: (_: E0) => void;
|
17
17
|
readonly _Z0: (_: Z0) => void;
|
18
18
|
readonly _E: () => E;
|
@@ -61,7 +61,7 @@ export declare class SingleProducerAsyncInput<Err, Elem, Done> implements AsyncI
|
|
61
61
|
error(cause: Cause<Err>): UIO<unknown>;
|
62
62
|
takeWith<X>(onError: (cause: Cause<Err>) => X, onElement: (element: Elem) => X, onDone: (done: Done) => X): UIO<X>;
|
63
63
|
take: import("../../IO").UIO<import("@fncts/base/data/Exit").Exit<import("@fncts/base/data/Either").Either<Err, Done>, Elem>>;
|
64
|
-
close: import("../../IO").IO<
|
64
|
+
close: import("../../IO").IO<never, never, unknown>;
|
65
65
|
awaitRead: UIO<void>;
|
66
66
|
}
|
67
67
|
/**
|
package/Clock/api.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { UIO } from "@fncts/io/IO/definition";
|
|
5
5
|
* @tsplus static fncts.io.ClockOps currentTime
|
6
6
|
* @tsplus location "@fncts/io/Clock/api"
|
7
7
|
*/
|
8
|
-
export declare const currentTime: import("../IO").IO<
|
8
|
+
export declare const currentTime: import("../IO").IO<never, never, number>;
|
9
9
|
/**
|
10
10
|
* @tsplus static fncts.io.ClockOps sleep
|
11
11
|
* @tsplus location "@fncts/io/Clock/api"
|
package/Fiber/FiberContext.d.ts
CHANGED
@@ -50,11 +50,11 @@ export declare class TracedCont {
|
|
50
50
|
constructor(apply: ErasedCont, trace?: string | undefined);
|
51
51
|
}
|
52
52
|
export declare class Finalizer {
|
53
|
-
readonly finalizer:
|
53
|
+
readonly finalizer: IO<any, never, any>;
|
54
54
|
readonly apply: ErasedCont;
|
55
55
|
readonly trace?: string | undefined;
|
56
56
|
readonly _tag = "Finalizer";
|
57
|
-
constructor(finalizer:
|
57
|
+
constructor(finalizer: IO<any, never, any>, apply: ErasedCont, trace?: string | undefined);
|
58
58
|
}
|
59
59
|
export declare type Frame = InterruptExit | Match<any, any, any, any, any, any, any, any, any> | HandlerFrame | TracedCont | Finalizer;
|
60
60
|
export declare const currentFiber: AtomicReference<FiberContext<any, any> | null>;
|
@@ -107,7 +107,7 @@ export declare class FiberContext<E, A> implements Fiber.Runtime<E, A>, Hashable
|
|
107
107
|
private unsafeGetRefs;
|
108
108
|
private unsafeSetRef;
|
109
109
|
private unsafeDeleteRef;
|
110
|
-
|
110
|
+
unsafePoll(): import("@fncts/base/data/Maybe").Maybe<import("@fncts/base/data/Exit").Success<A> | import("@fncts/base/data/Exit").Failure<E>>;
|
111
111
|
private interruptExit;
|
112
112
|
private unsafeAddFinalizer;
|
113
113
|
private get unsafeIsInterruptible();
|
package/Fiber/api/awaitAll.d.ts
CHANGED
@@ -7,4 +7,4 @@ import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
7
7
|
* @tsplus static fncts.io.FiberOps awaitAll
|
8
8
|
* @tsplus location "@fncts/io/Fiber/api/awaitAll"
|
9
9
|
*/
|
10
|
-
export declare function awaitAll<E, A>(as: Iterable<Fiber<E, A>>): IO<
|
10
|
+
export declare function awaitAll<E, A>(as: Iterable<Fiber<E, A>>): IO<never, never, Exit<E, Conc<A>>>;
|
package/Fiber/api/evalOnIO.d.ts
CHANGED
@@ -6,4 +6,4 @@ import { IO } from "@fncts/io/IO/definition";
|
|
6
6
|
* @tsplus fluent fncts.io.Fiber evalOnIO
|
7
7
|
* @tsplus location "@fncts/io/Fiber/api/evalOnIO"
|
8
8
|
*/
|
9
|
-
export declare function evalOnIO_<E, A, R1, E1, B, R2, E2, C>(fiber: Fiber<E, A>, effect: IO<R1, E1, B>, orElse: IO<R2, E2, C>): IO<R1
|
9
|
+
export declare function evalOnIO_<E, A, R1, E1, B, R2, E2, C>(fiber: Fiber<E, A>, effect: IO<R1, E1, B>, orElse: IO<R2, E2, C>): IO<R1 | R2, E1 | E2, B | C>;
|
package/Fiber/api/joinAll.d.ts
CHANGED
@@ -8,4 +8,4 @@ import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
8
8
|
* @tsplus static fncts.io.FiberOps joinAll
|
9
9
|
* @tsplus location "@fncts/io/Fiber/api/joinAll"
|
10
10
|
*/
|
11
|
-
export declare function joinAll<E, A>(as: Iterable<Fiber<E, A>>): IO<
|
11
|
+
export declare function joinAll<E, A>(as: Iterable<Fiber<E, A>>): IO<never, E, Conc<A>>;
|
package/Fiber/definition.d.ts
CHANGED
@@ -69,7 +69,7 @@ export interface RuntimeFiber<E, A> extends FiberCommon<E, A> {
|
|
69
69
|
* effect will be executed instead.
|
70
70
|
*/
|
71
71
|
readonly evalOn: (effect: UIO<any>, orElse: UIO<any>) => UIO<void>;
|
72
|
-
readonly evalOnIO: <R1, E1, B, R2, E2, C>(effect: IO<R1, E1, B>, orElse: IO<R2, E2, C>) => IO<R1
|
72
|
+
readonly evalOnIO: <R1, E1, B, R2, E2, C>(effect: IO<R1, E1, B>, orElse: IO<R2, E2, C>) => IO<R1 | R2, E1 | E2, B | C>;
|
73
73
|
/**
|
74
74
|
* The status of the fiber.
|
75
75
|
*/
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { FiberRef } from "@fncts/io/FiberRef/definition";
|
2
2
|
import { IO } from "@fncts/io/IO/definition";
|
3
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
4
3
|
import { Scope } from "@fncts/io/Scope/definition";
|
5
4
|
/**
|
6
5
|
* @tsplus fluent fncts.io.FiberRef locallyScoped
|
7
6
|
* @tsplus location "@fncts/io/FiberRef/api/locallyScoped"
|
8
7
|
*/
|
9
|
-
export declare function locallyScoped_<A>(ref: FiberRef<A>, a: A): IO<
|
8
|
+
export declare function locallyScoped_<A>(ref: FiberRef<A>, a: A): IO<Scope, never, void>;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { FiberRef } from "@fncts/io/FiberRef/definition";
|
2
2
|
import { IO } from "@fncts/io/IO/definition";
|
3
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
4
3
|
import { Scope } from "@fncts/io/Scope/definition";
|
5
4
|
/**
|
6
5
|
* @tsplus fluent fncts.io.FiberRef locallyScopedWith
|
7
6
|
* @tsplus location "@fncts/io/FiberRef/api/locallyScopedWith"
|
8
7
|
*/
|
9
|
-
export declare function locallyScopedWith<A>(self: FiberRef<A>, f: (a: A) => A): IO<
|
8
|
+
export declare function locallyScopedWith<A>(self: FiberRef<A>, f: (a: A) => A): IO<Scope, never, void>;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { Lazy } from "@fncts/base/data/function";
|
2
2
|
import { FiberRef } from "@fncts/io/FiberRef/definition";
|
3
3
|
import { IO } from "@fncts/io/IO/definition";
|
4
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
5
4
|
import { Scope } from "@fncts/io/Scope/definition";
|
6
5
|
/**
|
7
6
|
* @tsplus static fncts.io.FiberRefOps make
|
8
7
|
* @tsplus location "@fncts/io/FiberRef/constructors"
|
9
8
|
*/
|
10
|
-
export declare function make<A>(initial: A, fork?: (a: A) => A, join?: (a: A, a1: A) => A): IO<
|
9
|
+
export declare function make<A>(initial: A, fork?: (a: A) => A, join?: (a: A, a1: A) => A): IO<Scope, never, FiberRef<A>>;
|
package/FiberRef/unsafe.d.ts
CHANGED
@@ -6,6 +6,7 @@ import { LogLevel } from "@fncts/io/LogLevel";
|
|
6
6
|
import { List } from "@fncts/base/collection/immutable/List";
|
7
7
|
import { HashMap } from "@fncts/base/collection/immutable/HashMap";
|
8
8
|
import type { LogSpan } from "../LogSpan.js";
|
9
|
+
import type { Scheduler } from "@fncts/io/internal/Scheduler.js";
|
9
10
|
import { Patch } from "@fncts/base/data/Patch";
|
10
11
|
/**
|
11
12
|
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
@@ -52,3 +53,8 @@ export declare const currentLogSpan: import("./definition.js").FiberRef.WithPatc
|
|
52
53
|
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
53
54
|
*/
|
54
55
|
export declare const currentLogAnnotations: import("./definition.js").FiberRef.WithPatch<import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>, (_: import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>) => import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>>;
|
56
|
+
/**
|
57
|
+
* @tsplus static fncts.io.FiberRefOps currentScheduler
|
58
|
+
* @tsplus location "@fncts/io/FiberRef/unsafe"
|
59
|
+
*/
|
60
|
+
export declare const currentScheduler: import("./definition.js").FiberRef.WithPatch<Scheduler, (_: Scheduler) => Scheduler>;
|
package/Future/api.d.ts
CHANGED
@@ -110,4 +110,4 @@ export declare function unsafeSucceed_<A>(future: Future<never, A>, a: A): void;
|
|
110
110
|
* @tsplus getter fncts.io.Future await
|
111
111
|
* @tsplus location "@fncts/io/Future/api"
|
112
112
|
*/
|
113
|
-
export declare function wait<E, A>(future: Future<E, A>): IO<
|
113
|
+
export declare function wait<E, A>(future: Future<E, A>): IO<never, E, A>;
|
package/Future/constructors.d.ts
CHANGED
@@ -6,7 +6,7 @@ import { Future } from "@fncts/io/Future/definition";
|
|
6
6
|
* @tsplus static fncts.io.FutureOps make
|
7
7
|
* @tsplus location "@fncts/io/Future/constructors"
|
8
8
|
*/
|
9
|
-
export declare function make<E, A>(): IO<
|
9
|
+
export declare function make<E, A>(): IO<never, never, Future<E, A>>;
|
10
10
|
/**
|
11
11
|
* Makes a new future to be completed by the fiber with the specified id.
|
12
12
|
* @tsplus static fncts.io.FutureOps makeAs
|
package/Hub/api.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { PHub, Hub } from "@fncts/io/Hub/definition";
|
2
2
|
import { UIO, IO } from "@fncts/io/IO/definition";
|
3
3
|
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
4
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
5
4
|
import { Scope } from "@fncts/io/Scope/definition";
|
6
5
|
/**
|
7
6
|
* Waits for the hub to be shut down.
|
@@ -21,7 +20,7 @@ export declare function capacity<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA, EB
|
|
21
20
|
* @tsplus fluent fncts.io.Hub contramapIO
|
22
21
|
* @tsplus location "@fncts/io/Hub/api"
|
23
22
|
*/
|
24
|
-
export declare function contramapIO_<RA, RB, RC, EA, EB, EC, A, B, C>(self: PHub<RA, RB, EA, EB, A, B>, f: (c: C) => IO<RC, EC, A>): PHub<RC
|
23
|
+
export declare function contramapIO_<RA, RB, RC, EA, EB, EC, A, B, C>(self: PHub<RA, RB, EA, EB, A, B>, f: (c: C) => IO<RC, EC, A>): PHub<RC | RA, RB, EA | EC, EB, C, B>;
|
25
24
|
/**
|
26
25
|
* Transforms messages published to and taken from the hub using the
|
27
26
|
* specified functions.
|
@@ -35,14 +34,14 @@ export declare function dimap_<RA, RB, EA, EB, A, B, C, D>(self: PHub<RA, RB, EA
|
|
35
34
|
* @tsplus fluent fncts.io.Hub dimapIO
|
36
35
|
* @tsplus location "@fncts/io/Hub/api"
|
37
36
|
*/
|
38
|
-
export declare function dimapIO_<RA, RB, RC, RD, EA, EB, EC, ED, A, B, C, D>(source: PHub<RA, RB, EA, EB, A, B>, f: (c: C) => IO<RC, EC, A>, g: (b: B) => IO<RD, ED, D>): PHub<RC
|
37
|
+
export declare function dimapIO_<RA, RB, RC, RD, EA, EB, EC, ED, A, B, C, D>(source: PHub<RA, RB, EA, EB, A, B>, f: (c: C) => IO<RC, EC, A>, g: (b: B) => IO<RD, ED, D>): PHub<RC | RA, RD | RB, EA | EC, EB | ED, C, D>;
|
39
38
|
/**
|
40
39
|
* Filters messages published to the hub using the specified effectual
|
41
40
|
* function.
|
42
41
|
* @tsplus fluent fncts.io.Hub filterInputIO
|
43
42
|
* @tsplus location "@fncts/io/Hub/api"
|
44
43
|
*/
|
45
|
-
export declare function filterInputIO_<RA, RA1, RB, EA, EA1, EB, A, B>(source: PHub<RA, RB, EA, EB, A, B>, f: (a: A) => IO<RA1, EA1, boolean>): PHub<RA
|
44
|
+
export declare function filterInputIO_<RA, RA1, RB, EA, EA1, EB, A, B>(source: PHub<RA, RB, EA, EB, A, B>, f: (a: A) => IO<RA1, EA1, boolean>): PHub<RA | RA1, RB, EA | EA1, EB, A, B>;
|
46
45
|
/**
|
47
46
|
* Filters messages published to the hub using the specified function.
|
48
47
|
* @tsplus fluent fncts.io.Hub filterInput
|
@@ -55,7 +54,7 @@ export declare function filterInput_<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA
|
|
55
54
|
* @tsplus fluent fncts.io.Hub filterOutputIO
|
56
55
|
* @tsplus location "@fncts/io/Hub/api"
|
57
56
|
*/
|
58
|
-
export declare function filterOutputIO_<RA, RB, RB1, EA, EB, EB1, A, B>(source: PHub<RA, RB, EA, EB, A, B>, f: (a: B) => IO<RB1, EB1, boolean>): PHub<RA, RB
|
57
|
+
export declare function filterOutputIO_<RA, RB, RB1, EA, EB, EB1, A, B>(source: PHub<RA, RB, EA, EB, A, B>, f: (a: B) => IO<RB1, EB1, boolean>): PHub<RA, RB | RB1, EA, EB | EB1, A, B>;
|
59
58
|
/**
|
60
59
|
* Filters messages taken from the hub using the specified function.
|
61
60
|
* @tsplus fluent fncts.io.Hub filterOutput
|
@@ -114,7 +113,7 @@ export declare function map_<RA, RB, EA, EB, A, B, C>(self: PHub<RA, RB, EA, EB,
|
|
114
113
|
* @tsplus fluent fncts.io.Hub mapIO
|
115
114
|
* @tsplus location "@fncts/io/Hub/api"
|
116
115
|
*/
|
117
|
-
export declare function mapIO_<RA, RB, RC, EA, EB, EC, A, B, C>(self: PHub<RA, RB, EA, EB, A, B>, f: (b: B) => IO<RC, EC, C>): PHub<RA, RC
|
116
|
+
export declare function mapIO_<RA, RB, RC, EA, EB, EC, A, B, C>(self: PHub<RA, RB, EA, EB, A, B>, f: (b: B) => IO<RC, EC, C>): PHub<RA, RC | RB, EA, EB | EC, A, C>;
|
118
117
|
/**
|
119
118
|
* Publishes a message to the hub, returning whether the message was
|
120
119
|
* published to the hub.
|
@@ -142,7 +141,7 @@ export declare function shutdown<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA, EB
|
|
142
141
|
* @tsplus getter fncts.io.Hub subscribe
|
143
142
|
* @tsplus location "@fncts/io/Hub/api"
|
144
143
|
*/
|
145
|
-
export declare function subscribe<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA, EB, A, B>): IO<
|
144
|
+
export declare function subscribe<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA, EB, A, B>): IO<Scope, never, Hub.Dequeue<RB, EB, B>>;
|
146
145
|
/**
|
147
146
|
* The current number of messages in the hub.
|
148
147
|
* @tsplus getter fncts.io.Hub size
|
package/Hub/definition.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { PQueue } from "@fncts/io/Queue/definition";
|
2
2
|
import { UIO, IO } from "@fncts/io/IO/definition";
|
3
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
4
3
|
import { Scope } from "@fncts/io/Scope/definition";
|
5
4
|
export declare const HubTypeId: unique symbol;
|
6
5
|
export declare type HubTypeId = typeof HubTypeId;
|
@@ -16,8 +15,8 @@ export declare type HubTypeId = typeof HubTypeId;
|
|
16
15
|
*/
|
17
16
|
export interface PHub<RA, RB, EA, EB, A, B> {
|
18
17
|
readonly _typeId: HubTypeId;
|
19
|
-
readonly _RA: (
|
20
|
-
readonly _RB: (
|
18
|
+
readonly _RA: () => RA;
|
19
|
+
readonly _RB: () => RB;
|
21
20
|
readonly _EA: () => EA;
|
22
21
|
readonly _EB: () => EB;
|
23
22
|
readonly _A: (_: A) => void;
|
@@ -26,7 +25,7 @@ export interface PHub<RA, RB, EA, EB, A, B> {
|
|
26
25
|
/**
|
27
26
|
* @tsplus type fncts.io.Hub
|
28
27
|
*/
|
29
|
-
export interface Hub<A> extends PHub<
|
28
|
+
export interface Hub<A> extends PHub<never, never, never, never, A, A> {
|
30
29
|
}
|
31
30
|
/**
|
32
31
|
* @tsplus type fncts.io.HubOps
|
@@ -40,8 +39,8 @@ export declare namespace Hub {
|
|
40
39
|
}
|
41
40
|
export declare abstract class PHubInternal<RA, RB, EA, EB, A, B> implements PHub<RA, RB, EA, EB, A, B> {
|
42
41
|
_typeId: HubTypeId;
|
43
|
-
readonly _RA: (
|
44
|
-
readonly _RB: (
|
42
|
+
readonly _RA: () => RA;
|
43
|
+
readonly _RB: () => RB;
|
45
44
|
readonly _EA: () => EA;
|
46
45
|
readonly _EB: () => EB;
|
47
46
|
readonly _A: (_: A) => void;
|
@@ -81,7 +80,7 @@ export declare abstract class PHubInternal<RA, RB, EA, EB, A, B> implements PHub
|
|
81
80
|
* can be evaluated multiple times within the scope of the managed to take a
|
82
81
|
* message from the hub each time.
|
83
82
|
*/
|
84
|
-
abstract subscribe: IO<
|
83
|
+
abstract subscribe: IO<Scope, never, Hub.Dequeue<RB, EB, B>>;
|
85
84
|
}
|
86
85
|
/**
|
87
86
|
* @tsplus macro remove
|
package/Hub/internal.d.ts
CHANGED
@@ -4,7 +4,6 @@ import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
4
4
|
import { Queue } from "@fncts/io/Queue/definition";
|
5
5
|
import { Scope } from "@fncts/io/Scope/definition";
|
6
6
|
import { Exit } from "@fncts/base/data/Exit";
|
7
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
8
7
|
import { Hub } from "@fncts/io/Hub/definition";
|
9
8
|
import type { Hub as HubInternal } from "@fncts/io/internal/Hub";
|
10
9
|
import { HashSet } from "@fncts/base/collection/mutable/HashSet";
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { Lazy } from "@fncts/base/data/function";
|
2
2
|
import { IO } from "@fncts/io/IO/definition";
|
3
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
4
3
|
import { Scope } from "@fncts/io/Scope/definition";
|
5
4
|
/**
|
6
5
|
* @tsplus static fncts.io.IOOps acquireRelease
|
7
6
|
* @tsplus fluent fncts.io.IO acquireRelease
|
8
7
|
* @tsplus location "@fncts/io/IO/api/acquireRelease"
|
9
8
|
*/
|
10
|
-
export declare function acquireRelease<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (a: A) => IO<R1, never, any>): IO<R
|
9
|
+
export declare function acquireRelease<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (a: A) => IO<R1, never, any>): IO<R | R1 | Scope, E, A>;
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { Lazy } from "@fncts/base/data/function";
|
2
2
|
import { IO } from "@fncts/io/IO/definition";
|
3
3
|
import { Exit } from "@fncts/base/data/Exit";
|
4
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
5
4
|
import { Scope } from "@fncts/io/Scope/definition";
|
6
5
|
/**
|
7
6
|
* @tsplus static fncts.io.IOOps acquireReleaseExit
|
8
7
|
* @tsplus fluent fncts.io.IO acquireReleaseExit
|
9
8
|
* @tsplus location "@fncts/io/IO/api/acquireReleaseExit"
|
10
9
|
*/
|
11
|
-
export declare function acquireReleaseExit<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (a: A, exit: Exit<any, any>) => IO<R1, never, any>, __tsplusTrace?: string): IO<R
|
10
|
+
export declare function acquireReleaseExit<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (a: A, exit: Exit<any, any>) => IO<R1, never, any>, __tsplusTrace?: string): IO<R | R1 | Scope, E, A>;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { Lazy } from "@fncts/base/data/function";
|
2
2
|
import { IO } from "@fncts/io/IO/definition";
|
3
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
4
3
|
import { Scope } from "@fncts/io/Scope/definition";
|
5
4
|
/**
|
6
5
|
* @tsplus static fncts.io.IOOps acquireReleaseInterruptible
|
7
6
|
* @tsplus location "@fncts/io/IO/api/acquireReleaseInterruptible"
|
8
7
|
*/
|
9
|
-
export declare function acquireReleaseInterruptible<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: IO<R1, never, any>, __tsplusTrace?: string): IO<R
|
8
|
+
export declare function acquireReleaseInterruptible<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: IO<R1, never, any>, __tsplusTrace?: string): IO<R | R1 | Scope, E, A>;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import { Lazy } from "@fncts/base/data/function";
|
2
2
|
import { IO } from "@fncts/io/IO/definition";
|
3
3
|
import { Exit } from "@fncts/base/data/Exit";
|
4
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
5
4
|
import { Scope } from "@fncts/io/Scope/definition";
|
6
5
|
/**
|
7
6
|
* @tsplus static fncts.io.IOOps acquireReleaseInterruptibleExit
|
8
7
|
* @tsplus location "@fncts/io/IO/api/acquireReleaseInterruptibleExit"
|
9
8
|
*/
|
10
|
-
export declare function acquireReleaseInterruptibleExit<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (exit: Exit<any, any>) => IO<R1, never, any>, __tsplusTrace?: string): IO<R
|
9
|
+
export declare function acquireReleaseInterruptibleExit<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (exit: Exit<any, any>) => IO<R1, never, any>, __tsplusTrace?: string): IO<R | R1 | Scope, E, A>;
|
package/IO/api/addFinalizer.d.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
import { Lazy } from "@fncts/base/data/function";
|
2
2
|
import { URIO, IO } from "@fncts/io/IO/definition";
|
3
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
4
3
|
import { Scope } from "@fncts/io/Scope/definition";
|
5
4
|
/**
|
6
5
|
* @tsplus static fncts.io.IOOps addFinalizer
|
7
6
|
* @tsplus location "@fncts/io/IO/api/addFinalizer"
|
8
7
|
*/
|
9
|
-
export declare function addFinalizer<R>(finalizer: Lazy<URIO<R, any>>, __tsplusTrace?: string): IO<R
|
8
|
+
export declare function addFinalizer<R>(finalizer: Lazy<URIO<R, any>>, __tsplusTrace?: string): IO<R | Scope, never, void>;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { Exit } from "@fncts/base/data/Exit";
|
2
2
|
import { URIO, IO } from "@fncts/io/IO/definition";
|
3
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
4
3
|
import { Scope } from "@fncts/io/Scope/definition";
|
5
4
|
/**
|
6
5
|
* @tsplus static fncts.io.IOOps addFinalizerExit
|
7
6
|
* @tsplus location "@fncts/io/IO/api/addFinalizerExit"
|
8
7
|
*/
|
9
|
-
export declare function addFinalizerExit<R>(finalizer: (exit: Exit<any, any>) => URIO<R, any>): IO<R
|
8
|
+
export declare function addFinalizerExit<R>(finalizer: (exit: Exit<any, any>) => URIO<R, any>): IO<R | Scope, never, void>;
|
package/IO/api/bracket.d.ts
CHANGED
@@ -23,4 +23,4 @@ import { IO } from "@fncts/io/IO/definition";
|
|
23
23
|
* @tsplus static fncts.io.IOOps bracket
|
24
24
|
* @tsplus location "@fncts/io/IO/api/bracket"
|
25
25
|
*/
|
26
|
-
export declare function bracket_<R, E, A, R1, E1, A1, R2, E2, A2>(acquire: Lazy<IO<R, E, A>>, use: (a: A) => IO<R1, E1, A1>, release: (a: A) => IO<R2, E2, A2>): IO<R
|
26
|
+
export declare function bracket_<R, E, A, R1, E1, A1, R2, E2, A2>(acquire: Lazy<IO<R, E, A>>, use: (a: A) => IO<R1, E1, A1>, release: (a: A) => IO<R2, E2, A2>): IO<R | R1 | R2, E | E1 | E2, A1>;
|
package/IO/api/bracketExit.d.ts
CHANGED
@@ -11,4 +11,4 @@ import { Exit } from "@fncts/base/data/Exit";
|
|
11
11
|
* @tsplus static fncts.io.IOOps bracketExit
|
12
12
|
* @tsplus location "@fncts/io/IO/api/bracketExit"
|
13
13
|
*/
|
14
|
-
export declare function bracketExit_<R, E, A, E1, R1, A1, R2, E2>(acquire: Lazy<IO<R, E, A>>, use: (a: A) => IO<R1, E1, A1>, release: (a: A, e: Exit<E1, A1>) => IO<R2, E2, any>): IO<R
|
14
|
+
export declare function bracketExit_<R, E, A, E1, R1, A1, R2, E2>(acquire: Lazy<IO<R, E, A>>, use: (a: A) => IO<R1, E1, A1>, release: (a: A, e: Exit<E1, A1>) => IO<R2, E2, any>): IO<R | R1 | R2, E | E1 | E2, A1>;
|
package/IO/api/clockWith.d.ts
CHANGED
@@ -9,4 +9,4 @@ export declare function clockWith<R, E, A>(f: (clock: Clock) => IO<R, E, A>, __t
|
|
9
9
|
* @tsplus static fncts.io.IOOps clock
|
10
10
|
* @tsplus location "@fncts/io/IO/api/clockWith"
|
11
11
|
*/
|
12
|
-
export declare const clock: import("../definition").IO<
|
12
|
+
export declare const clock: import("../definition").IO<never, never, import("../../Clock").Clock>;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { IO } from "@fncts/io/IO/definition";
|
2
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
3
2
|
import { Scope } from "@fncts/io/Scope/definition";
|
4
3
|
/**
|
5
4
|
* @tsplus getter fncts.io.IO concurrentFinalizers
|
6
5
|
* @tsplus location "@fncts/io/IO/api/concurrentFinalizers"
|
7
6
|
*/
|
8
|
-
export declare function concurrentFinalizers<R, E, A>(io: IO<R, E, A>): IO<R
|
7
|
+
export declare function concurrentFinalizers<R, E, A>(io: IO<R, E, A>): IO<R | Scope, E, A>;
|
package/IO/api/consoleWith.d.ts
CHANGED
@@ -9,4 +9,4 @@ export declare function consoleWith<R, E, A>(f: (console: Console) => IO<R, E, A
|
|
9
9
|
* @tsplus static fncts.io.IOOps console
|
10
10
|
* @tsplus location "@fncts/io/IO/api/consoleWith"
|
11
11
|
*/
|
12
|
-
export declare const console: import("../definition").IO<
|
12
|
+
export declare const console: import("../definition").IO<never, never, Console>;
|
package/IO/api/core-scope.d.ts
CHANGED
@@ -41,7 +41,7 @@ export declare function forkScopeMask_<R, E, A>(newScope: FiberScope, f: (restor
|
|
41
41
|
* @tsplus fluent fncts.io.IO raceWith
|
42
42
|
* @tsplus location "@fncts/io/IO/api/core-scope"
|
43
43
|
*/
|
44
|
-
export declare function raceWith_<R, E, A, R1, E1, A1, R2, E2, A2, R3, E3, A3>(left: IO<R, E, A>, right: Lazy<IO<R1, E1, A1>>, leftWins: (exit: Exit<E, A>, fiber: Fiber<E1, A1>) => IO<R2, E2, A2>, rightWins: (exit: Exit<E1, A1>, fiber: Fiber<E, A>) => IO<R3, E3, A3>, __tsplusTrace?: string): IO<R
|
44
|
+
export declare function raceWith_<R, E, A, R1, E1, A1, R2, E2, A2, R3, E3, A3>(left: IO<R, E, A>, right: Lazy<IO<R1, E1, A1>>, leftWins: (exit: Exit<E, A>, fiber: Fiber<E1, A1>) => IO<R2, E2, A2>, rightWins: (exit: Exit<E1, A1>, fiber: Fiber<E, A>) => IO<R3, E3, A3>, __tsplusTrace?: string): IO<R | R1 | R2 | R3, E2 | E3, A2 | A3>;
|
45
45
|
export declare type Grafter = <R, E, A>(effect: IO<R, E, A>) => IO<R, E, A>;
|
46
46
|
/**
|
47
47
|
* Transplants specified effects so that when those effects fork other
|
@@ -5,4 +5,4 @@ import { Fiber } from "@fncts/io/Fiber/definition";
|
|
5
5
|
* @tsplus fluent fncts.io.IO ensuringChildren
|
6
6
|
* @tsplus location "@fncts/io/IO/api/ensuringChildren"
|
7
7
|
*/
|
8
|
-
export declare function ensuringChildren<R, E, A, R1>(self: IO<R, E, A>, children: (_: Conc<Fiber.Runtime<any, any>>) => IO<R1, never, void>): IO<R
|
8
|
+
export declare function ensuringChildren<R, E, A, R1>(self: IO<R, E, A>, children: (_: Conc<Fiber.Runtime<any, any>>) => IO<R1, never, void>): IO<R | R1, E, A>;
|
package/IO/api/environment.d.ts
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
import { IO, URIO, FIO } from "@fncts/io/IO/definition";
|
2
2
|
import { Environment } from "@fncts/base/data/Environment";
|
3
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
4
3
|
import { Tag } from "@fncts/base/data/Tag";
|
5
|
-
import type * as Intersection from "@fncts/typelevel/Intersection";
|
6
4
|
/**
|
7
5
|
* Provides some of the environment required to run this `IO`,
|
8
6
|
* leaving the remainder `R0`.
|
@@ -27,7 +25,7 @@ export declare function environmentWith<R, A>(f: (_: Environment<R>) => A, __tsp
|
|
27
25
|
* @tsplus static fncts.io.IOOps environmentWithIO
|
28
26
|
* @tsplus location "@fncts/io/IO/api/environment"
|
29
27
|
*/
|
30
|
-
export declare function environmentWithIO<R0, R, E, A>(f: (r: Environment<R0>) => IO<R, E, A>, __tsplusTrace?: string): IO<R
|
28
|
+
export declare function environmentWithIO<R0, R, E, A>(f: (r: Environment<R0>) => IO<R, E, A>, __tsplusTrace?: string): IO<R | R0, E, A>;
|
31
29
|
/**
|
32
30
|
* Provides all of the environment required to compute a MonadEnv
|
33
31
|
*
|
@@ -41,34 +39,34 @@ export declare function provideEnvironment_<R, E, A>(self: IO<R, E, A>, r: Envir
|
|
41
39
|
* @tsplus fluent fncts.io.IO provideSomeEnvironment
|
42
40
|
* @tsplus location "@fncts/io/IO/api/environment"
|
43
41
|
*/
|
44
|
-
export declare function provideSomeEnvironment_<R, E, A, R0>(self: IO<R, E, A>, environment: Environment<R0>, __tsplusTrace?: string): IO<
|
42
|
+
export declare function provideSomeEnvironment_<R, E, A, R0>(self: IO<R, E, A>, environment: Environment<R0>, __tsplusTrace?: string): IO<Exclude<R, R0>, E, A>;
|
45
43
|
/**
|
46
44
|
* @tsplus fluent fncts.io.IO provideService
|
47
45
|
* @tsplus location "@fncts/io/IO/api/environment"
|
48
46
|
*/
|
49
|
-
export declare function provideService_<E, A, T>(self: IO<
|
47
|
+
export declare function provideService_<E, A, T>(self: IO<T, E, A>, service: T, tag: Tag<T>, __tsplusTrace?: string): FIO<E, A>;
|
50
48
|
/**
|
51
49
|
* @tsplus fluent fncts.io.IO provideSomeService
|
52
50
|
* @tsplus location "@fncts/io/IO/api/environment"
|
53
51
|
*/
|
54
|
-
export declare function provideSomeService_<R, E, A, T>(self: IO<R, E, A>, service: T, tag: Tag<T>, __tsplusTrace?: string): IO<
|
52
|
+
export declare function provideSomeService_<R, E, A, T>(self: IO<R, E, A>, service: T, tag: Tag<T>, __tsplusTrace?: string): IO<Exclude<R, T>, E, A>;
|
55
53
|
/**
|
56
54
|
* @tsplus static fncts.io.IOAspects provideSomeService
|
57
55
|
* @tsplus location "@fncts/io/IO/api/environment"
|
58
56
|
*/
|
59
|
-
export declare function provideSomeService<T>(service: T, tag: Tag<T>, __tsplusTrace?: string): <R, E, A>(io: import("../definition").IO<
|
57
|
+
export declare function provideSomeService<T>(service: T, tag: Tag<T>, __tsplusTrace?: string): <R, E, A>(io: import("../definition").IO<T | R, E, A>) => import("../definition").IO<R, E, A>;
|
60
58
|
/**
|
61
59
|
* @tsplus static fncts.io.IOOps service
|
62
60
|
* @tsplus location "@fncts/io/IO/api/environment"
|
63
61
|
*/
|
64
|
-
export declare function service<T>(tag: Tag<T>, __tsplusTrace?: string): IO<
|
62
|
+
export declare function service<T>(tag: Tag<T>, __tsplusTrace?: string): IO<T, never, T>;
|
65
63
|
/**
|
66
64
|
* @tsplus static fncts.io.IOOps serviceWith
|
67
65
|
* @tsplus location "@fncts/io/IO/api/environment"
|
68
66
|
*/
|
69
|
-
export declare function serviceWith<S, A>(f: (service: S) => A, tag: Tag<S>): IO<
|
67
|
+
export declare function serviceWith<S, A>(f: (service: S) => A, tag: Tag<S>): IO<S, never, A>;
|
70
68
|
/**
|
71
69
|
* @tsplus static fncts.io.IOOps serviceWithIO
|
72
70
|
* @tsplus location "@fncts/io/IO/api/environment"
|
73
71
|
*/
|
74
|
-
export declare function serviceWithIO<T, R, E, A>(f: (service: T) => IO<R, E, A>, tag: Tag<T>, __tsplusTrace?: string): IO<R
|
72
|
+
export declare function serviceWithIO<T, R, E, A>(f: (service: T) => IO<R, E, A>, tag: Tag<T>, __tsplusTrace?: string): IO<R | T, E, A>;
|
package/IO/api/forkScoped.d.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
import { IO } from "@fncts/io/IO/definition";
|
2
|
-
import { Has } from "@fncts/base/typeclass/Has";
|
3
2
|
import { Scope } from "@fncts/io/Scope/definition";
|
4
3
|
import { Fiber } from "@fncts/io/Fiber/definition";
|
5
4
|
/**
|
6
5
|
* @tsplus getter fncts.io.IO forkScoped
|
7
6
|
* @tsplus location "@fncts/io/IO/api/forkScoped"
|
8
7
|
*/
|
9
|
-
export declare function forkScoped<R, E, A>(self: IO<R, E, A>, __tsplusTrace?: string): IO<R
|
8
|
+
export declare function forkScoped<R, E, A>(self: IO<R, E, A>, __tsplusTrace?: string): IO<R | Scope, never, Fiber.Runtime<E, A>>;
|
package/IO/api/interrupt.d.ts
CHANGED
@@ -15,7 +15,7 @@ export declare function interruptAs(fiberId: FiberId, __tsplusTrace?: string): F
|
|
15
15
|
* @tsplus static fncts.io.IOOps interrupt
|
16
16
|
* @tsplus location "@fncts/io/IO/api/interrupt"
|
17
17
|
*/
|
18
|
-
export declare const interrupt: IO<
|
18
|
+
export declare const interrupt: IO<never, never, never>;
|
19
19
|
/**
|
20
20
|
* Switches the interrupt status for this effect. If `true` is used, then the
|
21
21
|
* effect becomes interruptible (the default), while if `false` is used, then
|
@@ -74,14 +74,14 @@ export declare function interruptibleMask<R, E, A>(k: (restore: InterruptStatusR
|
|
74
74
|
* @tsplus fluent fncts.io.IO onInterrupt
|
75
75
|
* @tsplus location "@fncts/io/IO/api/interrupt"
|
76
76
|
*/
|
77
|
-
export declare function onInterrupt_<R, E, A, R1>(ma: IO<R, E, A>, cleanup: (interruptors: HashSet<FiberId>) => IO<R1, never, any>): IO<R
|
77
|
+
export declare function onInterrupt_<R, E, A, R1>(ma: IO<R, E, A>, cleanup: (interruptors: HashSet<FiberId>) => IO<R1, never, any>): IO<R | R1, E, A>;
|
78
78
|
/**
|
79
79
|
* Calls the specified function, and runs the effect it returns, if this
|
80
80
|
* effect is interrupted (allows for expanding error).
|
81
81
|
* @tsplus fluent fncts.io.IO onInterruptExtended
|
82
82
|
* @tsplus location "@fncts/io/IO/api/interrupt"
|
83
83
|
*/
|
84
|
-
export declare function onInterruptExtended_<R, E, A, R2, E2>(self: IO<R, E, A>, cleanup: Lazy<IO<R2, E2, any>>): IO<R
|
84
|
+
export declare function onInterruptExtended_<R, E, A, R2, E2>(self: IO<R, E, A>, cleanup: Lazy<IO<R2, E2, any>>): IO<R | R2, E | E2, A>;
|
85
85
|
/**
|
86
86
|
* Returns an IO whose interruption will be disconnected from the
|
87
87
|
* fiber's own interruption, being performed in the background without
|
package/IO/api/onExit.d.ts
CHANGED
@@ -4,4 +4,4 @@ import { Exit } from "@fncts/base/data/Exit";
|
|
4
4
|
* @tsplus fluent fncts.io.IO onExit
|
5
5
|
* @tsplus location "@fncts/io/IO/api/onExit"
|
6
6
|
*/
|
7
|
-
export declare function onExit_<R, E, A, R1, E1>(self: IO<R, E, A>, cleanup: (exit: Exit<E, A>) => IO<R1, E1, any>): IO<R
|
7
|
+
export declare function onExit_<R, E, A, R1, E1>(self: IO<R, E, A>, cleanup: (exit: Exit<E, A>) => IO<R1, E1, any>): IO<R | R1, E | E1, A>;
|
@@ -6,4 +6,4 @@ import { Exit } from "@fncts/base/data/Exit";
|
|
6
6
|
* @tsplus fluent fncts.io.IO onTermination
|
7
7
|
* @tsplus location "@fncts/io/IO/api/onTermination"
|
8
8
|
*/
|
9
|
-
export declare function onTermination<R, E, A, R1>(self: Lazy<IO<R, E, A>>, cleanup: (cause: Cause<never>) => URIO<R1, any>, __tsPlusTrace?: string): IO<R
|
9
|
+
export declare function onTermination<R, E, A, R1>(self: Lazy<IO<R, E, A>>, cleanup: (cause: Cause<never>) => URIO<R1, any>, __tsPlusTrace?: string): IO<R | R1, E, A>;
|
@@ -10,4 +10,4 @@ export declare function provideSomeLayer_<R, E, A, RIn, E1, ROut>(self: IO<R, E,
|
|
10
10
|
* @tsplus static fncts.io.IOAspects provideSomeLayer
|
11
11
|
* @tsplus location "@fncts/io/IO/api/provideSomeLayer"
|
12
12
|
*/
|
13
|
-
export declare function provideSomeLayer<RIn, E1, ROut>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <R, E, A>(self: import("../definition").IO<
|
13
|
+
export declare function provideSomeLayer<RIn, E1, ROut>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <R, E, A>(self: import("../definition").IO<ROut | R, E, A>) => import("../definition").IO<RIn | R, E1 | E, A>;
|
package/IO/api/race.d.ts
CHANGED
@@ -10,4 +10,4 @@ import { IO } from "@fncts/io/IO/definition";
|
|
10
10
|
* @tsplus fluent fncts.io.IO race
|
11
11
|
* @tsplus location "@fncts/io/IO/api/race"
|
12
12
|
*/
|
13
|
-
export declare function race_<R, E, A, R1, E1, A1>(io: IO<R, E, A>, that: IO<R1, E1, A1>): IO<R
|
13
|
+
export declare function race_<R, E, A, R1, E1, A1>(io: IO<R, E, A>, that: IO<R1, E1, A1>): IO<R | R1, E | E1, A | A1>;
|