@fncts/io 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cached/api.d.ts +1 -1
- package/Channel/api.d.ts +80 -80
- package/Channel/core-api.d.ts +26 -26
- package/Console/definition.d.ts +1 -0
- package/CountdownLatch.d.ts +1 -0
- package/Fiber/FiberMessage.d.ts +6 -28
- package/Fiber/FiberRuntime.d.ts +108 -77
- package/Fiber/api/interruptAs.d.ts +2 -2
- package/Fiber/definition.d.ts +2 -0
- package/FiberScope/definition.d.ts +3 -0
- package/FiberSet.d.ts +2 -1
- package/Future/State.d.ts +59 -0
- package/Future/api.d.ts +8 -3
- package/Future/constructors.d.ts +1 -1
- package/Future/definition.d.ts +1 -17
- package/Future.d.ts +1 -0
- package/Hub/api.d.ts +15 -15
- package/IO/api/array.d.ts +22 -0
- package/IO/api/awaitAllChildren.d.ts +6 -0
- package/IO/api/cachedInvalidate.d.ts +15 -0
- package/IO/api/foreachExec.d.ts +18 -0
- package/IO/api/forkDaemon.d.ts +1 -1
- package/IO/api/onTermination.d.ts +1 -2
- package/IO/api/transplant.d.ts +11 -1
- package/IO/api.d.ts +247 -225
- package/IO/definition.d.ts +12 -25
- package/IO.d.ts +3 -1
- package/Push/Bounds.d.ts +4 -0
- package/Push/FlattenStrategy.d.ts +47 -0
- package/Push/IndexedBuffer.d.ts +19 -0
- package/Push/MergeStrategy.d.ts +19 -0
- package/Push/Operator/IOLoopOperator.d.ts +61 -0
- package/Push/Operator/IOOperator.d.ts +63 -0
- package/Push/Operator/LoopOperator.d.ts +50 -0
- package/Push/Operator/SyncOperator.d.ts +41 -0
- package/Push/Operator.d.ts +4 -0
- package/Push/Producer/IOProducer.d.ts +41 -0
- package/Push/Producer/SyncProducer.d.ts +61 -0
- package/Push/Producer.d.ts +1 -0
- package/Push/Sink.d.ts +65 -0
- package/Push/api.d.ts +78 -161
- package/Push/definition.d.ts +92 -19
- package/Push/internal.d.ts +3 -0
- package/Push.d.ts +6 -0
- package/Random/definition.d.ts +1 -0
- package/Ref/Synchronized/api.d.ts +1 -1
- package/Ref/Synchronized/definition.d.ts +32 -9
- package/Ref/definition.d.ts +12 -0
- package/Scope/api.d.ts +16 -1
- package/Semaphore/Reservation.d.ts +15 -0
- package/Semaphore/constructors.d.ts +13 -0
- package/Semaphore/definition.d.ts +29 -0
- package/Semaphore.d.ts +3 -40
- package/Sink/definition.d.ts +5 -6
- package/Stream/api.d.ts +164 -164
- package/Subject/Atomic.d.ts +19 -9
- package/Subject/DeferredRef.d.ts +17 -0
- package/Subject/Hold.d.ts +19 -0
- package/Subject/RefSubject/Atomic.d.ts +41 -0
- package/Subject/RefSubject/Derived.d.ts +43 -0
- package/Subject/RefSubject/RefSubject.d.ts +27 -0
- package/Subject/definition.d.ts +14 -2
- package/Subject.d.ts +2 -0
- package/SubscriptionRef.d.ts +0 -1
- package/_cjs/Cached/api.cjs +1 -2
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Cached/internal.cjs +1 -2
- package/_cjs/Cached/internal.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +1 -2
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs +2 -3
- package/_cjs/Channel/api/mapOutConcurrentIO.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAll.cjs +1 -2
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +1 -2
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +2 -3
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +1 -2
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +1 -2
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +1 -2
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runCollect.cjs +1 -2
- package/_cjs/Channel/api/runCollect.cjs.map +1 -1
- package/_cjs/Channel/api/runDrain.cjs +1 -2
- package/_cjs/Channel/api/runDrain.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +3 -4
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +2 -3
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipConcurrent.cjs +1 -2
- package/_cjs/Channel/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +206 -207
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +43 -42
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +4 -5
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelState.cjs +1 -2
- package/_cjs/Channel/internal/ChannelState.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +1 -2
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Clock/api.cjs +1 -2
- package/_cjs/Clock/api.cjs.map +1 -1
- package/_cjs/Clock/definition.cjs +1 -2
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Clock/live.cjs +1 -2
- package/_cjs/Clock/live.cjs.map +1 -1
- package/_cjs/Console/api.cjs +1 -2
- package/_cjs/Console/api.cjs.map +1 -1
- package/_cjs/Console/definition.cjs +2 -2
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Console/live.cjs +1 -2
- package/_cjs/Console/live.cjs.map +1 -1
- package/_cjs/CountdownLatch.cjs +3 -3
- package/_cjs/CountdownLatch.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +1 -2
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Fiber/FiberMessage.cjs +3 -24
- package/_cjs/Fiber/FiberMessage.cjs.map +1 -1
- package/_cjs/Fiber/FiberRuntime.cjs +879 -636
- package/_cjs/Fiber/FiberRuntime.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +1 -2
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +2 -3
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +1 -2
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +2 -3
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +2 -3
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +5 -10
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +2 -3
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +1 -2
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +1 -2
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +1 -2
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +2 -3
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +2 -3
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/constructors.cjs +2 -3
- package/_cjs/Fiber/constructors.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +6 -4
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +1 -2
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +1 -2
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +1 -2
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +1 -2
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/operations.cjs +1 -2
- package/_cjs/FiberRef/operations.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +1 -2
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRefs/Patch.cjs +1 -2
- package/_cjs/FiberRefs/Patch.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +1 -2
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/definition.cjs +1 -2
- package/_cjs/FiberRefs/definition.cjs.map +1 -1
- package/_cjs/FiberScope/definition.cjs +29 -6
- package/_cjs/FiberScope/definition.cjs.map +1 -1
- package/_cjs/FiberSet.cjs +16 -15
- package/_cjs/FiberSet.cjs.map +1 -1
- package/_cjs/FiberStatus/definition.cjs +1 -2
- package/_cjs/FiberStatus/definition.cjs.map +1 -1
- package/_cjs/Future/State.cjs +108 -0
- package/_cjs/Future/State.cjs.map +1 -0
- package/_cjs/Future/api.cjs +71 -64
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +3 -4
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Future/definition.cjs +1 -15
- package/_cjs/Future/definition.cjs.map +1 -1
- package/_cjs/Future.cjs +11 -0
- package/_cjs/Future.cjs.map +1 -1
- package/_cjs/Hub/api.cjs +56 -57
- package/_cjs/Hub/api.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +1 -2
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/IO/api/acquireRelease.cjs +1 -2
- package/_cjs/IO/api/acquireRelease.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs +1 -2
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs +1 -2
- package/_cjs/IO/api/acquireReleaseInterruptible.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +1 -2
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizer.cjs +1 -2
- package/_cjs/IO/api/addFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +1 -2
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/all.cjs +1 -2
- package/_cjs/IO/api/all.cjs.map +1 -1
- package/_cjs/IO/api/array.cjs +51 -0
- package/_cjs/IO/api/array.cjs.map +1 -0
- package/_cjs/IO/api/asyncIO.cjs +1 -2
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/asyncInterrupt.cjs +1 -2
- package/_cjs/IO/api/asyncInterrupt.cjs.map +1 -1
- package/_cjs/IO/api/awaitAllChildren.cjs +17 -0
- package/_cjs/IO/api/awaitAllChildren.cjs.map +1 -0
- package/_cjs/IO/api/blocking.cjs +1 -2
- package/_cjs/IO/api/blocking.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +1 -2
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +1 -2
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/cachedInvalidate.cjs +47 -0
- package/_cjs/IO/api/cachedInvalidate.cjs.map +1 -0
- package/_cjs/IO/api/clockWith.cjs +1 -2
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +1 -2
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +1 -2
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +1 -2
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/daemonChildren.cjs +1 -2
- package/_cjs/IO/api/daemonChildren.cjs.map +1 -1
- package/_cjs/IO/api/delay.cjs +1 -2
- package/_cjs/IO/api/delay.cjs.map +1 -1
- package/_cjs/IO/api/descriptor.cjs +1 -2
- package/_cjs/IO/api/descriptor.cjs.map +1 -1
- package/_cjs/IO/api/diffFiberRefs.cjs +1 -2
- package/_cjs/IO/api/diffFiberRefs.cjs.map +1 -1
- package/_cjs/IO/api/disconnect.cjs +2 -3
- package/_cjs/IO/api/disconnect.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +1 -2
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +1 -2
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachConcurrent.cjs +36 -30
- package/_cjs/IO/api/foreachConcurrent.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +30 -6
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/fork.cjs +2 -3
- package/_cjs/IO/api/fork.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +1 -2
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkDaemon.cjs +5 -6
- package/_cjs/IO/api/forkDaemon.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +1 -2
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +1 -2
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +1 -2
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +4 -5
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +1 -2
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +2 -3
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +1 -2
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/patchFiberRefs.cjs +1 -2
- package/_cjs/IO/api/patchFiberRefs.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +1 -2
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideScope.cjs +1 -2
- package/_cjs/IO/api/provideScope.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +1 -2
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeRuntime.cjs +1 -2
- package/_cjs/IO/api/provideSomeRuntime.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +2 -3
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +1 -2
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/raceWith.cjs +1 -2
- package/_cjs/IO/api/raceWith.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +1 -2
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +1 -2
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +1 -2
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +1 -2
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scope.cjs +1 -2
- package/_cjs/IO/api/scope.cjs.map +1 -1
- package/_cjs/IO/api/scopeWith.cjs +1 -2
- package/_cjs/IO/api/scopeWith.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +1 -2
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sleep.cjs +1 -2
- package/_cjs/IO/api/sleep.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs +1 -2
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +1 -2
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +9 -11
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/transplant.cjs +22 -7
- package/_cjs/IO/api/transplant.cjs.map +1 -1
- package/_cjs/IO/api/whenFiberRef.cjs +1 -2
- package/_cjs/IO/api/whenFiberRef.cjs.map +1 -1
- package/_cjs/IO/api/whenRef.cjs +1 -2
- package/_cjs/IO/api/whenRef.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +1 -2
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +1 -2
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +1 -2
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +1 -2
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/zipConcurrent.cjs +5 -6
- package/_cjs/IO/api/zipConcurrent.cjs.map +1 -1
- package/_cjs/IO/api.cjs +522 -473
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +2 -3
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +9 -10
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +33 -11
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +1 -2
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +1 -2
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs +1 -2
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +1 -2
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +1 -2
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +1 -2
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +1 -2
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/MVar/api.cjs +1 -2
- package/_cjs/MVar/api.cjs.map +1 -1
- package/_cjs/Push/Bounds.cjs +2 -0
- package/_cjs/Push/Bounds.cjs.map +1 -0
- package/_cjs/Push/FlattenStrategy.cjs +95 -0
- package/_cjs/Push/FlattenStrategy.cjs.map +1 -0
- package/_cjs/Push/IndexedBuffer.cjs +70 -0
- package/_cjs/Push/IndexedBuffer.cjs.map +1 -0
- package/_cjs/Push/MergeStrategy.cjs +45 -0
- package/_cjs/Push/MergeStrategy.cjs.map +1 -0
- package/_cjs/Push/Operator/IOLoopOperator.cjs +225 -0
- package/_cjs/Push/Operator/IOLoopOperator.cjs.map +1 -0
- package/_cjs/Push/Operator/IOOperator.cjs +104 -0
- package/_cjs/Push/Operator/IOOperator.cjs.map +1 -0
- package/_cjs/Push/Operator/LoopOperator.cjs +165 -0
- package/_cjs/Push/Operator/LoopOperator.cjs.map +1 -0
- package/_cjs/Push/Operator/SyncOperator.cjs +78 -0
- package/_cjs/Push/Operator/SyncOperator.cjs.map +1 -0
- package/_cjs/Push/Operator.cjs +2 -0
- package/_cjs/Push/Operator.cjs.map +1 -0
- package/_cjs/Push/Producer/IOProducer.cjs +67 -0
- package/_cjs/Push/Producer/IOProducer.cjs.map +1 -0
- package/_cjs/Push/Producer/SyncProducer.cjs +107 -0
- package/_cjs/Push/Producer/SyncProducer.cjs.map +1 -0
- package/_cjs/Push/Producer.cjs +2 -0
- package/_cjs/Push/Producer.cjs.map +1 -0
- package/_cjs/Push/Sink.cjs +219 -0
- package/_cjs/Push/Sink.cjs.map +1 -0
- package/_cjs/Push/api.cjs +340 -385
- package/_cjs/Push/api.cjs.map +1 -1
- package/_cjs/Push/definition.cjs +79 -22
- package/_cjs/Push/definition.cjs.map +1 -1
- package/_cjs/Push/internal.cjs +32 -28
- package/_cjs/Push/internal.cjs.map +1 -1
- package/_cjs/Push.cjs +66 -0
- package/_cjs/Push.cjs.map +1 -1
- package/_cjs/Queue/api/dimapIO.cjs +1 -2
- package/_cjs/Queue/api/dimapIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterInputIO.cjs +1 -2
- package/_cjs/Queue/api/filterInputIO.cjs.map +1 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +1 -2
- package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -1
- package/_cjs/Queue/api/poll.cjs +1 -2
- package/_cjs/Queue/api/poll.cjs.map +1 -1
- package/_cjs/Queue/api/takeBetween.cjs +1 -2
- package/_cjs/Queue/api/takeBetween.cjs.map +1 -1
- package/_cjs/Queue/api/takeN.cjs +1 -2
- package/_cjs/Queue/api/takeN.cjs.map +1 -1
- package/_cjs/Queue/api/zipWithIO.cjs +1 -2
- package/_cjs/Queue/api/zipWithIO.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +1 -2
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +1 -2
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +1 -2
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Random/api.cjs +1 -2
- package/_cjs/Random/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +2 -2
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Random/live.cjs +1 -2
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +1 -2
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Derived.cjs +1 -2
- package/_cjs/Ref/Derived.cjs.map +1 -1
- package/_cjs/Ref/DerivedAll.cjs +1 -2
- package/_cjs/Ref/DerivedAll.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/api.cjs +2 -3
- package/_cjs/Ref/Synchronized/api.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +2 -3
- package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
- package/_cjs/Ref/Synchronized/definition.cjs +13 -14
- package/_cjs/Ref/Synchronized/definition.cjs.map +1 -1
- package/_cjs/Ref/api/collect.cjs +1 -2
- package/_cjs/Ref/api/collect.cjs.map +1 -1
- package/_cjs/Ref/api/dimap.cjs +1 -2
- package/_cjs/Ref/api/dimap.cjs.map +1 -1
- package/_cjs/Ref/api/filter.cjs +1 -2
- package/_cjs/Ref/api/filter.cjs.map +1 -1
- package/_cjs/Ref/api/modify.cjs +1 -2
- package/_cjs/Ref/api/modify.cjs.map +1 -1
- package/_cjs/Ref/api.cjs +1 -2
- package/_cjs/Ref/api.cjs.map +1 -1
- package/_cjs/Ref/constructors.cjs +1 -2
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Reloadable/api.cjs +1 -2
- package/_cjs/Reloadable/api.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +1 -2
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/Reloadable/definition.cjs +1 -2
- package/_cjs/Reloadable/definition.cjs.map +1 -1
- package/_cjs/RuntimeFlags/Patch.cjs +1 -2
- package/_cjs/RuntimeFlags/Patch.cjs.map +1 -1
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs +1 -2
- package/_cjs/RuntimeFlags/RuntimeFlags.cjs.map +1 -1
- package/_cjs/STM/api/atomically.cjs +1 -2
- package/_cjs/STM/api/atomically.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +1 -2
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api.cjs +1 -2
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/definition.cjs +2 -3
- package/_cjs/STM/definition.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +1 -2
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/CommitState.cjs +1 -2
- package/_cjs/STM/internal/CommitState.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +1 -2
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +1 -2
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +1 -2
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +1 -2
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Scope/Finalizer/definition.cjs +1 -2
- package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +1 -2
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +1 -2
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/constructors.cjs +1 -2
- package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/definition.cjs +1 -2
- package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +29 -9
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/Scope/definition.cjs +1 -2
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +2 -3
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/Semaphore/Reservation.cjs +24 -0
- package/_cjs/Semaphore/Reservation.cjs.map +1 -0
- package/_cjs/Semaphore/constructors.cjs +25 -0
- package/_cjs/Semaphore/constructors.cjs.map +1 -0
- package/_cjs/Semaphore/definition.cjs +149 -0
- package/_cjs/Semaphore/definition.cjs.map +1 -0
- package/_cjs/Semaphore.cjs +31 -138
- package/_cjs/Semaphore.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +1 -2
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/Sink/definition.cjs +2 -3
- package/_cjs/Sink/definition.cjs.map +1 -1
- package/_cjs/State/api.cjs +1 -2
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +1 -2
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +1 -2
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +1 -2
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +702 -703
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +1 -2
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +1 -2
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +1 -2
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +1 -2
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/Subject/Atomic.cjs +46 -12
- package/_cjs/Subject/Atomic.cjs.map +1 -1
- package/_cjs/Subject/DeferredRef.cjs +53 -0
- package/_cjs/Subject/DeferredRef.cjs.map +1 -0
- package/_cjs/Subject/Hold.cjs +41 -0
- package/_cjs/Subject/Hold.cjs.map +1 -0
- package/_cjs/Subject/RefSubject/Atomic.cjs +130 -0
- package/_cjs/Subject/RefSubject/Atomic.cjs.map +1 -0
- package/_cjs/Subject/RefSubject/Derived.cjs +98 -0
- package/_cjs/Subject/RefSubject/Derived.cjs.map +1 -0
- package/_cjs/Subject/RefSubject/RefSubject.cjs +19 -0
- package/_cjs/Subject/RefSubject/RefSubject.cjs.map +1 -0
- package/_cjs/Subject/api.cjs +1 -2
- package/_cjs/Subject/api.cjs.map +1 -1
- package/_cjs/Subject/definition.cjs +16 -1
- package/_cjs/Subject/definition.cjs.map +1 -1
- package/_cjs/Subject.cjs +22 -0
- package/_cjs/Subject.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +2 -4
- package/_cjs/SubscriptionRef.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +1 -2
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +1 -2
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +1 -2
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +1 -2
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs +1 -2
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +1 -2
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +1 -2
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs +1 -2
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +1 -2
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +1 -2
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +1 -2
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/constructors.cjs +1 -2
- package/_cjs/TRef/constructors.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +1 -2
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +1 -2
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +1 -2
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/TSemaphore/definition.cjs +1 -2
- package/_cjs/TSemaphore/definition.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +1 -2
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +1 -2
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/HashedPair.cjs +1 -2
- package/_cjs/internal/HashedPair.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +1 -2
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +1 -2
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/Scheduler.cjs +1 -2
- package/_cjs/internal/Scheduler.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs +1 -2
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutConcurrentIO.mjs +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +1 -1
- package/_mjs/Channel/api/runScoped.mjs +2 -2
- package/_mjs/Channel/api/runScoped.mjs.map +1 -1
- package/_mjs/Channel/api/toPull.mjs +1 -1
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +205 -205
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +43 -42
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +3 -3
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Console/definition.mjs +1 -0
- package/_mjs/Console/definition.mjs.map +1 -1
- package/_mjs/CountdownLatch.mjs +2 -1
- package/_mjs/CountdownLatch.mjs.map +1 -1
- package/_mjs/Fiber/FiberMessage.mjs +2 -20
- package/_mjs/Fiber/FiberMessage.mjs.map +1 -1
- package/_mjs/Fiber/FiberRuntime.mjs +877 -633
- package/_mjs/Fiber/FiberRuntime.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +1 -1
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +1 -1
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +4 -7
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs +1 -1
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +1 -1
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +1 -1
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/constructors.mjs +1 -1
- package/_mjs/Fiber/constructors.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs +5 -2
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/FiberScope/definition.mjs +28 -4
- package/_mjs/FiberScope/definition.mjs.map +1 -1
- package/_mjs/FiberSet.mjs +14 -12
- package/_mjs/FiberSet.mjs.map +1 -1
- package/_mjs/Future/State.mjs +96 -0
- package/_mjs/Future/State.mjs.map +1 -0
- package/_mjs/Future/api.mjs +67 -61
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +3 -3
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Future/definition.mjs +0 -12
- package/_mjs/Future/definition.mjs.map +1 -1
- package/_mjs/Future.mjs +1 -0
- package/_mjs/Future.mjs.map +1 -1
- package/_mjs/Hub/api.mjs +55 -55
- package/_mjs/Hub/api.mjs.map +1 -1
- package/_mjs/IO/api/array.mjs +42 -0
- package/_mjs/IO/api/array.mjs.map +1 -0
- package/_mjs/IO/api/asyncInterrupt.mjs.map +1 -1
- package/_mjs/IO/api/awaitAllChildren.mjs +10 -0
- package/_mjs/IO/api/awaitAllChildren.mjs.map +1 -0
- package/_mjs/IO/api/cachedInvalidate.mjs +39 -0
- package/_mjs/IO/api/cachedInvalidate.mjs.map +1 -0
- package/_mjs/IO/api/disconnect.mjs +1 -1
- package/_mjs/IO/api/disconnect.mjs.map +1 -1
- package/_mjs/IO/api/foreachConcurrent.mjs +35 -28
- package/_mjs/IO/api/foreachConcurrent.mjs.map +1 -1
- package/_mjs/IO/api/foreachExec.mjs +27 -4
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/fork.mjs +1 -1
- package/_mjs/IO/api/fork.mjs.map +1 -1
- package/_mjs/IO/api/forkDaemon.mjs +4 -4
- package/_mjs/IO/api/forkDaemon.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +3 -3
- package/_mjs/IO/api/onTermination.mjs +1 -1
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +1 -1
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +8 -9
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/transplant.mjs +19 -5
- package/_mjs/IO/api/transplant.mjs.map +1 -1
- package/_mjs/IO/api/zipConcurrent.mjs +4 -4
- package/_mjs/IO/api/zipConcurrent.mjs.map +1 -1
- package/_mjs/IO/api.mjs +515 -468
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +1 -1
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +8 -8
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +3 -1
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/Push/Bounds.mjs +2 -0
- package/_mjs/Push/Bounds.mjs.map +1 -0
- package/_mjs/Push/FlattenStrategy.mjs +86 -0
- package/_mjs/Push/FlattenStrategy.mjs.map +1 -0
- package/_mjs/Push/IndexedBuffer.mjs +61 -0
- package/_mjs/Push/IndexedBuffer.mjs.map +1 -0
- package/_mjs/Push/MergeStrategy.mjs +34 -0
- package/_mjs/Push/MergeStrategy.mjs.map +1 -0
- package/_mjs/Push/Operator/IOLoopOperator.mjs +208 -0
- package/_mjs/Push/Operator/IOLoopOperator.mjs.map +1 -0
- package/_mjs/Push/Operator/IOOperator.mjs +91 -0
- package/_mjs/Push/Operator/IOOperator.mjs.map +1 -0
- package/_mjs/Push/Operator/LoopOperator.mjs +151 -0
- package/_mjs/Push/Operator/LoopOperator.mjs.map +1 -0
- package/_mjs/Push/Operator/SyncOperator.mjs +67 -0
- package/_mjs/Push/Operator/SyncOperator.mjs.map +1 -0
- package/_mjs/Push/Operator.mjs +2 -0
- package/_mjs/Push/Operator.mjs.map +1 -0
- package/_mjs/Push/Producer/IOProducer.mjs +55 -0
- package/_mjs/Push/Producer/IOProducer.mjs.map +1 -0
- package/_mjs/Push/Producer/SyncProducer.mjs +90 -0
- package/_mjs/Push/Producer/SyncProducer.mjs.map +1 -0
- package/_mjs/Push/Producer.mjs +2 -0
- package/_mjs/Push/Producer.mjs.map +1 -0
- package/_mjs/Push/Sink.mjs +206 -0
- package/_mjs/Push/Sink.mjs.map +1 -0
- package/_mjs/Push/api.mjs +311 -344
- package/_mjs/Push/api.mjs.map +1 -1
- package/_mjs/Push/definition.mjs +73 -18
- package/_mjs/Push/definition.mjs.map +1 -1
- package/_mjs/Push/internal.mjs +30 -26
- package/_mjs/Push/internal.mjs.map +1 -1
- package/_mjs/Push.mjs +7 -1
- package/_mjs/Push.mjs.map +1 -1
- package/_mjs/Random/definition.mjs +1 -0
- package/_mjs/Random/definition.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/api.mjs +1 -1
- package/_mjs/Ref/Synchronized/api.mjs.map +1 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +1 -1
- package/_mjs/Ref/Synchronized/definition.mjs +12 -12
- package/_mjs/Ref/Synchronized/definition.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/STM/definition.mjs +1 -1
- package/_mjs/Scope/api.mjs +22 -4
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +1 -1
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/Semaphore/Reservation.mjs +16 -0
- package/_mjs/Semaphore/Reservation.mjs.map +1 -0
- package/_mjs/Semaphore/constructors.mjs +17 -0
- package/_mjs/Semaphore/constructors.mjs.map +1 -0
- package/_mjs/Semaphore/definition.mjs +141 -0
- package/_mjs/Semaphore/definition.mjs.map +1 -0
- package/_mjs/Semaphore.mjs +4 -133
- package/_mjs/Semaphore.mjs.map +1 -1
- package/_mjs/Sink/definition.mjs +2 -3
- package/_mjs/Sink/definition.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +701 -701
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Subject/Atomic.mjs +46 -10
- package/_mjs/Subject/Atomic.mjs.map +1 -1
- package/_mjs/Subject/DeferredRef.mjs +45 -0
- package/_mjs/Subject/DeferredRef.mjs.map +1 -0
- package/_mjs/Subject/Hold.mjs +33 -0
- package/_mjs/Subject/Hold.mjs.map +1 -0
- package/_mjs/Subject/RefSubject/Atomic.mjs +122 -0
- package/_mjs/Subject/RefSubject/Atomic.mjs.map +1 -0
- package/_mjs/Subject/RefSubject/Derived.mjs +90 -0
- package/_mjs/Subject/RefSubject/Derived.mjs.map +1 -0
- package/_mjs/Subject/RefSubject/RefSubject.mjs +12 -0
- package/_mjs/Subject/RefSubject/RefSubject.mjs.map +1 -0
- package/_mjs/Subject/definition.mjs +14 -0
- package/_mjs/Subject/definition.mjs.map +1 -1
- package/_mjs/Subject.mjs +2 -0
- package/_mjs/Subject.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +1 -2
- package/_mjs/SubscriptionRef.mjs.map +1 -1
- package/_src/Cached/api.ts +3 -3
- package/_src/Channel/api/toPull.ts +1 -1
- package/_src/Channel/api.ts +273 -272
- package/_src/Channel/core-api.ts +57 -55
- package/_src/Channel/internal/ChannelExecutor.ts +3 -3
- package/_src/Console/definition.ts +1 -0
- package/_src/CountdownLatch.ts +2 -0
- package/_src/Fiber/FiberMessage.ts +3 -28
- package/_src/Fiber/FiberRuntime.ts +988 -616
- package/_src/Fiber/api/interruptAs.ts +4 -3
- package/_src/Fiber/constructors.ts +1 -1
- package/_src/Fiber/definition.ts +4 -0
- package/_src/FiberScope/definition.ts +40 -2
- package/_src/FiberSet.ts +6 -2
- package/_src/Future/State.ts +128 -0
- package/_src/Future/api.ts +62 -51
- package/_src/Future/constructors.ts +4 -2
- package/_src/Future/definition.ts +2 -17
- package/_src/Future.ts +4 -3
- package/_src/Hub/api.ts +61 -61
- package/_src/IO/api/addFinalizerExit.ts +4 -4
- package/_src/IO/api/array.ts +49 -0
- package/_src/IO/api/asyncInterrupt.ts +1 -1
- package/_src/IO/api/awaitAllChildren.ts +6 -0
- package/_src/IO/api/cachedInvalidate.ts +42 -0
- package/_src/IO/api/foreachConcurrent.ts +39 -23
- package/_src/IO/api/foreachExec.ts +47 -0
- package/_src/IO/api/fork.ts +1 -1
- package/_src/IO/api/forkDaemon.ts +2 -2
- package/_src/IO/api/memoize.ts +3 -3
- package/_src/IO/api/onTermination.ts +2 -2
- package/_src/IO/api/transplant.ts +26 -3
- package/_src/IO/api/zipConcurrent.ts +2 -2
- package/_src/IO/api.ts +547 -525
- package/_src/IO/definition.ts +4 -28
- package/_src/IO/runtime.ts +0 -1
- package/_src/IO.ts +65 -63
- package/_src/IOEnv/definition.ts +1 -4
- package/_src/Push/Bounds.ts +4 -0
- package/_src/Push/FlattenStrategy.ts +137 -0
- package/_src/Push/IndexedBuffer.ts +79 -0
- package/_src/Push/MergeStrategy.ts +59 -0
- package/_src/Push/Operator/IOLoopOperator.ts +413 -0
- package/_src/Push/Operator/IOOperator.ts +173 -0
- package/_src/Push/Operator/LoopOperator.ts +242 -0
- package/_src/Push/Operator/SyncOperator.ts +107 -0
- package/_src/Push/Operator.ts +7 -0
- package/_src/Push/Producer/IOProducer.ts +83 -0
- package/_src/Push/Producer/SyncProducer.ts +105 -0
- package/_src/Push/Producer.ts +0 -0
- package/_src/Push/Sink.ts +302 -0
- package/_src/Push/api.ts +387 -513
- package/_src/Push/definition.ts +216 -23
- package/_src/Push/internal.ts +11 -0
- package/_src/Push.ts +7 -1
- package/_src/Random/definition.ts +1 -0
- package/_src/Ref/Synchronized/api.ts +2 -2
- package/_src/Ref/Synchronized/definition.ts +82 -38
- package/_src/Ref/definition.ts +26 -0
- package/_src/Scope/api.ts +22 -0
- package/_src/Semaphore/Reservation.ts +15 -0
- package/_src/Semaphore/constructors.ts +14 -0
- package/_src/Semaphore/definition.ts +180 -0
- package/_src/Semaphore.ts +5 -159
- package/_src/Sink/definition.ts +4 -5
- package/_src/Stream/api.ts +679 -679
- package/_src/Stream/definition.ts +0 -1
- package/_src/Subject/Atomic.ts +68 -11
- package/_src/Subject/DeferredRef.ts +44 -0
- package/_src/Subject/Hold.ts +48 -0
- package/_src/Subject/RefSubject/Atomic.ts +193 -0
- package/_src/Subject/RefSubject/Derived.ts +179 -0
- package/_src/Subject/RefSubject/RefSubject.ts +90 -0
- package/_src/Subject/definition.ts +21 -3
- package/_src/Subject.ts +5 -3
- package/_src/SubscriptionRef.ts +1 -1
- package/_src/index.ts +49 -50
- package/index.d.ts +0 -1
- package/package.json +4 -4
- package/IO/api/sequenceT.d.ts +0 -26
- package/RefSubject/Atomic.d.ts +0 -34
- package/RefSubject/Synchronized/api.d.ts +0 -9
- package/RefSubject/Synchronized/definition.d.ts +0 -39
- package/RefSubject/api.d.ts +0 -120
- package/RefSubject/definition.d.ts +0 -52
- package/RefSubject.d.ts +0 -3
- package/_cjs/IO/api/sequenceT.cjs +0 -18
- package/_cjs/IO/api/sequenceT.cjs.map +0 -1
- package/_cjs/RefSubject/Atomic.cjs +0 -108
- package/_cjs/RefSubject/Atomic.cjs.map +0 -1
- package/_cjs/RefSubject/Synchronized/api.cjs +0 -23
- package/_cjs/RefSubject/Synchronized/api.cjs.map +0 -1
- package/_cjs/RefSubject/Synchronized/definition.cjs +0 -56
- package/_cjs/RefSubject/Synchronized/definition.cjs.map +0 -1
- package/_cjs/RefSubject/api.cjs +0 -252
- package/_cjs/RefSubject/api.cjs.map +0 -1
- package/_cjs/RefSubject/definition.cjs +0 -26
- package/_cjs/RefSubject/definition.cjs.map +0 -1
- package/_cjs/RefSubject.cjs +0 -39
- package/_cjs/RefSubject.cjs.map +0 -1
- package/_mjs/IO/api/sequenceT.mjs +0 -10
- package/_mjs/IO/api/sequenceT.mjs.map +0 -1
- package/_mjs/RefSubject/Atomic.mjs +0 -99
- package/_mjs/RefSubject/Atomic.mjs.map +0 -1
- package/_mjs/RefSubject/Synchronized/api.mjs +0 -15
- package/_mjs/RefSubject/Synchronized/api.mjs.map +0 -1
- package/_mjs/RefSubject/Synchronized/definition.mjs +0 -47
- package/_mjs/RefSubject/Synchronized/definition.mjs.map +0 -1
- package/_mjs/RefSubject/api.mjs +0 -229
- package/_mjs/RefSubject/api.mjs.map +0 -1
- package/_mjs/RefSubject/definition.mjs +0 -19
- package/_mjs/RefSubject/definition.mjs.map +0 -1
- package/_mjs/RefSubject.mjs +0 -5
- package/_mjs/RefSubject.mjs.map +0 -1
- package/_src/IO/api/sequenceT.ts +0 -16
- package/_src/RefSubject/Atomic.ts +0 -129
- package/_src/RefSubject/Synchronized/api.ts +0 -14
- package/_src/RefSubject/Synchronized/definition.ts +0 -76
- package/_src/RefSubject/api.ts +0 -253
- package/_src/RefSubject/definition.ts +0 -70
- package/_src/RefSubject.ts +0 -5
package/_mjs/Push/api.mjs
CHANGED
|
@@ -1,477 +1,444 @@
|
|
|
1
|
-
var _a;
|
|
2
1
|
const fileName_1 = "(@fncts/io) src/Push/api.ts";
|
|
3
|
-
import * as tsplus_module_1 from "@fncts/io/
|
|
4
|
-
import * as tsplus_module_2 from "@fncts/io/IO/api/
|
|
5
|
-
import * as tsplus_module_3 from "@fncts/base/
|
|
6
|
-
import * as tsplus_module_4 from "@fncts/io/
|
|
7
|
-
import * as tsplus_module_5 from "@fncts/io/
|
|
8
|
-
import * as tsplus_module_6 from "@fncts/io/IO/api/
|
|
9
|
-
import * as tsplus_module_7 from "@fncts/
|
|
10
|
-
import * as tsplus_module_8 from "@fncts/
|
|
11
|
-
import * as tsplus_module_9 from "@fncts/io/
|
|
12
|
-
import * as tsplus_module_10 from "@fncts/
|
|
13
|
-
import * as tsplus_module_11 from "@fncts/io/Push/
|
|
14
|
-
import * as tsplus_module_12 from "@fncts/
|
|
15
|
-
import * as tsplus_module_13 from "@fncts/
|
|
16
|
-
import * as tsplus_module_14 from "@fncts/io/
|
|
17
|
-
import * as tsplus_module_15 from "@fncts/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import * as tsplus_module_20 from "@fncts/io/IO/api/asyncIO";
|
|
23
|
-
import * as tsplus_module_21 from "@fncts/io/IO/api/forkDaemon";
|
|
24
|
-
import * as tsplus_module_22 from "@fncts/io/Fiber/api/await";
|
|
25
|
-
import * as tsplus_module_23 from "@fncts/io/IO/api/environment";
|
|
26
|
-
import * as tsplus_module_24 from "@fncts/io/Fiber/api/interrupt";
|
|
27
|
-
import * as tsplus_module_25 from "@fncts/base/data/Maybe/constructors";
|
|
28
|
-
import * as tsplus_module_26 from "@fncts/base/data/Maybe/definition";
|
|
29
|
-
import * as tsplus_module_27 from "@fncts/base/data/Cause/api";
|
|
30
|
-
import * as tsplus_module_28 from "@fncts/io/Fiber/api/interruptFork";
|
|
31
|
-
import * as tsplus_module_29 from "@fncts/io/IO/api/forkScoped";
|
|
32
|
-
import * as tsplus_module_30 from "@fncts/base/collection/immutable/Conc/definition";
|
|
33
|
-
import * as tsplus_module_31 from "@fncts/io/Fiber/api/joinAll";
|
|
34
|
-
import * as tsplus_module_32 from "@fncts/io/IO/api/fork";
|
|
35
|
-
import * as tsplus_module_33 from "@fncts/io/IO/api/asyncInterrupt";
|
|
36
|
-
export const asyncInterrupt = asyncInterrupt_1;
|
|
37
|
-
export const combineLatest = combineLatest_1;
|
|
38
|
-
export const exhaustMap = exhaustMap_1;
|
|
39
|
-
export const flatMapConcurrentBounded = flatMapConcurrentBounded_1;
|
|
40
|
-
export const flatMapConcurrentUnbounded = flatMapConcurrentUnbounded_1;
|
|
41
|
-
export const flatMap = flatMap_1;
|
|
42
|
-
export const flatten = flatten_1;
|
|
2
|
+
import * as tsplus_module_1 from "@fncts/io/IO/api";
|
|
3
|
+
import * as tsplus_module_2 from "@fncts/io/IO/api/bracketExit";
|
|
4
|
+
import * as tsplus_module_3 from "@fncts/base/collection/Iterable/api";
|
|
5
|
+
import * as tsplus_module_4 from "@fncts/io/Push/Sink";
|
|
6
|
+
import * as tsplus_module_5 from "@fncts/io/CountdownLatch";
|
|
7
|
+
import * as tsplus_module_6 from "@fncts/io/IO/api/environment";
|
|
8
|
+
import * as tsplus_module_7 from "@fncts/base/data/Cause/api";
|
|
9
|
+
import * as tsplus_module_8 from "@fncts/base/data/Maybe/destructors";
|
|
10
|
+
import * as tsplus_module_9 from "@fncts/io/Push/FlattenStrategy";
|
|
11
|
+
import * as tsplus_module_10 from "@fncts/base/data/ExecutionStrategy";
|
|
12
|
+
import * as tsplus_module_11 from "@fncts/io/Push/Producer/SyncProducer";
|
|
13
|
+
import * as tsplus_module_12 from "@fncts/io/IO/definition";
|
|
14
|
+
import * as tsplus_module_13 from "@fncts/io/Scope/api";
|
|
15
|
+
import * as tsplus_module_14 from "@fncts/io/Layer/MemoMap";
|
|
16
|
+
import * as tsplus_module_15 from "@fncts/base/data/Environment/api";
|
|
17
|
+
export const contramapEnvironment = contramapEnvironment_1;
|
|
18
|
+
export const failCause = failCause_1;
|
|
19
|
+
export const failCauseNow = failCauseNow_1;
|
|
20
|
+
export const flatMapWithStrategy = flatMapWithStrategy_1;
|
|
43
21
|
export const fromIO = fromIO_1;
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export function as(b) {
|
|
62
|
-
return self => {
|
|
63
|
-
return map_1(b)(self);
|
|
64
|
-
};
|
|
22
|
+
export const fromIOProducer = fromIOProducer_1;
|
|
23
|
+
export const fromSyncProducer = fromSyncProducer_1;
|
|
24
|
+
export const provideSomeEnvironment = provideSomeEnvironment_1;
|
|
25
|
+
export const succeedNow = succeedNow_1;
|
|
26
|
+
import { UnboundedStrategy } from "@fncts/io/Push";
|
|
27
|
+
import { Push, PushPrimitive } from "@fncts/io/Push";
|
|
28
|
+
import { FromIO, FromScheduled, Scheduled } from "./Producer/IOProducer.mjs";
|
|
29
|
+
class BracketExit extends Push {
|
|
30
|
+
constructor(acquire, use, release) {
|
|
31
|
+
super();
|
|
32
|
+
this.acquire = acquire;
|
|
33
|
+
this.use = use;
|
|
34
|
+
this.release = release;
|
|
35
|
+
}
|
|
36
|
+
run(sink) {
|
|
37
|
+
return tsplus_module_1.catchAllCause(sink.onFailure, fileName_1 + ":27:20")(tsplus_module_2.bracketExit(() => this.acquire, a => this.use(a).run(sink), (a, exit) => tsplus_module_1.catchAllCause(sink.onFailure, fileName_1 + ":26:55")(this.release(a, exit)), fileName_1 + ":23:26"));
|
|
38
|
+
}
|
|
65
39
|
}
|
|
66
40
|
/**
|
|
67
|
-
* @tsplus static fncts.io.PushOps
|
|
41
|
+
* @tsplus static fncts.io.PushOps bracketExit
|
|
68
42
|
*/
|
|
69
|
-
function
|
|
70
|
-
return
|
|
71
|
-
const unsafeSink = {
|
|
72
|
-
event: value => runtime.unsafeRunOrFork(tsplus_module_5.forkIn(scope, fileName_1 + ":34:77")(sink.event(value)), fileName_1 + ":34:52"),
|
|
73
|
-
error: cause => runtime.unsafeRunOrFork(tsplus_module_5.forkIn(scope, fileName_1 + ":35:93")(tsplus_module_6.fulfill(future, fileName_1 + ":35:78")(sink.error(cause))), fileName_1 + ":35:52")
|
|
74
|
-
};
|
|
75
|
-
return tsplus_module_4.flatMap(eitherPush => tsplus_module_4.map(() => void 0, fileName_1 + ":38:10")(tsplus_module_3.match(canceller => tsplus_module_2.onInterrupt(() => canceller, fileName_1 + ":40:52")(tsplus_module_1.wait(future, fileName_1 + ":40:34")), push => push.run(sink))(eitherPush)), fileName_1 + ":37:29")(tsplus_module_4.succeed(() => make(unsafeSink), fileName_1 + ":37:32"));
|
|
76
|
-
}, fileName_1 + ":32:26")(tsplus_module_7.runtime(fileName_1 + ":32:37")), fileName_1 + ":31:26")(tsplus_module_8.scope), fileName_1 + ":30:26")(tsplus_module_9.make(fileName_1 + ":30:38")), fileName_1 + ":44:9"));
|
|
43
|
+
export function bracketExit(acquire, use, release) {
|
|
44
|
+
return new BracketExit(acquire, use, release);
|
|
77
45
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
|
|
46
|
+
class CombineLatest extends Push {
|
|
47
|
+
constructor(streams) {
|
|
48
|
+
super();
|
|
49
|
+
this.streams = streams;
|
|
50
|
+
}
|
|
51
|
+
run(sink) {
|
|
52
|
+
return UnboundedStrategy.withFork(fork => (() => {
|
|
53
|
+
const size = tsplus_module_3.size(this.streams);
|
|
54
|
+
return tsplus_module_1.flatMap(latch => {
|
|
55
|
+
const ref = Array(size).fill(CombineLatest.UNSET, 0, size);
|
|
56
|
+
const emitIfReady = tsplus_module_1.whenIO(latch.isOpen, fileName_1 + ":55:67")(tsplus_module_1.defer(() => sink.onSuccess(ref), fileName_1 + ":55:39"));
|
|
57
|
+
return tsplus_module_1.map(() => void 0, fileName_1 + ":57:10")(tsplus_module_1.foreach(tsplus_module_3.zipWithIndex(this.streams), ([i, stream]) => fork(stream.run(tsplus_module_4.unsafeMakeSink(value => tsplus_module_1.zipRight(emitIfReady, fileName_1 + ":73:25")(tsplus_module_1.defer(() => {
|
|
58
|
+
const indexEmpty = ref[i] === CombineLatest.UNSET;
|
|
59
|
+
ref[i] = value;
|
|
60
|
+
if (indexEmpty) {
|
|
61
|
+
return latch.countDown;
|
|
62
|
+
} else {
|
|
63
|
+
return tsplus_module_1.unit;
|
|
64
|
+
}
|
|
65
|
+
}, fileName_1 + ":63:29")), cause => sink.onFailure(cause)))), fileName_1 + ":58:21"));
|
|
66
|
+
}, fileName_1 + ":53:32")(tsplus_module_5.make(size));
|
|
67
|
+
})());
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return tsplus_module_4.flatMap(ref => {
|
|
91
|
-
const emitIfReady = tsplus_module_4.flatMap(as => as.length === size ? emitter.event(as) : tsplus_module_4.unit, fileName_1 + ":70:69")(tsplus_module_4.succeed(() => ref.filter(a => a != null), fileName_1 + ":70:31"));
|
|
92
|
-
return tsplus_module_4.map(() => void 0, fileName_1 + ":73:8")(tsplus_module_14.foreachConcurrent(tsplus_module_13.zipWithIndex(streams), ([i, stream]) => stream.run(tsplus_module_11.makeSink(value => tsplus_module_4.zipRight(emitIfReady, fileName_1 + ":77:48")(tsplus_module_4.succeed(() => ref[i] = value, fileName_1 + ":77:28")), cause => emitter.error(cause))), fileName_1 + ":74:29"));
|
|
93
|
-
}, fileName_1 + ":69:30")(tsplus_module_4.succeed(() => Array(size), fileName_1 + ":69:33"));
|
|
94
|
-
})());
|
|
70
|
+
CombineLatest.UNSET = /*#__PURE__*/Symbol();
|
|
71
|
+
export function combineLatest(streams) {
|
|
72
|
+
return new CombineLatest(streams);
|
|
95
73
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
74
|
+
class ContramapEnvironment extends Push {
|
|
75
|
+
constructor(self, f) {
|
|
76
|
+
super();
|
|
77
|
+
this.self = self;
|
|
78
|
+
this.f = f;
|
|
79
|
+
}
|
|
80
|
+
run(sink) {
|
|
81
|
+
return tsplus_module_6.contramapEnvironment(this.f, fileName_1 + ":105:52")(this.self.run(sink));
|
|
82
|
+
}
|
|
103
83
|
}
|
|
104
84
|
/**
|
|
105
|
-
* @tsplus pipeable fncts.io.Push
|
|
85
|
+
* @tsplus pipeable fncts.io.Push contramapEnvironment
|
|
106
86
|
*/
|
|
107
|
-
|
|
108
|
-
return self =>
|
|
109
|
-
|
|
110
|
-
|
|
87
|
+
function contramapEnvironment_1(f) {
|
|
88
|
+
return self => new ContramapEnvironment(self, f);
|
|
89
|
+
}
|
|
90
|
+
class Defer extends Push {
|
|
91
|
+
constructor(self) {
|
|
92
|
+
super();
|
|
93
|
+
this.self = self;
|
|
94
|
+
}
|
|
95
|
+
run(sink) {
|
|
96
|
+
return tsplus_module_1.defer(() => this.self().run(sink), fileName_1 + ":121:20");
|
|
97
|
+
}
|
|
111
98
|
}
|
|
112
99
|
/**
|
|
113
100
|
* @tsplus static fncts.io.PushOps defer
|
|
114
101
|
*/
|
|
115
102
|
export function defer(self) {
|
|
116
|
-
return
|
|
103
|
+
return new Defer(self);
|
|
117
104
|
}
|
|
118
105
|
/**
|
|
119
|
-
* @tsplus
|
|
106
|
+
* @tsplus static fncts.io.PushOps failCause
|
|
120
107
|
*/
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
108
|
+
function failCause_1(cause) {
|
|
109
|
+
const op = new PushPrimitive(3 /* PushTag.FailCause */);
|
|
110
|
+
op.i0 = cause;
|
|
111
|
+
return op;
|
|
125
112
|
}
|
|
126
113
|
/**
|
|
127
|
-
* @tsplus
|
|
114
|
+
* @tsplus static fncts.io.PushOps failCauseNow
|
|
128
115
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
116
|
+
function failCauseNow_1(cause) {
|
|
117
|
+
const op = new PushPrimitive(3 /* PushTag.FailCause */);
|
|
118
|
+
op.i0 = () => cause;
|
|
119
|
+
return op;
|
|
133
120
|
}
|
|
134
121
|
/**
|
|
135
|
-
* @tsplus
|
|
122
|
+
* @tsplus static fncts.io.PushOps failNow
|
|
136
123
|
*/
|
|
137
|
-
export function
|
|
138
|
-
return
|
|
139
|
-
return tsplus_module_11.makePush(sink => self.run(tsplus_module_11.makeSink(a => tsplus_module_4.catchAllCause(sink.error, fileName_1 + ":141:29")(tsplus_module_4.flatMap(b => b ? sink.event(a) : tsplus_module_4.unit, fileName_1 + ":140:23")(predicate(a))), sink.error)));
|
|
140
|
-
};
|
|
124
|
+
export function failNow(error) {
|
|
125
|
+
return failCauseNow_1(tsplus_module_7.fail(error));
|
|
141
126
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
127
|
+
class Filter extends Push {
|
|
128
|
+
constructor(self, p) {
|
|
129
|
+
super();
|
|
130
|
+
this.self = self;
|
|
131
|
+
this.p = p;
|
|
132
|
+
}
|
|
133
|
+
run(sink) {
|
|
134
|
+
return this.self.run(tsplus_module_4.unsafeMakeSink(value => {
|
|
135
|
+
if (this.p(value)) {
|
|
136
|
+
return sink.onSuccess(value);
|
|
137
|
+
} else {
|
|
138
|
+
return tsplus_module_1.unit;
|
|
139
|
+
}
|
|
140
|
+
}, cause => sink.onFailure(cause)));
|
|
141
|
+
}
|
|
149
142
|
}
|
|
150
|
-
export function filter(
|
|
151
|
-
return self =>
|
|
152
|
-
|
|
153
|
-
|
|
143
|
+
export function filter(p) {
|
|
144
|
+
return self => new Filter(self, p);
|
|
145
|
+
}
|
|
146
|
+
class FilterMap extends Push {
|
|
147
|
+
constructor(self, f) {
|
|
148
|
+
super();
|
|
149
|
+
this.self = self;
|
|
150
|
+
this.f = f;
|
|
151
|
+
}
|
|
152
|
+
run(sink) {
|
|
153
|
+
return this.self.run(tsplus_module_4.unsafeMakeSink(value => tsplus_module_8.match(() => tsplus_module_1.unit, b => sink.onSuccess(b))(this.f(value)), cause => sink.onFailure(cause)));
|
|
154
|
+
}
|
|
154
155
|
}
|
|
155
156
|
/**
|
|
156
157
|
* @tsplus pipeable fncts.io.Push filterMap
|
|
157
158
|
*/
|
|
158
159
|
export function filterMap(f) {
|
|
159
|
-
return self =>
|
|
160
|
-
return tsplus_module_11.makePush(sink => self.run(tsplus_module_11.makeSink(a => tsplus_module_16.match(() => tsplus_module_4.unit, sink.event)(f(a)), sink.error)));
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* @tsplus pipeable fncts.io.Push flatMapConcurrentBounded
|
|
165
|
-
*/
|
|
166
|
-
function flatMapConcurrentBounded_1(f, concurrency) {
|
|
167
|
-
return self => {
|
|
168
|
-
return tsplus_module_11.makePush(emitter => tsplus_module_4.flatMap(semaphore => tsplus_module_4.map(() => void 0, fileName_1 + ":196:10")(flatMapConcurrentUnbounded_1(a => transform_1(io => semaphore.withPermit(io))(f(a)))(self).run(emitter)), fileName_1 + ":195:28")(tsplus_module_17.makeSemaphore(concurrency, fileName_1 + ":195:38")));
|
|
169
|
-
};
|
|
160
|
+
return self => new FilterMap(self, f);
|
|
170
161
|
}
|
|
171
162
|
/**
|
|
172
|
-
* @tsplus pipeable fncts.io.Push
|
|
163
|
+
* @tsplus pipeable fncts.io.Push flatMap
|
|
173
164
|
*/
|
|
174
|
-
function
|
|
165
|
+
export function flatMap(f) {
|
|
175
166
|
return self => {
|
|
176
|
-
|
|
167
|
+
const op = new PushPrimitive(4 /* PushTag.OnSuccess */);
|
|
168
|
+
op.i0 = self;
|
|
169
|
+
op.i1 = f;
|
|
170
|
+
return op;
|
|
177
171
|
};
|
|
178
172
|
}
|
|
179
173
|
/**
|
|
180
|
-
* @tsplus pipeable fncts.io.Push
|
|
174
|
+
* @tsplus pipeable fncts.io.Push flatMapUnbounded
|
|
181
175
|
*/
|
|
182
|
-
export function
|
|
183
|
-
return self =>
|
|
184
|
-
return unwrap_1(tsplus_module_4.map(concurrency => tsplus_module_16.match(() => flatMapConcurrentUnbounded_1(f)(self), n => flatMapConcurrentBounded_1(f, n)(self))(concurrency), fileName_1 + ":217:25")(tsplus_module_18.concurrency));
|
|
185
|
-
};
|
|
176
|
+
export function flatMapUnbounded(f) {
|
|
177
|
+
return self => flatMapWithStrategy_1(f, tsplus_module_9.UnboundedStrategy, tsplus_module_10.concurrent)(self);
|
|
186
178
|
}
|
|
187
179
|
/**
|
|
188
|
-
* @tsplus pipeable fncts.io.Push
|
|
180
|
+
* @tsplus pipeable fncts.io.Push flatMapWithStrategy
|
|
189
181
|
*/
|
|
190
|
-
function
|
|
182
|
+
function flatMapWithStrategy_1(f, flattenStrategy, executionStrategy) {
|
|
191
183
|
return self => {
|
|
192
|
-
|
|
184
|
+
const op = new PushPrimitive(5 /* PushTag.OnSuccessWithStrategy */);
|
|
185
|
+
op.i0 = self;
|
|
186
|
+
op.i1 = f;
|
|
187
|
+
op.i2 = flattenStrategy;
|
|
188
|
+
op.i3 = executionStrategy;
|
|
189
|
+
return op;
|
|
193
190
|
};
|
|
194
191
|
}
|
|
195
192
|
/**
|
|
196
|
-
* @tsplus
|
|
193
|
+
* @tsplus static fncts.io.PushOps fromArray
|
|
197
194
|
*/
|
|
198
|
-
function
|
|
199
|
-
return
|
|
195
|
+
export function fromArray(array) {
|
|
196
|
+
return fromSyncProducer_1(tsplus_module_11.fromArray(array));
|
|
200
197
|
}
|
|
201
198
|
/**
|
|
202
199
|
* @tsplus static fncts.io.PushOps fromIO
|
|
203
200
|
*/
|
|
204
201
|
function fromIO_1(io) {
|
|
205
|
-
|
|
202
|
+
const concrete = io;
|
|
203
|
+
switch (concrete._ioOpCode) {
|
|
204
|
+
case 0 /* IOTag.SucceedNow */:
|
|
205
|
+
{
|
|
206
|
+
return succeedNow_1(concrete.i0);
|
|
207
|
+
}
|
|
208
|
+
case 1 /* IOTag.Fail */:
|
|
209
|
+
{
|
|
210
|
+
return failCause_1(concrete.i0);
|
|
211
|
+
}
|
|
212
|
+
case 2 /* IOTag.Sync */:
|
|
213
|
+
{
|
|
214
|
+
return fromSyncProducer_1(tsplus_module_11.fromSync(concrete.i0));
|
|
215
|
+
}
|
|
216
|
+
default:
|
|
217
|
+
{
|
|
218
|
+
return fromIOProducer_1(new FromIO(io));
|
|
219
|
+
}
|
|
220
|
+
}
|
|
206
221
|
}
|
|
207
222
|
/**
|
|
208
|
-
* @tsplus static fncts.io.PushOps
|
|
223
|
+
* @tsplus static fncts.io.PushOps fromIOProducer
|
|
209
224
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
return tsplus_module_4.matchCauseIO(cause => sink.error(cause), result => result.done ? tsplus_module_4.succeed(() => cb(tsplus_module_4.unit), __tsplusTrace) : tsplus_module_4.zipRight(fromAsyncIterableLoop(iterator, sink, cb, __tsplusTrace), __tsplusTrace)(sink.event(result.value)), __tsplusTrace)(tsplus_module_4.fromPromiseHalt(iterator.next, __tsplusTrace));
|
|
225
|
+
function fromIOProducer_1(producer) {
|
|
226
|
+
const op = new PushPrimitive(2 /* PushTag.ProducerIO */);
|
|
227
|
+
op.i0 = producer;
|
|
228
|
+
return op;
|
|
215
229
|
}
|
|
216
230
|
/**
|
|
217
231
|
* @tsplus static fncts.io.PushOps fromIterable
|
|
218
232
|
*/
|
|
219
233
|
export function fromIterable(iterable) {
|
|
220
|
-
return tsplus_module_11.
|
|
234
|
+
return fromSyncProducer_1(tsplus_module_11.fromIterable(iterable));
|
|
221
235
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
236
|
+
/**
|
|
237
|
+
* @tsplus static fncts.io.PushOps fromScheduled
|
|
238
|
+
*/
|
|
239
|
+
export function fromScheduled(io, schedule) {
|
|
240
|
+
return fromIOProducer_1(new FromScheduled(io, schedule));
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* @tsplus static fncts.io.PushOps fromSyncProducer
|
|
244
|
+
*/
|
|
245
|
+
function fromSyncProducer_1(producer) {
|
|
246
|
+
const op = new PushPrimitive(1 /* PushTag.ProducerSync */);
|
|
247
|
+
op.i0 = producer;
|
|
248
|
+
return op;
|
|
227
249
|
}
|
|
228
250
|
/**
|
|
229
|
-
* @tsplus
|
|
251
|
+
* @tsplus static fncts.io.PushOps haltNow
|
|
230
252
|
*/
|
|
231
|
-
export function
|
|
232
|
-
return
|
|
253
|
+
export function haltNow(error) {
|
|
254
|
+
return failCauseNow_1(tsplus_module_7.halt(error));
|
|
233
255
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
256
|
+
/**
|
|
257
|
+
* @tsplus static fncts.io.PushOps __call
|
|
258
|
+
*/
|
|
259
|
+
export function makePush(run) {
|
|
260
|
+
const op = new PushPrimitive(8 /* PushTag.FromPush */);
|
|
261
|
+
op.i0 = run;
|
|
262
|
+
return op;
|
|
263
|
+
}
|
|
264
|
+
class Map extends Push {
|
|
265
|
+
constructor(self, f) {
|
|
266
|
+
super();
|
|
267
|
+
this.self = self;
|
|
268
|
+
this.f = f;
|
|
239
269
|
}
|
|
240
270
|
run(sink) {
|
|
241
|
-
return tsplus_module_4.
|
|
242
|
-
let io = tsplus_module_4.unit;
|
|
243
|
-
if (this.observers.push({
|
|
244
|
-
sink: sink,
|
|
245
|
-
environment
|
|
246
|
-
}) === 1) {
|
|
247
|
-
io = tsplus_module_4.flatMap(fiber => tsplus_module_4.succeed(() => this.fiber = fiber, fileName_1 + ":326:70"), fileName_1 + ":326:56")(tsplus_module_21.forkDaemon(this.push.run(this), fileName_1 + ":326:37"));
|
|
248
|
-
}
|
|
249
|
-
return tsplus_module_4.zipRight(tsplus_module_2.ensuring(this.removeSink(sink), fileName_1 + ":328:49")(tsplus_module_22.wait(this.fiber, fileName_1 + ":328:34")), fileName_1 + ":328:22")(io);
|
|
250
|
-
}, fileName_1 + ":323:17")), fileName_1 + ":321:28")(tsplus_module_23.environment(fileName_1 + ":321:43"));
|
|
251
|
-
}
|
|
252
|
-
event(value) {
|
|
253
|
-
return tsplus_module_4.defer(() => tsplus_module_4.foreachDiscard(this.observers.slice(), observer => this.runValue(value, observer), fileName_1 + ":335:38"), fileName_1 + ":335:20");
|
|
254
|
-
}
|
|
255
|
-
error(cause) {
|
|
256
|
-
return tsplus_module_4.defer(() => tsplus_module_4.foreachDiscard(this.observers.slice(), observer => this.runError(cause, observer), fileName_1 + ":339:38"), fileName_1 + ":339:20");
|
|
257
|
-
}
|
|
258
|
-
runValue(value, observer) {
|
|
259
|
-
return tsplus_module_4.catchAllCause(() => this.removeSink(observer.sink), fileName_1 + ":346:21")(tsplus_module_23.provideEnvironment(observer.environment, fileName_1 + ":345:26")(observer.sink.event(value)));
|
|
260
|
-
}
|
|
261
|
-
runError(cause, observer) {
|
|
262
|
-
return tsplus_module_4.catchAllCause(() => this.removeSink(observer.sink), fileName_1 + ":353:21")(tsplus_module_23.provideEnvironment(observer.environment, fileName_1 + ":352:26")(observer.sink.error(cause)));
|
|
263
|
-
}
|
|
264
|
-
removeSink(sink) {
|
|
265
|
-
return tsplus_module_4.defer(() => {
|
|
266
|
-
if (this.observers.length === 0) {
|
|
267
|
-
return tsplus_module_4.unit;
|
|
268
|
-
}
|
|
269
|
-
const index = this.observers.findIndex(observer => observer.sink === sink);
|
|
270
|
-
if (index > -1) {
|
|
271
|
-
this.observers.splice(index, 1);
|
|
272
|
-
if (this.observers.length === 0) {
|
|
273
|
-
const interrupt = tsplus_module_24.interrupt(this.fiber);
|
|
274
|
-
this.fiber = undefined;
|
|
275
|
-
return interrupt;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
return tsplus_module_4.unit;
|
|
279
|
-
}, fileName_1 + ":357:20");
|
|
271
|
+
return this.self.run(tsplus_module_4.unsafeMakeSink(value => sink.onSuccess(this.f(value)), cause => sink.onFailure(cause)));
|
|
280
272
|
}
|
|
281
273
|
}
|
|
282
|
-
_a = PushTypeId;
|
|
283
274
|
/**
|
|
284
|
-
* @tsplus
|
|
275
|
+
* @tsplus pipeable fncts.io.Push map
|
|
285
276
|
*/
|
|
286
|
-
export function
|
|
287
|
-
return new
|
|
277
|
+
export function map(f) {
|
|
278
|
+
return self => new Map(self, f);
|
|
288
279
|
}
|
|
289
|
-
|
|
290
|
-
constructor(
|
|
291
|
-
super(
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
280
|
+
class MapAccum extends Push {
|
|
281
|
+
constructor(self, seed, f) {
|
|
282
|
+
super();
|
|
283
|
+
this.self = self;
|
|
284
|
+
this.seed = seed;
|
|
285
|
+
this.f = f;
|
|
294
286
|
}
|
|
295
287
|
run(sink) {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
return
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
this.current.set(tsplus_module_25.just(value, fileName_1 + ":401:28"));
|
|
305
|
-
return super.event(value);
|
|
306
|
-
}, fileName_1 + ":400:20");
|
|
288
|
+
return tsplus_module_1.defer(() => {
|
|
289
|
+
let acc = this.seed;
|
|
290
|
+
return this.self.run(tsplus_module_4.unsafeMakeSink(value => {
|
|
291
|
+
const [s, b] = this.f(acc, value);
|
|
292
|
+
acc = s;
|
|
293
|
+
return sink.onSuccess(b);
|
|
294
|
+
}, cause => sink.onFailure(cause)));
|
|
295
|
+
}, fileName_1 + ":364:20");
|
|
307
296
|
}
|
|
308
297
|
}
|
|
309
298
|
/**
|
|
310
|
-
* @tsplus pipeable fncts.io.Push
|
|
299
|
+
* @tsplus pipeable fncts.io.Push mapAccum
|
|
311
300
|
*/
|
|
312
|
-
function
|
|
313
|
-
return self =>
|
|
314
|
-
return mapIO_1(a => tsplus_module_4.succeedNow(f(a), fileName_1 + ":412:43"))(self);
|
|
315
|
-
};
|
|
301
|
+
export function mapAccum(seed, f) {
|
|
302
|
+
return self => new MapAccum(self, seed, f);
|
|
316
303
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
304
|
+
class MapIO extends Push {
|
|
305
|
+
constructor(self, f) {
|
|
306
|
+
super();
|
|
307
|
+
this.self = self;
|
|
308
|
+
this.f = f;
|
|
309
|
+
}
|
|
310
|
+
run(sink) {
|
|
311
|
+
return this.self.run(tsplus_module_4.unsafeMakeSink(value => tsplus_module_1.matchCauseIO(sink.onFailure, sink.onSuccess, fileName_1 + ":398:46")(this.f(value)), cause => sink.onFailure(cause)));
|
|
312
|
+
}
|
|
324
313
|
}
|
|
325
314
|
/**
|
|
326
|
-
* @tsplus pipeable fncts.io.Push
|
|
315
|
+
* @tsplus pipeable fncts.io.Push mapIO
|
|
327
316
|
*/
|
|
328
|
-
export function
|
|
329
|
-
return self =>
|
|
330
|
-
return tsplus_module_11.makePush(emitter => self.run(tsplus_module_11.makeSink(value => emitter.event(value), cause => emitter.error(f(cause)))));
|
|
331
|
-
};
|
|
317
|
+
export function mapIO(f) {
|
|
318
|
+
return self => new MapIO(self, f);
|
|
332
319
|
}
|
|
333
320
|
/**
|
|
334
|
-
* @tsplus pipeable fncts.io.Push
|
|
321
|
+
* @tsplus pipeable fncts.io.Push mapIOWithStrategy
|
|
335
322
|
*/
|
|
336
|
-
function
|
|
337
|
-
return self =>
|
|
323
|
+
export function mapIOWithStrategy(f, flattenStrategy, executionStrategy) {
|
|
324
|
+
return self => flatMapWithStrategy_1(a => fromIO_1(f(a)), flattenStrategy, executionStrategy)(self);
|
|
325
|
+
}
|
|
326
|
+
class MergeWithStrategy extends Push {
|
|
327
|
+
constructor(ps, mergeStrategy) {
|
|
328
|
+
super();
|
|
329
|
+
this.ps = ps;
|
|
330
|
+
this.mergeStrategy = mergeStrategy;
|
|
331
|
+
}
|
|
332
|
+
run(sink) {
|
|
333
|
+
return this.mergeStrategy.runMerge(this.ps, sink);
|
|
334
|
+
}
|
|
338
335
|
}
|
|
339
336
|
/**
|
|
340
|
-
* @tsplus
|
|
337
|
+
* @tsplus static fncts.io.PushOps mergeWithStrategy
|
|
341
338
|
*/
|
|
342
|
-
export function
|
|
343
|
-
return
|
|
344
|
-
return mergeAll_1([self, that]);
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
function mergeAll_1(streams) {
|
|
348
|
-
return tsplus_module_11.makePush(sink => tsplus_module_14.foreachConcurrentDiscard(streams, stream => stream.run(tsplus_module_11.makeSink(sink.event, cause => tsplus_module_27.isInterruptedOnly(cause) ? tsplus_module_4.unit : sink.error(cause))), fileName_1 + ":485:32"));
|
|
339
|
+
export function mergeWithStrategy(streams, mergeStrategy) {
|
|
340
|
+
return new MergeWithStrategy(streams, mergeStrategy);
|
|
349
341
|
}
|
|
350
342
|
/**
|
|
351
343
|
* @tsplus pipeable fncts.io.Push observe
|
|
352
344
|
*/
|
|
353
|
-
function
|
|
345
|
+
export function observe(f) {
|
|
354
346
|
return self => {
|
|
355
|
-
return
|
|
347
|
+
return self.run(tsplus_module_4.unsafeMakeSink(f, cause => tsplus_module_1.orHalt(tsplus_module_1.failCause(() => cause, fileName_1 + ":458:63"), fileName_1 + ":458:70")));
|
|
356
348
|
};
|
|
357
349
|
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
export function runCollect(self) {
|
|
368
|
-
return tsplus_module_4.defer(() => {
|
|
369
|
-
const out = [];
|
|
370
|
-
return tsplus_module_4.as(() => tsplus_module_30.fromArray(out), fileName_1 + ":532:51")(observe_1(a => tsplus_module_4.succeed(() => out.push(a), fileName_1 + ":532:34"), fileName_1 + ":532:24")(self));
|
|
371
|
-
}, fileName_1 + ":530:18");
|
|
350
|
+
class OrElseCause extends Push {
|
|
351
|
+
constructor(self, that) {
|
|
352
|
+
super();
|
|
353
|
+
this.self = self;
|
|
354
|
+
this.that = that;
|
|
355
|
+
}
|
|
356
|
+
run(sink) {
|
|
357
|
+
return this.self.run(tsplus_module_4.unsafeMakeSink(sink.onSuccess, cause => this.that(cause).run(sink)));
|
|
358
|
+
}
|
|
372
359
|
}
|
|
373
360
|
/**
|
|
374
|
-
* @tsplus
|
|
361
|
+
* @tsplus pipeable fncts.io.Push orElseCause
|
|
375
362
|
*/
|
|
376
|
-
export function
|
|
377
|
-
return
|
|
363
|
+
export function orElseCause(that) {
|
|
364
|
+
return self => new OrElseCause(self, that);
|
|
378
365
|
}
|
|
379
366
|
/**
|
|
380
|
-
* @tsplus
|
|
367
|
+
* @tsplus pipeable fncts.io.Push provideEnvironment
|
|
381
368
|
*/
|
|
382
|
-
function
|
|
383
|
-
return
|
|
369
|
+
export function provideEnvironment(environment) {
|
|
370
|
+
return self => provideSomeEnvironment_1(environment)(self);
|
|
384
371
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
372
|
+
class ProvideLayer extends Push {
|
|
373
|
+
constructor(self, layer) {
|
|
374
|
+
super();
|
|
375
|
+
this.self = self;
|
|
376
|
+
this.layer = layer;
|
|
377
|
+
}
|
|
378
|
+
run(sink) {
|
|
379
|
+
return tsplus_module_2.bracketExit(() => tsplus_module_13.make, scope => tsplus_module_1.matchCauseIO(sink.onFailure, environment => tsplus_module_6.provideSomeEnvironment(environment, fileName_1 + ":501:100")(this.self.run(sink)), fileName_1 + ":501:24")(tsplus_module_14.build_(scope, fileName_1 + ":500:17")(this.layer)), (scope, exit) => scope.close(() => exit), fileName_1 + ":496:26");
|
|
380
|
+
}
|
|
390
381
|
}
|
|
391
382
|
/**
|
|
392
|
-
* @tsplus pipeable fncts.io.Push
|
|
383
|
+
* @tsplus pipeable fncts.io.Push provideLayer
|
|
393
384
|
*/
|
|
394
|
-
function
|
|
395
|
-
return self =>
|
|
396
|
-
return tsplus_module_11.makePush(sink => withSwitch(fork => self.run(tsplus_module_11.makeSink(a => fork(f(a).run(sink)), sink.error))));
|
|
397
|
-
};
|
|
385
|
+
export function provideLayer(layer) {
|
|
386
|
+
return self => new ProvideLayer(self, layer);
|
|
398
387
|
}
|
|
399
388
|
/**
|
|
400
|
-
* @tsplus pipeable fncts.io.Push
|
|
389
|
+
* @tsplus pipeable fncts.io.Push provideSomeEnvironment
|
|
401
390
|
*/
|
|
402
|
-
function
|
|
403
|
-
return self =>
|
|
404
|
-
return switchMap_1(a => fromIO_1(() => f(a)))(self);
|
|
405
|
-
};
|
|
391
|
+
function provideSomeEnvironment_1(environment) {
|
|
392
|
+
return self => contramapEnvironment_1(r => tsplus_module_15.union(environment)(r))(self);
|
|
406
393
|
}
|
|
407
394
|
/**
|
|
408
|
-
* @tsplus
|
|
395
|
+
* @tsplus static fncts.io.PushOps schedule
|
|
409
396
|
*/
|
|
410
|
-
export function
|
|
411
|
-
return
|
|
412
|
-
return tsplus_module_11.makePush(sink => self.run(tsplus_module_11.makeSink(a => tsplus_module_4.matchCauseIO(sink.error, () => sink.event(a), fileName_1 + ":585:65")(f(a)), sink.error)));
|
|
413
|
-
};
|
|
397
|
+
export function schedule(io, schedule) {
|
|
398
|
+
return fromIOProducer_1(new Scheduled(io, schedule));
|
|
414
399
|
}
|
|
415
400
|
/**
|
|
416
|
-
* @tsplus
|
|
401
|
+
* @tsplus static fncts.io.PushOps succeed
|
|
417
402
|
*/
|
|
418
|
-
function
|
|
419
|
-
return
|
|
420
|
-
}
|
|
421
|
-
function unfoldLoop(s, f, emitter) {
|
|
422
|
-
return tsplus_module_16.match(() => tsplus_module_4.unit, ([a, s]) => tsplus_module_4.zipRight(unfoldLoop(s, f, emitter), fileName_1 + ":603:35")(emitter.event(a)))(f(s));
|
|
403
|
+
export function succeed(value) {
|
|
404
|
+
return fromSyncProducer_1(tsplus_module_11.fromSync(value));
|
|
423
405
|
}
|
|
424
406
|
/**
|
|
425
|
-
* @tsplus static fncts.io.PushOps
|
|
407
|
+
* @tsplus static fncts.io.PushOps succeedNow
|
|
426
408
|
*/
|
|
427
|
-
|
|
428
|
-
return tsplus_module_11.
|
|
429
|
-
}
|
|
430
|
-
function unfoldIOLoop(s, f, emitter) {
|
|
431
|
-
return tsplus_module_4.catchAllCause(cause => emitter.error(cause), fileName_1 + ":626:19")(tsplus_module_4.flatMap(result => tsplus_module_16.match(() => tsplus_module_4.unit, ([a, s]) => tsplus_module_4.zipRight(unfoldIOLoop(s, f, emitter), fileName_1 + ":623:39")(emitter.event(a)))(result), fileName_1 + ":620:13")(f(s)));
|
|
409
|
+
function succeedNow_1(value) {
|
|
410
|
+
return fromSyncProducer_1(tsplus_module_11.success(value));
|
|
432
411
|
}
|
|
433
412
|
/**
|
|
434
|
-
* @tsplus
|
|
413
|
+
* @tsplus pipeable fncts.io.Push switchMap
|
|
435
414
|
*/
|
|
436
|
-
function
|
|
437
|
-
return
|
|
415
|
+
export function switchMap(f, executionStrategy) {
|
|
416
|
+
return self => flatMapWithStrategy_1(f, tsplus_module_9.SwitchStrategy, executionStrategy ?? tsplus_module_10.sequential)(self);
|
|
438
417
|
}
|
|
439
418
|
/**
|
|
440
|
-
* @tsplus pipeable fncts.io.Push
|
|
419
|
+
* @tsplus pipeable fncts.io.Push transform
|
|
441
420
|
*/
|
|
442
|
-
export function
|
|
421
|
+
export function transform(f) {
|
|
443
422
|
return self => {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
423
|
+
const op = new PushPrimitive(9 /* PushTag.Transform */);
|
|
424
|
+
op.i0 = self;
|
|
425
|
+
op.i1 = f;
|
|
426
|
+
return op;
|
|
448
427
|
};
|
|
449
428
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}, fileName_1 + ":667:17"));
|
|
459
|
-
};
|
|
429
|
+
class Unwrap extends Push {
|
|
430
|
+
constructor(io) {
|
|
431
|
+
super();
|
|
432
|
+
this.io = io;
|
|
433
|
+
}
|
|
434
|
+
run(sink) {
|
|
435
|
+
return tsplus_module_1.matchCauseIO(cause => sink.onFailure(cause), stream => stream.run(sink), fileName_1 + ":568:32")(this.io);
|
|
436
|
+
}
|
|
460
437
|
}
|
|
461
438
|
/**
|
|
462
439
|
* @tsplus static fncts.io.PushOps unwrap
|
|
463
440
|
*/
|
|
464
|
-
function
|
|
465
|
-
return
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* @tsplus static fncts.io.PushOps unwrapScoped
|
|
469
|
-
*/
|
|
470
|
-
export function unwrapScoped(self, __tsplusTrace) {
|
|
471
|
-
return flatten_1(scoped_1(() => self, __tsplusTrace));
|
|
441
|
+
export function unwrap(io) {
|
|
442
|
+
return new Unwrap(io);
|
|
472
443
|
}
|
|
473
|
-
/**
|
|
474
|
-
* @tsplus static fncts.io.PushOps never
|
|
475
|
-
*/
|
|
476
|
-
export const never = /*#__PURE__*/fromIO_1(() => tsplus_module_33.never);
|
|
477
444
|
//# sourceMappingURL=api.mjs.map
|