@fncts/io 0.0.39 → 0.0.40
Sign up to get free protection for your applications and to get access to all the features.
- package/Cached.d.ts +2 -2
- package/Channel/ChildExecutorDecision.d.ts +1 -1
- package/Channel/UpstreamPullRequest.d.ts +1 -1
- package/Channel/api/interruptWhen.d.ts +2 -2
- package/Channel/api/mapOutConcurrentIO.d.ts +1 -1
- package/Channel/api/mergeAll.d.ts +1 -1
- package/Channel/api/mergeAllUnboundedWith.d.ts +1 -1
- package/Channel/api/mergeAllWith.d.ts +1 -1
- package/Channel/api/mergeMap.d.ts +1 -1
- package/Channel/api/mergeWith.d.ts +1 -1
- package/Channel/api/zipConcurrent.d.ts +3 -3
- package/Channel/api.d.ts +14 -14
- package/Channel/core-api.d.ts +5 -5
- package/Channel.d.ts +2 -2
- package/Clock/definition.d.ts +1 -1
- package/Clock.d.ts +2 -2
- package/Console/definition.d.ts +1 -1
- package/Console.d.ts +2 -2
- package/Fiber/api/mapFiber.d.ts +1 -1
- package/Fiber/api/mapIO.d.ts +2 -2
- package/Fiber/api/zipWith.d.ts +1 -1
- package/Fiber.d.ts +19 -19
- package/FiberRef/api.d.ts +1 -1
- package/FiberRef/operations.d.ts +2 -2
- package/FiberRef.d.ts +5 -5
- package/FiberRefs/Patch.d.ts +62 -0
- package/FiberRefs.d.ts +2 -1
- package/FiberScope.d.ts +1 -1
- package/FiberStatus.d.ts +1 -1
- package/Future/api.d.ts +5 -5
- package/Future.d.ts +2 -2
- package/Hub/api.d.ts +11 -11
- package/Hub.d.ts +1 -1
- package/IO/api/concurrency.d.ts +1 -1
- package/IO/api/concurrentFinalizers.d.ts +11 -2
- package/IO/api/delay.d.ts +1 -1
- package/IO/api/ensuringChildren.d.ts +1 -1
- package/IO/api/environment.d.ts +5 -5
- package/IO/api/fork.d.ts +1 -1
- package/IO/api/forkIn.d.ts +1 -1
- package/IO/api/fulfill.d.ts +1 -1
- package/IO/api/interrupt.d.ts +4 -4
- package/IO/api/onTermination.d.ts +1 -1
- package/IO/api/patchFiberRefs.d.ts +7 -0
- package/IO/api/provideLayer.d.ts +1 -1
- package/IO/api/provideScope.d.ts +1 -1
- package/IO/api/provideSomeLayer.d.ts +1 -1
- package/IO/api/provideSomeRuntime.d.ts +7 -0
- package/IO/api/race.d.ts +2 -2
- package/IO/api/raceFirst.d.ts +1 -1
- package/IO/api/repeat.d.ts +3 -3
- package/IO/api/retry.d.ts +3 -3
- package/IO/api/schedule.d.ts +2 -2
- package/IO/api/timeout.d.ts +2 -2
- package/IO/api/whenFiberRef.d.ts +1 -1
- package/IO/api/whenRef.d.ts +1 -1
- package/IO/api/withFinalizer.d.ts +1 -1
- package/IO/api/withFinalizerExit.d.ts +1 -1
- package/IO/api/zipConcurrent.d.ts +2 -2
- package/IO/api.d.ts +40 -40
- package/IO/definition.d.ts +6 -1
- package/IO/runtime.d.ts +6 -6
- package/IO.d.ts +62 -60
- package/IOEnv.d.ts +2 -2
- package/InterruptStatus.d.ts +1 -1
- package/Layer/MemoMap.d.ts +3 -3
- package/Layer/api.d.ts +15 -9
- package/Layer.d.ts +1 -1
- package/Logger/api.d.ts +2 -2
- package/Logger.d.ts +2 -2
- package/MVar.d.ts +1 -1
- package/Push/api.d.ts +18 -18
- package/Push.d.ts +2 -2
- package/Queue/api/dimapIO.d.ts +6 -6
- package/Queue/api/filterInputIO.d.ts +3 -3
- package/Queue/api/filterOutputIO.d.ts +3 -3
- package/Queue/api/operations.d.ts +3 -3
- package/Queue/api/takeBetween.d.ts +1 -1
- package/Queue/api/takeN.d.ts +8 -0
- package/Queue/api/zipWithIO.d.ts +3 -3
- package/Queue/api.d.ts +7 -6
- package/Queue.d.ts +4 -4
- package/Random/definition.d.ts +1 -1
- package/Random.d.ts +2 -2
- package/Ref/Synchronized/api.d.ts +14 -14
- package/Ref/Synchronized.d.ts +2 -2
- package/Ref/api/collect.d.ts +1 -1
- package/Ref/api/filter.d.ts +1 -1
- package/Ref/api/modify.d.ts +8 -8
- package/Ref/api/set.d.ts +1 -1
- package/Ref/api.d.ts +7 -7
- package/Ref.d.ts +7 -7
- package/RefSubject/api.d.ts +9 -9
- package/RefSubject/definition.d.ts +2 -0
- package/RefSubject.d.ts +1 -1
- package/Reloadable.d.ts +2 -2
- package/RuntimeFlags.d.ts +1 -1
- package/STM/api/core-api.d.ts +5 -5
- package/STM/api.d.ts +13 -13
- package/STM.d.ts +4 -4
- package/Schedule/api.d.ts +46 -46
- package/Schedule.d.ts +2 -2
- package/Scope/ReleaseMap.d.ts +2 -2
- package/Scope/api.d.ts +6 -1
- package/Scope/definition.d.ts +4 -2
- package/Scope.d.ts +1 -1
- package/ScopedRef.d.ts +1 -1
- package/Semaphore.d.ts +1 -1
- package/Sink/api.d.ts +34 -34
- package/Sink.d.ts +1 -1
- package/State.d.ts +1 -1
- package/Stream/api/zipAllWith.d.ts +1 -1
- package/Stream/api/zipWith.d.ts +1 -1
- package/Stream/api/zipWithChunks.d.ts +1 -1
- package/Stream/api.d.ts +80 -80
- package/Stream.d.ts +1 -1
- package/Subject.d.ts +1 -1
- package/Supervisor/api.d.ts +1 -1
- package/Supervisor.d.ts +2 -2
- package/TExit.d.ts +1 -1
- package/TFuture/api.d.ts +2 -2
- package/TFuture.d.ts +2 -2
- package/TReentrantLock.d.ts +1 -1
- package/TRef/api.d.ts +10 -10
- package/TRef.d.ts +2 -2
- package/TSemaphore/api.d.ts +2 -2
- package/TSemaphore.d.ts +2 -2
- package/_cjs/Cached/api.cjs +6 -8
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +4 -6
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/Cached.cjs +8 -8
- package/_cjs/Cached.cjs.map +1 -1
- package/_cjs/CancellerState.cjs +3 -6
- package/_cjs/CancellerState.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs +3 -6
- package/_cjs/Channel/ChildExecutorDecision/definition.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision.cjs +8 -8
- package/_cjs/Channel/ChildExecutorDecision.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs +1 -2
- package/_cjs/Channel/UpstreamPullRequest/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest.cjs +8 -8
- package/_cjs/Channel/UpstreamPullRequest.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs +1 -2
- package/_cjs/Channel/UpstreamPullStrategy/definition.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullStrategy.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +3 -4
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +2 -2
- package/_cjs/Channel/api/mergeAll.cjs +2 -2
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +2 -2
- package/_cjs/Channel/api/mergeAllWith.cjs +2 -2
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +2 -2
- package/_cjs/Channel/api/mergeWith.cjs +4 -3
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +2 -2
- package/_cjs/Channel/api/runCollect.cjs +2 -2
- package/_cjs/Channel/api/runDrain.cjs +2 -2
- package/_cjs/Channel/api/runScoped.cjs +3 -3
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +2 -2
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipConcurrent.cjs +3 -4
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +39 -76
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +6 -12
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +2 -4
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +50 -54
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +5 -12
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeDecision.cjs +2 -4
- package/_cjs/Channel/internal/MergeDecision.cjs.map +1 -1
- package/_cjs/Channel/internal/MergeState.cjs +1 -2
- package/_cjs/Channel/internal/MergeState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +2 -2
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Channel.cjs +8 -8
- package/_cjs/Channel.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +3 -4
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +3 -4
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +3 -4
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Clock.cjs +8 -8
- package/_cjs/Clock.cjs.map +1 -1
- package/_cjs/Console/api.cjs +2 -2
- package/_cjs/Console/definition.cjs +3 -4
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +3 -4
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/Console.cjs +8 -8
- package/_cjs/Console.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +9 -10
- package/_cjs/CountdownLatch.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +2 -2
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Differ/definition.cjs +1 -2
- package/_cjs/Differ/definition.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +2 -4
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -1
- package/_cjs/Fiber/FiberRuntime.cjs +71 -70
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +2 -2
- package/_cjs/Fiber/api/collectAll.cjs +2 -2
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +2 -2
- package/_cjs/Fiber/api/interrupt.cjs +2 -2
- package/_cjs/Fiber/api/interruptAll.cjs +3 -4
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +3 -4
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +2 -2
- package/_cjs/Fiber/api/join.cjs +2 -2
- package/_cjs/Fiber/api/joinAll.cjs +2 -2
- package/_cjs/Fiber/api/mapFiber.cjs +2 -2
- package/_cjs/Fiber/api/mapIO.cjs +3 -4
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +2 -2
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +5 -8
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +6 -10
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/Fiber.cjs +83 -83
- package/_cjs/Fiber.cjs.map +1 -1
- package/_cjs/FiberDescriptor.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +2 -2
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +2 -2
- package/_cjs/FiberRef/constructors.cjs +2 -2
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +4 -6
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/operations.cjs +6 -10
- package/_cjs/FiberRef/operations.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +18 -34
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRef.cjs +24 -24
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/FiberRefs/Patch.cjs +172 -0
- package/_cjs/FiberRefs/Patch.cjs.map +1 -0
- package/_cjs/FiberRefs/api.cjs +2 -2
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +3 -4
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberRefs.cjs +15 -4
- package/_cjs/FiberRefs.cjs.map +1 -1
- package/_cjs/FiberScope/constructors.cjs +1 -2
- package/_cjs/FiberScope/constructors.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +2 -2
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberScope.cjs +8 -8
- package/_cjs/FiberScope.cjs.map +1 -1
- package/_cjs/FiberStatus/constructors.cjs +1 -2
- package/_cjs/FiberStatus/constructors.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +3 -4
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/FiberStatus.cjs +8 -8
- package/_cjs/FiberStatus.cjs.map +1 -1
- package/_cjs/Future/api.cjs +5 -8
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +4 -6
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +2 -4
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Future.cjs +8 -8
- package/_cjs/Future.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +14 -18
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/definition.cjs +3 -6
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +2 -2
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/Hub.cjs +8 -8
- package/_cjs/Hub.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +2 -2
- package/_cjs/IO/api/acquireReleaseExit.cjs +2 -2
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +2 -2
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +2 -2
- package/_cjs/IO/api/addFinalizer.cjs +2 -2
- package/_cjs/IO/api/addFinalizerExit.cjs +2 -2
- package/_cjs/IO/api/all.cjs +2 -2
- package/_cjs/IO/api/all.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +2 -2
- package/_cjs/IO/api/asyncInterrupt.cjs +4 -6
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -1
- package/_cjs/IO/api/blocking.cjs +2 -2
- package/_cjs/IO/api/blocking.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +2 -2
- package/_cjs/IO/api/bracketExit.cjs +2 -2
- package/_cjs/IO/api/clockWith.cjs +4 -6
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +6 -10
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +57 -9
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +4 -6
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/daemonChildren.cjs +2 -2
- package/_cjs/IO/api/delay.cjs +2 -2
- package/_cjs/IO/api/descriptor.cjs +4 -6
- package/_cjs/IO/api/descriptor.cjs.map +1 -1
- package/_cjs/IO/api/disconnect.cjs +2 -2
- package/_cjs/IO/api/ensuringChildren.cjs +2 -2
- package/_cjs/IO/api/environment.cjs +7 -12
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachConcurrent.cjs +22 -21
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +2 -2
- package/_cjs/IO/api/fork.cjs +3 -4
- package/_cjs/IO/api/fork.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +2 -2
- package/_cjs/IO/api/forkDaemon.cjs +2 -2
- package/_cjs/IO/api/forkIn.cjs +2 -2
- package/_cjs/IO/api/forkScoped.cjs +2 -2
- package/_cjs/IO/api/fulfill.cjs +2 -2
- package/_cjs/IO/api/interrupt.cjs +8 -14
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +2 -2
- package/_cjs/IO/api/onTermination.cjs +2 -2
- package/_cjs/IO/api/once.cjs +2 -2
- package/_cjs/IO/api/patchFiberRefs.cjs +18 -0
- package/_cjs/IO/api/patchFiberRefs.cjs.map +1 -0
- package/_cjs/IO/api/provideLayer.cjs +2 -2
- package/_cjs/IO/api/provideScope.cjs +2 -2
- package/_cjs/IO/api/provideSomeLayer.cjs +2 -2
- package/_cjs/IO/api/provideSomeRuntime.cjs +29 -0
- package/_cjs/IO/api/provideSomeRuntime.cjs.map +1 -0
- package/_cjs/IO/api/race.cjs +3 -4
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +2 -2
- package/_cjs/IO/api/raceWith.cjs +3 -4
- package/_cjs/IO/api/raceWith.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +4 -6
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +4 -6
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +4 -6
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +3 -4
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +3 -4
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +2 -2
- package/_cjs/IO/api/scoped.cjs +3 -4
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sequenceT.cjs +2 -2
- package/_cjs/IO/api/sequenceT.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +2 -2
- package/_cjs/IO/api/stateful.cjs +2 -2
- package/_cjs/IO/api/supervised.cjs +2 -2
- package/_cjs/IO/api/timeout.cjs +3 -4
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/transplant.cjs +2 -2
- package/_cjs/IO/api/whenFiberRef.cjs +2 -2
- package/_cjs/IO/api/whenRef.cjs +2 -2
- package/_cjs/IO/api/withChildren.cjs +2 -2
- package/_cjs/IO/api/withEarlyRelease.cjs +3 -3
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +2 -2
- package/_cjs/IO/api/withFinalizerExit.cjs +2 -2
- package/_cjs/IO/api/zipConcurrent.cjs +3 -4
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/IO/api.cjs +76 -143
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +5 -8
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +8 -14
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +266 -244
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +4 -6
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +3 -4
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +3 -4
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/IOEnv.cjs +8 -8
- package/_cjs/IOEnv.cjs.map +1 -1
- package/_cjs/InterruptStatus/constructors.cjs +2 -4
- package/_cjs/InterruptStatus/constructors.cjs.map +1 -1
- package/_cjs/InterruptStatus.cjs +8 -8
- package/_cjs/InterruptStatus.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +11 -13
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +28 -34
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs +2 -4
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/Layer.cjs +8 -8
- package/_cjs/Layer.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +8 -16
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +2 -2
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +4 -6
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Logger/definition.cjs +1 -2
- package/_cjs/Logger/definition.cjs.map +1 -1
- package/_cjs/Logger.cjs +8 -8
- package/_cjs/Logger.cjs.map +1 -1
- package/_cjs/MVar/api.cjs +2 -2
- package/_cjs/MVar/api.cjs.map +1 -1
- package/_cjs/MVar/definition.cjs +2 -4
- package/_cjs/MVar/definition.cjs.map +1 -1
- package/_cjs/MVar.cjs +8 -8
- package/_cjs/MVar.cjs.map +1 -1
- package/_cjs/Push/api.cjs +21 -40
- package/_cjs/Push/api.cjs.map +1 -1
- package/_cjs/Push/definition.cjs +2 -4
- package/_cjs/Push/definition.cjs.map +1 -1
- package/_cjs/Push/internal.cjs +2 -2
- package/_cjs/Push.cjs +8 -8
- package/_cjs/Push.cjs.map +1 -1
- package/_cjs/Queue/api/dimapIO.cjs +10 -13
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +12 -13
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +19 -20
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/operations.cjs +3 -3
- package/_cjs/Queue/api/operations.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +2 -2
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +16 -21
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/takeN.cjs +18 -0
- package/_cjs/Queue/api/takeN.cjs.map +1 -0
- package/_cjs/Queue/api/zipWithIO.cjs +4 -6
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/api.cjs +35 -24
- package/_cjs/Queue/api.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +2 -2
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +5 -10
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +4 -4
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +2 -2
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Queue.cjs +16 -16
- package/_cjs/Queue.cjs.map +1 -1
- package/_cjs/Random/api.cjs +5 -8
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +3 -4
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +3 -4
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Random.cjs +8 -8
- package/_cjs/Random.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +3 -4
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +3 -4
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +3 -4
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +5 -8
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +2 -2
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +4 -6
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/Ref/Synchronized.cjs +8 -8
- package/_cjs/Ref/Synchronized.cjs.map +1 -1
- package/_cjs/Ref/api/collect.cjs +2 -2
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +5 -8
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +2 -2
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +3 -4
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api.cjs +36 -35
- package/_cjs/Ref/api.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +3 -4
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +3 -6
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Ref.cjs +35 -35
- package/_cjs/Ref.cjs.map +1 -1
- package/_cjs/RefSubject/Atomic.cjs +5 -5
- package/_cjs/RefSubject/Atomic.cjs.map +1 -1
- package/_cjs/RefSubject/Synchronized/api.cjs +2 -2
- package/_cjs/RefSubject/Synchronized/api.cjs.map +1 -1
- package/_cjs/RefSubject/Synchronized/definition.cjs +11 -13
- package/_cjs/RefSubject/Synchronized/definition.cjs.map +1 -1
- package/_cjs/RefSubject/api.cjs +8 -11
- package/_cjs/RefSubject/api.cjs.map +1 -1
- package/_cjs/RefSubject/definition.cjs +2 -2
- package/_cjs/RefSubject/definition.cjs.map +1 -1
- package/_cjs/RefSubject.cjs +11 -11
- package/_cjs/RefSubject.cjs.map +1 -1
- package/_cjs/Reloadable/api.cjs +2 -2
- package/_cjs/Reloadable/constructors.cjs +4 -6
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +4 -5
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/Reloadable.cjs +8 -8
- package/_cjs/Reloadable.cjs.map +1 -1
- package/_cjs/RuntimeFlags/Patch.cjs +5 -8
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -1
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +9 -16
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -1
- package/_cjs/RuntimeFlags.cjs +8 -8
- package/_cjs/RuntimeFlags.cjs.map +1 -1
- package/_cjs/STM/api/atomically.cjs +2 -2
- package/_cjs/STM/api/atomically.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +6 -10
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api/core-constructors.cjs +3 -6
- package/_cjs/STM/api/core-constructors.cjs.map +1 -1
- package/_cjs/STM/api.cjs +24 -46
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +8 -16
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +5 -4
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +6 -10
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs +2 -4
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +12 -22
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM/internal/TryCommit.cjs +1 -2
- package/_cjs/STM/internal/TryCommit.cjs.map +1 -1
- package/_cjs/STM/internal/Versioned.cjs +1 -2
- package/_cjs/STM/internal/Versioned.cjs.map +1 -1
- package/_cjs/STM.cjs +16 -16
- package/_cjs/STM.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +4 -6
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +4 -3
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +40 -76
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Schedule/definition.cjs +1 -2
- package/_cjs/Schedule/definition.cjs.map +1 -1
- package/_cjs/Schedule.cjs +16 -16
- package/_cjs/Schedule.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +4 -6
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/Finalizer.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +2 -2
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +4 -6
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +4 -6
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +3 -4
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap.cjs +8 -8
- package/_cjs/Scope/ReleaseMap.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +41 -34
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +7 -7
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/Scope.cjs +8 -8
- package/_cjs/Scope.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +2 -2
- package/_cjs/ScopedRef/definition.cjs +1 -2
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/ScopedRef.cjs +8 -8
- package/_cjs/ScopedRef.cjs.map +1 -1
- package/_cjs/Semaphore.cjs +3 -4
- package/_cjs/Semaphore.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +44 -80
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Sink.cjs +8 -8
- package/_cjs/Sink.cjs.map +1 -1
- package/_cjs/State/api.cjs +2 -2
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/State/internal.cjs +2 -4
- package/_cjs/State/internal.cjs.map +1 -1
- package/_cjs/State.cjs +8 -8
- package/_cjs/State.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +2 -2
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +2 -2
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +2 -2
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +82 -162
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs +3 -6
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +5 -10
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +19 -26
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +4 -6
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +1 -2
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +6 -10
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +2 -2
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Stream.cjs +8 -8
- package/_cjs/Stream.cjs.map +1 -1
- package/_cjs/Subject/Atomic.cjs +2 -2
- package/_cjs/Subject/Atomic.cjs.map +1 -1
- package/_cjs/Subject/api.cjs +3 -4
- package/_cjs/Subject/api.cjs.map +1 -1
- package/_cjs/Subject/definition.cjs +2 -4
- package/_cjs/Subject/definition.cjs.map +1 -1
- package/_cjs/Subject.cjs +11 -11
- package/_cjs/Subject.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +9 -11
- package/_cjs/SubscriptionRef.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +5 -8
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +4 -6
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +3 -5
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/Supervisor.cjs +8 -8
- package/_cjs/Supervisor.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +5 -8
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/constructors.cjs +2 -4
- package/_cjs/TExit/constructors.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +11 -29
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TExit.cjs +8 -8
- package/_cjs/TExit.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +3 -4
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +3 -4
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +3 -4
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TFuture.cjs +8 -8
- package/_cjs/TFuture.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +9 -16
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +2 -3
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock.cjs +8 -8
- package/_cjs/TReentrantLock.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +5 -8
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +4 -6
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +38 -41
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TRef.cjs +8 -8
- package/_cjs/TRef.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +5 -8
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +3 -4
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +3 -4
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/TSemaphore.cjs +8 -8
- package/_cjs/TSemaphore.cjs.map +1 -1
- package/_cjs/TxnId.cjs +1 -2
- package/_cjs/TxnId.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/findIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +2 -2
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc.cjs +24 -24
- package/_cjs/collection/immutable/Conc.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +2 -2
- package/_cjs/internal/BackgroundScheduler.cjs +1 -2
- package/_cjs/internal/BackgroundScheduler.cjs.map +1 -1
- package/_cjs/internal/HashedPair.cjs +2 -2
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +2 -2
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +2 -4
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +3 -4
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +3 -4
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +2 -2
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs +2 -2
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Cached.mjs +3 -2
- package/_mjs/Cached.mjs.map +1 -1
- package/_mjs/CancellerState.mjs +0 -3
- package/_mjs/CancellerState.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision.mjs +2 -1
- package/_mjs/Channel/ChildExecutorDecision.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest.mjs +2 -1
- package/_mjs/Channel/UpstreamPullRequest.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullStrategy.mjs +1 -0
- package/_mjs/Channel/UpstreamPullStrategy.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/runScoped.mjs +1 -1
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +48 -52
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelState.mjs +0 -4
- package/_mjs/Channel/internal/ChannelState.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeDecision.mjs +0 -1
- package/_mjs/Channel/internal/MergeDecision.mjs.map +1 -1
- package/_mjs/Channel/internal/MergeState.mjs +0 -3
- package/_mjs/Channel/internal/MergeState.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +0 -3
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Channel.mjs +4 -3
- package/_mjs/Channel.mjs.map +1 -1
- package/_mjs/Clock.mjs +3 -2
- package/_mjs/Clock.mjs.map +1 -1
- package/_mjs/Console.mjs +3 -2
- package/_mjs/Console.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +6 -6
- package/_mjs/CountdownLatch.mjs.map +1 -1
- package/_mjs/Differ/api.mjs.map +1 -1
- package/_mjs/Fiber/FiberRuntime.mjs +66 -67
- package/_mjs/Fiber/FiberRuntime.mjs.map +1 -1
- package/_mjs/Fiber.mjs +21 -19
- package/_mjs/Fiber.mjs.map +1 -1
- package/_mjs/FiberDescriptor.mjs.map +1 -1
- package/_mjs/FiberRef.mjs +7 -5
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/FiberRefs/Patch.mjs +154 -0
- package/_mjs/FiberRefs/Patch.mjs.map +1 -0
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs.mjs +3 -1
- package/_mjs/FiberRefs.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberScope.mjs +2 -1
- package/_mjs/FiberScope.mjs.map +1 -1
- package/_mjs/FiberStatus/definition.mjs.map +1 -1
- package/_mjs/FiberStatus.mjs +2 -1
- package/_mjs/FiberStatus.mjs.map +1 -1
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +0 -1
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Future.mjs +3 -2
- package/_mjs/Future.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +8 -8
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/Hub.mjs +3 -2
- package/_mjs/Hub.mjs.map +1 -1
- package/_mjs/IO/api/all.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +52 -6
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/foreachConcurrent.mjs +20 -19
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/patchFiberRefs.mjs +10 -0
- package/_mjs/IO/api/patchFiberRefs.mjs.map +1 -0
- package/_mjs/IO/api/provideSomeRuntime.mjs +21 -0
- package/_mjs/IO/api/provideSomeRuntime.mjs.map +1 -0
- package/_mjs/IO/api/raceWith.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/zipConcurrent.mjs.map +1 -1
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +64 -60
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv.mjs +3 -2
- package/_mjs/IOEnv.mjs.map +1 -1
- package/_mjs/InterruptStatus.mjs +2 -1
- package/_mjs/InterruptStatus.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +2 -2
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +9 -0
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs +0 -6
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/Layer.mjs +2 -1
- package/_mjs/Layer.mjs.map +1 -1
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Logger.mjs +3 -2
- package/_mjs/Logger.mjs.map +1 -1
- package/_mjs/MVar.mjs +2 -1
- package/_mjs/MVar.mjs.map +1 -1
- package/_mjs/Push/api.mjs.map +1 -1
- package/_mjs/Push.mjs +3 -2
- package/_mjs/Push.mjs.map +1 -1
- package/_mjs/Queue/api/dimapIO.mjs +5 -5
- package/_mjs/Queue/api/dimapIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterInputIO.mjs +9 -9
- package/_mjs/Queue/api/filterInputIO.mjs.map +1 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +16 -16
- package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -1
- package/_mjs/Queue/api/operations.mjs +2 -2
- package/_mjs/Queue/api/operations.mjs.map +1 -1
- package/_mjs/Queue/api/takeBetween.mjs +14 -19
- package/_mjs/Queue/api/takeBetween.mjs.map +1 -1
- package/_mjs/Queue/api/takeN.mjs +10 -0
- package/_mjs/Queue/api/takeN.mjs.map +1 -0
- package/_mjs/Queue/api.mjs +8 -6
- package/_mjs/Queue/api.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +2 -2
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Queue.mjs +5 -4
- package/_mjs/Queue.mjs.map +1 -1
- package/_mjs/Random.mjs +3 -2
- package/_mjs/Random.mjs.map +1 -1
- package/_mjs/Ref/Synchronized.mjs +3 -2
- package/_mjs/Ref/Synchronized.mjs.map +1 -1
- package/_mjs/Ref/api.mjs +9 -8
- package/_mjs/Ref/api.mjs.map +1 -1
- package/_mjs/Ref.mjs +9 -7
- package/_mjs/Ref.mjs.map +1 -1
- package/_mjs/RefSubject/Atomic.mjs +3 -3
- package/_mjs/RefSubject/Atomic.mjs.map +1 -1
- package/_mjs/RefSubject/Synchronized/api.mjs.map +1 -1
- package/_mjs/RefSubject/Synchronized/definition.mjs +7 -7
- package/_mjs/RefSubject/Synchronized/definition.mjs.map +1 -1
- package/_mjs/RefSubject/api.mjs +3 -3
- package/_mjs/RefSubject/api.mjs.map +1 -1
- package/_mjs/RefSubject/definition.mjs +1 -0
- package/_mjs/RefSubject/definition.mjs.map +1 -1
- package/_mjs/RefSubject.mjs +2 -1
- package/_mjs/RefSubject.mjs.map +1 -1
- package/_mjs/Reloadable/definition.mjs +1 -1
- package/_mjs/Reloadable/definition.mjs.map +1 -1
- package/_mjs/Reloadable.mjs +3 -2
- package/_mjs/Reloadable.mjs.map +1 -1
- package/_mjs/RuntimeFlags.mjs +2 -1
- package/_mjs/RuntimeFlags.mjs.map +1 -1
- package/_mjs/STM/api/atomically.mjs.map +1 -1
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/definition.mjs +0 -7
- package/_mjs/STM/definition.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +1 -1
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/CommitState.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM/internal/TryCommit.mjs +0 -2
- package/_mjs/STM/internal/TryCommit.mjs.map +1 -1
- package/_mjs/STM.mjs +6 -4
- package/_mjs/STM.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +0 -2
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +2 -2
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Schedule.mjs +3 -2
- package/_mjs/Schedule.mjs.map +1 -1
- package/_mjs/Scope/Finalizer.mjs +1 -0
- package/_mjs/Scope/Finalizer.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap.mjs +3 -2
- package/_mjs/Scope/ReleaseMap.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +31 -19
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/Scope/definition.mjs +4 -2
- package/_mjs/Scope/definition.mjs.map +1 -1
- package/_mjs/Scope.mjs +3 -2
- package/_mjs/Scope.mjs.map +1 -1
- package/_mjs/ScopedRef.mjs +2 -1
- package/_mjs/ScopedRef.mjs.map +1 -1
- package/_mjs/Semaphore.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +4 -4
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/Sink.mjs +2 -1
- package/_mjs/Sink.mjs.map +1 -1
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/State.mjs +3 -2
- package/_mjs/State.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +0 -3
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +10 -15
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +0 -2
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/Stream.mjs +3 -2
- package/_mjs/Stream.mjs.map +1 -1
- package/_mjs/Subject.mjs +2 -1
- package/_mjs/Subject.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +5 -5
- package/_mjs/SubscriptionRef.mjs.map +1 -1
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +1 -3
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/Supervisor.mjs +3 -2
- package/_mjs/Supervisor.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +0 -3
- package/_mjs/SupervisorPatch.mjs.map +1 -1
- package/_mjs/TExit/definition.mjs +0 -9
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TExit.mjs +2 -1
- package/_mjs/TExit.mjs.map +1 -1
- package/_mjs/TFuture.mjs +3 -2
- package/_mjs/TFuture.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +0 -1
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock.mjs +2 -1
- package/_mjs/TReentrantLock.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +33 -33
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TRef.mjs +3 -2
- package/_mjs/TRef.mjs.map +1 -1
- package/_mjs/TSemaphore.mjs +3 -2
- package/_mjs/TSemaphore.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc.mjs +6 -5
- package/_mjs/collection/immutable/Conc.mjs.map +1 -1
- package/_mjs/internal/BackgroundScheduler.mjs.map +1 -1
- package/_mjs/internal/HashedPair.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +0 -3
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/Scheduler.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/Cached/api.ts +4 -1
- package/_src/Cached.ts +3 -2
- package/_src/Channel/ChildExecutorDecision.ts +2 -1
- package/_src/Channel/UpstreamPullRequest.ts +2 -1
- package/_src/Channel/UpstreamPullStrategy.ts +1 -0
- package/_src/Channel/internal/ChannelExecutor.ts +4 -1
- package/_src/Channel/internal/MergeState.ts +4 -1
- package/_src/Channel.ts +4 -3
- package/_src/Clock.ts +3 -2
- package/_src/Console.ts +3 -2
- package/_src/CountdownLatch.ts +4 -1
- package/_src/Fiber/FiberRuntime.ts +12 -2
- package/_src/Fiber.ts +21 -19
- package/_src/FiberDescriptor.ts +5 -1
- package/_src/FiberRef.ts +7 -5
- package/_src/FiberRefs/Patch.ts +145 -0
- package/_src/FiberRefs.ts +3 -1
- package/_src/FiberScope/definition.ts +4 -1
- package/_src/FiberScope.ts +2 -1
- package/_src/FiberStatus/definition.ts +9 -2
- package/_src/FiberStatus.ts +2 -1
- package/_src/Future/definition.ts +4 -1
- package/_src/Future.ts +3 -2
- package/_src/Hub/api.ts +8 -2
- package/_src/Hub.ts +3 -2
- package/_src/IO/api/concurrentFinalizers.ts +74 -7
- package/_src/IO/api/foreachConcurrent.ts +16 -14
- package/_src/IO/api/interrupt.ts +1 -1
- package/_src/IO/api/patchFiberRefs.ts +8 -0
- package/_src/IO/api/provideSomeRuntime.ts +22 -0
- package/_src/IO/api.ts +4 -1
- package/_src/IO/definition.ts +6 -1
- package/_src/IO.ts +64 -60
- package/_src/IOEnv.ts +3 -2
- package/_src/InterruptStatus.ts +2 -1
- package/_src/Layer/MemoMap.ts +11 -3
- package/_src/Layer/api.ts +10 -0
- package/_src/Layer/definition.ts +17 -4
- package/_src/Layer.ts +2 -1
- package/_src/LogLevel.ts +5 -1
- package/_src/LogSpan.ts +4 -1
- package/_src/Logger.ts +3 -2
- package/_src/MVar.ts +2 -1
- package/_src/Push.ts +3 -2
- package/_src/Queue/api/dimapIO.ts +8 -2
- package/_src/Queue/api/filterInputIO.ts +8 -2
- package/_src/Queue/api/filterOutputIO.ts +8 -2
- package/_src/Queue/api/operations.ts +2 -2
- package/_src/Queue/api/takeBetween.ts +18 -20
- package/_src/Queue/api/takeN.ts +10 -0
- package/_src/Queue/api.ts +8 -6
- package/_src/Queue/internal.ts +4 -1
- package/_src/Queue.ts +5 -4
- package/_src/Random.ts +3 -2
- package/_src/Ref/Synchronized.ts +3 -2
- package/_src/Ref/api.ts +8 -7
- package/_src/Ref.ts +9 -7
- package/_src/RefSubject/Atomic.ts +14 -3
- package/_src/RefSubject/Synchronized/definition.ts +4 -1
- package/_src/RefSubject/api.ts +5 -1
- package/_src/RefSubject/definition.ts +1 -0
- package/_src/RefSubject.ts +2 -1
- package/_src/Reloadable/definition.ts +4 -1
- package/_src/Reloadable.ts +3 -2
- package/_src/RuntimeFlags.ts +2 -1
- package/_src/STM/definition.ts +16 -4
- package/_src/STM/driver.ts +6 -1
- package/_src/STM.ts +6 -4
- package/_src/Schedule.ts +3 -2
- package/_src/Scope/Finalizer.ts +1 -0
- package/_src/Scope/ReleaseMap/definition.ts +5 -1
- package/_src/Scope/ReleaseMap.ts +3 -2
- package/_src/Scope/api.ts +36 -26
- package/_src/Scope/definition.ts +2 -1
- package/_src/Scope.ts +3 -2
- package/_src/ScopedRef.ts +2 -1
- package/_src/Sink/api.ts +4 -4
- package/_src/Sink.ts +2 -1
- package/_src/State.ts +3 -2
- package/_src/Stream/internal/Handoff.ts +4 -1
- package/_src/Stream.ts +3 -2
- package/_src/Subject/definition.ts +1 -1
- package/_src/Subject.ts +2 -1
- package/_src/SubscriptionRef.ts +5 -1
- package/_src/Supervisor/definition.ts +8 -2
- package/_src/Supervisor.ts +3 -2
- package/_src/SupervisorPatch.ts +4 -1
- package/_src/TExit.ts +2 -1
- package/_src/TFuture.ts +3 -2
- package/_src/TReentrantLock/definition.ts +5 -1
- package/_src/TReentrantLock.ts +2 -1
- package/_src/TRef/definition.ts +4 -1
- package/_src/TRef.ts +3 -2
- package/_src/TSemaphore.ts +3 -2
- package/_src/collection/immutable/Conc.ts +6 -5
- package/_src/index.ts +47 -46
- package/_src/internal/HashedPair.ts +4 -1
- package/_src/internal/Hub.ts +20 -4
- package/_src/internal/IsFatal.ts +4 -1
- package/collection/immutable/Conc.d.ts +5 -5
- package/data/Exit/foreachIO.d.ts +1 -1
- package/index.d.ts +46 -46
- package/internal/Hub.d.ts +1 -1
- package/package.json +4 -4
package/Stream/api.d.ts
CHANGED
@@ -45,13 +45,13 @@ export declare function absolve<R, E, E2, A>(self: Stream<R, E, Either<E2, A>>,
|
|
45
45
|
* @tsplus pipeable fncts.io.Stream aggregateAsync
|
46
46
|
* @tsplus location "@fncts/io/Stream/api"
|
47
47
|
*/
|
48
|
-
export declare function aggregateAsync<R1, E1, A1, B>(sink: Sink<R1, E1, A1, A1, B>, __tsplusTrace?: string): <R, E, A extends A1>(stream: Stream<R, E, A>) => Stream<
|
48
|
+
export declare function aggregateAsync<R1, E1, A1, B>(sink: Sink<R1, E1, A1, A1, B>, __tsplusTrace?: string): <R, E, A extends A1>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
49
49
|
/**
|
50
50
|
* Like `aggregateAsyncWithinEither`, but only returns the `Right` results.
|
51
51
|
* @tsplus pipeable fncts.io.Stream aggregateAsyncWithin
|
52
52
|
* @tsplus location "@fncts/io/Stream/api"
|
53
53
|
*/
|
54
|
-
export declare function aggregateAsyncWithin<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<
|
54
|
+
export declare function aggregateAsyncWithin<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, B>;
|
55
55
|
/**
|
56
56
|
* Aggregates elements using the provided sink until it completes, or until the
|
57
57
|
* delay signalled by the schedule has passed.
|
@@ -66,7 +66,7 @@ export declare function aggregateAsyncWithin<R1, E1, A1, B, R2, C>(sink: Sink<R1
|
|
66
66
|
* @tsplus pipeable fncts.io.Stream aggregateAsyncWithinEither
|
67
67
|
* @tsplus location "@fncts/io/Stream/api"
|
68
68
|
*/
|
69
|
-
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<
|
69
|
+
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
70
|
/**
|
71
71
|
* Composes this stream with the specified stream to create a cartesian product of elements,
|
72
72
|
* but keeps only elements from this stream.
|
@@ -74,7 +74,7 @@ export declare function aggregateAsyncWithinEither<R1, E1, A1, B, R2, C>(sink: S
|
|
74
74
|
* @tsplus pipeable fncts.io.Stream zipLeft
|
75
75
|
* @tsplus location "@fncts/io/Stream/api"
|
76
76
|
*/
|
77
|
-
export declare function zipLeft<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<
|
77
|
+
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>;
|
78
78
|
/**
|
79
79
|
* Composes this stream with the specified stream to create a cartesian product of elements,
|
80
80
|
* but keeps only elements from the other stream.
|
@@ -82,7 +82,7 @@ export declare function zipLeft<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTr
|
|
82
82
|
* @tsplus pipeable fncts.io.Stream zipRight
|
83
83
|
* @tsplus location "@fncts/io/Stream/api"
|
84
84
|
*/
|
85
|
-
export declare function zipRight<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<
|
85
|
+
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>;
|
86
86
|
/**
|
87
87
|
* Maps the success values of this stream to the specified constant value.
|
88
88
|
* @tsplus pipeable fncts.io.Stream as
|
@@ -141,7 +141,7 @@ export declare function acquireReleaseExit<R, E, A, R1>(acquire: IO<R, E, A>, re
|
|
141
141
|
* @tsplus pipeable fncts.io.Stream broadcast
|
142
142
|
* @tsplus location "@fncts/io/Stream/api"
|
143
143
|
*/
|
144
|
-
export declare function broadcast(n: number, maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) =>
|
144
|
+
export declare function broadcast(n: number, maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => IO<R | Scope, never, Conc<Stream<unknown, E, A>>>;
|
145
145
|
/**
|
146
146
|
* Fan out the stream, producing a dynamic number of streams that have the same elements as this stream.
|
147
147
|
* The driver stream will only ever advance of the `maximumLag` chunks before the
|
@@ -149,7 +149,7 @@ export declare function broadcast(n: number, maximumLag: number, __tsplusTrace?:
|
|
149
149
|
* @tsplus pipeable fncts.io.Stream broadcastDynamic
|
150
150
|
* @tsplus location "@fncts/io/Stream/api"
|
151
151
|
*/
|
152
|
-
export declare function broadcastDynamic(maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) =>
|
152
|
+
export declare function broadcastDynamic(maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => IO<R | Scope, never, Stream<unknown, E, A>>;
|
153
153
|
/**
|
154
154
|
* Converts the stream to a managed list of queues. Every value will be replicated to every queue with the
|
155
155
|
* slowest queue being allowed to buffer `maximumLag` chunks before the driver is backpressured.
|
@@ -158,7 +158,7 @@ export declare function broadcastDynamic(maximumLag: number, __tsplusTrace?: str
|
|
158
158
|
* @tsplus pipeable fncts.io.Stream broadcastedQueues
|
159
159
|
* @tsplus location "@fncts/io/Stream/api"
|
160
160
|
*/
|
161
|
-
export declare function broadcastedQueues(n: number, maximumLag: number, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) =>
|
161
|
+
export declare function broadcastedQueues(n: number, maximumLag: number, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => IO<R | Scope, never, Conc<Queue.Dequeue<Take<E, A>>>>;
|
162
162
|
/**
|
163
163
|
* Converts the stream to a managed dynamic amount of queues. Every chunk will be replicated to every queue with the
|
164
164
|
* slowest queue being allowed to buffer `maximumLag` chunks before the driver is backpressured.
|
@@ -167,7 +167,7 @@ export declare function broadcastedQueues(n: number, maximumLag: number, __tsplu
|
|
167
167
|
* @tsplus pipeable fncts.io.Stream broadcastedQueuesDynamic
|
168
168
|
* @tsplus location "@fncts/io/Stream/api"
|
169
169
|
*/
|
170
|
-
export declare function broadcastedQueuesDynamic(maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) =>
|
170
|
+
export declare function broadcastedQueuesDynamic(maximumLag: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => IO<R | Scope, never, IO<Scope, never, Queue.Dequeue<Take<E, A>>>>;
|
171
171
|
/**
|
172
172
|
* Allows a faster producer to progress independently of a slower consumer by buffering
|
173
173
|
* up to `capacity` elements in a queue.
|
@@ -193,7 +193,7 @@ export declare function bufferUnbounded<R, E, A>(stream: Stream<R, E, A>, __tspl
|
|
193
193
|
* @tsplus pipeable fncts.io.Stream catchAll
|
194
194
|
* @tsplus location "@fncts/io/Stream/api"
|
195
195
|
*/
|
196
|
-
export declare function catchAll<R1, E, E1, A1>(f: (e: E) => Stream<R1, E1, A1>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<
|
196
|
+
export declare function catchAll<R1, E, E1, A1>(f: (e: E) => Stream<R1, E1, A1>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R | R1, E1, A | A1>;
|
197
197
|
/**
|
198
198
|
* Switches over to the stream produced by the provided function in case this one
|
199
199
|
* fails. Allows recovery from all causes of failure, including interruption if the
|
@@ -201,14 +201,14 @@ export declare function catchAll<R1, E, E1, A1>(f: (e: E) => Stream<R1, E1, A1>,
|
|
201
201
|
* @tsplus pipeable fncts.io.Stream catchAllCause
|
202
202
|
* @tsplus location "@fncts/io/Stream/api"
|
203
203
|
*/
|
204
|
-
export declare function catchAllCause<R1, E, E1, A1>(f: (cause: Cause<E>) => Stream<R1, E1, A1>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<
|
204
|
+
export declare function catchAllCause<R1, E, E1, A1>(f: (cause: Cause<E>) => Stream<R1, E1, A1>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R | R1, E1, A | A1>;
|
205
205
|
/**
|
206
206
|
* Switches over to the stream produced by the provided function in case this one
|
207
207
|
* fails with some typed error.
|
208
208
|
* @tsplus pipeable fncts.io.Stream catchJust
|
209
209
|
* @tsplus location "@fncts/io/Stream/api"
|
210
210
|
*/
|
211
|
-
export declare function catchJust<R1, E, E1, A1>(pf: (e: E) => Maybe<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<
|
211
|
+
export declare function catchJust<R1, E, E1, A1>(pf: (e: E) => Maybe<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, A | A1>;
|
212
212
|
/**
|
213
213
|
* Switches over to the stream produced by the provided function in case this one
|
214
214
|
* fails with some errors. Allows recovery from all causes of failure, including interruption if the
|
@@ -216,14 +216,14 @@ export declare function catchJust<R1, E, E1, A1>(pf: (e: E) => Maybe<Stream<R1,
|
|
216
216
|
* @tsplus pipeable fncts.io.Stream catchJustCause
|
217
217
|
* @tsplus location "@fncts/io/Stream/api"
|
218
218
|
*/
|
219
|
-
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<
|
219
|
+
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
220
|
/**
|
221
221
|
* Returns a stream made of the concatenation in strict order of all the streams
|
222
222
|
* produced by passing each element of this stream to `f`
|
223
223
|
* @tsplus pipeable fncts.io.Stream flatMap
|
224
224
|
* @tsplus location "@fncts/io/Stream/api"
|
225
225
|
*/
|
226
|
-
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<
|
226
|
+
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>;
|
227
227
|
/**
|
228
228
|
* Exposes the underlying chunks of the stream as a stream of chunks of elements
|
229
229
|
* @tsplus getter fncts.io.Stream chunks
|
@@ -281,14 +281,14 @@ export declare function combineChunks<R, E, A, R1, E1, A1, S, R2, A2>(that: Stre
|
|
281
281
|
* @tsplus pipeable fncts.io.Stream concat
|
282
282
|
* @tsplus location "@fncts/io/Stream/api"
|
283
283
|
*/
|
284
|
-
export declare function concat<R1, E1, A1>(that: Stream<R1, E1, A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<
|
284
|
+
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>;
|
285
285
|
/**
|
286
286
|
* Composes this stream with the specified stream to create a cartesian product of elements.
|
287
287
|
* The `that` stream would be run multiple times, for every element in the `this` stream.
|
288
288
|
* @tsplus pipeable fncts.io.Stream cross
|
289
289
|
* @tsplus location "@fncts/io/Stream/api"
|
290
290
|
*/
|
291
|
-
export declare function cross<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<
|
291
|
+
export declare function cross<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, readonly [A, B]>;
|
292
292
|
/**
|
293
293
|
* Composes this stream with the specified stream to create a cartesian product of elements
|
294
294
|
* with a specified function.
|
@@ -296,7 +296,7 @@ export declare function cross<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?
|
|
296
296
|
* @tsplus pipeable fncts.io.Stream crossWith
|
297
297
|
* @tsplus location "@fncts/io/Stream/api"
|
298
298
|
*/
|
299
|
-
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<
|
299
|
+
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
300
|
/**
|
301
301
|
* Provides some of the environment required to run this effect,
|
302
302
|
* leaving the remainder `R0`.
|
@@ -319,7 +319,7 @@ export declare function defer<R, E, A>(self: Lazy<Stream<R, E, A>>): Stream<R, E
|
|
319
319
|
* @tsplus pipeable fncts.io.Stream defaultIfEmpty
|
320
320
|
* @tsplus location "@fncts/io/Stream/api"
|
321
321
|
*/
|
322
|
-
export declare function defaultIfEmpty<R1, E1, B>(fb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<
|
322
|
+
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>;
|
323
323
|
/**
|
324
324
|
* More powerful version of `broadcast`. Allows to provide a function that determines what
|
325
325
|
* queues should receive which elements. The decide function will receive the indices of the queues
|
@@ -327,7 +327,7 @@ export declare function defaultIfEmpty<R1, E1, B>(fb: Stream<R1, E1, B>, __tsplu
|
|
327
327
|
* @tsplus pipeable fncts.io.Stream distributedWith
|
328
328
|
* @tsplus location "@fncts/io/Stream/api"
|
329
329
|
*/
|
330
|
-
export declare function distributedWith<A>(n: number, maximumLag: number, decide: (_: A) => UIO<(_: number) => boolean>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) =>
|
330
|
+
export declare function distributedWith<A>(n: number, maximumLag: number, decide: (_: A) => UIO<(_: number) => boolean>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => IO<R | Scope, never, Conc<Queue.Dequeue<Exit<Maybe<E>, A>>>>;
|
331
331
|
/**
|
332
332
|
* More powerful version of `ZStream#distributedWith`. This returns a function that will produce
|
333
333
|
* new queues and corresponding indices.
|
@@ -338,7 +338,7 @@ export declare function distributedWith<A>(n: number, maximumLag: number, decide
|
|
338
338
|
* @tsplus pipeable fncts.io.Stream distributedWithDynamic
|
339
339
|
* @tsplus location "@fncts/io/Stream/api"
|
340
340
|
*/
|
341
|
-
export declare function distributedWithDynamic<E, A>(maximumLag: number, decide: (a: A) => UIO<(_: symbol) => boolean>, done?: (exit: Exit<Maybe<E>, never>) => UIO<any>, __tsplusTrace?: string): <R>(self: Stream<R, E, A>) =>
|
341
|
+
export declare function distributedWithDynamic<E, A>(maximumLag: number, decide: (a: A) => UIO<(_: symbol) => boolean>, done?: (exit: Exit<Maybe<E>, never>) => UIO<any>, __tsplusTrace?: string): <R>(self: Stream<R, E, A>) => IO<R | Scope, never, UIO<readonly [symbol, Queue.Dequeue<Exit<Maybe<E>, A>>]>>;
|
342
342
|
/**
|
343
343
|
* Converts this stream to a stream that executes its effects but emits no
|
344
344
|
* elements. Useful for sequencing effects using streams.
|
@@ -391,12 +391,12 @@ export declare const empty: Stream<never, never, never>;
|
|
391
391
|
* @tsplus pipeable fncts.io.Stream endWhen
|
392
392
|
* @tsplus location "@fncts/io/Stream/api"
|
393
393
|
*/
|
394
|
-
export declare function endWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<
|
394
|
+
export declare function endWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
395
395
|
/**
|
396
396
|
* @tsplus pipeable fncts.io.Stream ensuring
|
397
397
|
* @tsplus location "@fncts/io/Stream/api"
|
398
398
|
*/
|
399
|
-
export declare function ensuring<R1>(finalizer: IO<R1, never, any>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<
|
399
|
+
export declare function ensuring<R1>(finalizer: IO<R1, never, any>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R | R1, E, A>;
|
400
400
|
/**
|
401
401
|
* @tsplus static fncts.io.StreamOps environment
|
402
402
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -460,7 +460,7 @@ export declare function filter<A>(predicate: Predicate<A>): <R, E>(fa: Stream<R,
|
|
460
460
|
* @tsplus pipeable fncts.io.Stream filterIO
|
461
461
|
* @tsplus location "@fncts/io/Stream/api"
|
462
462
|
*/
|
463
|
-
export declare function filterIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<
|
463
|
+
export declare function filterIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
464
464
|
/**
|
465
465
|
* @tsplus pipeable fncts.io.Stream filterMap
|
466
466
|
* @tsplus location "@fncts/io/Stream/api"
|
@@ -470,7 +470,7 @@ export declare function filterMap<A, B>(f: (a: A) => Maybe<B>, __tsplusTrace?: s
|
|
470
470
|
* @tsplus pipeable fncts.io.Stream filterMapIO
|
471
471
|
* @tsplus location "@fncts/io/Stream/api"
|
472
472
|
*/
|
473
|
-
export declare function filterMapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Maybe<B>>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<
|
473
|
+
export declare function filterMapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Maybe<B>>, __tsplusTrace?: string): <R, E>(fa: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
474
474
|
/**
|
475
475
|
* Finds the first element emitted by this stream that satisfies the provided predicate.
|
476
476
|
* @tsplus pipeable fncts.io.Stream find
|
@@ -482,7 +482,7 @@ export declare function find<A>(p: Predicate<A>, __tsplusTrace?: string): <R, E>
|
|
482
482
|
* @tsplus pipeable fncts.io.Stream findIO
|
483
483
|
* @tsplus location "@fncts/io/Stream/api"
|
484
484
|
*/
|
485
|
-
export declare function findIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<
|
485
|
+
export declare function findIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
486
486
|
/**
|
487
487
|
* Flattens this stream-of-streams into a stream made of the concatenation in
|
488
488
|
* strict order of all the streams.
|
@@ -540,7 +540,7 @@ export declare function scoped<R, E, A>(stream: Lazy<IO<R, E, A>>, __tsplusTrace
|
|
540
540
|
* @tsplus pipeable fncts.io.Stream sliding
|
541
541
|
* @tsplus location "@fncts/io/Stream/api"
|
542
542
|
*/
|
543
|
-
export declare function sliding(chunkSize: number, stepSize: number, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R, E,
|
543
|
+
export declare function sliding(chunkSize: number, stepSize: number, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R, E, Conc<A>>;
|
544
544
|
/**
|
545
545
|
* Creates a stream from an effect producing a value of type `A`
|
546
546
|
* @tsplus static fncts.io.StreamOps fromIO
|
@@ -618,7 +618,7 @@ export declare function halt(u: Lazy<unknown>, __tsplusTrace?: string): Stream<n
|
|
618
618
|
* @tsplus pipeable fncts.io.Stream haltWhen
|
619
619
|
* @tsplus location "@fncts/io/Stream/api"
|
620
620
|
*/
|
621
|
-
export declare function haltWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<
|
621
|
+
export declare function haltWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
622
622
|
/**
|
623
623
|
* Halts the evaluation of this stream when the provided promise resolves.
|
624
624
|
*
|
@@ -626,12 +626,12 @@ export declare function haltWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: st
|
|
626
626
|
* @tsplus pipeable fncts.io.Stream haltWhen
|
627
627
|
* @tsplus location "@fncts/io/Stream/api"
|
628
628
|
*/
|
629
|
-
export declare function haltWhenFuture<E1>(future: Future<E1, any>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R,
|
629
|
+
export declare function haltWhenFuture<E1>(future: Future<E1, any>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R, E | E1, A>;
|
630
630
|
/**
|
631
631
|
* @tsplus pipeable fncts.io.Stream interleave
|
632
632
|
* @tsplus location "@fncts/io/Stream/api"
|
633
633
|
*/
|
634
|
-
export declare function interleave<R1, E1, B>(sb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(sa: Stream<R, E, A>) => Stream<
|
634
|
+
export declare function interleave<R1, E1, B>(sb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(sa: Stream<R, E, A>) => Stream<R | R1, E | E1, A | B>;
|
635
635
|
/**
|
636
636
|
* Combines this stream and the specified stream deterministically using the
|
637
637
|
* stream of boolean values `b` to control which stream to pull from next.
|
@@ -642,7 +642,7 @@ export declare function interleave<R1, E1, B>(sb: Stream<R1, E1, B>, __tsplusTra
|
|
642
642
|
* @tsplus pipeable fncts.io.Stream interleaveWith
|
643
643
|
* @tsplus location "@fncts/io/Stream/api"
|
644
644
|
*/
|
645
|
-
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<
|
645
|
+
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>;
|
646
646
|
/**
|
647
647
|
* Intersperse stream with provided element
|
648
648
|
*/
|
@@ -657,12 +657,12 @@ export declare function intersperse<R, E, A, A1>(stream: Stream<R, E, A>, middle
|
|
657
657
|
* @tsplus pipeable fncts.io.Stream interruptWhen
|
658
658
|
* @tsplus location "@fncts/io/Stream/api"
|
659
659
|
*/
|
660
|
-
export declare function interruptWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<
|
660
|
+
export declare function interruptWhen<R1, E1>(io: IO<R1, E1, any>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
661
661
|
/**
|
662
662
|
* @tsplus pipeable fncts.io.Stream interruptWhen
|
663
663
|
* @tsplus location "@fncts/io/Stream/api"
|
664
664
|
*/
|
665
|
-
export declare function interruptWhenFuture<E1>(future: Future<E1, unknown>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R,
|
665
|
+
export declare function interruptWhenFuture<E1>(future: Future<E1, unknown>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<R, E | E1, A>;
|
666
666
|
/**
|
667
667
|
* Transforms the elements of this stream using the supplied function.
|
668
668
|
* @tsplus pipeable fncts.io.Stream map
|
@@ -681,7 +681,7 @@ export declare function mapAccum<A, S, B>(s: S, f: (s: S, a: A) => readonly [S,
|
|
681
681
|
* @tsplus pipeable fncts.io.Stream mapAccumIO
|
682
682
|
* @tsplus location "@fncts/io/Stream/api"
|
683
683
|
*/
|
684
|
-
export declare function mapAccumIO<A, R1, E1, S, B>(s: S, f: (s: S, a: A) => IO<R1, E1, readonly [B, S]>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<
|
684
|
+
export declare function mapAccumIO<A, R1, E1, S, B>(s: S, f: (s: S, a: A) => IO<R1, E1, readonly [B, S]>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
685
685
|
/**
|
686
686
|
* Transforms the chunks emitted by this stream.
|
687
687
|
* @tsplus pipeable fncts.io.Stream mapChunks
|
@@ -693,7 +693,7 @@ export declare function mapChunks<A, A1>(f: (chunk: Conc<A>) => Conc<A1>, __tspl
|
|
693
693
|
* @tsplus pipeable fncts.io.Stream mapChunksIO
|
694
694
|
* @tsplus location "@fncts/io/Stream/api"
|
695
695
|
*/
|
696
|
-
export declare function mapChunksIO<A, R1, E1, B>(f: (chunk: Conc<A>) => IO<R1, E1, Conc<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<
|
696
|
+
export declare function mapChunksIO<A, R1, E1, B>(f: (chunk: Conc<A>) => IO<R1, E1, Conc<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
697
697
|
/**
|
698
698
|
* Maps each element to an iterable, and flattens the iterables into the
|
699
699
|
* output of this stream.
|
@@ -714,14 +714,14 @@ export declare function mapConcatChunk<A, B>(f: (a: A) => Conc<B>, __tsplusTrace
|
|
714
714
|
* @tsplus pipeable fncts.io.Stream mapConcatChunkIO
|
715
715
|
* @tsplus location "@fncts/io/Stream/api"
|
716
716
|
*/
|
717
|
-
export declare function mapConcatChunkIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Conc<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<
|
717
|
+
export declare function mapConcatChunkIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Conc<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
718
718
|
/**
|
719
719
|
* Effectfully maps each element to an iterable, and flattens the iterables into
|
720
720
|
* the output of this stream.
|
721
721
|
* @tsplus pipeable fncts.io.Stream mapConcatIO
|
722
722
|
* @tsplus location "@fncts/io/Stream/api"
|
723
723
|
*/
|
724
|
-
export declare function mapConcatIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Iterable<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<
|
724
|
+
export declare function mapConcatIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, Iterable<B>>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
725
725
|
/**
|
726
726
|
* Transforms the errors emitted by this stream using `f`.
|
727
727
|
* @tsplus pipeable fncts.io.Stream mapError
|
@@ -739,7 +739,7 @@ export declare function mapErrorCause<E, E1>(f: (e: Cause<E>) => Cause<E1>, __ts
|
|
739
739
|
* @tsplus pipeable fncts.io.Stream mapIO
|
740
740
|
* @tsplus location "@fncts/io/Stream/api"
|
741
741
|
*/
|
742
|
-
export declare function mapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<
|
742
|
+
export declare function mapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
743
743
|
/**
|
744
744
|
* Maps over elements of the stream with the specified effectful function,
|
745
745
|
* executing up to `n` invocations of `f` concurrently. Transformed elements
|
@@ -748,12 +748,12 @@ export declare function mapIO<A, R1, E1, B>(f: (a: A) => IO<R1, E1, B>, __tsplus
|
|
748
748
|
* @tsplus pipeable fncts.io.Stream mapIOConcurrently
|
749
749
|
* @tsplus location "@fncts/io/Stream/api"
|
750
750
|
*/
|
751
|
-
export declare function mapIOConcurrently<A, R1, E1, B>(n: number, f: (a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<
|
751
|
+
export declare function mapIOConcurrently<A, R1, E1, B>(n: number, f: (a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
752
752
|
/**
|
753
753
|
* @tsplus pipeable fncts.io.Stream mapIOConcurrentlyUnordered
|
754
754
|
* @tsplus location "@fncts/io/Stream/api"
|
755
755
|
*/
|
756
|
-
export declare function mapIOConcurrentlyUnordered<A, R1, E1, B>(n: number, f: (a: A) => IO<R1, E1, B>): <R, E>(self: Stream<R, E, A>) => Stream<
|
756
|
+
export declare function mapIOConcurrentlyUnordered<A, R1, E1, B>(n: number, f: (a: A) => IO<R1, E1, B>): <R, E>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
757
757
|
/**
|
758
758
|
* Merges this stream and the specified stream together.
|
759
759
|
*
|
@@ -762,42 +762,42 @@ export declare function mapIOConcurrentlyUnordered<A, R1, E1, B>(n: number, f: (
|
|
762
762
|
* @tsplus pipeable fncts.io.Stream merge
|
763
763
|
* @tsplus location "@fncts/io/Stream/api"
|
764
764
|
*/
|
765
|
-
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<
|
765
|
+
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>;
|
766
766
|
/**
|
767
767
|
* Merges this stream and the specified stream together. New produced stream
|
768
768
|
* will terminate when either stream terminates.
|
769
769
|
* @tsplus pipeable fncts.io.Stream mergeHaltEither
|
770
770
|
* @tsplus location "@fncts/io/Stream/api"
|
771
771
|
*/
|
772
|
-
export declare function mergeHaltEither<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<
|
772
|
+
export declare function mergeHaltEither<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, A | B>;
|
773
773
|
/**
|
774
774
|
* Merges this stream and the specified stream together. New produced stream
|
775
775
|
* will terminate when this stream terminates.
|
776
776
|
* @tsplus pipeable fncts.io.Stream mergeHaltLeft
|
777
777
|
* @tsplus location "@fncts/io/Stream/api"
|
778
778
|
*/
|
779
|
-
export declare function mergeHaltLeft<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<
|
779
|
+
export declare function mergeHaltLeft<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, A | B>;
|
780
780
|
/**
|
781
781
|
* Merges this stream and the specified stream together. New produced stream
|
782
782
|
* will terminate when the specified stream terminates.
|
783
783
|
* @tsplus pipeable fncts.io.Stream mergeHaltRight
|
784
784
|
* @tsplus location "@fncts/io/Stream/api"
|
785
785
|
*/
|
786
|
-
export declare function mergeHaltRight<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<
|
786
|
+
export declare function mergeHaltRight<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, A | B>;
|
787
787
|
/**
|
788
788
|
* Merges this stream and the specified stream together, discarding the values
|
789
789
|
* from the right stream.
|
790
790
|
* @tsplus pipeable fncts.io.Stream mergeLeft
|
791
791
|
* @tsplus location "@fncts/io/Stream/api"
|
792
792
|
*/
|
793
|
-
export declare function mergeLeft<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<
|
793
|
+
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>;
|
794
794
|
/**
|
795
795
|
* Merges this stream and the specified stream together, discarding the values
|
796
796
|
* from the left stream.
|
797
797
|
* @tsplus pipeable fncts.io.Stream mergeRight
|
798
798
|
* @tsplus location "@fncts/io/Stream/api"
|
799
799
|
*/
|
800
|
-
export declare function mergeRight<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<
|
800
|
+
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>;
|
801
801
|
/**
|
802
802
|
* Maps each element of this stream to another stream and returns the
|
803
803
|
* non-deterministic merge of those streams, executing up to `n` inner streams
|
@@ -806,7 +806,7 @@ export declare function mergeRight<R1, E1, B>(that: Stream<R1, E1, B>, __tsplusT
|
|
806
806
|
* @tsplus pipeable fncts.io.Stream mergeMap
|
807
807
|
* @tsplus location "@fncts/io/Stream/api"
|
808
808
|
*/
|
809
|
-
export declare function mergeMap<A, R1, E1, B>(f: (a: A) => Stream<R1, E1, B>, n: number, bufferSize?: number, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<
|
809
|
+
export declare function mergeMap<A, R1, E1, B>(f: (a: A) => Stream<R1, E1, B>, n: number, bufferSize?: number, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
810
810
|
/**
|
811
811
|
* Maps over elements of the stream with the specified effectful function,
|
812
812
|
* executing up to `n` invocations of `f` concurrently. The element order
|
@@ -814,18 +814,18 @@ export declare function mergeMap<A, R1, E1, B>(f: (a: A) => Stream<R1, E1, B>, n
|
|
814
814
|
* @tsplus pipeable fncts.io.Stream mergeMapIO
|
815
815
|
* @tsplus location "@fncts/io/Stream/api"
|
816
816
|
*/
|
817
|
-
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<
|
817
|
+
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>;
|
818
818
|
/**
|
819
819
|
* @tsplus pipeable fncts.io.Stream mergeEither
|
820
820
|
* @tsplus location "@fncts/io/Stream/api"
|
821
821
|
*/
|
822
|
-
export declare function mergeEither<R1, E1, B>(fb: Stream<R1, E1, B>, __tsplusTrace?: string): <R, E, A>(fa: Stream<R, E, A>) => Stream<
|
822
|
+
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>>;
|
823
823
|
export type TerminationStrategy = "Left" | "Right" | "Both" | "Either";
|
824
824
|
/**
|
825
825
|
* @tsplus pipeable fncts.io.Stream mergeWith
|
826
826
|
* @tsplus location "@fncts/io/Stream/api"
|
827
827
|
*/
|
828
|
-
export declare function mergeWith<A, R1, E1, A1, B, C>(sb: Stream<R1, E1, A1>, l: (a: A) => B, r: (b: A1) => C, strategy?: TerminationStrategy, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<
|
828
|
+
export declare function mergeWith<A, R1, E1, A1, B, C>(sb: Stream<R1, E1, A1>, l: (a: A) => B, r: (b: A1) => C, strategy?: TerminationStrategy, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<R | R1, E | E1, B | C>;
|
829
829
|
/**
|
830
830
|
* Runs the specified effect if this stream fails, providing the error to the effect if it exists.
|
831
831
|
*
|
@@ -833,7 +833,7 @@ export declare function mergeWith<A, R1, E1, A1, B, C>(sb: Stream<R1, E1, A1>, l
|
|
833
833
|
* @tsplus pipeable fncts.io.Stream onError
|
834
834
|
* @tsplus location "@fncts/io/Stream/api"
|
835
835
|
*/
|
836
|
-
export declare function onError<E, R1>(cleanup: (e: Cause<E>) => IO<R1, never, any>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<
|
836
|
+
export declare function onError<E, R1>(cleanup: (e: Cause<E>) => IO<R1, never, any>, __tsplusTrace?: string): <R, A>(stream: Stream<R, E, A>) => Stream<R | R1, E, A>;
|
837
837
|
/**
|
838
838
|
* Switches to the provided stream in case this one fails with a typed error.
|
839
839
|
*
|
@@ -841,7 +841,7 @@ export declare function onError<E, R1>(cleanup: (e: Cause<E>) => IO<R1, never, a
|
|
841
841
|
* @tsplus pipeable fncts.io.Stream orElse
|
842
842
|
* @tsplus location "@fncts/io/Stream/api"
|
843
843
|
*/
|
844
|
-
export declare function orElse<R1, E1, A1>(that: Lazy<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<
|
844
|
+
export declare function orElse<R1, E1, A1>(that: Lazy<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R | R1, E1, A | A1>;
|
845
845
|
/**
|
846
846
|
* Switches to the provided stream in case this one fails with a typed error.
|
847
847
|
*
|
@@ -849,7 +849,7 @@ export declare function orElse<R1, E1, A1>(that: Lazy<Stream<R1, E1, A1>>, __tsp
|
|
849
849
|
* @tsplus pipeable fncts.io.Stream orElseEither
|
850
850
|
* @tsplus location "@fncts/io/Stream/api"
|
851
851
|
*/
|
852
|
-
export declare function orElseEither<R1, E1, A1>(that: Lazy<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<
|
852
|
+
export declare function orElseEither<R1, E1, A1>(that: Lazy<Stream<R1, E1, A1>>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R | R1, E1, Either<A, A1>>;
|
853
853
|
/**
|
854
854
|
* Fails with given error in case this one fails with a typed error.
|
855
855
|
*
|
@@ -869,17 +869,17 @@ export declare function orElseOptional<R, E, A, R1, E1, A1>(stream: Stream<R, Ma
|
|
869
869
|
* @tsplus pipeable fncts.io.Stream orElseSucceed
|
870
870
|
* @tsplus location "@fncts/io/Stream/api"
|
871
871
|
*/
|
872
|
-
export declare function orElseSucceed<A1>(a: Lazy<A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, never,
|
872
|
+
export declare function orElseSucceed<A1>(a: Lazy<A1>, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => Stream<R, never, A | A1>;
|
873
873
|
/**
|
874
874
|
* @tsplus pipeable fncts.io.Stream pipeThrough
|
875
875
|
* @tsplus location "@fncts/io/Stream/api"
|
876
876
|
*/
|
877
|
-
export declare function pipeThrough<A, R1, E1, L, Z>(sa: Sink<R1, E1, A, L, Z>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<
|
877
|
+
export declare function pipeThrough<A, R1, E1, L, Z>(sa: Sink<R1, E1, A, L, Z>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R | R1, E | E1, L>;
|
878
878
|
/**
|
879
879
|
* @tsplus pipeable fncts.io.Stream pipeThroughChannelOrFail
|
880
880
|
* @tsplus location "@fncts/io/Stream/api"
|
881
881
|
*/
|
882
|
-
export declare function pipeThroughChannelOrFail<A, R1, E1, B>(channel: Channel<R1, never, Conc<A>, any, E1, Conc<B>, any>): <R, E>(self: Stream<R, E, A>) => Stream<
|
882
|
+
export declare function pipeThroughChannelOrFail<A, R1, E1, B>(channel: Channel<R1, never, Conc<A>, any, E1, Conc<B>, any>): <R, E>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
883
883
|
/**
|
884
884
|
* Provides the stream with its required environment, which eliminates
|
885
885
|
* its dependency on `R`.
|
@@ -891,12 +891,12 @@ export declare function provideEnvironment<R>(r: Environment<R>, __tsplusTrace?:
|
|
891
891
|
* @tsplus pipeable fncts.io.Stream provideLayer
|
892
892
|
* @tsplus location "@fncts/io/Stream/api"
|
893
893
|
*/
|
894
|
-
export declare function provideLayer<RIn, ROut, E1>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <E, A>(self: Stream<ROut, E, A>) => Stream<RIn,
|
894
|
+
export declare function provideLayer<RIn, ROut, E1>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <E, A>(self: Stream<ROut, E, A>) => Stream<RIn, E | E1, A>;
|
895
895
|
/**
|
896
896
|
* @tsplus pipeable fncts.io.Stream provideSomeLayer
|
897
897
|
* @tsplus location "@fncts/io/Stream/api"
|
898
898
|
*/
|
899
|
-
export declare function provideSomeLayer<RIn, E1, ROut>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<RIn | Exclude<R, ROut>,
|
899
|
+
export declare function provideSomeLayer<RIn, E1, ROut>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <R, E, A>(self: Stream<R, E, A>) => Stream<RIn | Exclude<R, ROut>, E | E1, A>;
|
900
900
|
/**
|
901
901
|
* Re-chunks the elements of the stream into chunks of
|
902
902
|
* `n` elements each.
|
@@ -940,7 +940,7 @@ export declare function repeatIOChunkMaybe<R, E, A>(fa: IO<R, Maybe<E>, Conc<A>>
|
|
940
940
|
* @tsplus pipeable fncts.io.Stream run
|
941
941
|
* @tsplus location "@fncts/io/Stream/api"
|
942
942
|
*/
|
943
|
-
export declare function run<A, R2, E2, Z>(sink: Sink<R2, E2, A, unknown, Z>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) =>
|
943
|
+
export declare function run<A, R2, E2, Z>(sink: Sink<R2, E2, A, unknown, Z>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => IO<R | R2, E | E2, Z>;
|
944
944
|
/**
|
945
945
|
* Runs the stream and collects all of its elements to a chunk.
|
946
946
|
* @tsplus getter fncts.io.Stream runCollect
|
@@ -957,41 +957,41 @@ export declare function runDrain<R, E, A>(stream: Stream<R, E, A>, __tsplusTrace
|
|
957
957
|
* @tsplus pipeable fncts.io.Stream runForeachScoped
|
958
958
|
* @tsplus location "@fncts/io/Stream/api"
|
959
959
|
*/
|
960
|
-
export declare function runForeachScoped<A, R2, E2>(f: (a: A) => IO<R2, E2, any>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) =>
|
960
|
+
export declare function runForeachScoped<A, R2, E2>(f: (a: A) => IO<R2, E2, any>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => IO<R | R2 | Scope, E | E2, void>;
|
961
961
|
/**
|
962
962
|
* Like `into`, but provides the result as a `Managed` to allow for scope
|
963
963
|
* composition.
|
964
964
|
* @tsplus pipeable fncts.io.Stream runIntoElementsScoped
|
965
965
|
* @tsplus location "@fncts/io/Stream/api"
|
966
966
|
*/
|
967
|
-
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>) =>
|
967
|
+
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>;
|
968
968
|
/**
|
969
969
|
* Like `Stream#into`, but provides the result as a `Managed` to allow for scope
|
970
970
|
* composition.
|
971
971
|
* @tsplus pipeable fncts.io.Stream runIntoQueueScoped
|
972
972
|
* @tsplus location "@fncts/io/Stream/api"
|
973
973
|
*/
|
974
|
-
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>) =>
|
974
|
+
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>;
|
975
975
|
/**
|
976
976
|
* Like runIntoQueue, but provides the result as a scoped IO
|
977
977
|
* to allow for scope composition.
|
978
978
|
* @tsplus pipeable fncts.io.Stream runIntoQueueElementsScoped
|
979
979
|
* @tsplus location "@fncts/io/Stream/api"
|
980
980
|
*/
|
981
|
-
export declare function runIntoQueueElementsScoped<E, A>(queue: Lazy<Queue.Enqueue<Exit<Maybe<E>, A>>>): <R>(self: Stream<R, E, A>) =>
|
981
|
+
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>;
|
982
982
|
/**
|
983
983
|
* Like `Stream#runIntoHub`, but provides the result as a `Managed` to allow for scope
|
984
984
|
* composition.
|
985
985
|
* @tsplus pipeable fncts.io.Stream runIntoHubScoped
|
986
986
|
* @tsplus location "@fncts/io/Stream/api"
|
987
987
|
*/
|
988
|
-
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>) =>
|
988
|
+
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>;
|
989
989
|
/**
|
990
990
|
* Runs the sink on the stream to produce either the sink's result or an error.
|
991
991
|
* @tsplus pipeable fncts.io.Stream runScoped
|
992
992
|
* @tsplus location "@fncts/io/Stream/api"
|
993
993
|
*/
|
994
|
-
export declare function runScoped<A, R2, E2, Z>(sink: Sink<R2, E2, A, unknown, Z>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) =>
|
994
|
+
export declare function runScoped<A, R2, E2, Z>(sink: Sink<R2, E2, A, unknown, Z>, __tsplusTrace?: string): <R, E>(stream: Stream<R, E, A>) => IO<R | R2 | Scope, E | E2, Z>;
|
995
995
|
/**
|
996
996
|
* Statefully maps over the elements of this stream to produce all intermediate results
|
997
997
|
* of type `B` given an initial B.
|
@@ -1005,7 +1005,7 @@ export declare function scan<A, B>(b: B, f: (b: B, a: A) => B, __tsplusTrace?: s
|
|
1005
1005
|
* @tsplus pipeable fncts.io.Stream scanIO
|
1006
1006
|
* @tsplus location "@fncts/io/Stream/api"
|
1007
1007
|
*/
|
1008
|
-
export declare function scanIO<A, R1, E1, B>(b: B, f: (b: B, a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<
|
1008
|
+
export declare function scanIO<A, R1, E1, B>(b: B, f: (b: B, a: A) => IO<R1, E1, B>, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<R | R1, E | E1, B>;
|
1009
1009
|
/**
|
1010
1010
|
* Statefully maps over the elements of this stream to produce all
|
1011
1011
|
* intermediate results.
|
@@ -1019,12 +1019,12 @@ export declare function scanReduce<A extends B, B>(f: (b: B, a: A) => B, __tsplu
|
|
1019
1019
|
* @tsplus pipeable fncts.io.Stream scanReduceIO
|
1020
1020
|
* @tsplus location "@fncts/io/Stream/api"
|
1021
1021
|
*/
|
1022
|
-
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<
|
1022
|
+
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>;
|
1023
1023
|
/**
|
1024
1024
|
* @tsplus pipeable fncts.io.Stream split
|
1025
1025
|
* @tsplus location "@fncts/io/Stream/api"
|
1026
1026
|
*/
|
1027
|
-
export declare function split<A>(predicate: Predicate<A>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => Stream<R, E,
|
1027
|
+
export declare function split<A>(predicate: Predicate<A>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => Stream<R, E, Conc<A>>;
|
1028
1028
|
/**
|
1029
1029
|
* Creates a single-valued pure stream
|
1030
1030
|
* @tsplus static fncts.io.StreamOps succeedNow
|
@@ -1047,7 +1047,7 @@ export declare function take(n: number, __tsplusTrace?: string): <R, E, A>(strea
|
|
1047
1047
|
* @tsplus pipeable fncts.io.Stream takeUntilIO
|
1048
1048
|
* @tsplus location "@fncts/io/Stream/api"
|
1049
1049
|
*/
|
1050
|
-
export declare function takeUntilIO<A, R1, E1>(f: (a: A) => IO<R1, E1, boolean>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<
|
1050
|
+
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>;
|
1051
1051
|
/**
|
1052
1052
|
* Takes all elements of the stream until the specified predicate evaluates
|
1053
1053
|
* to `true`.
|
@@ -1059,34 +1059,34 @@ export declare function takeUntil<A>(p: Predicate<A>, __tsplusTrace?: string): <
|
|
1059
1059
|
* @tsplus pipeable fncts.io.Stream tap
|
1060
1060
|
* @tsplus location "@fncts/io/Stream/api"
|
1061
1061
|
*/
|
1062
|
-
export declare function tap<A, R1, E1>(f: (a: A) => IO<R1, E1, any>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<
|
1062
|
+
export declare function tap<A, R1, E1>(f: (a: A) => IO<R1, E1, any>, __tsplusTrace?: string): <R, E>(ma: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
1063
1063
|
/**
|
1064
1064
|
* Returns a stream that effectfully "peeks" at the failure and adds an effect
|
1065
1065
|
* to consumption of every element of the stream
|
1066
1066
|
* @tsplus pipeable fncts.io.Stream tapBoth
|
1067
1067
|
* @tsplus location "@fncts/io/Stream/api"
|
1068
1068
|
*/
|
1069
|
-
export declare function tapBoth<E, A, R1, E1, R2, E2>(f: (e: E) => IO<R1, E1, any>, g: (a: A) => IO<R2, E2, any>, __tsplusTrace?: string): <R>(self: Stream<R, E, A>) => Stream<
|
1069
|
+
export declare function tapBoth<E, A, R1, E1, R2, E2>(f: (e: E) => IO<R1, E1, any>, g: (a: A) => IO<R2, E2, any>, __tsplusTrace?: string): <R>(self: Stream<R, E, A>) => Stream<R | R1 | R2, E | E1 | E2, A>;
|
1070
1070
|
/**
|
1071
1071
|
* Returns a stream that effectfully "peeks" at the failure of the stream.
|
1072
1072
|
* @tsplus pipeable fncts.io.Stream tapError
|
1073
1073
|
* @tsplus location "@fncts/io/Stream/api"
|
1074
1074
|
*/
|
1075
|
-
export declare function tapError<E, R1, E1>(f: (e: E) => IO<R1, E1, any>, __tsplusTrace?: string): <R, A>(self: Stream<R, E, A>) => Stream<
|
1075
|
+
export declare function tapError<E, R1, E1>(f: (e: E) => IO<R1, E1, any>, __tsplusTrace?: string): <R, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
1076
1076
|
/**
|
1077
1077
|
* Returns a stream that effectfully "peeks" at the cause of failure of the
|
1078
1078
|
* stream.
|
1079
1079
|
* @tsplus pipeable fncts.io.Stream tapErrorCause
|
1080
1080
|
* @tsplus location "@fncts/io/Stream/api"
|
1081
1081
|
*/
|
1082
|
-
export declare function tapErrorCause<E, R1, E1>(f: (cause: Cause<E>) => IO<R1, E1, any>, __tsplusTrace?: string): <R, A>(self: Stream<R, E, A>) => Stream<
|
1082
|
+
export declare function tapErrorCause<E, R1, E1>(f: (cause: Cause<E>) => IO<R1, E1, any>, __tsplusTrace?: string): <R, A>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
1083
1083
|
/**
|
1084
1084
|
* Sends all elements emitted by this stream to the specified sink in addition
|
1085
1085
|
* to emitting them.
|
1086
1086
|
* @tsplus pipeable fncts.io.Stream tapSink
|
1087
1087
|
* @tsplus location "@fncts/io/Stream/api"
|
1088
1088
|
*/
|
1089
|
-
export declare function tapSink<A, R1, E1>(sink: Sink<R1, E1, A, any, any>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => Stream<
|
1089
|
+
export declare function tapSink<A, R1, E1>(sink: Sink<R1, E1, A, any, any>, __tsplusTrace?: string): <R, E>(self: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
1090
1090
|
/**
|
1091
1091
|
* Throttles the chunks of this stream according to the given bandwidth parameters using the token bucket
|
1092
1092
|
* algorithm. Allows for burst in the processing of elements by allowing the token bucket to accumulate
|
@@ -1104,14 +1104,14 @@ export declare function throttleEnforce<A>(costFn: (chunk: Conc<A>) => number, u
|
|
1104
1104
|
* @tsplus pipeable fncts.io.Stream throttleEnforceIO
|
1105
1105
|
* @tsplus location "@fncts/io/Stream/api"
|
1106
1106
|
*/
|
1107
|
-
export declare function throttleEnforceIO<A, R1, E1>(costFn: (chunk: Conc<A>) => IO<R1, E1, number>, units: number, duration: number, burst?: number, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<
|
1107
|
+
export declare function throttleEnforceIO<A, R1, E1>(costFn: (chunk: Conc<A>) => IO<R1, E1, number>, units: number, duration: number, burst?: number, __tsplusTrace?: string): <R, E>(sa: Stream<R, E, A>) => Stream<R | R1, E | E1, A>;
|
1108
1108
|
/**
|
1109
1109
|
* Converts the stream to a managed hub of chunks. After the managed hub is used,
|
1110
1110
|
* the hub will never again produce values and should be discarded.
|
1111
1111
|
* @tsplus pipeable fncts.io.Stream toHub
|
1112
1112
|
* @tsplus location "@fncts/io/Stream/api"
|
1113
1113
|
*/
|
1114
|
-
export declare function toHub(capacity: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) =>
|
1114
|
+
export declare function toHub(capacity: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => IO<R | Scope, never, Hub<Take<E, A>>>;
|
1115
1115
|
/**
|
1116
1116
|
* Interpret the stream as a managed pull
|
1117
1117
|
* @tsplus getter fncts.io.Stream toPull
|
@@ -1124,22 +1124,22 @@ export declare function toPull<R, E, A>(stream: Stream<R, E, A>, __tsplusTrace?:
|
|
1124
1124
|
* @tsplus pipeable fncts.io.Stream toQueue
|
1125
1125
|
* @tsplus location "@fncts/io/Stream/api"
|
1126
1126
|
*/
|
1127
|
-
export declare function toQueue(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) =>
|
1127
|
+
export declare function toQueue(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => IO<R | Scope, never, Queue.Dequeue<Take<E, A>>>;
|
1128
1128
|
/**
|
1129
1129
|
* @tsplus pipeable fncts.io.Stream toQueueDropping
|
1130
1130
|
* @tsplus location "@fncts/io/Stream/api"
|
1131
1131
|
*/
|
1132
|
-
export declare function toQueueDropping(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) =>
|
1132
|
+
export declare function toQueueDropping(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => IO<R | Scope, never, Queue.Dequeue<Take<E, A>>>;
|
1133
1133
|
/**
|
1134
1134
|
* @tsplus pipeable fncts.io.Stream toQueueOfElements
|
1135
1135
|
* @tsplus location "@fncts/io/Stream/api"
|
1136
1136
|
*/
|
1137
|
-
export declare function toQueueOfElements(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) =>
|
1137
|
+
export declare function toQueueOfElements(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => IO<R | Scope, never, Queue.Dequeue<Exit<Maybe<E>, A>>>;
|
1138
1138
|
/**
|
1139
1139
|
* @tsplus pipeable fncts.io.Stream toQueueSliding
|
1140
1140
|
* @tsplus location "@fncts/io/Stream/api"
|
1141
1141
|
*/
|
1142
|
-
export declare function toQueueSliding(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) =>
|
1142
|
+
export declare function toQueueSliding(capacity?: number, __tsplusTrace?: string): <R, E, A>(stream: Stream<R, E, A>) => IO<R | Scope, never, Queue.Dequeue<Take<E, A>>>;
|
1143
1143
|
/**
|
1144
1144
|
* Converts the stream into an unbounded managed queue. After the managed queue
|
1145
1145
|
* is used, the queue will never again produce values and should be discarded.
|
@@ -1197,4 +1197,4 @@ export declare function zipWithIndex_<R, E, A>(self: Stream<R, E, A>, __tsplusTr
|
|
1197
1197
|
* @tsplus pipeable fncts.io.Stream zipWithLatest
|
1198
1198
|
* @tsplus location "@fncts/io/Stream/api"
|
1199
1199
|
*/
|
1200
|
-
export declare function zipWithLatest<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<
|
1200
|
+
export declare function zipWithLatest<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>;
|