@fncts/io 0.0.47 → 0.0.49
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 +1 -1
- package/Channel/api.d.ts +80 -80
- package/Channel/core-api.d.ts +26 -26
- package/Console/definition.d.ts +1 -0
- package/CountdownLatch.d.ts +1 -0
- package/Fiber/FiberMessage.d.ts +6 -28
- package/Fiber/FiberRuntime.d.ts +108 -77
- package/Fiber/api/interruptAs.d.ts +2 -2
- package/Fiber/definition.d.ts +2 -0
- package/FiberScope/definition.d.ts +3 -0
- package/FiberSet.d.ts +2 -1
- package/Future/State.d.ts +59 -0
- package/Future/api.d.ts +8 -3
- package/Future/constructors.d.ts +1 -1
- package/Future/definition.d.ts +1 -17
- package/Future.d.ts +1 -0
- package/Hub/api.d.ts +15 -15
- package/IO/api/array.d.ts +22 -0
- package/IO/api/awaitAllChildren.d.ts +6 -0
- package/IO/api/cachedInvalidate.d.ts +15 -0
- package/IO/api/forkDaemon.d.ts +1 -1
- package/IO/api/onTermination.d.ts +1 -2
- package/IO/api/transplant.d.ts +11 -1
- package/IO/api.d.ts +247 -225
- package/IO/definition.d.ts +12 -25
- package/IO.d.ts +3 -1
- package/Random/definition.d.ts +1 -0
- package/Ref/Synchronized/api.d.ts +1 -1
- package/Semaphore/Reservation.d.ts +15 -0
- package/Semaphore/constructors.d.ts +13 -0
- package/Semaphore/definition.d.ts +29 -0
- package/Semaphore.d.ts +3 -40
- package/Stream/api.d.ts +164 -164
- package/_cjs/Cached/api.cjs +1 -2
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +1 -2
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +1 -2
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +2 -3
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAll.cjs +1 -2
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +1 -2
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +2 -3
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +1 -2
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +1 -2
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +1 -2
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runCollect.cjs +1 -2
- package/_cjs/Channel/api/runCollect.cjs.map +1 -1
- package/_cjs/Channel/api/runDrain.cjs +1 -2
- package/_cjs/Channel/api/runDrain.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +3 -4
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +2 -3
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipConcurrent.cjs +1 -2
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +206 -207
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +43 -42
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/internal/AsyncInputConsumer.cjs +0 -4
- package/_cjs/Channel/internal/AsyncInputProducer.cjs +0 -4
- package/_cjs/Channel/internal/ChannelExecutor.cjs +4 -5
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +1 -2
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +1 -2
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +1 -2
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +1 -2
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +1 -2
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Console/api.cjs +1 -2
- package/_cjs/Console/api.cjs.map +1 -1
- package/_cjs/Console/definition.cjs +2 -2
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +1 -2
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +3 -3
- package/_cjs/CountdownLatch.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +1 -2
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +3 -24
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -1
- package/_cjs/Fiber/FiberRuntime.cjs +879 -636
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +1 -2
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +2 -3
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +1 -2
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +2 -3
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +2 -3
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +5 -10
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +2 -3
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +1 -2
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +1 -2
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +1 -2
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +2 -3
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +2 -3
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +2 -3
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +6 -4
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +1 -2
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +1 -2
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +1 -2
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +1 -2
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/operations.cjs +1 -2
- package/_cjs/FiberRef/operations.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +1 -2
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRefs/Patch.cjs +1 -2
- package/_cjs/FiberRefs/Patch.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +1 -2
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +1 -2
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +29 -6
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberSet.cjs +16 -15
- package/_cjs/FiberSet.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +1 -2
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/Future/State.cjs +108 -0
- package/_cjs/Future/State.cjs.map +1 -0
- package/_cjs/Future/api.cjs +71 -64
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +3 -4
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +1 -15
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Future.cjs +11 -0
- package/_cjs/Future.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +56 -57
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +1 -2
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +1 -2
- package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs +1 -2
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +1 -2
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +1 -2
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizer.cjs +1 -2
- package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +1 -2
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/all.cjs +1 -2
- package/_cjs/IO/api/all.cjs.map +1 -1
- package/_cjs/IO/api/array.cjs +51 -0
- package/_cjs/IO/api/array.cjs.map +1 -0
- package/_cjs/IO/api/asyncIO.cjs +1 -2
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/asyncInterrupt.cjs +1 -2
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -1
- package/_cjs/IO/api/awaitAllChildren.cjs +17 -0
- package/_cjs/IO/api/awaitAllChildren.cjs.map +1 -0
- package/_cjs/IO/api/blocking.cjs +1 -2
- package/_cjs/IO/api/blocking.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +1 -2
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +1 -2
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/cachedInvalidate.cjs +47 -0
- package/_cjs/IO/api/cachedInvalidate.cjs.map +1 -0
- package/_cjs/IO/api/clockWith.cjs +1 -2
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +1 -2
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +1 -2
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +1 -2
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/daemonChildren.cjs +1 -2
- package/_cjs/IO/api/daemonChildren.cjs.map +1 -1
- package/_cjs/IO/api/delay.cjs +1 -2
- package/_cjs/IO/api/delay.cjs.map +1 -1
- package/_cjs/IO/api/descriptor.cjs +1 -2
- package/_cjs/IO/api/descriptor.cjs.map +1 -1
- package/_cjs/IO/api/diffFiberRefs.cjs +1 -2
- package/_cjs/IO/api/diffFiberRefs.cjs.map +1 -1
- package/_cjs/IO/api/disconnect.cjs +2 -3
- package/_cjs/IO/api/disconnect.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +1 -2
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +1 -2
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachConcurrent.cjs +36 -30
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +1 -2
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/fork.cjs +2 -3
- package/_cjs/IO/api/fork.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +1 -2
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkDaemon.cjs +5 -6
- package/_cjs/IO/api/forkDaemon.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +1 -2
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +1 -2
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +1 -2
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +4 -5
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +1 -2
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +2 -3
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +1 -2
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/patchFiberRefs.cjs +1 -2
- package/_cjs/IO/api/patchFiberRefs.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +1 -2
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideScope.cjs +1 -2
- package/_cjs/IO/api/provideScope.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/provideSomeRuntime.cjs +1 -2
- package/_cjs/IO/api/provideSomeRuntime.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +2 -3
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +1 -2
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/raceWith.cjs +1 -2
- package/_cjs/IO/api/raceWith.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +1 -2
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +1 -2
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +1 -2
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +1 -2
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +1 -2
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +1 -2
- package/_cjs/IO/api/scopeWith.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +1 -2
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +1 -2
- package/_cjs/IO/api/sleep.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs +1 -2
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +1 -2
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +9 -11
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/transplant.cjs +22 -7
- package/_cjs/IO/api/transplant.cjs.map +1 -1
- package/_cjs/IO/api/whenFiberRef.cjs +1 -2
- package/_cjs/IO/api/whenFiberRef.cjs.map +1 -1
- package/_cjs/IO/api/whenRef.cjs +1 -2
- package/_cjs/IO/api/whenRef.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +1 -2
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +1 -2
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +1 -2
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +1 -2
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/zipConcurrent.cjs +5 -6
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/IO/api.cjs +522 -473
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +2 -3
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +9 -10
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +33 -11
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +1 -2
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +1 -2
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +1 -2
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +1 -2
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +1 -2
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +1 -2
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +1 -2
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/MVar/api.cjs +1 -2
- package/_cjs/MVar/api.cjs.map +1 -1
- package/_cjs/Push/api.cjs +2 -3
- package/_cjs/Push/api.cjs.map +1 -1
- package/_cjs/Push/internal.cjs +1 -2
- package/_cjs/Push/internal.cjs.map +1 -1
- package/_cjs/Queue/api/dimapIO.cjs +1 -2
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +1 -2
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +1 -2
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +1 -2
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +1 -2
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/takeN.cjs +1 -2
- package/_cjs/Queue/api/takeN.cjs.map +1 -1
- package/_cjs/Queue/api/zipWithIO.cjs +1 -2
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +1 -2
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +1 -2
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +1 -2
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Random/api.cjs +1 -2
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +2 -2
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +1 -2
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +1 -2
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +1 -2
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +1 -2
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +2 -3
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +2 -3
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +2 -3
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/Ref/api/collect.cjs +1 -2
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +1 -2
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +1 -2
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +1 -2
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api.cjs +1 -2
- package/_cjs/Ref/api.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +1 -2
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/RefSubject/Atomic.cjs +1 -2
- package/_cjs/RefSubject/Atomic.cjs.map +1 -1
- package/_cjs/RefSubject/Synchronized/api.cjs +1 -2
- package/_cjs/RefSubject/Synchronized/api.cjs.map +1 -1
- package/_cjs/RefSubject/Synchronized/definition.cjs +1 -2
- package/_cjs/RefSubject/Synchronized/definition.cjs.map +1 -1
- package/_cjs/RefSubject/api.cjs +1 -2
- package/_cjs/RefSubject/api.cjs.map +1 -1
- package/_cjs/Reloadable/api.cjs +1 -2
- package/_cjs/Reloadable/api.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +1 -2
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +1 -2
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/RuntimeFlag.cjs +0 -4
- package/_cjs/RuntimeFlags/Patch.cjs +1 -2
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -1
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +1 -2
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -1
- package/_cjs/STM/api/atomically.cjs +1 -2
- package/_cjs/STM/api/atomically.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +1 -2
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api.cjs +1 -2
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +2 -3
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +1 -2
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +1 -2
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +1 -2
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +1 -2
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +1 -2
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +1 -2
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +1 -2
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +1 -2
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +1 -2
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +1 -2
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +1 -2
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +1 -2
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +1 -2
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +2 -3
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/Semaphore/Reservation.cjs +24 -0
- package/_cjs/Semaphore/Reservation.cjs.map +1 -0
- package/_cjs/Semaphore/constructors.cjs +25 -0
- package/_cjs/Semaphore/constructors.cjs.map +1 -0
- package/_cjs/Semaphore/definition.cjs +149 -0
- package/_cjs/Semaphore/definition.cjs.map +1 -0
- package/_cjs/Semaphore.cjs +31 -138
- package/_cjs/Semaphore.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +1 -2
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/State/api.cjs +1 -2
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +1 -2
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +1 -2
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +1 -2
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +702 -703
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +1 -2
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +1 -2
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +1 -2
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +1 -2
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Subject/Atomic.cjs +1 -2
- package/_cjs/Subject/Atomic.cjs.map +1 -1
- package/_cjs/Subject/api.cjs +1 -2
- package/_cjs/Subject/api.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +2 -3
- package/_cjs/SubscriptionRef.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +1 -2
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +1 -2
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +1 -2
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +1 -2
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +1 -2
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +1 -2
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +1 -2
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +1 -2
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +1 -2
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +1 -2
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +1 -2
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +1 -2
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +1 -2
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +1 -2
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +1 -2
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +1 -2
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +1 -2
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/global.cjs +0 -4
- package/_cjs/index.cjs +0 -4
- package/_cjs/internal/HashedPair.cjs +1 -2
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +1 -2
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +1 -2
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +1 -2
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +1 -2
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +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 +1 -1
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +205 -205
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +43 -42
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/internal/AsyncInputConsumer.mjs +1 -1
- package/_mjs/Channel/internal/AsyncInputProducer.mjs +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +3 -3
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Console/definition.mjs +1 -0
- package/_mjs/Console/definition.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +2 -1
- package/_mjs/CountdownLatch.mjs.map +1 -1
- package/_mjs/Fiber/FiberMessage.mjs +2 -20
- package/_mjs/Fiber/FiberMessage.mjs.map +1 -1
- package/_mjs/Fiber/FiberRuntime.mjs +877 -633
- package/_mjs/Fiber/FiberRuntime.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/interrupt.mjs +1 -1
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +4 -7
- package/_mjs/Fiber/api/interruptAs.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/mapIO.mjs +1 -1
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +1 -1
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/constructors.mjs +1 -1
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs +5 -2
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs +28 -4
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberSet.mjs +14 -12
- package/_mjs/FiberSet.mjs.map +1 -1
- package/_mjs/Future/State.mjs +96 -0
- package/_mjs/Future/State.mjs.map +1 -0
- package/_mjs/Future/api.mjs +67 -61
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +3 -3
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +0 -12
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Future.mjs +1 -0
- package/_mjs/Future.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +55 -55
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/IO/api/array.mjs +42 -0
- package/_mjs/IO/api/array.mjs.map +1 -0
- package/_mjs/IO/api/asyncInterrupt.mjs.map +1 -1
- package/_mjs/IO/api/awaitAllChildren.mjs +10 -0
- package/_mjs/IO/api/awaitAllChildren.mjs.map +1 -0
- package/_mjs/IO/api/cachedInvalidate.mjs +39 -0
- package/_mjs/IO/api/cachedInvalidate.mjs.map +1 -0
- package/_mjs/IO/api/disconnect.mjs +1 -1
- package/_mjs/IO/api/disconnect.mjs.map +1 -1
- package/_mjs/IO/api/foreachConcurrent.mjs +35 -28
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs +1 -1
- package/_mjs/IO/api/fork.mjs.map +1 -1
- package/_mjs/IO/api/forkDaemon.mjs +4 -4
- package/_mjs/IO/api/forkDaemon.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +3 -3
- package/_mjs/IO/api/onTermination.mjs +1 -1
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +1 -1
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +8 -9
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/transplant.mjs +19 -5
- package/_mjs/IO/api/transplant.mjs.map +1 -1
- package/_mjs/IO/api/zipConcurrent.mjs +4 -4
- package/_mjs/IO/api/zipConcurrent.mjs.map +1 -1
- package/_mjs/IO/api.mjs +515 -468
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +1 -1
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +8 -8
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +3 -1
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/Push/api.mjs +1 -1
- package/_mjs/Random/definition.mjs +1 -0
- package/_mjs/Random/definition.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/api.mjs +1 -1
- package/_mjs/Ref/Synchronized/api.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs.map +1 -1
- package/_mjs/RuntimeFlag.mjs +1 -1
- package/_mjs/STM/definition.mjs +1 -1
- package/_mjs/ScopedRef/api.mjs +1 -1
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/Semaphore/Reservation.mjs +16 -0
- package/_mjs/Semaphore/Reservation.mjs.map +1 -0
- package/_mjs/Semaphore/constructors.mjs +17 -0
- package/_mjs/Semaphore/constructors.mjs.map +1 -0
- package/_mjs/Semaphore/definition.mjs +141 -0
- package/_mjs/Semaphore/definition.mjs.map +1 -0
- package/_mjs/Semaphore.mjs +4 -133
- package/_mjs/Semaphore.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +701 -701
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +1 -1
- package/_mjs/global.mjs +1 -1
- package/_mjs/index.mjs +1 -1
- package/_src/Cached/api.ts +3 -3
- package/_src/Channel/api/toPull.ts +1 -1
- package/_src/Channel/api.ts +273 -272
- package/_src/Channel/core-api.ts +57 -55
- package/_src/Channel/internal/ChannelExecutor.ts +3 -3
- package/_src/Console/definition.ts +1 -0
- package/_src/CountdownLatch.ts +2 -0
- package/_src/Fiber/FiberMessage.ts +3 -28
- package/_src/Fiber/FiberRuntime.ts +988 -616
- package/_src/Fiber/api/interruptAs.ts +4 -3
- package/_src/Fiber/constructors.ts +1 -1
- package/_src/Fiber/definition.ts +4 -0
- package/_src/FiberScope/definition.ts +40 -2
- package/_src/FiberSet.ts +6 -2
- package/_src/Future/State.ts +128 -0
- package/_src/Future/api.ts +62 -51
- package/_src/Future/constructors.ts +4 -2
- package/_src/Future/definition.ts +2 -17
- package/_src/Future.ts +4 -3
- package/_src/Hub/api.ts +61 -61
- package/_src/IO/api/addFinalizerExit.ts +4 -4
- package/_src/IO/api/array.ts +49 -0
- package/_src/IO/api/asyncInterrupt.ts +1 -1
- package/_src/IO/api/awaitAllChildren.ts +6 -0
- package/_src/IO/api/cachedInvalidate.ts +42 -0
- package/_src/IO/api/foreachConcurrent.ts +39 -23
- package/_src/IO/api/fork.ts +1 -1
- package/_src/IO/api/forkDaemon.ts +2 -2
- package/_src/IO/api/memoize.ts +3 -3
- package/_src/IO/api/onTermination.ts +2 -2
- package/_src/IO/api/transplant.ts +26 -3
- package/_src/IO/api/zipConcurrent.ts +2 -2
- package/_src/IO/api.ts +547 -525
- package/_src/IO/definition.ts +4 -28
- package/_src/IO/runtime.ts +0 -1
- package/_src/IO.ts +65 -63
- package/_src/IOEnv/definition.ts +1 -4
- package/_src/Random/definition.ts +1 -0
- package/_src/Ref/Synchronized/api.ts +2 -2
- package/_src/Ref/Synchronized/definition.ts +1 -1
- package/_src/Semaphore/Reservation.ts +15 -0
- package/_src/Semaphore/constructors.ts +14 -0
- package/_src/Semaphore/definition.ts +180 -0
- package/_src/Semaphore.ts +5 -159
- package/_src/Stream/api.ts +679 -679
- package/package.json +4 -4
- package/IO/api/sequenceT.d.ts +0 -26
- package/_cjs/IO/api/sequenceT.cjs +0 -18
- package/_cjs/IO/api/sequenceT.cjs.map +0 -1
- package/_mjs/IO/api/sequenceT.mjs +0 -10
- package/_mjs/IO/api/sequenceT.mjs.map +0 -1
- package/_src/IO/api/sequenceT.ts +0 -16
package/Cached/api.d.ts
CHANGED
@@ -8,7 +8,7 @@ import { Exit } from "@fncts/base/data/Exit/definition";
|
|
8
8
|
* @tsplus static fncts.io.CachedOps auto
|
9
9
|
* @tsplus location "@fncts/io/Cached/api"
|
10
10
|
*/
|
11
|
-
export declare function auto<R, Error, Resource>(acquire: IO<R, Error, Resource>, policy: Schedule<
|
11
|
+
export declare function auto<R, Error, Resource, R2, E2, O>(acquire: IO<R, Error, Resource>, policy: Schedule<R2, E2, O>, __tsplusTrace?: string): IO<R | R2 | Scope, never, Cached<Error, Resource>>;
|
12
12
|
/**
|
13
13
|
* @tsplus getter fncts.io.Cached get
|
14
14
|
* @tsplus location "@fncts/io/Cached/api"
|
package/Channel/api.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Lazy } from "@fncts/base/data/function/definition";
|
2
|
-
import { Environment } from "@fncts/base/data/Environment/definition";
|
3
1
|
import { IO, URIO } from "@fncts/io/IO/definition";
|
4
2
|
import { Exit } from "@fncts/base/data/Exit/definition";
|
3
|
+
import { Lazy } from "@fncts/base/data/function/definition";
|
4
|
+
import { Environment } from "@fncts/base/data/Environment/definition";
|
5
5
|
import { Predicate } from "@fncts/base/data/Predicate/definition";
|
6
6
|
import { Ref } from "@fncts/io/Ref/definition";
|
7
7
|
import { Conc, ConcBuilder } from "@fncts/base/collection/immutable/Conc";
|
@@ -19,46 +19,46 @@ import { ChildExecutorDecision } from "@fncts/io/Channel/ChildExecutorDecision";
|
|
19
19
|
import { Channel } from "@fncts/io/Channel/definition";
|
20
20
|
import { UpstreamPullStrategy } from "@fncts/io/Channel/UpstreamPullStrategy";
|
21
21
|
/**
|
22
|
-
*
|
23
|
-
* is the specified constant value.
|
24
|
-
*
|
25
|
-
* This method produces the same result as mapping this channel to the specified constant value.
|
26
|
-
* @tsplus pipeable fncts.io.Channel as
|
22
|
+
* @tsplus static fncts.io.ChannelOps acquireReleaseExitWith
|
27
23
|
* @tsplus location "@fncts/io/Channel/api"
|
28
24
|
*/
|
29
|
-
export declare function
|
25
|
+
export declare function acquireReleaseExitWith<Env, InErr, InElem, InDone, OutErr, OutElem1, OutDone, Acquired>(acquire: IO<Env, OutErr, Acquired>, use: (a: Acquired) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem1, OutDone>, release: (a: Acquired, exit: Exit<OutErr, OutDone>) => URIO<Env, any>): Channel<Env, InErr, InElem, InDone, OutErr, OutElem1, OutDone>;
|
30
26
|
/**
|
31
|
-
*
|
27
|
+
* Construct a resource Channel with Acquire / Release
|
28
|
+
* @tsplus static fncts.io.ChannelOps acquireReleaseOutExitWith
|
32
29
|
* @tsplus location "@fncts/io/Channel/api"
|
33
30
|
*/
|
34
|
-
export declare function
|
31
|
+
export declare function acquireReleaseOutExitWith<R, R2, E, Z>(self: IO<R, E, Z>, release: (z: Z, e: Exit<unknown, unknown>) => URIO<R2, unknown>): Channel<R | R2, unknown, unknown, unknown, E, Z, void>;
|
35
32
|
/**
|
36
|
-
*
|
33
|
+
* Construct a resource Channel with Acquire / Release
|
34
|
+
* @tsplus static fncts.io.ChannelOps acquireReleaseOutWith
|
37
35
|
* @tsplus location "@fncts/io/Channel/api"
|
38
36
|
*/
|
39
|
-
export declare function
|
37
|
+
export declare function acquireReleaseOutWith<Env, OutErr, Acquired, Z>(acquire: IO<Env, OutErr, Acquired>, release: (a: Acquired) => URIO<Env, Z>): Channel<Env, unknown, unknown, unknown, OutErr, Acquired, void>;
|
40
38
|
/**
|
41
39
|
* @tsplus static fncts.io.ChannelOps acquireReleaseWith
|
42
40
|
* @tsplus location "@fncts/io/Channel/api"
|
43
41
|
*/
|
44
42
|
export declare function acquireReleaseWith<Env, InErr, InElem, InDone, OutErr, OutElem1, OutDone, Acquired>(acquire: IO<Env, OutErr, Acquired>, use: (a: Acquired) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem1, OutDone>, release: (a: Acquired) => URIO<Env, any>): Channel<Env, InErr, InElem, InDone, OutErr, OutElem1, OutDone>;
|
45
43
|
/**
|
46
|
-
*
|
44
|
+
* Returns a new channel that is the same as this one, except the terminal value of the channel
|
45
|
+
* is the specified constant value.
|
46
|
+
*
|
47
|
+
* This method produces the same result as mapping this channel to the specified constant value.
|
48
|
+
* @tsplus pipeable fncts.io.Channel as
|
47
49
|
* @tsplus location "@fncts/io/Channel/api"
|
48
50
|
*/
|
49
|
-
export declare function
|
51
|
+
export declare function as_<OutDone2>(z2: Lazy<OutDone2>): <Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone2>;
|
50
52
|
/**
|
51
|
-
*
|
52
|
-
* @tsplus static fncts.io.ChannelOps acquireReleaseOutWith
|
53
|
+
* @tsplus static fncts.io.ChannelOps ask
|
53
54
|
* @tsplus location "@fncts/io/Channel/api"
|
54
55
|
*/
|
55
|
-
export declare function
|
56
|
+
export declare function ask<Env>(): Channel<Env, unknown, unknown, unknown, never, never, Environment<Env>>;
|
56
57
|
/**
|
57
|
-
*
|
58
|
-
* @tsplus static fncts.io.ChannelOps acquireReleaseOutExitWith
|
58
|
+
* @tsplus getter fncts.io.Channel asUnit
|
59
59
|
* @tsplus location "@fncts/io/Channel/api"
|
60
60
|
*/
|
61
|
-
export declare function
|
61
|
+
export declare function asUnit<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>): Channel<Env, InErr, InElem, InDone, OutErr, OutElem, void>;
|
62
62
|
/**
|
63
63
|
* Creates a channel backed by a buffer. When the buffer is empty, the channel will simply
|
64
64
|
* passthrough its input as output. However, when the buffer is non-empty, the value inside
|
@@ -98,6 +98,20 @@ export declare function collectElements<Env, InErr, InElem, InDone, OutErr, OutE
|
|
98
98
|
* @tsplus location "@fncts/io/Channel/api"
|
99
99
|
*/
|
100
100
|
export declare function concatAll<Env, InErr, InElem, InDone, OutErr, OutElem>(channels: Channel<Env, InErr, InElem, InDone, OutErr, Channel<Env, InErr, InElem, InDone, OutErr, OutElem, any>, any>): Channel<Env, InErr, InElem, InDone, OutErr, OutElem, any>;
|
101
|
+
/**
|
102
|
+
* Concat sequentially a channel of channels
|
103
|
+
* @tsplus pipeable fncts.io.Channel concatAllWith
|
104
|
+
* @tsplus location "@fncts/io/Channel/api"
|
105
|
+
*/
|
106
|
+
export declare function concatAllWith<OutDone, OutDone2, OutDone3>(f: (o: OutDone, o1: OutDone) => OutDone, g: (o: OutDone, o2: OutDone2) => OutDone3): <Env, InErr, InElem, InDone, OutErr, OutElem, Env2, InErr2, InElem2, InDone2, OutErr2>(channels: Channel<Env, InErr, InElem, InDone, OutErr, Channel<Env2, InErr2, InElem2, InDone2, OutErr2, OutElem, OutDone>, OutDone2>) => Channel<Env | Env2, InErr & InErr2, InElem & InElem2, InDone & InDone2, OutErr | OutErr2, OutElem, OutDone3>;
|
107
|
+
/**
|
108
|
+
* Returns a new channel whose outputs are fed to the specified factory function, which creates
|
109
|
+
* new channels in response. These new channels are sequentially concatenated together, and all
|
110
|
+
* their outputs appear as outputs of the newly returned channel.
|
111
|
+
* @tsplus pipeable fncts.io.Channel concatMap
|
112
|
+
* @tsplus location "@fncts/io/Channel/api"
|
113
|
+
*/
|
114
|
+
export declare function concatMap<OutElem, OutElem2, OutDone, Env2, InErr2, InElem2, InDone2, OutErr2>(f: (o: OutElem) => Channel<Env2, InErr2, InElem2, InDone2, OutErr2, OutElem2, OutDone>): <Env, InErr, InElem, InDone, OutErr, OutDone2>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone2>) => Channel<Env | Env2, InErr & InErr2, InElem & InElem2, InDone & InDone2, OutErr | OutErr2, OutElem2, unknown>;
|
101
115
|
/**
|
102
116
|
* Returns a new channel whose outputs are fed to the specified factory function, which creates
|
103
117
|
* new channels in response. These new channels are sequentially concatenated together, and all
|
@@ -119,39 +133,30 @@ export declare function concatMapWith<OutElem, OutElem2, OutDone, OutDone2, OutD
|
|
119
133
|
*/
|
120
134
|
export declare function concatMapWithCustom<OutElem, OutElem2, OutDone, OutDone2, OutDone3, Env2, InErr2, InElem2, InDone2, OutErr2>(f: (o: OutElem) => Channel<Env2, InErr2, InElem2, InDone2, OutErr2, OutElem2, OutDone>, g: (o: OutDone, o1: OutDone) => OutDone, h: (o: OutDone, o2: OutDone2) => OutDone3, onPull: (_: UpstreamPullRequest<OutElem>) => UpstreamPullStrategy<OutElem2>, onEmit: (_: OutElem2) => ChildExecutorDecision): <Env, InErr, InElem, InDone, OutErr>(channel: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone2>) => Channel<Env | Env2, InErr & InErr2, InElem & InElem2, InDone & InDone2, OutErr | OutErr2, OutElem2, OutDone3>;
|
121
135
|
/**
|
122
|
-
*
|
123
|
-
* @tsplus pipeable fncts.io.Channel concatAllWith
|
124
|
-
* @tsplus location "@fncts/io/Channel/api"
|
125
|
-
*/
|
126
|
-
export declare function concatAllWith<OutDone, OutDone2, OutDone3>(f: (o: OutDone, o1: OutDone) => OutDone, g: (o: OutDone, o2: OutDone2) => OutDone3): <Env, InErr, InElem, InDone, OutErr, OutElem, Env2, InErr2, InElem2, InDone2, OutErr2>(channels: Channel<Env, InErr, InElem, InDone, OutErr, Channel<Env2, InErr2, InElem2, InDone2, OutErr2, OutElem, OutDone>, OutDone2>) => Channel<Env | Env2, InErr & InErr2, InElem & InElem2, InDone & InDone2, OutErr | OutErr2, OutElem, OutDone3>;
|
127
|
-
/**
|
128
|
-
* Returns a new channel whose outputs are fed to the specified factory function, which creates
|
129
|
-
* new channels in response. These new channels are sequentially concatenated together, and all
|
130
|
-
* their outputs appear as outputs of the newly returned channel.
|
131
|
-
* @tsplus pipeable fncts.io.Channel concatMap
|
136
|
+
* @tsplus pipeable fncts.io.Channel contramap
|
132
137
|
* @tsplus location "@fncts/io/Channel/api"
|
133
138
|
*/
|
134
|
-
export declare function
|
139
|
+
export declare function contramap<InDone0, InDone>(f: (a: InDone0) => InDone): <Env, InErr, InElem, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env, InErr, InElem, InDone0, OutErr, OutElem, OutDone>;
|
135
140
|
/**
|
136
|
-
* @tsplus pipeable fncts.io.Channel
|
141
|
+
* @tsplus pipeable fncts.io.Channel contramapEnvironment
|
137
142
|
* @tsplus location "@fncts/io/Channel/api"
|
138
143
|
*/
|
139
|
-
export declare function
|
144
|
+
export declare function contramapEnvironment<Env, Env0>(f: (env0: Environment<Env0>) => Environment<Env>): <InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env0, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
|
140
145
|
/**
|
141
146
|
* @tsplus pipeable fncts.io.Channel contramapIn
|
142
147
|
* @tsplus location "@fncts/io/Channel/api"
|
143
148
|
*/
|
144
149
|
export declare function contramapIn<InElem0, InElem>(f: (a: InElem0) => InElem): <Env, InErr, InDone, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env, InErr, InElem0, InDone, OutErr, OutElem, OutDone>;
|
145
150
|
/**
|
146
|
-
* @tsplus pipeable fncts.io.Channel
|
151
|
+
* @tsplus pipeable fncts.io.Channel contramapInIO
|
147
152
|
* @tsplus location "@fncts/io/Channel/api"
|
148
153
|
*/
|
149
|
-
export declare function
|
154
|
+
export declare function contramapInIO<Env1, InErr, InElem0, InElem>(f: (a: InElem0) => IO<Env1, InErr, InElem>): <Env, InDone, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env1 | Env, InErr, InElem0, InDone, OutErr, OutElem, OutDone>;
|
150
155
|
/**
|
151
|
-
* @tsplus pipeable fncts.io.Channel
|
156
|
+
* @tsplus pipeable fncts.io.Channel contramapIO
|
152
157
|
* @tsplus location "@fncts/io/Channel/api"
|
153
158
|
*/
|
154
|
-
export declare function
|
159
|
+
export declare function contramapIO<Env1, InErr, InDone0, InDone>(f: (i: InDone0) => IO<Env1, InErr, InDone>): <Env, InElem, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env1 | Env, InErr, InElem, InDone0, OutErr, OutElem, OutDone>;
|
155
160
|
/**
|
156
161
|
* @tsplus static fncts.io.ChannelOps defer
|
157
162
|
* @tsplus location "@fncts/io/Channel/api"
|
@@ -175,6 +180,12 @@ export declare function doneCollect<Env, InErr, InElem, InDone, OutErr, OutElem,
|
|
175
180
|
* @tsplus location "@fncts/io/Channel/api"
|
176
181
|
*/
|
177
182
|
export declare function drain<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>(channel: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>): Channel<Env, InErr, InElem, InDone, OutErr, never, OutDone>;
|
183
|
+
/**
|
184
|
+
* Embed inputs from continuos pulling of a producer
|
185
|
+
* @tsplus pipeable fncts.io.Channel embedInput
|
186
|
+
* @tsplus location "@fncts/io/Channel/api"
|
187
|
+
*/
|
188
|
+
export declare function embedInput<InErr, InElem, InDone>(input: AsyncInputProducer<InErr, InElem, InDone>): <Env, OutErr, OutElem, OutDone>(self: Channel<Env, unknown, unknown, unknown, OutErr, OutElem, OutDone>) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
|
178
189
|
/**
|
179
190
|
* Returns a new channel that collects the output and terminal value of this channel, which it
|
180
191
|
* then writes as output of the returned channel.
|
@@ -194,12 +205,6 @@ export declare function ensuring<Env1, Z>(finalizer: URIO<Env1, Z>): <Env, InErr
|
|
194
205
|
* @tsplus location "@fncts/io/Channel/api"
|
195
206
|
*/
|
196
207
|
export declare function ensuringWith<Env2, OutErr, OutDone>(finalizer: (e: Exit<OutErr, OutDone>) => IO<Env2, never, unknown>): <Env, InErr, InElem, InDone, OutElem>(channel: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env | Env2, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
|
197
|
-
/**
|
198
|
-
* Embed inputs from continuos pulling of a producer
|
199
|
-
* @tsplus pipeable fncts.io.Channel embedInput
|
200
|
-
* @tsplus location "@fncts/io/Channel/api"
|
201
|
-
*/
|
202
|
-
export declare function embedInput<InErr, InElem, InDone>(input: AsyncInputProducer<InErr, InElem, InDone>): <Env, OutErr, OutElem, OutDone>(self: Channel<Env, unknown, unknown, unknown, OutErr, OutElem, OutDone>) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
|
203
208
|
/**
|
204
209
|
* Halt a channel with the specified error
|
205
210
|
* @tsplus static fncts.io.ChannelOps fail
|
@@ -246,29 +251,17 @@ export declare function fromOption<A>(option: Lazy<Maybe<A>>): Channel<never, un
|
|
246
251
|
*/
|
247
252
|
export declare function fromQueue<Err, Elem, Done>(queue: Queue.Dequeue<Either<Exit<Err, Done>, Elem>>): Channel<never, unknown, unknown, unknown, Err, Elem, Done>;
|
248
253
|
/**
|
249
|
-
*
|
250
|
-
*
|
251
|
-
* @tsplus pipeable fncts.io.Channel provideEnvironment
|
252
|
-
* @tsplus location "@fncts/io/Channel/api"
|
253
|
-
*/
|
254
|
-
export declare function provideEnvironment<Env>(env: Lazy<Environment<Env>>): <InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<never, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
|
255
|
-
/**
|
256
|
-
* @tsplus pipeable fncts.io.Channel contramapEnvironment
|
254
|
+
* Halt a channel with the specified exception
|
255
|
+
* @tsplus static fncts.io.ChannelOps halt
|
257
256
|
* @tsplus location "@fncts/io/Channel/api"
|
258
257
|
*/
|
259
|
-
export declare function
|
258
|
+
export declare function halt(defect: Lazy<unknown>): Channel<never, unknown, unknown, unknown, never, never, never>;
|
260
259
|
/**
|
261
260
|
* Halt a channel with the specified exception
|
262
261
|
* @tsplus static fncts.io.ChannelOps haltNow
|
263
262
|
* @tsplus location "@fncts/io/Channel/api"
|
264
263
|
*/
|
265
264
|
export declare function haltNow(defect: unknown): Channel<never, unknown, unknown, unknown, never, never, never>;
|
266
|
-
/**
|
267
|
-
* Halt a channel with the specified exception
|
268
|
-
* @tsplus static fncts.io.ChannelOps halt
|
269
|
-
* @tsplus location "@fncts/io/Channel/api"
|
270
|
-
*/
|
271
|
-
export declare function halt(defect: Lazy<unknown>): Channel<never, unknown, unknown, unknown, never, never, never>;
|
272
265
|
/**
|
273
266
|
* @tsplus static fncts.io.ChannelOps id
|
274
267
|
* @tsplus location "@fncts/io/Channel/api"
|
@@ -279,12 +272,6 @@ export declare function id<Err, Elem, Done>(): Channel<never, Err, Elem, Done, E
|
|
279
272
|
* @tsplus location "@fncts/io/Channel/api"
|
280
273
|
*/
|
281
274
|
export declare function interrupt(fiberId: FiberId): Channel<never, unknown, unknown, unknown, never, never, never>;
|
282
|
-
/**
|
283
|
-
* Use a managed to emit an output element
|
284
|
-
* @tsplus static fncts.io.ChannelOps scoped
|
285
|
-
* @tsplus location "@fncts/io/Channel/api"
|
286
|
-
*/
|
287
|
-
export declare function scoped<R, E, A>(io: Lazy<IO<R, E, A>>): Channel<Exclude<R, Scope>, unknown, unknown, unknown, E, A, unknown>;
|
288
275
|
/**
|
289
276
|
* Returns a new channel, which is the same as this one, except the failure value of the returned
|
290
277
|
* channel is created by applying the specified function to the failure value of this channel.
|
@@ -312,6 +299,19 @@ export declare function mapIO<Env1, OutErr1, OutDone, OutDone1>(f: (o: OutDone)
|
|
312
299
|
* @tsplus location "@fncts/io/Channel/api"
|
313
300
|
*/
|
314
301
|
export declare function mapOut<OutElem, OutElem2>(f: (o: OutElem) => OutElem2): <Env, InErr, InElem, InDone, OutErr, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem2, OutDone>;
|
302
|
+
/**
|
303
|
+
* Provides the channel with its required environment, which eliminates
|
304
|
+
* its dependency on `Env`.
|
305
|
+
* @tsplus pipeable fncts.io.Channel provideEnvironment
|
306
|
+
* @tsplus location "@fncts/io/Channel/api"
|
307
|
+
*/
|
308
|
+
export declare function provideEnvironment<Env>(env: Lazy<Environment<Env>>): <InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<never, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
|
309
|
+
/**
|
310
|
+
* Use a managed to emit an output element
|
311
|
+
* @tsplus static fncts.io.ChannelOps scoped
|
312
|
+
* @tsplus location "@fncts/io/Channel/api"
|
313
|
+
*/
|
314
|
+
export declare function scoped<R, E, A>(io: Lazy<IO<R, E, A>>): Channel<Exclude<R, Scope>, unknown, unknown, unknown, E, A, unknown>;
|
315
315
|
/**
|
316
316
|
* @tsplus pipeable fncts.io.Channel mapOutIO
|
317
317
|
* @tsplus location "@fncts/io/Channel/api"
|
@@ -370,18 +370,18 @@ export declare function read<In>(): Channel<never, unknown, In, unknown, Nothing
|
|
370
370
|
* @tsplus location "@fncts/io/Channel/api"
|
371
371
|
*/
|
372
372
|
export declare function readOrFail<In, E>(e: E): Channel<never, unknown, In, unknown, E, never, In>;
|
373
|
-
/**
|
374
|
-
* Reads an input and continue exposing both full error cause and completion
|
375
|
-
* @tsplus static fncts.io.ChannelOps readWithCause
|
376
|
-
* @tsplus location "@fncts/io/Channel/api"
|
377
|
-
*/
|
378
|
-
export declare function readWithCause<Env, Env1, Env2, InErr, InElem, InDone, OutErr, OutErr1, OutErr2, OutElem, OutElem1, OutElem2, OutDone, OutDone1, OutDone2>(inp: (i: InElem) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>, halt: (e: Cause<InErr>) => Channel<Env1, InErr, InElem, InDone, OutErr1, OutElem1, OutDone1>, done: (d: InDone) => Channel<Env2, InErr, InElem, InDone, OutErr2, OutElem2, OutDone2>): Channel<Env | Env1 | Env2, InErr, InElem, InDone, OutErr | OutErr1 | OutErr2, OutElem | OutElem1 | OutElem2, OutDone | OutDone1 | OutDone2>;
|
379
373
|
/**
|
380
374
|
* Reads an input and continue exposing both error and completion
|
381
375
|
* @tsplus static fncts.io.ChannelOps readWith
|
382
376
|
* @tsplus location "@fncts/io/Channel/api"
|
383
377
|
*/
|
384
378
|
export declare function readWith<Env, Env1, Env2, InErr, InElem, InDone, OutErr, OutErr1, OutErr2, OutElem, OutElem1, OutElem2, OutDone, OutDone1, OutDone2>(inp: (i: InElem) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>, error: (e: InErr) => Channel<Env1, InErr, InElem, InDone, OutErr1, OutElem1, OutDone1>, done: (d: InDone) => Channel<Env2, InErr, InElem, InDone, OutErr2, OutElem2, OutDone2>): Channel<Env | Env1 | Env2, InErr, InElem, InDone, OutErr | OutErr1 | OutErr2, OutElem | OutElem1 | OutElem2, OutDone | OutDone1 | OutDone2>;
|
379
|
+
/**
|
380
|
+
* Reads an input and continue exposing both full error cause and completion
|
381
|
+
* @tsplus static fncts.io.ChannelOps readWithCause
|
382
|
+
* @tsplus location "@fncts/io/Channel/api"
|
383
|
+
*/
|
384
|
+
export declare function readWithCause<Env, Env1, Env2, InErr, InElem, InDone, OutErr, OutErr1, OutErr2, OutElem, OutElem1, OutElem2, OutDone, OutDone1, OutDone2>(inp: (i: InElem) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>, halt: (e: Cause<InErr>) => Channel<Env1, InErr, InElem, InDone, OutErr1, OutElem1, OutDone1>, done: (d: InDone) => Channel<Env2, InErr, InElem, InDone, OutErr2, OutElem2, OutDone2>): Channel<Env | Env1 | Env2, InErr, InElem, InDone, OutErr | OutErr1 | OutErr2, OutElem | OutElem1 | OutElem2, OutDone | OutDone1 | OutDone2>;
|
385
385
|
/**
|
386
386
|
* Repeats this channel forever
|
387
387
|
* @tsplus getter fncts.io.Channel repeated
|
@@ -421,24 +421,24 @@ export declare function writeNow<OutElem>(out: OutElem): Channel<never, unknown,
|
|
421
421
|
*/
|
422
422
|
export declare const unit: Channel<never, unknown, unknown, unknown, never, never, void>;
|
423
423
|
/**
|
424
|
-
*
|
425
|
-
* @tsplus static fncts.io.ChannelOps unwrap
|
424
|
+
* @tsplus static fncts.io.ChannelOps fromHubScoped
|
426
425
|
* @tsplus location "@fncts/io/Channel/api"
|
427
426
|
*/
|
428
|
-
export declare function
|
427
|
+
export declare function fromHubScoped<Err, Done, Elem>(hub: Lazy<Hub<Either<Exit<Err, Done>, Elem>>>): IO<Scope, never, Channel<never, unknown, unknown, unknown, Err, Elem, Done>>;
|
429
428
|
/**
|
430
|
-
*
|
431
|
-
* @tsplus static fncts.io.ChannelOps unwrapScoped
|
429
|
+
* @tsplus static fncts.io.ChannelOps toHub
|
432
430
|
* @tsplus location "@fncts/io/Channel/api"
|
433
431
|
*/
|
434
|
-
export declare function
|
432
|
+
export declare function toHub<Err, Done, Elem>(hub: Lazy<Hub<Either<Exit<Err, Done>, Elem>>>): Channel<never, Err, Elem, Done, never, never, unknown>;
|
435
433
|
/**
|
436
|
-
*
|
434
|
+
* Makes a channel from an effect that returns a channel in case of success
|
435
|
+
* @tsplus static fncts.io.ChannelOps unwrap
|
437
436
|
* @tsplus location "@fncts/io/Channel/api"
|
438
437
|
*/
|
439
|
-
export declare function
|
438
|
+
export declare function unwrap<R, E, Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Lazy<IO<R, E, Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>>>): Channel<R | Env, InErr, InElem, InDone, E | OutErr, OutElem, OutDone>;
|
440
439
|
/**
|
441
|
-
*
|
440
|
+
* Makes a channel from a managed that returns a channel in case of success
|
441
|
+
* @tsplus static fncts.io.ChannelOps unwrapScoped
|
442
442
|
* @tsplus location "@fncts/io/Channel/api"
|
443
443
|
*/
|
444
|
-
export declare function
|
444
|
+
export declare function unwrapScoped<R, E, Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Lazy<IO<R, E, Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>>>): Channel<Exclude<R, Scope> | Env, InErr, InElem, InDone, E | OutErr, OutElem, OutDone>;
|
package/Channel/core-api.d.ts
CHANGED
@@ -1,18 +1,13 @@
|
|
1
|
+
import { Channel } from "@fncts/io/Channel";
|
1
2
|
import { Lazy } from "@fncts/base/data/function/definition";
|
2
3
|
import { Cause } from "@fncts/base/data/Cause/definition";
|
3
|
-
import { Channel } from "@fncts/io/Channel";
|
4
4
|
/**
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* @tsplus
|
8
|
-
*/
|
9
|
-
export declare function failCause<E>(result: Lazy<Cause<E>>): Channel<never, unknown, unknown, unknown, E, never, never>;
|
10
|
-
/**
|
11
|
-
* Halt a channel with the specified cause
|
12
|
-
* @tsplus static fncts.io.ChannelOps failCauseNow
|
5
|
+
* Returns a new channel that is the sequential composition of this channel and the specified
|
6
|
+
* channel. The returned channel terminates with a tuple of the terminal values of both channels.
|
7
|
+
* @tsplus pipeable fncts.io.Channel cross
|
13
8
|
* @tsplus location "@fncts/io/Channel/core-api"
|
14
9
|
*/
|
15
|
-
export declare function
|
10
|
+
export declare function cross<Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1>(that: Channel<Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone1>): <Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env | Env1, InErr & InErr1, InElem & InElem1, InDone & InDone1, OutErr | OutErr1, OutElem | OutElem1, readonly [OutDone, OutDone1]>;
|
16
11
|
/**
|
17
12
|
* End a channel with the specified result
|
18
13
|
* @tsplus static fncts.io.ChannelOps end
|
@@ -26,17 +21,26 @@ export declare function end<OutDone>(result: Lazy<OutDone>): Channel<never, unkn
|
|
26
21
|
*/
|
27
22
|
export declare function endNow<OutDone>(result: OutDone): Channel<never, unknown, unknown, unknown, never, never, OutDone>;
|
28
23
|
/**
|
29
|
-
*
|
30
|
-
* @tsplus static fncts.io.ChannelOps
|
24
|
+
* Halt a channel with the specified cause
|
25
|
+
* @tsplus static fncts.io.ChannelOps failCause
|
31
26
|
* @tsplus location "@fncts/io/Channel/core-api"
|
32
27
|
*/
|
33
|
-
export declare function
|
28
|
+
export declare function failCause<E>(result: Lazy<Cause<E>>): Channel<never, unknown, unknown, unknown, E, never, never>;
|
34
29
|
/**
|
35
|
-
*
|
36
|
-
* @tsplus static fncts.io.ChannelOps
|
30
|
+
* Halt a channel with the specified cause
|
31
|
+
* @tsplus static fncts.io.ChannelOps failCauseNow
|
37
32
|
* @tsplus location "@fncts/io/Channel/core-api"
|
38
33
|
*/
|
39
|
-
export declare function
|
34
|
+
export declare function failCauseNow<E>(result: Cause<E>): Channel<never, unknown, unknown, unknown, E, never, never>;
|
35
|
+
/**
|
36
|
+
* Returns a new channel, which sequentially combines this channel, together with the provided
|
37
|
+
* factory function, which creates a second channel based on the terminal value of this channel.
|
38
|
+
* The result is a channel that will first perform the functions of this channel, before
|
39
|
+
* performing the functions of the created channel (including yielding its terminal value).
|
40
|
+
* @tsplus pipeable fncts.io.Channel flatMap
|
41
|
+
* @tsplus location "@fncts/io/Channel/core-api"
|
42
|
+
*/
|
43
|
+
export declare function flatMap<OutDone, Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2>(f: (d: OutDone) => Channel<Env1, InErr1, InElem1, InDone1, OutErr1, OutElem1, OutDone2>): <Env, InErr, InElem, InDone, OutErr, OutElem>(channel: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env | Env1, InErr & InErr1, InElem & InElem1, InDone & InDone1, OutErr | OutErr1, OutElem | OutElem1, OutDone2>;
|
40
44
|
/**
|
41
45
|
* Returns a new channel, which is the same as this one, except the terminal value of the
|
42
46
|
* returned channel is created by applying the specified function to the terminal value of this
|
@@ -46,21 +50,17 @@ export declare function succeedNow<Z>(z: Z): Channel<never, unknown, unknown, un
|
|
46
50
|
*/
|
47
51
|
export declare function map<OutDone, OutDone2>(f: (out: OutDone) => OutDone2): <Env, InErr, InElem, InDone, OutErr, OutElem>(self: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>) => Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone2>;
|
48
52
|
/**
|
49
|
-
*
|
50
|
-
*
|
51
|
-
* The result is a channel that will first perform the functions of this channel, before
|
52
|
-
* performing the functions of the created channel (including yielding its terminal value).
|
53
|
-
* @tsplus pipeable fncts.io.Channel flatMap
|
53
|
+
* End a channel with the specified result
|
54
|
+
* @tsplus static fncts.io.ChannelOps succeed
|
54
55
|
* @tsplus location "@fncts/io/Channel/core-api"
|
55
56
|
*/
|
56
|
-
export declare function
|
57
|
+
export declare function succeed<Z>(z: Lazy<Z>): Channel<never, unknown, unknown, unknown, never, never, Z>;
|
57
58
|
/**
|
58
|
-
*
|
59
|
-
*
|
60
|
-
* @tsplus pipeable fncts.io.Channel cross
|
59
|
+
* End a channel with the specified result
|
60
|
+
* @tsplus static fncts.io.ChannelOps succeedNow
|
61
61
|
* @tsplus location "@fncts/io/Channel/core-api"
|
62
62
|
*/
|
63
|
-
export declare function
|
63
|
+
export declare function succeedNow<Z>(z: Z): Channel<never, unknown, unknown, unknown, never, never, Z>;
|
64
64
|
/**
|
65
65
|
* Returns a new channel that is the sequential composition of this channel and the specified
|
66
66
|
* channel. The returned channel terminates with the terminal value of this channel.
|
package/Console/definition.d.ts
CHANGED
@@ -10,6 +10,7 @@ export declare abstract class Console {
|
|
10
10
|
}
|
11
11
|
/**
|
12
12
|
* @tsplus static fncts.io.ConsoleOps Tag
|
13
|
+
* @tsplus implicit
|
13
14
|
* @tsplus location "@fncts/io/Console/definition"
|
14
15
|
*/
|
15
16
|
export declare const ConsoleTag: import("@fncts/base/data/Tag").Tag<Console, Console>;
|
package/CountdownLatch.d.ts
CHANGED
package/Fiber/FiberMessage.d.ts
CHANGED
@@ -1,16 +1,12 @@
|
|
1
1
|
import { Cause } from "@fncts/base/data/Cause/definition";
|
2
|
-
import { Trace } from "@fncts/base/data/Trace/definition";
|
3
2
|
import { IO } from "@fncts/io/IO/definition";
|
4
|
-
import type { FiberStatus } from "../FiberStatus.js";
|
5
3
|
import type { FiberRuntime } from "./FiberRuntime.js";
|
6
4
|
export declare const enum FiberMessageTag {
|
7
5
|
InterruptSignal = 0,
|
8
|
-
|
9
|
-
|
10
|
-
Resume = 3,
|
11
|
-
YieldNow = 4
|
6
|
+
Stateful = 1,
|
7
|
+
Resume = 2
|
12
8
|
}
|
13
|
-
export type FiberMessage = InterruptSignal |
|
9
|
+
export type FiberMessage = InterruptSignal | Stateful | Resume;
|
14
10
|
/**
|
15
11
|
* @tsplus type fncts.io.FiberMessageOps
|
16
12
|
*/
|
@@ -27,26 +23,16 @@ export declare class InterruptSignal {
|
|
27
23
|
* @tsplus location "@fncts/io/Fiber/FiberMessage"
|
28
24
|
*/
|
29
25
|
export declare function interruptSignal(cause: Cause<never>): FiberMessage;
|
30
|
-
export declare class GenStackTrace {
|
31
|
-
readonly onTrace: (trace: Trace) => void;
|
32
|
-
readonly _tag = FiberMessageTag.GenStackTrace;
|
33
|
-
constructor(onTrace: (trace: Trace) => void);
|
34
|
-
}
|
35
|
-
/**
|
36
|
-
* @tsplus static fncts.io.FiberMessageOps GenStackTrace
|
37
|
-
* @tsplus location "@fncts/io/Fiber/FiberMessage"
|
38
|
-
*/
|
39
|
-
export declare function genStackTrace(onTrace: (trace: Trace) => void): FiberMessage;
|
40
26
|
export declare class Stateful {
|
41
|
-
readonly onFiber: (fiber: FiberRuntime<any, any
|
27
|
+
readonly onFiber: (fiber: FiberRuntime<any, any>) => void;
|
42
28
|
readonly _tag = FiberMessageTag.Stateful;
|
43
|
-
constructor(onFiber: (fiber: FiberRuntime<any, any
|
29
|
+
constructor(onFiber: (fiber: FiberRuntime<any, any>) => void);
|
44
30
|
}
|
45
31
|
/**
|
46
32
|
* @tsplus static fncts.io.FiberMessageOps Stateful
|
47
33
|
* @tsplus location "@fncts/io/Fiber/FiberMessage"
|
48
34
|
*/
|
49
|
-
export declare function stateful(onFiber: (fiber: FiberRuntime<any, any
|
35
|
+
export declare function stateful(onFiber: (fiber: FiberRuntime<any, any>) => void): FiberMessage;
|
50
36
|
export declare class Resume {
|
51
37
|
readonly cont: IO<any, any, any>;
|
52
38
|
readonly _tag = FiberMessageTag.Resume;
|
@@ -57,11 +43,3 @@ export declare class Resume {
|
|
57
43
|
* @tsplus location "@fncts/io/Fiber/FiberMessage"
|
58
44
|
*/
|
59
45
|
export declare function resume(cont: IO<any, any, any>): FiberMessage;
|
60
|
-
export interface YieldNow {
|
61
|
-
readonly _tag: FiberMessageTag.YieldNow;
|
62
|
-
}
|
63
|
-
/**
|
64
|
-
* @tsplus static fncts.io.FiberMessageOps YieldNow
|
65
|
-
* @tsplus location "@fncts/io/Fiber/FiberMessage"
|
66
|
-
*/
|
67
|
-
export declare const yieldNow: FiberMessage;
|