@fncts/io 0.0.48 → 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/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/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/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/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/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/_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/Stream/api.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { Either } from "@fncts/base/data/Either/definition";
|
2
|
+
import { IO, UIO } from "@fncts/io/IO/definition";
|
3
|
+
import { Exit } from "@fncts/base/data/Exit/definition";
|
2
4
|
import { Sink } from "@fncts/io/Sink/definition";
|
3
5
|
import { Schedule } from "@fncts/io/Schedule/definition";
|
4
6
|
import { Maybe, Nothing } from "@fncts/base/data/Maybe/definition";
|
5
7
|
import { Channel } from "@fncts/io/Channel";
|
6
8
|
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
7
9
|
import { Cause } from "@fncts/base/data/Cause/definition";
|
8
|
-
import { IO, UIO } from "@fncts/io/IO/definition";
|
9
10
|
import { Fiber } from "@fncts/io/Fiber/definition";
|
10
11
|
import { Lazy } from "@fncts/base/data/function/definition";
|
11
|
-
import { Exit } from "@fncts/base/data/Exit/definition";
|
12
12
|
import { Scope } from "@fncts/io/Scope/definition";
|
13
13
|
import { Future } from "@fncts/io/Future";
|
14
14
|
import { Ref } from "@fncts/io/Ref/definition";
|
@@ -31,6 +31,20 @@ import { Take } from "./internal/Take.js";
|
|
31
31
|
* @tsplus location "@fncts/io/Stream/api"
|
32
32
|
*/
|
33
33
|
export declare function absolve<R, E, E2, A>(self: Stream<R, E, Either<E2, A>>, __tsplusTrace?: string): Stream<R, E | E2, A>;
|
34
|
+
/**
|
35
|
+
* Creates a stream from a single value that will get cleaned up after the
|
36
|
+
* stream is consumed
|
37
|
+
* @tsplus static fncts.io.StreamOps acquireRelease
|
38
|
+
* @tsplus location "@fncts/io/Stream/api"
|
39
|
+
*/
|
40
|
+
export declare function acquireRelease<R, E, A, R1>(acquire: IO<R, E, A>, release: (a: A) => IO<R1, never, unknown>, __tsplusTrace?: string): Stream<R | R1, E, A>;
|
41
|
+
/**
|
42
|
+
* Creates a stream from a single value that will get cleaned up after the
|
43
|
+
* stream is consumed
|
44
|
+
* @tsplus static fncts.io.StreamOps acquireReleaseExit
|
45
|
+
* @tsplus location "@fncts/io/Stream/api"
|
46
|
+
*/
|
47
|
+
export declare function acquireReleaseExit<R, E, A, R1>(acquire: IO<R, E, A>, release: (a: A, exit: Exit<any, any>) => IO<R1, never, unknown>, __tsplusTrace?: string): Stream<R | R1, E, A>;
|
34
48
|
/**
|
35
49
|
* Aggregates elements of this stream using the provided sink for as long
|
36
50
|
* as the downstream operators on the stream are busy.
|
@@ -68,32 +82,26 @@ export declare function aggregateAsyncWithin<R1, E1, A1, B, R2, C>(sink: Sink<R1
|
|
68
82
|
*/
|
69
83
|
export declare function aggregateAsyncWithinEither<R1, E1, A1, B, R2, C>(sink: Sink<R1, E1, A1, A1, B>, schedule: Schedule<R2, Maybe<B>, C>, __tsplusTrace?: string): <R, E, A extends A1>(stream: Stream<R, E, A>) => Stream<R | R1 | R2, E | E1, Either<C, B>>;
|
70
84
|
/**
|
71
|
-
*
|
72
|
-
*
|
73
|
-
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
74
|
-
* @tsplus pipeable fncts.io.Stream zipLeft
|
85
|
+
* Maps the success values of this stream to the specified constant value.
|
86
|
+
* @tsplus pipeable fncts.io.Stream as
|
75
87
|
* @tsplus location "@fncts/io/Stream/api"
|
76
88
|
*/
|
77
|
-
export declare function
|
89
|
+
export declare function as<B>(b: Lazy<B>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, B>;
|
78
90
|
/**
|
79
|
-
*
|
80
|
-
* but keeps only elements from the other stream.
|
81
|
-
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
82
|
-
* @tsplus pipeable fncts.io.Stream zipRight
|
91
|
+
* @tsplus static fncts.io.StreamOps async
|
83
92
|
* @tsplus location "@fncts/io/Stream/api"
|
84
93
|
*/
|
85
|
-
export declare function
|
94
|
+
export declare function async<R, E, A>(register: (resolve: (next: IO<R, Maybe<E>, Conc<A>>, offerCb?: (e: Exit<never, boolean>) => void) => void) => void, outputBuffer?: number, __tsplusTrace?: string): Stream<R, E, A>;
|
86
95
|
/**
|
87
|
-
*
|
88
|
-
* @tsplus pipeable fncts.io.Stream as
|
96
|
+
* @tsplus static fncts.io.StreamOps asyncInterrupt
|
89
97
|
* @tsplus location "@fncts/io/Stream/api"
|
90
98
|
*/
|
91
|
-
export declare function
|
99
|
+
export declare function asyncInterrupt<R, E, A>(register: (resolve: (next: IO<R, Maybe<E>, Conc<A>>, offerCb?: (e: Exit<never, boolean>) => void) => void) => Either<Canceler<R>, Stream<R, E, A>>, outputBuffer?: number, __tsplusTrace?: string): Stream<R, E, A>;
|
92
100
|
/**
|
93
|
-
* @tsplus static fncts.io.StreamOps
|
101
|
+
* @tsplus static fncts.io.StreamOps asyncIO
|
94
102
|
* @tsplus location "@fncts/io/Stream/api"
|
95
103
|
*/
|
96
|
-
export declare function
|
104
|
+
export declare function asyncIO<R, E, A, R1 = R, E1 = E>(register: (resolve: (next: IO<R, Maybe<E>, Conc<A>>, offerCb?: (e: Exit<never, boolean>) => void) => void) => IO<R1, E1, unknown>, outputBuffer?: number, __tsplusTrace?: string): Stream<R | R1, E | E1, A>;
|
97
105
|
/**
|
98
106
|
* Creates a stream from an asynchronous callback that can be called multiple times.
|
99
107
|
* The registration of the callback can possibly return the stream synchronously.
|
@@ -103,16 +111,6 @@ export declare function asyncInterrupt<R, E, A>(register: (resolve: (next: IO<R,
|
|
103
111
|
* @tsplus location "@fncts/io/Stream/api"
|
104
112
|
*/
|
105
113
|
export declare function asyncMaybe<R, E, A>(register: (resolve: (next: IO<R, Maybe<E>, Conc<A>>, offerCb?: (e: Exit<never, boolean>) => void) => void) => Maybe<Stream<R, E, A>>, outputBuffer?: number, __tsplusTrace?: string): Stream<R, E, A>;
|
106
|
-
/**
|
107
|
-
* @tsplus static fncts.io.StreamOps async
|
108
|
-
* @tsplus location "@fncts/io/Stream/api"
|
109
|
-
*/
|
110
|
-
export declare function async<R, E, A>(register: (resolve: (next: IO<R, Maybe<E>, Conc<A>>, offerCb?: (e: Exit<never, boolean>) => void) => void) => void, outputBuffer?: number, __tsplusTrace?: string): Stream<R, E, A>;
|
111
|
-
/**
|
112
|
-
* @tsplus static fncts.io.StreamOps asyncIO
|
113
|
-
* @tsplus location "@fncts/io/Stream/api"
|
114
|
-
*/
|
115
|
-
export declare function asyncIO<R, E, A, R1 = R, E1 = E>(register: (resolve: (next: IO<R, Maybe<E>, Conc<A>>, offerCb?: (e: Exit<never, boolean>) => void) => void) => IO<R1, E1, unknown>, outputBuffer?: number, __tsplusTrace?: string): Stream<R | R1, E | E1, A>;
|
116
114
|
/**
|
117
115
|
* Returns a stream whose failure and success channels have been mapped by
|
118
116
|
* the specified pair of functions, `f` and `g`.
|
@@ -120,20 +118,6 @@ export declare function asyncIO<R, E, A, R1 = R, E1 = E>(register: (resolve: (ne
|
|
120
118
|
* @tsplus location "@fncts/io/Stream/api"
|
121
119
|
*/
|
122
120
|
export declare function bimap<E, E1, A, A1>(f: (e: E) => E1, g: (a: A) => A1, __tsplusTrace?: string): <R>(stream: Stream<R, E, A>) => Stream<R, E1, A1>;
|
123
|
-
/**
|
124
|
-
* Creates a stream from a single value that will get cleaned up after the
|
125
|
-
* stream is consumed
|
126
|
-
* @tsplus static fncts.io.StreamOps acquireRelease
|
127
|
-
* @tsplus location "@fncts/io/Stream/api"
|
128
|
-
*/
|
129
|
-
export declare function acquireRelease<R, E, A, R1>(acquire: IO<R, E, A>, release: (a: A) => IO<R1, never, unknown>, __tsplusTrace?: string): Stream<R | R1, E, A>;
|
130
|
-
/**
|
131
|
-
* Creates a stream from a single value that will get cleaned up after the
|
132
|
-
* stream is consumed
|
133
|
-
* @tsplus static fncts.io.StreamOps acquireReleaseExit
|
134
|
-
* @tsplus location "@fncts/io/Stream/api"
|
135
|
-
*/
|
136
|
-
export declare function acquireReleaseExit<R, E, A, R1>(acquire: IO<R, E, A>, release: (a: A, exit: Exit<any, any>) => IO<R1, never, unknown>, __tsplusTrace?: string): Stream<R | R1, E, A>;
|
137
121
|
/**
|
138
122
|
* Fan out the stream, producing a list of streams that have the same elements as this stream.
|
139
123
|
* The driver stream will only ever advance of the `maximumLag` chunks before the
|
@@ -218,12 +202,13 @@ export declare function catchJust<R1, E, E1, A1>(pf: (e: E) => Maybe<Stream<R1,
|
|
218
202
|
*/
|
219
203
|
export declare function catchJustCause<R1, E, E1, A1>(pf: (e: Cause<E>) => Maybe<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, A | A1>;
|
220
204
|
/**
|
221
|
-
* Returns a stream
|
222
|
-
*
|
223
|
-
*
|
205
|
+
* Returns a new stream that only emits elements that are not equal to the
|
206
|
+
* previous element emitted, using the specified function to determine
|
207
|
+
* whether two elements are equal.
|
208
|
+
* @tsplus pipeable fncts.io.Stream changesWith
|
224
209
|
* @tsplus location "@fncts/io/Stream/api"
|
225
210
|
*/
|
226
|
-
export declare function
|
211
|
+
export declare function changesWith<A>(f: (x: A, y: A) => boolean, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
227
212
|
/**
|
228
213
|
* Exposes the underlying chunks of the stream as a stream of chunks of elements
|
229
214
|
* @tsplus getter fncts.io.Stream chunks
|
@@ -237,14 +222,6 @@ export declare function chunks<R, E, A>(stream: Stream<R, E, A>, __tsplusTrace?:
|
|
237
222
|
* @tsplus location "@fncts/io/Stream/api"
|
238
223
|
*/
|
239
224
|
export declare function chunksWith<R, E, A, R1, E1, B>(f: (_: Stream<R, E, Conc<A>>) => Stream<R1, E1, Conc<B>>, __tsplusTrace?: string): (self: Stream<R, E, A>) => Stream<R1, E1, B>;
|
240
|
-
/**
|
241
|
-
* Returns a new stream that only emits elements that are not equal to the
|
242
|
-
* previous element emitted, using the specified function to determine
|
243
|
-
* whether two elements are equal.
|
244
|
-
* @tsplus pipeable fncts.io.Stream changesWith
|
245
|
-
* @tsplus location "@fncts/io/Stream/api"
|
246
|
-
*/
|
247
|
-
export declare function changesWith<A>(f: (x: A, y: A) => boolean, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
248
225
|
/**
|
249
226
|
* Transforms all elements of the stream for as long as the specified partial function is defined.
|
250
227
|
* @tsplus pipeable fncts.io.Stream collectWhile
|
@@ -282,6 +259,13 @@ export declare function combineChunks<R, E, A, R1, E1, A1, S, R2, A2>(that: Stre
|
|
282
259
|
* @tsplus location "@fncts/io/Stream/api"
|
283
260
|
*/
|
284
261
|
export declare function concat<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, A | A1>;
|
262
|
+
/**
|
263
|
+
* Provides some of the environment required to run this effect,
|
264
|
+
* leaving the remainder `R0`.
|
265
|
+
* @tsplus pipeable fncts.io.Stream contramapEnvironment
|
266
|
+
* @tsplus location "@fncts/io/Stream/api"
|
267
|
+
*/
|
268
|
+
export declare function contramapEnvironment<R, R0>(f: (r0: Environment<R0>) => Environment<R>, __tsplusTrace?: string): <E, A>(ra: Stream<R, E, A>) => Stream<R0, E, A>;
|
285
269
|
/**
|
286
270
|
* Composes this stream with the specified stream to create a cartesian product of elements.
|
287
271
|
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
@@ -297,29 +281,22 @@ export declare function cross<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?
|
|
297
281
|
* @tsplus location "@fncts/io/Stream/api"
|
298
282
|
*/
|
299
283
|
export declare function crossWith<A, R1, E1, B, C>(fb: Stream<R1, E1, B>, f: (a: A, b: B) => C, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R | R1, E | E1, C>;
|
300
|
-
/**
|
301
|
-
* Provides some of the environment required to run this effect,
|
302
|
-
* leaving the remainder `R0`.
|
303
|
-
* @tsplus pipeable fncts.io.Stream contramapEnvironment
|
304
|
-
* @tsplus location "@fncts/io/Stream/api"
|
305
|
-
*/
|
306
|
-
export declare function contramapEnvironment<R, R0>(f: (r0: Environment<R0>) => Environment<R>, __tsplusTrace?: string): <E, A>(ra: Stream<R, E, A>) => Stream<R0, E, A>;
|
307
284
|
/**
|
308
285
|
* @tsplus pipeable fncts.io.Stream debounce
|
309
286
|
* @tsplus location "@fncts/io/Stream/api"
|
310
287
|
*/
|
311
288
|
export declare function debounce(duration: Lazy<Duration>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
312
|
-
/**
|
313
|
-
* @tsplus static fncts.io.StreamOps defer
|
314
|
-
* @tsplus location "@fncts/io/Stream/api"
|
315
|
-
*/
|
316
|
-
export declare function defer<R, E, A>(self: Lazy<Stream<R, E, A>>): Stream<R, E, A>;
|
317
289
|
/**
|
318
290
|
* Switches to the provided stream in case this one is empty.
|
319
291
|
* @tsplus pipeable fncts.io.Stream defaultIfEmpty
|
320
292
|
* @tsplus location "@fncts/io/Stream/api"
|
321
293
|
*/
|
322
294
|
export declare function defaultIfEmpty<R1, E1, B>(fb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R | R1, E | E1, A | B>;
|
295
|
+
/**
|
296
|
+
* @tsplus static fncts.io.StreamOps defer
|
297
|
+
* @tsplus location "@fncts/io/Stream/api"
|
298
|
+
*/
|
299
|
+
export declare function defer<R, E, A>(self: Lazy<Stream<R, E, A>>): Stream<R, E, A>;
|
323
300
|
/**
|
324
301
|
* More powerful version of `broadcast`. Allows to provide a function that determines what
|
325
302
|
* queues should receive which elements. The decide function will receive the indices of the queues
|
@@ -352,13 +329,6 @@ export declare function drain<R, E, A>(fa: Stream<R, E, A>, __tsplusTrace?: stri
|
|
352
329
|
* @tsplus location "@fncts/io/Stream/api"
|
353
330
|
*/
|
354
331
|
export declare function drop(n: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
355
|
-
/**
|
356
|
-
* Drops all elements of the stream for as long as the specified predicate
|
357
|
-
* evaluates to `true`.
|
358
|
-
* @tsplus pipeable fncts.io.Stream dropWhile
|
359
|
-
* @tsplus location "@fncts/io/Stream/api"
|
360
|
-
*/
|
361
|
-
export declare function dropWhile<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
362
332
|
/**
|
363
333
|
* Drops all elements of the stream until the specified predicate evaluates
|
364
334
|
* to `true`.
|
@@ -366,6 +336,13 @@ export declare function dropWhile<A>(p: Predicate<A>, __tsplusTrace?: string): <
|
|
366
336
|
* @tsplus location "@fncts/io/Stream/api"
|
367
337
|
*/
|
368
338
|
export declare function dropUntil<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
339
|
+
/**
|
340
|
+
* Drops all elements of the stream for as long as the specified predicate
|
341
|
+
* evaluates to `true`.
|
342
|
+
* @tsplus pipeable fncts.io.Stream dropWhile
|
343
|
+
* @tsplus location "@fncts/io/Stream/api"
|
344
|
+
*/
|
345
|
+
export declare function dropWhile<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
369
346
|
/**
|
370
347
|
* Returns a stream whose failures and successes have been lifted into an
|
371
348
|
* `Either`. The resulting stream cannot fail, because the failures have
|
@@ -375,11 +352,35 @@ export declare function dropUntil<A>(p: Predicate<A>, __tsplusTrace?: string): <
|
|
375
352
|
* @tsplus location "@fncts/io/Stream/api"
|
376
353
|
*/
|
377
354
|
export declare function either<R, E, A>(stream: Stream<R, E, A>, __tsplusTrace?: string): Stream<R, never, Either<E, A>>;
|
355
|
+
/**
|
356
|
+
* Returns a stream made of the concatenation in strict order of all the streams
|
357
|
+
* produced by passing each element of this stream to `f`
|
358
|
+
* @tsplus pipeable fncts.io.Stream flatMap
|
359
|
+
* @tsplus location "@fncts/io/Stream/api"
|
360
|
+
*/
|
361
|
+
export declare function flatMap<A, R1, E1, B>(f: (a: A) => Stream<R1, E1, B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
362
|
+
/**
|
363
|
+
* Composes this stream with the specified stream to create a cartesian product of elements,
|
364
|
+
* but keeps only elements from this stream.
|
365
|
+
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
366
|
+
* @tsplus pipeable fncts.io.Stream zipLeft
|
367
|
+
* @tsplus location "@fncts/io/Stream/api"
|
368
|
+
*/
|
369
|
+
export declare function zipLeft<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
370
|
+
/**
|
371
|
+
* Composes this stream with the specified stream to create a cartesian product of elements,
|
372
|
+
* but keeps only elements from the other stream.
|
373
|
+
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
374
|
+
* @tsplus pipeable fncts.io.Stream zipRight
|
375
|
+
* @tsplus location "@fncts/io/Stream/api"
|
376
|
+
*/
|
377
|
+
export declare function zipRight<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, A1>;
|
378
378
|
/**
|
379
379
|
* @tsplus static fncts.io.StreamOps empty
|
380
380
|
* @tsplus location "@fncts/io/Stream/api"
|
381
381
|
*/
|
382
382
|
export declare const empty: Stream<never, never, never>;
|
383
|
+
export type TerminationStrategy = "Left" | "Right" | "Both" | "Either";
|
383
384
|
/**
|
384
385
|
* Halts the evaluation of this stream when the provided IO completes. The given IO
|
385
386
|
* will be forked as part of the returned stream, and its success will be discarded.
|
@@ -428,16 +429,16 @@ export declare function environmentWithStream<R0, R, E, A>(f: (r0: Environment<R
|
|
428
429
|
export declare function execute<R, E>(io: IO<R, E, any>, __tsplusTrace?: string): Stream<R, E, never>;
|
429
430
|
/**
|
430
431
|
* Halt a stream with the specified error
|
431
|
-
* @tsplus static fncts.io.StreamOps
|
432
|
+
* @tsplus static fncts.io.StreamOps fail
|
432
433
|
* @tsplus location "@fncts/io/Stream/api"
|
433
434
|
*/
|
434
|
-
export declare function
|
435
|
+
export declare function fail<E>(error: Lazy<E>, __tsplusTrace?: string): Stream<never, E, never>;
|
435
436
|
/**
|
436
|
-
*
|
437
|
-
* @tsplus static fncts.io.StreamOps
|
437
|
+
* The stream that always halts with `cause`.
|
438
|
+
* @tsplus static fncts.io.StreamOps failCause
|
438
439
|
* @tsplus location "@fncts/io/Stream/api"
|
439
440
|
*/
|
440
|
-
export declare function
|
441
|
+
export declare function failCause<E>(cause: Lazy<Cause<E>>, __tsplusTrace?: string): Stream<never, E, never>;
|
441
442
|
/**
|
442
443
|
* The stream that always halts with `cause`.
|
443
444
|
* @tsplus static fncts.io.StreamOps failCauseNow
|
@@ -445,11 +446,11 @@ export declare function fail<E>(error: Lazy<E>, __tsplusTrace?: string): Stream<
|
|
445
446
|
*/
|
446
447
|
export declare function failCauseNow<E>(cause: Cause<E>, __tsplusTrace?: string): Stream<never, E, never>;
|
447
448
|
/**
|
448
|
-
*
|
449
|
-
* @tsplus static fncts.io.StreamOps
|
449
|
+
* Halt a stream with the specified error
|
450
|
+
* @tsplus static fncts.io.StreamOps failNow
|
450
451
|
* @tsplus location "@fncts/io/Stream/api"
|
451
452
|
*/
|
452
|
-
export declare function
|
453
|
+
export declare function failNow<E>(error: E, __tsplusTrace?: string): Stream<never, E, never>;
|
453
454
|
/**
|
454
455
|
* @tsplus pipeable fncts.io.Stream filter
|
455
456
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -490,6 +491,13 @@ export declare function findIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __ts
|
|
490
491
|
* @tsplus location "@fncts/io/Stream/api"
|
491
492
|
*/
|
492
493
|
export declare function flatten<R, E, R1, E1, A>(self: Stream<R, E, Stream<R1, E1, A>>, __tsplusTrace?: string): Stream<R | R1, E | E1, A>;
|
494
|
+
/**
|
495
|
+
* Submerges the chunks carried by this stream into the stream's structure, while
|
496
|
+
* still preserving them.
|
497
|
+
* @tsplus getter fncts.io.Stream flattenChunks
|
498
|
+
* @tsplus location "@fncts/io/Stream/api"
|
499
|
+
*/
|
500
|
+
export declare function flattenChunks<R, E, A>(stream: Stream<R, E, Conc<A>>, __tsplusTrace?: string): Stream<R, E, A>;
|
493
501
|
/**
|
494
502
|
* Unwraps `Exit` values that also signify end-of-stream by failing with `None`.
|
495
503
|
*
|
@@ -504,13 +512,6 @@ export declare function flattenExitOption<R, E, E1, A>(stream: Stream<R, E, Exit
|
|
504
512
|
* @tsplus location "@fncts/io/Stream/api"
|
505
513
|
*/
|
506
514
|
export declare function flattenTake<R, E, E1, A>(stream: Stream<R, E, Take<E1, A>>, __tsplusTrace?: string): Stream<R, E | E1, A>;
|
507
|
-
/**
|
508
|
-
* Submerges the chunks carried by this stream into the stream's structure, while
|
509
|
-
* still preserving them.
|
510
|
-
* @tsplus getter fncts.io.Stream flattenChunks
|
511
|
-
* @tsplus location "@fncts/io/Stream/api"
|
512
|
-
*/
|
513
|
-
export declare function flattenChunks<R, E, A>(stream: Stream<R, E, Conc<A>>, __tsplusTrace?: string): Stream<R, E, A>;
|
514
515
|
/**
|
515
516
|
* Repeats this stream forever.
|
516
517
|
* @tsplus getter fncts.io.Stream forever
|
@@ -518,11 +519,10 @@ export declare function flattenChunks<R, E, A>(stream: Stream<R, E, Conc<A>>, __
|
|
518
519
|
*/
|
519
520
|
export declare function forever<R, E, A>(stream: Stream<R, E, A>, __tsplusTrace?: string): Stream<R, E, A>;
|
520
521
|
/**
|
521
|
-
*
|
522
|
-
* @tsplus static fncts.io.StreamOps fromChunkNow
|
522
|
+
* @tsplus static fncts.io.StreamOps fromAsyncIterable
|
523
523
|
* @tsplus location "@fncts/io/Stream/api"
|
524
524
|
*/
|
525
|
-
export declare function
|
525
|
+
export declare function fromAsyncIterable<A>(iterable: AsyncIterable<A>, __tsplusTrace?: string): Stream<unknown, never, A>;
|
526
526
|
/**
|
527
527
|
* Creates a stream from a `Chunk` of values
|
528
528
|
* @tsplus static fncts.io.StreamOps fromChunk
|
@@ -530,22 +530,21 @@ export declare function fromChunkNow<O>(c: Conc<O>, __tsplusTrace?: string): Str
|
|
530
530
|
*/
|
531
531
|
export declare function fromChunk<O>(c: Lazy<Conc<O>>, __tsplusTrace?: string): Stream<never, never, O>;
|
532
532
|
/**
|
533
|
-
*
|
533
|
+
* Creates a stream from a `Chunk` of values
|
534
|
+
* @tsplus static fncts.io.StreamOps fromChunkNow
|
534
535
|
* @tsplus location "@fncts/io/Stream/api"
|
535
536
|
*/
|
536
|
-
export declare function
|
537
|
+
export declare function fromChunkNow<O>(c: Conc<O>, __tsplusTrace?: string): Stream<never, never, O>;
|
537
538
|
/**
|
538
|
-
*
|
539
|
-
* @tsplus static fncts.io.StreamOps scoped
|
539
|
+
* @tsplus static fncts.io.StreamOps fromHub
|
540
540
|
* @tsplus location "@fncts/io/Stream/api"
|
541
541
|
*/
|
542
|
-
export declare function
|
542
|
+
export declare function fromHub<A>(hub: Lazy<Hub<A>>, maxChunkSize?: number, __tsplusTrace?: string): Stream<never, never, A>;
|
543
543
|
/**
|
544
|
-
*
|
545
|
-
* @tsplus pipeable fncts.io.Stream sliding
|
544
|
+
* @tsplus static fncts.io.StreamOps fromHubScoped
|
546
545
|
* @tsplus location "@fncts/io/Stream/api"
|
547
546
|
*/
|
548
|
-
export declare function
|
547
|
+
export declare function fromHubScoped<A>(hub: Lazy<Hub<A>>, maxChunkSize?: number, __tsplusTrace?: string): IO<Scope, never, Stream<never, never, A>>;
|
549
548
|
/**
|
550
549
|
* Creates a stream from an effect producing a value of type `A`
|
551
550
|
* @tsplus static fncts.io.StreamOps fromIO
|
@@ -558,11 +557,6 @@ export declare function fromIO<R, E, A>(fa: IO<R, E, A>, __tsplusTrace?: string)
|
|
558
557
|
* @tsplus location "@fncts/io/Stream/api"
|
559
558
|
*/
|
560
559
|
export declare function fromIOMaybe<R, E, A>(fa: IO<R, Maybe<E>, A>, __tsplusTrace?: string): Stream<R, E, A>;
|
561
|
-
/**
|
562
|
-
* @tsplus static fncts.io.StreamOps fromAsyncIterable
|
563
|
-
* @tsplus location "@fncts/io/Stream/api"
|
564
|
-
*/
|
565
|
-
export declare function fromAsyncIterable<A>(iterable: AsyncIterable<A>, __tsplusTrace?: string): Stream<unknown, never, A>;
|
566
560
|
/**
|
567
561
|
* @tsplus static fncts.io.StreamOps fromIterable
|
568
562
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -590,27 +584,22 @@ export declare function fromQueue<RA, RB, EA, EB, A, B>(queue: PDequeue<RA, RB,
|
|
590
584
|
*/
|
591
585
|
export declare function fromQueueWithShutdown<RA, RB, EA, EB, A, B>(queue: PDequeue<RA, RB, EA, EB, A, B>, maxChunkSize?: number, __tsplusTrace?: string): Stream<RB, EB, B>;
|
592
586
|
/**
|
593
|
-
* @tsplus static fncts.io.StreamOps
|
587
|
+
* @tsplus static fncts.io.StreamOps fromReadableStream
|
594
588
|
* @tsplus location "@fncts/io/Stream/api"
|
595
589
|
*/
|
596
|
-
export declare function
|
590
|
+
export declare function fromReadableStream<A, E>(evaluate: Lazy<ReadableStream<A>>, onError: (error: unknown) => E): Stream<never, E, A>;
|
597
591
|
/**
|
598
|
-
*
|
592
|
+
* Halt a stream with the specified exception
|
593
|
+
* @tsplus static fncts.io.StreamOps halt
|
599
594
|
* @tsplus location "@fncts/io/Stream/api"
|
600
595
|
*/
|
601
|
-
export declare function
|
596
|
+
export declare function halt(u: Lazy<unknown>, __tsplusTrace?: string): Stream<never, never, never>;
|
602
597
|
/**
|
603
598
|
* Halt a stream with the specified exception
|
604
599
|
* @tsplus static fncts.io.StreamOps haltNow
|
605
600
|
* @tsplus location "@fncts/io/Stream/api"
|
606
601
|
*/
|
607
602
|
export declare function haltNow(u: unknown, __tsplusTrace?: string): Stream<never, never, never>;
|
608
|
-
/**
|
609
|
-
* Halt a stream with the specified exception
|
610
|
-
* @tsplus static fncts.io.StreamOps halt
|
611
|
-
* @tsplus location "@fncts/io/Stream/api"
|
612
|
-
*/
|
613
|
-
export declare function halt(u: Lazy<unknown>, __tsplusTrace?: string): Stream<never, never, never>;
|
614
603
|
/**
|
615
604
|
* Halts the evaluation of this stream when the provided IO completes. The
|
616
605
|
* given IO will be forked as part of the returned stream, and its success
|
@@ -648,10 +637,6 @@ export declare function interleave<R1, E1, B>(sb: Stream<R1, E1, B>, __tsplusTra
|
|
648
637
|
* @tsplus location "@fncts/io/Stream/api"
|
649
638
|
*/
|
650
639
|
export declare function interleaveWith<R1, E1, B, R2, E2>(sb: Stream<R1, E1, B>, b: Stream<R2, E2, boolean>, __tsplusTrace?: string): <R, E, A>(sa: Stream<R, E, A>) => Stream<R | R1 | R2, E | E1 | E2, A | B>;
|
651
|
-
/**
|
652
|
-
* Intersperse stream with provided element
|
653
|
-
*/
|
654
|
-
export declare function intersperse<R, E, A, A1>(stream: Stream<R, E, A>, middle: A1, __tsplusTrace?: string): Stream<R, E, A | A1>;
|
655
640
|
/**
|
656
641
|
* Interrupts the evaluation of this stream when the provided IO completes. The given
|
657
642
|
* IO will be forked as part of this stream, and its success will be discarded. This
|
@@ -668,6 +653,10 @@ export declare function interruptWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace
|
|
668
653
|
* @tsplus location "@fncts/io/Stream/api"
|
669
654
|
*/
|
670
655
|
export declare function interruptWhenFuture<E1>(future: Future<E1, unknown>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R, E | E1, A>;
|
656
|
+
/**
|
657
|
+
* Intersperse stream with provided element
|
658
|
+
*/
|
659
|
+
export declare function intersperse<R, E, A, A1>(stream: Stream<R, E, A>, middle: A1, __tsplusTrace?: string): Stream<R, E, A | A1>;
|
671
660
|
/**
|
672
661
|
* Transforms the elements of this stream using the supplied function.
|
673
662
|
* @tsplus pipeable fncts.io.Stream map
|
@@ -768,6 +757,11 @@ export declare function mapIOConcurrentlyUnordered<A, R1, E1, B>(n: number, f: (
|
|
768
757
|
* @tsplus location "@fncts/io/Stream/api"
|
769
758
|
*/
|
770
759
|
export declare function merge<R1, E1, B>(that: Stream<R1, E1, B>, strategy?: TerminationStrategy, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, A | B>;
|
760
|
+
/**
|
761
|
+
* @tsplus pipeable fncts.io.Stream mergeEither
|
762
|
+
* @tsplus location "@fncts/io/Stream/api"
|
763
|
+
*/
|
764
|
+
export declare function mergeEither<R1, E1, B>(fb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R | R1, E | E1, Either<A, B>>;
|
771
765
|
/**
|
772
766
|
* Merges this stream and the specified stream together. New produced stream
|
773
767
|
* will terminate when either stream terminates.
|
@@ -796,13 +790,6 @@ export declare function mergeHaltRight<R1, E1, B>(that: Stream<R1, E1, B>, __tsp
|
|
796
790
|
* @tsplus location "@fncts/io/Stream/api"
|
797
791
|
*/
|
798
792
|
export declare function mergeLeft<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
799
|
-
/**
|
800
|
-
* Merges this stream and the specified stream together, discarding the values
|
801
|
-
* from the left stream.
|
802
|
-
* @tsplus pipeable fncts.io.Stream mergeRight
|
803
|
-
* @tsplus location "@fncts/io/Stream/api"
|
804
|
-
*/
|
805
|
-
export declare function mergeRight<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
806
793
|
/**
|
807
794
|
* Maps each element of this stream to another stream and returns the
|
808
795
|
* non-deterministic merge of those streams, executing up to `n` inner streams
|
@@ -821,11 +808,12 @@ export declare function mergeMap<A, R1, E1, B>(f: (a: A) => Stream<R1, E1, B>, n
|
|
821
808
|
*/
|
822
809
|
export declare function mergeMapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, B>, n: number, bufferSize?: number, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
823
810
|
/**
|
824
|
-
*
|
811
|
+
* Merges this stream and the specified stream together, discarding the values
|
812
|
+
* from the left stream.
|
813
|
+
* @tsplus pipeable fncts.io.Stream mergeRight
|
825
814
|
* @tsplus location "@fncts/io/Stream/api"
|
826
815
|
*/
|
827
|
-
export declare function
|
828
|
-
export type TerminationStrategy = "Left" | "Right" | "Both" | "Either";
|
816
|
+
export declare function mergeRight<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
829
817
|
/**
|
830
818
|
* @tsplus pipeable fncts.io.Stream mergeWith
|
831
819
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -910,24 +898,12 @@ export declare function provideSomeLayer<RIn, E1, ROut>(layer: Layer<RIn, E1, RO
|
|
910
898
|
* @tsplus location "@fncts/io/Stream/api"
|
911
899
|
*/
|
912
900
|
export declare function rechunk(n: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
913
|
-
/**
|
914
|
-
* Repeats the provided value infinitely.
|
915
|
-
* @tsplus static fncts.io.StreamOps repeatValue
|
916
|
-
* @tsplus location "@fncts/io/Stream/api"
|
917
|
-
*/
|
918
|
-
export declare function repeatValue<A>(a: A, __tsplusTrace?: string): Stream<unknown, never, A>;
|
919
901
|
/**
|
920
902
|
* Creates a stream from an effect producing a value of type `A` which repeats forever.
|
921
903
|
* @tsplus static fncts.io.StreamOps repeatIO
|
922
904
|
* @tsplus location "@fncts/io/Stream/api"
|
923
905
|
*/
|
924
906
|
export declare function repeatIO<R, E, A>(fa: IO<R, E, A>, __tsplusTrace?: string): Stream<R, E, A>;
|
925
|
-
/**
|
926
|
-
* Creates a stream from an effect producing values of type `A` until it fails with None.
|
927
|
-
* @tsplus static fncts.io.StreamOps repeatIOMaybe
|
928
|
-
* @tsplus location "@fncts/io/Stream/api"
|
929
|
-
*/
|
930
|
-
export declare function repeatIOMaybe<R, E, A>(fa: IO<R, Maybe<E>, A>, __tsplusTrace?: string): Stream<R, E, A>;
|
931
907
|
/**
|
932
908
|
* Creates a stream from an effect producing chunks of `A` values which repeats forever.
|
933
909
|
* @tsplus static fncts.io.StreamOps repeatIOChunk
|
@@ -940,6 +916,18 @@ export declare function repeatIOChunk<R, E, A>(fa: IO<R, E, Conc<A>>, __tsplusTr
|
|
940
916
|
* @tsplus location "@fncts/io/Stream/api"
|
941
917
|
*/
|
942
918
|
export declare function repeatIOChunkMaybe<R, E, A>(fa: IO<R, Maybe<E>, Conc<A>>, __tsplusTrace?: string): Stream<R, E, A>;
|
919
|
+
/**
|
920
|
+
* Creates a stream from an effect producing values of type `A` until it fails with None.
|
921
|
+
* @tsplus static fncts.io.StreamOps repeatIOMaybe
|
922
|
+
* @tsplus location "@fncts/io/Stream/api"
|
923
|
+
*/
|
924
|
+
export declare function repeatIOMaybe<R, E, A>(fa: IO<R, Maybe<E>, A>, __tsplusTrace?: string): Stream<R, E, A>;
|
925
|
+
/**
|
926
|
+
* Repeats the provided value infinitely.
|
927
|
+
* @tsplus static fncts.io.StreamOps repeatValue
|
928
|
+
* @tsplus location "@fncts/io/Stream/api"
|
929
|
+
*/
|
930
|
+
export declare function repeatValue<A>(a: A, __tsplusTrace?: string): Stream<unknown, never, A>;
|
943
931
|
/**
|
944
932
|
* Runs the sink on the stream to produce either the sink's result or an error.
|
945
933
|
* @tsplus pipeable fncts.io.Stream run
|
@@ -971,12 +959,12 @@ export declare function runForeachScoped<A, R2, E2>(f: (a: A) => IO<R2, E2, any>
|
|
971
959
|
*/
|
972
960
|
export declare function runIntoElementsScoped_<E, A, R1, E1>(queue: PQueue<R1, unknown, never, never, Exit<Maybe<E | E1>, A>, unknown>, __tsplusTrace?: string): <R>(stream: Stream<R, E, A>) => IO<R | R1 | Scope, E | E1, void>;
|
973
961
|
/**
|
974
|
-
* Like `Stream#
|
962
|
+
* Like `Stream#runIntoHub`, but provides the result as a `Managed` to allow for scope
|
975
963
|
* composition.
|
976
|
-
* @tsplus pipeable fncts.io.Stream
|
964
|
+
* @tsplus pipeable fncts.io.Stream runIntoHubScoped
|
977
965
|
* @tsplus location "@fncts/io/Stream/api"
|
978
966
|
*/
|
979
|
-
export declare function
|
967
|
+
export declare function runIntoHubScoped<RA, RB, EA, EB, E1, A, B>(hub: PHub<RA, RB, EA, EB, Take<E1, A>, B>, __tsplusTrace?: string): <R, E extends E1>(stream: Stream<R, E, A>) => IO<R | RA | Scope, E | EA | E1, void>;
|
980
968
|
/**
|
981
969
|
* Like runIntoQueue, but provides the result as a scoped IO
|
982
970
|
* to allow for scope composition.
|
@@ -985,12 +973,12 @@ export declare function runIntoQueueScoped<RA, RB, EA, EB, E1, A, B>(queue: PEnq
|
|
985
973
|
*/
|
986
974
|
export declare function runIntoQueueElementsScoped<E, A>(queue: Lazy<Queue.Enqueue<Exit<Maybe<E>, A>>>): <R>(self: Stream<R, E, A>) => IO<R | Scope, never, void>;
|
987
975
|
/**
|
988
|
-
* Like `Stream#
|
976
|
+
* Like `Stream#into`, but provides the result as a `Managed` to allow for scope
|
989
977
|
* composition.
|
990
|
-
* @tsplus pipeable fncts.io.Stream
|
978
|
+
* @tsplus pipeable fncts.io.Stream runIntoQueueScoped
|
991
979
|
* @tsplus location "@fncts/io/Stream/api"
|
992
980
|
*/
|
993
|
-
export declare function
|
981
|
+
export declare function runIntoQueueScoped<RA, RB, EA, EB, E1, A, B>(queue: PEnqueue<RA, RB, EA, EB, Take<E1, A>, B>, __tsplusTrace?: string): <R, E extends E1>(stream: Stream<R, E, A>) => IO<R | RA | Scope, E | EA | E1, void>;
|
994
982
|
/**
|
995
983
|
* Runs the sink on the stream to produce either the sink's result or an error.
|
996
984
|
* @tsplus pipeable fncts.io.Stream runScoped
|
@@ -1025,6 +1013,18 @@ export declare function scanReduce<A extends B, B>(f: (b: B, a: A) => B, __tsplu
|
|
1025
1013
|
* @tsplus location "@fncts/io/Stream/api"
|
1026
1014
|
*/
|
1027
1015
|
export declare function scanReduceIO<A extends B, R1, E1, B>(f: (b: B, a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
1016
|
+
/**
|
1017
|
+
* Creates a single-valued stream from a managed resource
|
1018
|
+
* @tsplus static fncts.io.StreamOps scoped
|
1019
|
+
* @tsplus location "@fncts/io/Stream/api"
|
1020
|
+
*/
|
1021
|
+
export declare function scoped<R, E, A>(stream: Lazy<IO<R, E, A>>, __tsplusTrace?: string): Stream<Exclude<R, Scope>, E, A>;
|
1022
|
+
/**
|
1023
|
+
* Emits a sliding window of n elements.
|
1024
|
+
* @tsplus pipeable fncts.io.Stream sliding
|
1025
|
+
* @tsplus location "@fncts/io/Stream/api"
|
1026
|
+
*/
|
1027
|
+
export declare function sliding(chunkSize: number, stepSize: number, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R, E, Conc<A>>;
|
1028
1028
|
/**
|
1029
1029
|
* @tsplus pipeable fncts.io.Stream split
|
1030
1030
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -1032,27 +1032,22 @@ export declare function scanReduceIO<A extends B, R1, E1, B>(f: (b: B, a: A) =>
|
|
1032
1032
|
export declare function split<A>(predicate: Predicate<A>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => Stream<R, E, Conc<A>>;
|
1033
1033
|
/**
|
1034
1034
|
* Creates a single-valued pure stream
|
1035
|
-
* @tsplus static fncts.io.StreamOps
|
1035
|
+
* @tsplus static fncts.io.StreamOps succeed
|
1036
1036
|
* @tsplus location "@fncts/io/Stream/api"
|
1037
1037
|
*/
|
1038
|
-
export declare function
|
1038
|
+
export declare function succeed<A>(a: Lazy<A>, __tsplusTrace?: string): Stream<never, never, A>;
|
1039
1039
|
/**
|
1040
1040
|
* Creates a single-valued pure stream
|
1041
|
-
* @tsplus static fncts.io.StreamOps
|
1041
|
+
* @tsplus static fncts.io.StreamOps succeedNow
|
1042
1042
|
* @tsplus location "@fncts/io/Stream/api"
|
1043
1043
|
*/
|
1044
|
-
export declare function
|
1044
|
+
export declare function succeedNow<O>(o: O, __tsplusTrace?: string): Stream<never, never, O>;
|
1045
1045
|
/**
|
1046
1046
|
* Takes the specified number of elements from this stream.
|
1047
1047
|
* @tsplus pipeable fncts.io.Stream take
|
1048
1048
|
* @tsplus location "@fncts/io/Stream/api"
|
1049
1049
|
*/
|
1050
1050
|
export declare function take(n: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, E, A>;
|
1051
|
-
/**
|
1052
|
-
* @tsplus pipeable fncts.io.Stream takeUntilIO
|
1053
|
-
* @tsplus location "@fncts/io/Stream/api"
|
1054
|
-
*/
|
1055
|
-
export declare function takeUntilIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
1056
1051
|
/**
|
1057
1052
|
* Takes all elements of the stream until the specified predicate evaluates
|
1058
1053
|
* to `true`.
|
@@ -1060,6 +1055,11 @@ export declare function takeUntilIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>,
|
|
1060
1055
|
* @tsplus location "@fncts/io/Stream/api"
|
1061
1056
|
*/
|
1062
1057
|
export declare function takeUntil<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R, E, A>;
|
1058
|
+
/**
|
1059
|
+
* @tsplus pipeable fncts.io.Stream takeUntilIO
|
1060
|
+
* @tsplus location "@fncts/io/Stream/api"
|
1061
|
+
*/
|
1062
|
+
export declare function takeUntilIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
1063
1063
|
/**
|
1064
1064
|
* @tsplus pipeable fncts.io.Stream tap
|
1065
1065
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -1158,27 +1158,27 @@ export declare function toQueueUnbounded<R, E, A>(stream: Stream<R, E, A>, __tsp
|
|
1158
1158
|
*/
|
1159
1159
|
export declare function toReadableStream<E, A>(self: Stream<never, E, A>, __tsplusTrace?: string): ReadableStream<A>;
|
1160
1160
|
/**
|
1161
|
-
*
|
1162
|
-
* @tsplus static fncts.io.StreamOps unfoldChunkIO
|
1161
|
+
* @tsplus static fncts.io.StreamOps unfold
|
1163
1162
|
* @tsplus location "@fncts/io/Stream/api"
|
1164
1163
|
*/
|
1165
|
-
export declare function
|
1164
|
+
export declare function unfold<S, A>(s: S, f: (s: S) => Maybe<readonly [A, S]>, __tsplusTrace?: string): Stream<never, never, A>;
|
1166
1165
|
/**
|
1167
|
-
*
|
1168
|
-
* @tsplus static fncts.io.StreamOps unfoldIO
|
1166
|
+
* @tsplus static fncts.io.StreamOps unfoldChunk
|
1169
1167
|
* @tsplus location "@fncts/io/Stream/api"
|
1170
1168
|
*/
|
1171
|
-
export declare function
|
1169
|
+
export declare function unfoldChunk<S, A>(s: S, f: (s: S) => Maybe<readonly [Conc<A>, S]>, __tsplusTrace?: string): Stream<never, never, A>;
|
1172
1170
|
/**
|
1173
|
-
*
|
1171
|
+
* Creates a stream by effectfully peeling off the "layers" of a value of type `S`
|
1172
|
+
* @tsplus static fncts.io.StreamOps unfoldChunkIO
|
1174
1173
|
* @tsplus location "@fncts/io/Stream/api"
|
1175
1174
|
*/
|
1176
|
-
export declare function
|
1175
|
+
export declare function unfoldChunkIO<R, E, A, S>(s: S, f: (s: S) => IO<R, E, Maybe<readonly [Conc<A>, S]>>, __tsplusTrace?: string): Stream<R, E, A>;
|
1177
1176
|
/**
|
1178
|
-
*
|
1177
|
+
* Creates a stream by effectfully peeling off the "layers" of a value of type `S`
|
1178
|
+
* @tsplus static fncts.io.StreamOps unfoldIO
|
1179
1179
|
* @tsplus location "@fncts/io/Stream/api"
|
1180
1180
|
*/
|
1181
|
-
export declare function
|
1181
|
+
export declare function unfoldIO<S, R, E, A>(s: S, f: (s: S) => IO<R, E, Maybe<readonly [A, S]>>, __tsplusTrace?: string): Stream<R, E, A>;
|
1182
1182
|
/**
|
1183
1183
|
* Creates a stream produced from an IO
|
1184
1184
|
* @tsplus static fncts.io.StreamOps unwrap
|