@fncts/io 0.0.20 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/Cached/api.d.ts +2 -2
- package/Channel/ChildExecutorDecision/api.d.ts +2 -2
- package/Channel/UpstreamPullRequest/api.d.ts +2 -2
- package/Channel/api/interruptWhen.d.ts +5 -5
- package/Channel/api/mapOutIOC.d.ts +3 -3
- package/Channel/api/mergeAll.d.ts +2 -2
- package/Channel/api/mergeAllUnboundedWith.d.ts +2 -2
- package/Channel/api/mergeAllWith.d.ts +2 -2
- package/Channel/api/mergeMap.d.ts +2 -2
- package/Channel/api/mergeWith.d.ts +2 -2
- package/Channel/api/zipC.d.ts +6 -6
- package/Channel/api.d.ts +64 -64
- package/Channel/core-api.d.ts +11 -11
- package/Channel/definition.d.ts +35 -21
- package/Fiber/api/evalOn.d.ts +3 -3
- package/Fiber/api/evalOnIO.d.ts +3 -3
- package/Fiber/api/interruptAs.d.ts +3 -3
- package/Fiber/api/interruptAsFork.d.ts +3 -3
- package/Fiber/api/mapFiber.d.ts +2 -2
- package/Fiber/api/mapIO.d.ts +5 -5
- package/Fiber/api/zipWith.d.ts +2 -2
- package/Fiber.d.ts +1 -0
- package/FiberRef/api/locallyScoped.d.ts +2 -2
- package/FiberRef/api/locallyScopedWith.d.ts +2 -2
- package/FiberRef/api.d.ts +18 -18
- package/FiberRefs/api.d.ts +2 -2
- package/FiberRefs/join.d.ts +3 -3
- package/Future/api.d.ts +21 -21
- package/Hub/constructors.d.ts +49 -0
- package/Hub/definition.d.ts +37 -81
- package/Hub/internal.d.ts +4 -11
- package/Hub.d.ts +1 -1
- package/IO/api/acquireRelease.d.ts +1 -1
- package/IO/api/acquireReleaseExit.d.ts +1 -1
- package/IO/api/bracket.d.ts +1 -1
- package/IO/api/bracketExit.d.ts +1 -1
- package/IO/api/concurrency.d.ts +2 -2
- package/IO/api/core-scope.d.ts +5 -5
- package/IO/api/ensuringChildren.d.ts +3 -3
- package/IO/api/environment.d.ts +11 -15
- package/IO/api/foreachC.d.ts +2 -2
- package/IO/api/foreachExec.d.ts +1 -1
- package/IO/api/forkIn.d.ts +3 -3
- package/IO/api/fulfill.d.ts +3 -3
- package/IO/api/interrupt.d.ts +6 -6
- package/IO/api/onExit.d.ts +3 -3
- package/IO/api/onTermination.d.ts +4 -4
- package/IO/api/provideLayer.d.ts +3 -3
- package/IO/api/provideSomeLayer.d.ts +3 -7
- package/IO/api/race.d.ts +2 -2
- package/IO/api/raceFirst.d.ts +2 -2
- package/IO/api/repeat.d.ts +3 -3
- package/IO/api/retry.d.ts +7 -7
- package/IO/api/schedule.d.ts +5 -5
- package/IO/api/scoped.d.ts +2 -2
- package/IO/api/supervised.d.ts +3 -3
- package/IO/api/timeout.d.ts +5 -5
- package/IO/api/withFinalizer.d.ts +3 -3
- package/IO/api/withFinalizerExit.d.ts +3 -3
- package/IO/api/withRuntimeConfig.d.ts +3 -3
- package/IO/api/zipC.d.ts +4 -4
- package/IO/api.d.ts +179 -176
- package/IO/definition.d.ts +15 -9
- package/Layer/MemoMap.d.ts +4 -4
- package/Layer/api.d.ts +28 -28
- package/LogLevel.d.ts +12 -12
- package/LogSpan.d.ts +2 -2
- package/Logger/api.d.ts +5 -5
- package/Queue/constructors.d.ts +2 -1
- package/Queue/definition.d.ts +91 -82
- package/Queue/internal.d.ts +7 -9
- package/Queue.d.ts +0 -2
- package/Ref/Atomic.d.ts +15 -2
- package/Ref/Synchronized.d.ts +72 -0
- package/Ref/constructors.d.ts +7 -0
- package/Ref/definition.d.ts +60 -58
- package/Ref.d.ts +1 -6
- package/STM/api/core-api.d.ts +10 -10
- package/STM/api.d.ts +61 -61
- package/STM/internal/Journal.d.ts +4 -4
- package/Schedule/Decision.d.ts +2 -2
- package/Schedule/api.d.ts +94 -94
- package/Scope/ReleaseMap/api/releaseAll.d.ts +2 -2
- package/Scope/ReleaseMap/api.d.ts +10 -10
- package/Scope/api.d.ts +8 -8
- package/Sink/api.d.ts +68 -68
- package/State/api.d.ts +4 -4
- package/State/internal.d.ts +1 -1
- package/Stream/api/zipAllWith.d.ts +2 -2
- package/Stream/api/zipWith.d.ts +2 -2
- package/Stream/api/zipWithChunks.d.ts +2 -2
- package/Stream/api.d.ts +216 -205
- package/Stream/internal/DebounceState.d.ts +3 -3
- package/Stream/internal/Handoff.d.ts +5 -5
- package/Stream/internal/Pull.d.ts +2 -2
- package/Stream/internal/SinkEndReason.d.ts +3 -3
- package/Stream/internal/Take.d.ts +8 -8
- package/SubscriptionRef.d.ts +29 -0
- package/Supervisor/api.d.ts +4 -4
- package/SupervisorPatch.d.ts +4 -4
- package/TFuture/api.d.ts +7 -7
- package/TReentrantLock/api.d.ts +4 -4
- package/TRef/api.d.ts +24 -24
- package/TSemaphore/api.d.ts +4 -4
- package/TSemaphore/constructors.d.ts +6 -0
- package/_cjs/Cached/api.cjs +9 -9
- package/_cjs/Cached/api.cjs.map +1 -1
- package/_cjs/Channel/ChildExecutorDecision/api.cjs +19 -17
- package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
- package/_cjs/Channel/UpstreamPullRequest/api.cjs +16 -14
- package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
- package/_cjs/Channel/api/interruptWhen.cjs +14 -10
- package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
- package/_cjs/Channel/api/mapOutIOC.cjs +25 -25
- package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAll.cjs +6 -4
- package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +6 -4
- package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeAllWith.cjs +48 -52
- package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
- package/_cjs/Channel/api/mergeMap.cjs +6 -4
- package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
- package/_cjs/Channel/api/mergeWith.cjs +48 -46
- package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
- package/_cjs/Channel/api/run.cjs +1 -1
- package/_cjs/Channel/api/run.cjs.map +1 -1
- package/_cjs/Channel/api/runScoped.cjs +2 -2
- package/_cjs/Channel/api/runScoped.cjs.map +1 -1
- package/_cjs/Channel/api/toPull.cjs +3 -3
- package/_cjs/Channel/api/toPull.cjs.map +1 -1
- package/_cjs/Channel/api/zipC.cjs +20 -14
- package/_cjs/Channel/api/zipC.cjs.map +1 -1
- package/_cjs/Channel/api.cjs +264 -218
- package/_cjs/Channel/api.cjs.map +1 -1
- package/_cjs/Channel/core-api.cjs +34 -24
- package/_cjs/Channel/core-api.cjs.map +1 -1
- package/_cjs/Channel/definition.cjs +1 -1
- package/_cjs/Channel/definition.cjs.map +1 -1
- package/_cjs/Channel/internal/ChannelExecutor.cjs +83 -83
- package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +22 -24
- package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
- package/_cjs/Differ/api.cjs +5 -5
- package/_cjs/Differ/api.cjs.map +1 -1
- package/_cjs/Fiber/FiberContext.cjs +48 -48
- package/_cjs/Fiber/FiberContext.cjs.map +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs +1 -1
- package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +1 -1
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/evalOn.cjs +12 -10
- package/_cjs/Fiber/api/evalOn.cjs.map +1 -1
- package/_cjs/Fiber/api/evalOnIO.cjs +6 -4
- package/_cjs/Fiber/api/evalOnIO.cjs.map +1 -1
- package/_cjs/Fiber/api/fromIO.cjs +1 -1
- package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +1 -1
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +2 -2
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +6 -4
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAsFork.cjs +6 -4
- package/_cjs/Fiber/api/interruptAsFork.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs +1 -1
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/api/join.cjs +1 -1
- package/_cjs/Fiber/api/join.cjs.map +1 -1
- package/_cjs/Fiber/api/joinAll.cjs +1 -1
- package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
- package/_cjs/Fiber/api/mapFiber.cjs +6 -4
- package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
- package/_cjs/Fiber/api/mapIO.cjs +14 -10
- package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
- package/_cjs/Fiber/api/zipWith.cjs +6 -4
- package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/Fiber.cjs +13 -0
- package/_cjs/Fiber.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScoped.cjs +6 -4
- package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
- package/_cjs/FiberRef/api/locallyScopedWith.cjs +5 -3
- package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +64 -47
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/constructors.cjs +1 -1
- package/_cjs/FiberRef/constructors.cjs.map +1 -1
- package/_cjs/FiberRef.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +15 -13
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/join.cjs +37 -35
- package/_cjs/FiberRefs/join.cjs.map +1 -1
- package/_cjs/FiberState/definition.cjs.map +1 -1
- package/_cjs/Future/api.cjs +97 -79
- package/_cjs/Future/api.cjs.map +1 -1
- package/_cjs/Future/constructors.cjs +1 -1
- package/_cjs/Future/constructors.cjs.map +1 -1
- package/_cjs/Hub/constructors.cjs +93 -0
- package/_cjs/Hub/constructors.cjs.map +1 -0
- package/_cjs/Hub/definition.cjs +104 -13
- package/_cjs/Hub/definition.cjs.map +1 -1
- package/_cjs/Hub/internal.cjs +104 -129
- package/_cjs/Hub/internal.cjs.map +1 -1
- package/_cjs/Hub.cjs +4 -4
- package/_cjs/IO/api/acquireReleaseExit.cjs +1 -1
- package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +1 -1
- package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs +1 -1
- package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/asyncIO.cjs +4 -4
- package/_cjs/IO/api/asyncIO.cjs.map +1 -1
- package/_cjs/IO/api/bracket.cjs +3 -3
- package/_cjs/IO/api/bracket.cjs.map +1 -1
- package/_cjs/IO/api/bracketExit.cjs +3 -3
- package/_cjs/IO/api/bracketExit.cjs.map +1 -1
- package/_cjs/IO/api/clockWith.cjs +2 -2
- package/_cjs/IO/api/clockWith.cjs.map +1 -1
- package/_cjs/IO/api/concurrency.cjs +9 -7
- package/_cjs/IO/api/concurrency.cjs.map +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs +1 -1
- package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
- package/_cjs/IO/api/consoleWith.cjs +2 -2
- package/_cjs/IO/api/consoleWith.cjs.map +1 -1
- package/_cjs/IO/api/core-scope.cjs +45 -41
- package/_cjs/IO/api/core-scope.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +5 -3
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/environment.cjs +35 -35
- package/_cjs/IO/api/environment.cjs.map +1 -1
- package/_cjs/IO/api/foreachC.cjs +19 -23
- package/_cjs/IO/api/foreachC.cjs.map +1 -1
- package/_cjs/IO/api/foreachExec.cjs +3 -3
- package/_cjs/IO/api/foreachExec.cjs.map +1 -1
- package/_cjs/IO/api/forkAll.cjs +1 -1
- package/_cjs/IO/api/forkAll.cjs.map +1 -1
- package/_cjs/IO/api/forkIn.cjs +8 -6
- package/_cjs/IO/api/forkIn.cjs.map +1 -1
- package/_cjs/IO/api/forkScoped.cjs +1 -1
- package/_cjs/IO/api/forkScoped.cjs.map +1 -1
- package/_cjs/IO/api/fulfill.cjs +8 -6
- package/_cjs/IO/api/fulfill.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +36 -30
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/memoize.cjs +1 -1
- package/_cjs/IO/api/memoize.cjs.map +1 -1
- package/_cjs/IO/api/onExit.cjs +6 -4
- package/_cjs/IO/api/onExit.cjs.map +1 -1
- package/_cjs/IO/api/onTermination.cjs +5 -3
- package/_cjs/IO/api/onTermination.cjs.map +1 -1
- package/_cjs/IO/api/once.cjs +3 -5
- package/_cjs/IO/api/once.cjs.map +1 -1
- package/_cjs/IO/api/provideLayer.cjs +6 -4
- package/_cjs/IO/api/provideLayer.cjs.map +1 -1
- package/_cjs/IO/api/provideSomeLayer.cjs +5 -15
- package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
- package/_cjs/IO/api/race.cjs +6 -4
- package/_cjs/IO/api/race.cjs.map +1 -1
- package/_cjs/IO/api/raceFirst.cjs +6 -4
- package/_cjs/IO/api/raceFirst.cjs.map +1 -1
- package/_cjs/IO/api/randomWith.cjs +1 -1
- package/_cjs/IO/api/randomWith.cjs.map +1 -1
- package/_cjs/IO/api/repeat.cjs +12 -12
- package/_cjs/IO/api/repeat.cjs.map +1 -1
- package/_cjs/IO/api/retry.cjs +14 -14
- package/_cjs/IO/api/retry.cjs.map +1 -1
- package/_cjs/IO/api/schedule.cjs +15 -11
- package/_cjs/IO/api/schedule.cjs.map +1 -1
- package/_cjs/IO/api/scoped.cjs +6 -6
- package/_cjs/IO/api/scoped.cjs.map +1 -1
- package/_cjs/IO/api/sequenceT.cjs +1 -1
- package/_cjs/IO/api/sequenceT.cjs.map +1 -1
- package/_cjs/IO/api/stateful.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +6 -4
- package/_cjs/IO/api/supervised.cjs.map +1 -1
- package/_cjs/IO/api/timeout.cjs +10 -6
- package/_cjs/IO/api/timeout.cjs.map +1 -1
- package/_cjs/IO/api/withChildren.cjs +1 -1
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs +1 -1
- package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizer.cjs +6 -4
- package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
- package/_cjs/IO/api/withFinalizerExit.cjs +6 -4
- package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
- package/_cjs/IO/api/withRuntimeConfig.cjs +6 -4
- package/_cjs/IO/api/withRuntimeConfig.cjs.map +1 -1
- package/_cjs/IO/api/zipC.cjs +21 -17
- package/_cjs/IO/api/zipC.cjs.map +1 -1
- package/_cjs/IO/api.cjs +634 -509
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +7 -7
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs +1 -1
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/live.cjs +1 -1
- package/_cjs/IOEnv/live.cjs.map +1 -1
- package/_cjs/Layer/MemoMap.cjs +86 -92
- package/_cjs/Layer/MemoMap.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +110 -81
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Layer/definition.cjs.map +1 -1
- package/_cjs/LogLevel.cjs +24 -16
- package/_cjs/LogLevel.cjs.map +1 -1
- package/_cjs/LogSpan.cjs +18 -16
- package/_cjs/LogSpan.cjs.map +1 -1
- package/_cjs/Logger/api.cjs +18 -14
- package/_cjs/Logger/api.cjs.map +1 -1
- package/_cjs/Logger/constructors.cjs +1 -1
- package/_cjs/Logger/constructors.cjs.map +1 -1
- package/_cjs/Queue/constructors.cjs +19 -5
- package/_cjs/Queue/constructors.cjs.map +1 -1
- package/_cjs/Queue/definition.cjs +191 -16
- package/_cjs/Queue/definition.cjs.map +1 -1
- package/_cjs/Queue/internal.cjs +27 -181
- package/_cjs/Queue/internal.cjs.map +1 -1
- package/_cjs/Queue/strategy.cjs +19 -19
- package/_cjs/Queue/strategy.cjs.map +1 -1
- package/_cjs/Queue.cjs +0 -26
- package/_cjs/Queue.cjs.map +1 -1
- package/_cjs/Random/live.cjs +2 -2
- package/_cjs/Random/live.cjs.map +1 -1
- package/_cjs/Ref/Atomic.cjs +47 -24
- package/_cjs/Ref/Atomic.cjs.map +1 -1
- package/_cjs/Ref/Synchronized.cjs +140 -0
- package/_cjs/Ref/Synchronized.cjs.map +1 -0
- package/_cjs/Ref/constructors.cjs +21 -2
- package/_cjs/Ref/constructors.cjs.map +1 -1
- package/_cjs/Ref/definition.cjs +105 -10
- package/_cjs/Ref/definition.cjs.map +1 -1
- package/_cjs/Ref.cjs +4 -69
- package/_cjs/Ref.cjs.map +1 -1
- package/_cjs/Reloadable/constructors.cjs +10 -10
- package/_cjs/Reloadable/constructors.cjs.map +1 -1
- package/_cjs/RuntimeConfig.cjs +2 -2
- package/_cjs/RuntimeConfig.cjs.map +1 -1
- package/_cjs/STM/api/core-api.cjs +36 -26
- package/_cjs/STM/api/core-api.cjs.map +1 -1
- package/_cjs/STM/api.cjs +217 -163
- package/_cjs/STM/api.cjs.map +1 -1
- package/_cjs/STM/driver.cjs +3 -3
- package/_cjs/STM/driver.cjs.map +1 -1
- package/_cjs/STM/internal/Entry.cjs.map +1 -1
- package/_cjs/STM/internal/Journal.cjs +33 -29
- package/_cjs/STM/internal/Journal.cjs.map +1 -1
- package/_cjs/STM.cjs.map +1 -1
- package/_cjs/Schedule/Decision.cjs +16 -14
- package/_cjs/Schedule/Decision.cjs.map +1 -1
- package/_cjs/Schedule/api/driver.cjs +16 -20
- package/_cjs/Schedule/api/driver.cjs.map +1 -1
- package/_cjs/Schedule/api.cjs +381 -290
- package/_cjs/Schedule/api.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +14 -14
- package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
- package/_cjs/Scope/ReleaseMap/api.cjs +68 -61
- package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
- package/_cjs/Scope/api.cjs +34 -27
- package/_cjs/Scope/api.cjs.map +1 -1
- package/_cjs/ScopedRef/api.cjs +9 -13
- package/_cjs/ScopedRef/api.cjs.map +1 -1
- package/_cjs/ScopedRef/definition.cjs +1 -1
- package/_cjs/ScopedRef/definition.cjs.map +1 -1
- package/_cjs/Sink/api.cjs +307 -249
- package/_cjs/Sink/api.cjs.map +1 -1
- package/_cjs/State/api.cjs +18 -14
- package/_cjs/State/api.cjs.map +1 -1
- package/_cjs/Stream/api/zipAllWith.cjs +15 -13
- package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWith.cjs +6 -4
- package/_cjs/Stream/api/zipWith.cjs.map +1 -1
- package/_cjs/Stream/api/zipWithChunks.cjs +13 -11
- package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
- package/_cjs/Stream/api.cjs +992 -788
- package/_cjs/Stream/api.cjs.map +1 -1
- package/_cjs/Stream/definition.cjs.map +1 -1
- package/_cjs/Stream/internal/DebounceState.cjs +21 -19
- package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
- package/_cjs/Stream/internal/Handoff.cjs +35 -33
- package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
- package/_cjs/Stream/internal/Pull.cjs +9 -11
- package/_cjs/Stream/internal/Pull.cjs.map +1 -1
- package/_cjs/Stream/internal/SinkEndReason.cjs +16 -14
- package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
- package/_cjs/Stream/internal/Take.cjs +32 -24
- package/_cjs/Stream/internal/Take.cjs.map +1 -1
- package/_cjs/Stream/internal/util.cjs +3 -3
- package/_cjs/Stream/internal/util.cjs.map +1 -1
- package/_cjs/SubscriptionRef.cjs +68 -0
- package/_cjs/SubscriptionRef.cjs.map +1 -0
- package/_cjs/Supervisor/api.cjs +24 -20
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/constructors.cjs +2 -2
- package/_cjs/Supervisor/constructors.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +1 -1
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +15 -11
- package/_cjs/SupervisorPatch.cjs.map +1 -1
- package/_cjs/TExit/definition.cjs.map +1 -1
- package/_cjs/TFuture/api.cjs +21 -15
- package/_cjs/TFuture/api.cjs.map +1 -1
- package/_cjs/TFuture/constructors.cjs +1 -1
- package/_cjs/TFuture/constructors.cjs.map +1 -1
- package/_cjs/TFuture/definition.cjs.map +1 -1
- package/_cjs/TReentrantLock/api.cjs +32 -28
- package/_cjs/TReentrantLock/api.cjs.map +1 -1
- package/_cjs/TReentrantLock/definition.cjs +4 -4
- package/_cjs/TReentrantLock/definition.cjs.map +1 -1
- package/_cjs/TRef/api.cjs +233 -209
- package/_cjs/TRef/api.cjs.map +1 -1
- package/_cjs/TRef/definition.cjs +4 -4
- package/_cjs/TRef/definition.cjs.map +1 -1
- package/_cjs/TSemaphore/api.cjs +27 -23
- package/_cjs/TSemaphore/api.cjs.map +1 -1
- package/_cjs/TSemaphore/constructors.cjs +18 -3
- package/_cjs/TSemaphore/constructors.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +21 -19
- package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +21 -19
- package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/filterIO.cjs +16 -14
- package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/findIO.cjs +19 -17
- package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/mapIO.cjs +11 -9
- package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +31 -29
- package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
- package/_cjs/data/Exit/foreachIO.cjs +6 -4
- package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
- package/_cjs/internal/Hub.cjs +13 -11
- package/_cjs/internal/Hub.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +18 -16
- package/_cjs/internal/IsFatal.cjs.map +1 -1
- package/_cjs/internal/MutableQueue.cjs +11 -9
- package/_cjs/internal/MutableQueue.cjs.map +1 -1
- package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
- package/_mjs/Cached/api.mjs +6 -6
- package/_mjs/Cached/api.mjs.map +1 -1
- package/_mjs/Channel/ChildExecutorDecision/api.mjs +18 -16
- package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
- package/_mjs/Channel/UpstreamPullRequest/api.mjs +14 -12
- package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
- package/_mjs/Channel/api/interruptWhen.mjs +11 -7
- package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
- package/_mjs/Channel/api/mapOutIOC.mjs +24 -23
- package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAll.mjs +5 -3
- package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +5 -3
- package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeAllWith.mjs +45 -46
- package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
- package/_mjs/Channel/api/mergeMap.mjs +5 -3
- package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
- package/_mjs/Channel/api/mergeWith.mjs +46 -44
- package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
- package/_mjs/Channel/api/run.mjs +1 -1
- package/_mjs/Channel/api/run.mjs.map +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 +3 -3
- package/_mjs/Channel/api/toPull.mjs.map +1 -1
- package/_mjs/Channel/api/zipC.mjs +16 -10
- package/_mjs/Channel/api/zipC.mjs.map +1 -1
- package/_mjs/Channel/api.mjs +224 -173
- package/_mjs/Channel/api.mjs.map +1 -1
- package/_mjs/Channel/core-api.mjs +28 -18
- package/_mjs/Channel/core-api.mjs.map +1 -1
- package/_mjs/Channel/definition.mjs +1 -1
- package/_mjs/Channel/definition.mjs.map +1 -1
- package/_mjs/Channel/internal/ChannelExecutor.mjs +83 -83
- package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +22 -23
- package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
- package/_mjs/Differ/api.mjs +5 -5
- package/_mjs/Differ/api.mjs.map +1 -1
- package/_mjs/Fiber/FiberContext.mjs +48 -48
- package/_mjs/Fiber/FiberContext.mjs.map +1 -1
- package/_mjs/Fiber/api/awaitAll.mjs +1 -1
- package/_mjs/Fiber/api/awaitAll.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/evalOn.mjs +11 -9
- package/_mjs/Fiber/api/evalOn.mjs.map +1 -1
- package/_mjs/Fiber/api/evalOnIO.mjs +5 -3
- package/_mjs/Fiber/api/evalOnIO.mjs.map +1 -1
- package/_mjs/Fiber/api/fromIO.mjs +1 -1
- package/_mjs/Fiber/api/fromIO.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 +2 -2
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +6 -4
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAsFork.mjs +6 -4
- package/_mjs/Fiber/api/interruptAsFork.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/join.mjs +1 -1
- package/_mjs/Fiber/api/join.mjs.map +1 -1
- package/_mjs/Fiber/api/joinAll.mjs +1 -1
- package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
- package/_mjs/Fiber/api/mapFiber.mjs +5 -3
- package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
- package/_mjs/Fiber/api/mapIO.mjs +11 -7
- package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
- package/_mjs/Fiber/api/zipWith.mjs +5 -3
- package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/Fiber.mjs +1 -0
- package/_mjs/Fiber.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScoped.mjs +5 -3
- package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
- package/_mjs/FiberRef/api/locallyScopedWith.mjs +5 -3
- package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +52 -36
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/constructors.mjs +1 -1
- package/_mjs/FiberRef/constructors.mjs.map +1 -1
- package/_mjs/FiberRef.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +14 -12
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/join.mjs +35 -33
- package/_mjs/FiberRefs/join.mjs.map +1 -1
- package/_mjs/FiberState/definition.mjs.map +1 -1
- package/_mjs/Future/api.mjs +84 -66
- package/_mjs/Future/api.mjs.map +1 -1
- package/_mjs/Future/constructors.mjs +1 -1
- package/_mjs/Future/constructors.mjs.map +1 -1
- package/_mjs/Hub/constructors.mjs +66 -0
- package/_mjs/Hub/constructors.mjs.map +1 -0
- package/_mjs/Hub/definition.mjs +88 -9
- package/_mjs/Hub/definition.mjs.map +1 -1
- package/_mjs/Hub/internal.mjs +105 -122
- package/_mjs/Hub/internal.mjs.map +1 -1
- package/_mjs/Hub.mjs +1 -1
- package/_mjs/Hub.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs +1 -1
- package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +1 -1
- package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs +1 -1
- package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/asyncIO.mjs +4 -4
- package/_mjs/IO/api/asyncIO.mjs.map +1 -1
- package/_mjs/IO/api/bracket.mjs +2 -2
- package/_mjs/IO/api/bracket.mjs.map +1 -1
- package/_mjs/IO/api/bracketExit.mjs +2 -2
- package/_mjs/IO/api/bracketExit.mjs.map +1 -1
- package/_mjs/IO/api/clockWith.mjs +2 -2
- package/_mjs/IO/api/clockWith.mjs.map +1 -1
- package/_mjs/IO/api/concurrency.mjs +8 -6
- package/_mjs/IO/api/concurrency.mjs.map +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs +1 -1
- package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
- package/_mjs/IO/api/consoleWith.mjs +2 -2
- package/_mjs/IO/api/consoleWith.mjs.map +1 -1
- package/_mjs/IO/api/core-scope.mjs +40 -36
- package/_mjs/IO/api/core-scope.mjs.map +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs +5 -3
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/environment.mjs +29 -27
- package/_mjs/IO/api/environment.mjs.map +1 -1
- package/_mjs/IO/api/foreachC.mjs +17 -19
- package/_mjs/IO/api/foreachC.mjs.map +1 -1
- package/_mjs/IO/api/foreachExec.mjs +2 -2
- package/_mjs/IO/api/foreachExec.mjs.map +1 -1
- package/_mjs/IO/api/forkAll.mjs +1 -1
- package/_mjs/IO/api/forkAll.mjs.map +1 -1
- package/_mjs/IO/api/forkIn.mjs +7 -5
- package/_mjs/IO/api/forkIn.mjs.map +1 -1
- package/_mjs/IO/api/forkScoped.mjs +1 -1
- package/_mjs/IO/api/forkScoped.mjs.map +1 -1
- package/_mjs/IO/api/fulfill.mjs +7 -5
- package/_mjs/IO/api/fulfill.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +34 -28
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/memoize.mjs +1 -1
- package/_mjs/IO/api/memoize.mjs.map +1 -1
- package/_mjs/IO/api/onExit.mjs +5 -3
- package/_mjs/IO/api/onExit.mjs.map +1 -1
- package/_mjs/IO/api/onTermination.mjs +5 -3
- package/_mjs/IO/api/onTermination.mjs.map +1 -1
- package/_mjs/IO/api/once.mjs +3 -4
- package/_mjs/IO/api/once.mjs.map +1 -1
- package/_mjs/IO/api/provideLayer.mjs +5 -3
- package/_mjs/IO/api/provideLayer.mjs.map +1 -1
- package/_mjs/IO/api/provideSomeLayer.mjs +5 -11
- package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
- package/_mjs/IO/api/race.mjs +5 -3
- package/_mjs/IO/api/race.mjs.map +1 -1
- package/_mjs/IO/api/raceFirst.mjs +5 -3
- package/_mjs/IO/api/raceFirst.mjs.map +1 -1
- package/_mjs/IO/api/randomWith.mjs +1 -1
- package/_mjs/IO/api/randomWith.mjs.map +1 -1
- package/_mjs/IO/api/repeat.mjs +8 -8
- package/_mjs/IO/api/repeat.mjs.map +1 -1
- package/_mjs/IO/api/retry.mjs +12 -12
- package/_mjs/IO/api/retry.mjs.map +1 -1
- package/_mjs/IO/api/schedule.mjs +15 -11
- package/_mjs/IO/api/schedule.mjs.map +1 -1
- package/_mjs/IO/api/scoped.mjs +3 -3
- package/_mjs/IO/api/scoped.mjs.map +1 -1
- package/_mjs/IO/api/sequenceT.mjs +1 -1
- package/_mjs/IO/api/sequenceT.mjs.map +1 -1
- package/_mjs/IO/api/stateful.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +5 -3
- package/_mjs/IO/api/supervised.mjs.map +1 -1
- package/_mjs/IO/api/timeout.mjs +10 -6
- package/_mjs/IO/api/timeout.mjs.map +1 -1
- package/_mjs/IO/api/withChildren.mjs +1 -1
- package/_mjs/IO/api/withChildren.mjs.map +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs +1 -1
- package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizer.mjs +5 -3
- package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
- package/_mjs/IO/api/withFinalizerExit.mjs +5 -3
- package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
- package/_mjs/IO/api/withRuntimeConfig.mjs +5 -3
- package/_mjs/IO/api/withRuntimeConfig.mjs.map +1 -1
- package/_mjs/IO/api/zipC.mjs +18 -14
- package/_mjs/IO/api/zipC.mjs.map +1 -1
- package/_mjs/IO/api.mjs +511 -387
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +7 -7
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs +1 -1
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/IOEnv/live.mjs +1 -1
- package/_mjs/IOEnv/live.mjs.map +1 -1
- package/_mjs/Layer/MemoMap.mjs +86 -87
- package/_mjs/Layer/MemoMap.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +91 -63
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Layer/definition.mjs.map +1 -1
- package/_mjs/LogLevel.mjs +24 -16
- package/_mjs/LogLevel.mjs.map +1 -1
- package/_mjs/LogSpan.mjs +16 -14
- package/_mjs/LogSpan.mjs.map +1 -1
- package/_mjs/Logger/api.mjs +16 -12
- package/_mjs/Logger/api.mjs.map +1 -1
- package/_mjs/Logger/constructors.mjs +1 -1
- package/_mjs/Logger/constructors.mjs.map +1 -1
- package/_mjs/Queue/constructors.mjs +16 -5
- package/_mjs/Queue/constructors.mjs.map +1 -1
- package/_mjs/Queue/definition.mjs +174 -12
- package/_mjs/Queue/definition.mjs.map +1 -1
- package/_mjs/Queue/internal.mjs +21 -170
- package/_mjs/Queue/internal.mjs.map +1 -1
- package/_mjs/Queue/strategy.mjs +20 -23
- package/_mjs/Queue/strategy.mjs.map +1 -1
- package/_mjs/Queue.mjs +1 -3
- package/_mjs/Queue.mjs.map +1 -1
- package/_mjs/Random/live.mjs +2 -2
- package/_mjs/Random/live.mjs.map +1 -1
- package/_mjs/Ref/Atomic.mjs +39 -3
- package/_mjs/Ref/Atomic.mjs.map +1 -1
- package/_mjs/Ref/Synchronized.mjs +123 -0
- package/_mjs/Ref/Synchronized.mjs.map +1 -0
- package/_mjs/Ref/constructors.mjs +15 -1
- package/_mjs/Ref/constructors.mjs.map +1 -1
- package/_mjs/Ref/definition.mjs +96 -4
- package/_mjs/Ref/definition.mjs.map +1 -1
- package/_mjs/Ref.mjs +1 -8
- package/_mjs/Ref.mjs.map +1 -1
- package/_mjs/Reloadable/constructors.mjs +10 -10
- package/_mjs/Reloadable/constructors.mjs.map +1 -1
- package/_mjs/RuntimeConfig.mjs +2 -2
- package/_mjs/RuntimeConfig.mjs.map +1 -1
- package/_mjs/STM/api/core-api.mjs +29 -19
- package/_mjs/STM/api/core-api.mjs.map +1 -1
- package/_mjs/STM/api.mjs +180 -127
- package/_mjs/STM/api.mjs.map +1 -1
- package/_mjs/STM/driver.mjs +3 -3
- package/_mjs/STM/driver.mjs.map +1 -1
- package/_mjs/STM/internal/Entry.mjs.map +1 -1
- package/_mjs/STM/internal/Journal.mjs +33 -29
- package/_mjs/STM/internal/Journal.mjs.map +1 -1
- package/_mjs/STM.mjs.map +1 -1
- package/_mjs/Schedule/Decision.mjs +14 -12
- package/_mjs/Schedule/Decision.mjs.map +1 -1
- package/_mjs/Schedule/api/driver.mjs +15 -17
- package/_mjs/Schedule/api/driver.mjs.map +1 -1
- package/_mjs/Schedule/api.mjs +326 -234
- package/_mjs/Schedule/api.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +12 -11
- package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
- package/_mjs/Scope/ReleaseMap/api.mjs +60 -51
- package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
- package/_mjs/Scope/api.mjs +28 -22
- package/_mjs/Scope/api.mjs.map +1 -1
- package/_mjs/ScopedRef/api.mjs +9 -11
- package/_mjs/ScopedRef/api.mjs.map +1 -1
- package/_mjs/ScopedRef/definition.mjs +1 -1
- package/_mjs/ScopedRef/definition.mjs.map +1 -1
- package/_mjs/Sink/api.mjs +301 -240
- package/_mjs/Sink/api.mjs.map +1 -1
- package/_mjs/State/api.mjs +16 -12
- package/_mjs/State/api.mjs.map +1 -1
- package/_mjs/Stream/api/zipAllWith.mjs +14 -12
- package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWith.mjs +5 -3
- package/_mjs/Stream/api/zipWith.mjs.map +1 -1
- package/_mjs/Stream/api/zipWithChunks.mjs +12 -10
- package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
- package/_mjs/Stream/api.mjs +856 -653
- package/_mjs/Stream/api.mjs.map +1 -1
- package/_mjs/Stream/definition.mjs.map +1 -1
- package/_mjs/Stream/internal/DebounceState.mjs +18 -16
- package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
- package/_mjs/Stream/internal/Handoff.mjs +35 -32
- package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
- package/_mjs/Stream/internal/Pull.mjs +9 -10
- package/_mjs/Stream/internal/Pull.mjs.map +1 -1
- package/_mjs/Stream/internal/SinkEndReason.mjs +14 -12
- package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
- package/_mjs/Stream/internal/Take.mjs +28 -20
- package/_mjs/Stream/internal/Take.mjs.map +1 -1
- package/_mjs/Stream/internal/util.mjs +3 -3
- package/_mjs/Stream/internal/util.mjs.map +1 -1
- package/_mjs/SubscriptionRef.mjs +45 -0
- package/_mjs/SubscriptionRef.mjs.map +1 -0
- package/_mjs/Supervisor/api.mjs +22 -18
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/constructors.mjs +2 -2
- package/_mjs/Supervisor/constructors.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +1 -1
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +15 -11
- package/_mjs/SupervisorPatch.mjs.map +1 -1
- package/_mjs/TExit/definition.mjs.map +1 -1
- package/_mjs/TFuture/api.mjs +17 -11
- package/_mjs/TFuture/api.mjs.map +1 -1
- package/_mjs/TFuture/constructors.mjs +1 -1
- package/_mjs/TFuture/constructors.mjs.map +1 -1
- package/_mjs/TFuture/definition.mjs.map +1 -1
- package/_mjs/TReentrantLock/api.mjs +32 -28
- package/_mjs/TReentrantLock/api.mjs.map +1 -1
- package/_mjs/TReentrantLock/definition.mjs +4 -4
- package/_mjs/TReentrantLock/definition.mjs.map +1 -1
- package/_mjs/TRef/api.mjs +218 -194
- package/_mjs/TRef/api.mjs.map +1 -1
- package/_mjs/TRef/definition.mjs +4 -4
- package/_mjs/TRef/definition.mjs.map +1 -1
- package/_mjs/TSemaphore/api.mjs +23 -19
- package/_mjs/TSemaphore/api.mjs.map +1 -1
- package/_mjs/TSemaphore/constructors.mjs +12 -2
- package/_mjs/TSemaphore/constructors.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +19 -17
- package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +19 -17
- package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/filterIO.mjs +14 -12
- package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/findIO.mjs +17 -15
- package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/mapIO.mjs +10 -8
- package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +28 -26
- package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
- package/_mjs/data/Exit/foreachIO.mjs +5 -3
- package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
- package/_mjs/internal/Hub.mjs +13 -11
- package/_mjs/internal/Hub.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +18 -16
- package/_mjs/internal/IsFatal.mjs.map +1 -1
- package/_mjs/internal/MutableQueue.mjs +10 -8
- package/_mjs/internal/MutableQueue.mjs.map +1 -1
- package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
- package/_src/Cached/api.ts +2 -2
- package/_src/Channel/ChildExecutorDecision/api.ts +14 -17
- package/_src/Channel/UpstreamPullRequest/api.ts +11 -13
- package/_src/Channel/api/interruptWhen.ts +18 -17
- package/_src/Channel/api/mapOutIOC.ts +58 -58
- package/_src/Channel/api/mergeAll.ts +15 -16
- package/_src/Channel/api/mergeAllUnboundedWith.ts +15 -27
- package/_src/Channel/api/mergeAllWith.ts +114 -126
- package/_src/Channel/api/mergeMap.ts +8 -18
- package/_src/Channel/api/mergeWith.ts +154 -158
- package/_src/Channel/api/toPull.ts +1 -1
- package/_src/Channel/api/zipC.ts +52 -88
- package/_src/Channel/api.ts +345 -405
- package/_src/Channel/core-api.ts +75 -122
- package/_src/Channel/definition.ts +49 -7
- package/_src/Channel/internal/ChannelExecutor.ts +1 -5
- package/_src/Channel/internal/SingleProducerAsyncInput.ts +1 -3
- package/_src/Fiber/FiberContext.ts +13 -33
- package/_src/Fiber/api/collectAll.ts +1 -2
- package/_src/Fiber/api/evalOn.ts +11 -14
- package/_src/Fiber/api/evalOnIO.ts +10 -13
- package/_src/Fiber/api/interruptAll.ts +1 -2
- package/_src/Fiber/api/interruptAs.ts +6 -4
- package/_src/Fiber/api/interruptAsFork.ts +6 -4
- package/_src/Fiber/api/interruptFork.ts +1 -1
- package/_src/Fiber/api/mapFiber.ts +5 -7
- package/_src/Fiber/api/mapIO.ts +21 -21
- package/_src/Fiber/api/zipWith.ts +14 -17
- package/_src/Fiber/definition.ts +1 -15
- package/_src/Fiber.ts +1 -1
- package/_src/FiberRef/api/locallyScoped.ts +8 -6
- package/_src/FiberRef/api/locallyScopedWith.ts +5 -7
- package/_src/FiberRef/api.ts +50 -39
- package/_src/FiberRef.ts +0 -1
- package/_src/FiberRefs/api.ts +14 -12
- package/_src/FiberRefs/join.ts +37 -46
- package/_src/FiberState/definition.ts +1 -2
- package/_src/Future/api.ts +67 -53
- package/_src/Hub/constructors.ts +80 -0
- package/_src/Hub/definition.ts +95 -89
- package/_src/Hub/internal.ts +115 -165
- package/_src/Hub.ts +1 -1
- package/_src/IO/api/acquireRelease.ts +1 -1
- package/_src/IO/api/acquireReleaseExit.ts +1 -1
- package/_src/IO/api/bracket.ts +1 -1
- package/_src/IO/api/bracketExit.ts +1 -1
- package/_src/IO/api/clockWith.ts +0 -1
- package/_src/IO/api/concurrency.ts +5 -7
- package/_src/IO/api/consoleWith.ts +0 -2
- package/_src/IO/api/core-scope.ts +36 -33
- package/_src/IO/api/ensuringChildren.ts +8 -7
- package/_src/IO/api/environment.ts +24 -42
- package/_src/IO/api/foreachC.ts +24 -12
- package/_src/IO/api/foreachExec.ts +1 -1
- package/_src/IO/api/forkIn.ts +7 -9
- package/_src/IO/api/fulfill.ts +5 -3
- package/_src/IO/api/interrupt.ts +37 -40
- package/_src/IO/api/onExit.ts +8 -10
- package/_src/IO/api/onTermination.ts +12 -14
- package/_src/IO/api/provideLayer.ts +8 -10
- package/_src/IO/api/provideSomeLayer.ts +5 -14
- package/_src/IO/api/race.ts +19 -21
- package/_src/IO/api/raceFirst.ts +5 -7
- package/_src/IO/api/repeat.ts +3 -5
- package/_src/IO/api/retry.ts +19 -21
- package/_src/IO/api/schedule.ts +20 -21
- package/_src/IO/api/scoped.ts +2 -2
- package/_src/IO/api/sequenceT.ts +7 -1
- package/_src/IO/api/stateful.ts +0 -2
- package/_src/IO/api/supervised.ts +5 -7
- package/_src/IO/api/timeout.ts +10 -16
- package/_src/IO/api/withFinalizer.ts +5 -7
- package/_src/IO/api/withFinalizerExit.ts +6 -5
- package/_src/IO/api/withRuntimeConfig.ts +12 -14
- package/_src/IO/api/zipC.ts +57 -62
- package/_src/IO/api.ts +512 -539
- package/_src/IO/definition.ts +21 -9
- package/_src/IO/runtime.ts +0 -12
- package/_src/IO.ts +0 -1
- package/_src/Layer/MemoMap.ts +61 -63
- package/_src/Layer/api.ts +95 -104
- package/_src/Layer/definition.ts +0 -1
- package/_src/LogLevel.ts +24 -16
- package/_src/LogSpan.ts +16 -16
- package/_src/Logger/api.ts +18 -17
- package/_src/Logger/constructors.ts +9 -15
- package/_src/Queue/constructors.ts +22 -6
- package/_src/Queue/definition.ts +230 -81
- package/_src/Queue/internal.ts +9 -180
- package/_src/Queue/strategy.ts +9 -23
- package/_src/Queue.ts +1 -3
- package/_src/Ref/Atomic.ts +37 -4
- package/_src/Ref/Synchronized.ts +107 -0
- package/_src/Ref/constructors.ts +15 -0
- package/_src/Ref/definition.ts +86 -85
- package/_src/Ref.ts +1 -9
- package/_src/Reloadable/constructors.ts +2 -2
- package/_src/RuntimeConfig.ts +0 -2
- package/_src/STM/api/core-api.ts +32 -35
- package/_src/STM/api.ts +210 -200
- package/_src/STM/internal/Entry.ts +0 -10
- package/_src/STM/internal/Journal.ts +23 -26
- package/_src/STM.ts +0 -1
- package/_src/Schedule/Decision.ts +10 -8
- package/_src/Schedule/api/driver.ts +0 -4
- package/_src/Schedule/api.ts +419 -444
- package/_src/Schedule/definition.ts +0 -1
- package/_src/Scope/ReleaseMap/api/releaseAll.ts +23 -26
- package/_src/Scope/ReleaseMap/api.ts +77 -74
- package/_src/Scope/api.ts +16 -18
- package/_src/ScopedRef/api.ts +0 -3
- package/_src/ScopedRef/definition.ts +1 -2
- package/_src/Sink/api.ts +326 -357
- package/_src/State/api.ts +12 -8
- package/_src/State/internal.ts +1 -1
- package/_src/Stream/api/zipAllWith.ts +6 -5
- package/_src/Stream/api/zipWith.ts +5 -8
- package/_src/Stream/api/zipWithChunks.ts +6 -5
- package/_src/Stream/api.ts +1049 -1176
- package/_src/Stream/definition.ts +0 -2
- package/_src/Stream/internal/DebounceState.ts +16 -17
- package/_src/Stream/internal/Handoff.ts +31 -35
- package/_src/Stream/internal/Pull.ts +1 -2
- package/_src/Stream/internal/SinkEndReason.ts +13 -14
- package/_src/Stream/internal/Take.ts +21 -21
- package/_src/Stream/internal/util.ts +0 -2
- package/_src/SubscriptionRef.ts +44 -0
- package/_src/Supervisor/api.ts +18 -14
- package/_src/Supervisor/definition.ts +0 -1
- package/_src/SupervisorPatch.ts +10 -6
- package/_src/TExit/definition.ts +0 -8
- package/_src/TFuture/api.ts +23 -17
- package/_src/TFuture/definition.ts +0 -1
- package/_src/TReentrantLock/api.ts +14 -10
- package/_src/TReentrantLock/definition.ts +0 -7
- package/_src/TRef/api.ts +207 -209
- package/_src/TRef/definition.ts +0 -12
- package/_src/TSemaphore/api.ts +19 -18
- package/_src/TSemaphore/constructors.ts +7 -0
- package/_src/collection/immutable/Conc/dropUntilIO.ts +19 -21
- package/_src/collection/immutable/Conc/dropWhileIO.ts +21 -23
- package/_src/collection/immutable/Conc/filterIO.ts +15 -17
- package/_src/collection/immutable/Conc/findIO.ts +17 -19
- package/_src/collection/immutable/Conc/mapIO.ts +12 -10
- package/_src/collection/immutable/Conc/takeWhileIO.ts +27 -29
- package/_src/data/Exit/foreachIO.ts +8 -10
- package/_src/global.ts +7 -3
- package/_src/index.ts +3 -0
- package/_src/internal/Hub.ts +17 -27
- package/_src/internal/IsFatal.ts +14 -12
- package/_src/internal/MutableQueue.ts +8 -8
- package/_src/internal/StackTraceBuilder.ts +1 -2
- package/collection/immutable/Conc/dropUntilIO.d.ts +3 -3
- package/collection/immutable/Conc/dropWhileIO.d.ts +3 -3
- package/collection/immutable/Conc/filterIO.d.ts +3 -3
- package/collection/immutable/Conc/findIO.d.ts +2 -2
- package/collection/immutable/Conc/mapIO.d.ts +3 -3
- package/collection/immutable/Conc/takeWhileIO.d.ts +3 -3
- package/data/Exit/foreachIO.d.ts +3 -3
- package/global.d.ts +7 -3
- package/index.d.ts +3 -0
- package/internal/Hub.d.ts +2 -2
- package/internal/IsFatal.d.ts +3 -3
- package/internal/MutableQueue.d.ts +3 -3
- package/package.json +3 -3
- package/Hub/api.d.ts +0 -190
- package/Queue/api/dimapIO.d.ts +0 -41
- package/Queue/api/filterInputIO.d.ts +0 -33
- package/Queue/api/filterOutputIO.d.ts +0 -31
- package/Queue/api/operations.d.ts +0 -82
- package/Queue/api/poll.d.ts +0 -9
- package/Queue/api/takeBetween.d.ts +0 -11
- package/Queue/api/zipWithIO.d.ts +0 -44
- package/Queue/api.d.ts +0 -7
- package/Ref/Atomic/Atomic.d.ts +0 -18
- package/Ref/Atomic/api.d.ts +0 -53
- package/Ref/Derived.d.ts +0 -14
- package/Ref/DerivedAll.d.ts +0 -14
- package/Ref/Synchronized/api.d.ts +0 -100
- package/Ref/Synchronized/constructors.d.ts +0 -8
- package/Ref/Synchronized/definition.d.ts +0 -42
- package/Ref/api/collect.d.ts +0 -11
- package/Ref/api/dimap.d.ts +0 -56
- package/Ref/api/filter.d.ts +0 -20
- package/Ref/api/get.d.ts +0 -9
- package/Ref/api/match.d.ts +0 -13
- package/Ref/api/matchAll.d.ts +0 -11
- package/Ref/api/modify.d.ts +0 -79
- package/Ref/api/set.d.ts +0 -10
- package/Ref/api.d.ts +0 -23
- package/_cjs/Hub/api.cjs +0 -456
- package/_cjs/Hub/api.cjs.map +0 -1
- package/_cjs/Queue/api/dimapIO.cjs +0 -120
- package/_cjs/Queue/api/dimapIO.cjs.map +0 -1
- package/_cjs/Queue/api/filterInputIO.cjs +0 -84
- package/_cjs/Queue/api/filterInputIO.cjs.map +0 -1
- package/_cjs/Queue/api/filterOutputIO.cjs +0 -89
- package/_cjs/Queue/api/filterOutputIO.cjs.map +0 -1
- package/_cjs/Queue/api/operations.cjs +0 -147
- package/_cjs/Queue/api/operations.cjs.map +0 -1
- package/_cjs/Queue/api/poll.cjs +0 -27
- package/_cjs/Queue/api/poll.cjs.map +0 -1
- package/_cjs/Queue/api/takeBetween.cjs +0 -57
- package/_cjs/Queue/api/takeBetween.cjs.map +0 -1
- package/_cjs/Queue/api/zipWithIO.cjs +0 -97
- package/_cjs/Queue/api/zipWithIO.cjs.map +0 -1
- package/_cjs/Queue/api.cjs +0 -97
- package/_cjs/Queue/api.cjs.map +0 -1
- package/_cjs/Ref/Atomic/Atomic.cjs +0 -64
- package/_cjs/Ref/Atomic/Atomic.cjs.map +0 -1
- package/_cjs/Ref/Atomic/api.cjs +0 -156
- package/_cjs/Ref/Atomic/api.cjs.map +0 -1
- package/_cjs/Ref/Derived.cjs +0 -55
- package/_cjs/Ref/Derived.cjs.map +0 -1
- package/_cjs/Ref/DerivedAll.cjs +0 -55
- package/_cjs/Ref/DerivedAll.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/api.cjs +0 -196
- package/_cjs/Ref/Synchronized/api.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/constructors.cjs +0 -32
- package/_cjs/Ref/Synchronized/constructors.cjs.map +0 -1
- package/_cjs/Ref/Synchronized/definition.cjs +0 -88
- package/_cjs/Ref/Synchronized/definition.cjs.map +0 -1
- package/_cjs/Ref/api/collect.cjs +0 -31
- package/_cjs/Ref/api/collect.cjs.map +0 -1
- package/_cjs/Ref/api/dimap.cjs +0 -110
- package/_cjs/Ref/api/dimap.cjs.map +0 -1
- package/_cjs/Ref/api/filter.cjs +0 -45
- package/_cjs/Ref/api/filter.cjs.map +0 -1
- package/_cjs/Ref/api/get.cjs +0 -20
- package/_cjs/Ref/api/get.cjs.map +0 -1
- package/_cjs/Ref/api/match.cjs +0 -26
- package/_cjs/Ref/api/match.cjs.map +0 -1
- package/_cjs/Ref/api/matchAll.cjs +0 -24
- package/_cjs/Ref/api/matchAll.cjs.map +0 -1
- package/_cjs/Ref/api/modify.cjs +0 -239
- package/_cjs/Ref/api/modify.cjs.map +0 -1
- package/_cjs/Ref/api/set.cjs +0 -21
- package/_cjs/Ref/api/set.cjs.map +0 -1
- package/_cjs/Ref/api.cjs +0 -158
- package/_cjs/Ref/api.cjs.map +0 -1
- package/_mjs/Hub/api.mjs +0 -384
- package/_mjs/Hub/api.mjs.map +0 -1
- package/_mjs/Queue/api/dimapIO.mjs +0 -97
- package/_mjs/Queue/api/dimapIO.mjs.map +0 -1
- package/_mjs/Queue/api/filterInputIO.mjs +0 -63
- package/_mjs/Queue/api/filterInputIO.mjs.map +0 -1
- package/_mjs/Queue/api/filterOutputIO.mjs +0 -68
- package/_mjs/Queue/api/filterOutputIO.mjs.map +0 -1
- package/_mjs/Queue/api/operations.mjs +0 -122
- package/_mjs/Queue/api/operations.mjs.map +0 -1
- package/_mjs/Queue/api/poll.mjs +0 -14
- package/_mjs/Queue/api/poll.mjs.map +0 -1
- package/_mjs/Queue/api/takeBetween.mjs +0 -43
- package/_mjs/Queue/api/takeBetween.mjs.map +0 -1
- package/_mjs/Queue/api/zipWithIO.mjs +0 -74
- package/_mjs/Queue/api/zipWithIO.mjs.map +0 -1
- package/_mjs/Queue/api.mjs +0 -9
- package/_mjs/Queue/api.mjs.map +0 -1
- package/_mjs/Ref/Atomic/Atomic.mjs +0 -47
- package/_mjs/Ref/Atomic/Atomic.mjs.map +0 -1
- package/_mjs/Ref/Atomic/api.mjs +0 -127
- package/_mjs/Ref/Atomic/api.mjs.map +0 -1
- package/_mjs/Ref/Derived.mjs +0 -35
- package/_mjs/Ref/Derived.mjs.map +0 -1
- package/_mjs/Ref/DerivedAll.mjs +0 -35
- package/_mjs/Ref/DerivedAll.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/api.mjs +0 -154
- package/_mjs/Ref/Synchronized/api.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/constructors.mjs +0 -15
- package/_mjs/Ref/Synchronized/constructors.mjs.map +0 -1
- package/_mjs/Ref/Synchronized/definition.mjs +0 -66
- package/_mjs/Ref/Synchronized/definition.mjs.map +0 -1
- package/_mjs/Ref/api/collect.mjs +0 -17
- package/_mjs/Ref/api/collect.mjs.map +0 -1
- package/_mjs/Ref/api/dimap.mjs +0 -84
- package/_mjs/Ref/api/dimap.mjs.map +0 -1
- package/_mjs/Ref/api/filter.mjs +0 -29
- package/_mjs/Ref/api/filter.mjs.map +0 -1
- package/_mjs/Ref/api/get.mjs +0 -13
- package/_mjs/Ref/api/get.mjs.map +0 -1
- package/_mjs/Ref/api/match.mjs +0 -18
- package/_mjs/Ref/api/match.mjs.map +0 -1
- package/_mjs/Ref/api/matchAll.mjs +0 -16
- package/_mjs/Ref/api/matchAll.mjs.map +0 -1
- package/_mjs/Ref/api/modify.mjs +0 -204
- package/_mjs/Ref/api/modify.mjs.map +0 -1
- package/_mjs/Ref/api/set.mjs +0 -14
- package/_mjs/Ref/api/set.mjs.map +0 -1
- package/_mjs/Ref/api.mjs +0 -34
- package/_mjs/Ref/api.mjs.map +0 -1
- package/_src/Hub/api.ts +0 -461
- package/_src/Queue/api/dimapIO.ts +0 -130
- package/_src/Queue/api/filterInputIO.ts +0 -75
- package/_src/Queue/api/filterOutputIO.ts +0 -76
- package/_src/Queue/api/operations.ts +0 -139
- package/_src/Queue/api/poll.ts +0 -14
- package/_src/Queue/api/takeBetween.ts +0 -45
- package/_src/Queue/api/zipWithIO.ts +0 -99
- package/_src/Queue/api.ts +0 -9
- package/_src/Ref/Atomic/Atomic.ts +0 -56
- package/_src/Ref/Atomic/api.ts +0 -124
- package/_src/Ref/Derived.ts +0 -71
- package/_src/Ref/DerivedAll.ts +0 -75
- package/_src/Ref/Synchronized/api.ts +0 -249
- package/_src/Ref/Synchronized/constructors.ts +0 -12
- package/_src/Ref/Synchronized/definition.ts +0 -126
- package/_src/Ref/api/collect.ts +0 -19
- package/_src/Ref/api/dimap.ts +0 -115
- package/_src/Ref/api/filter.ts +0 -35
- package/_src/Ref/api/get.ts +0 -17
- package/_src/Ref/api/match.ts +0 -24
- package/_src/Ref/api/matchAll.ts +0 -23
- package/_src/Ref/api/modify.ts +0 -237
- package/_src/Ref/api/set.ts +0 -19
- package/_src/Ref/api.ts +0 -39
package/_cjs/Schedule/api.cjs
CHANGED
@@ -3,32 +3,31 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.addDelayIO = exports.addDelay = void 0;
|
7
7
|
exports.andThen = andThen;
|
8
|
-
exports.
|
9
|
-
exports.
|
10
|
-
exports.
|
11
|
-
exports.
|
12
|
-
exports.
|
8
|
+
exports.checkIO = exports.check = exports.as = exports.andThenEither = void 0;
|
9
|
+
exports.compose = compose;
|
10
|
+
exports.contramap = void 0;
|
11
|
+
exports.contramapEnvironment = contramapEnvironment;
|
12
|
+
exports.delayedIO = exports.delayed = exports.contramapIO = void 0;
|
13
|
+
exports.delayedSelf = delayedSelf;
|
13
14
|
exports.delays = delays;
|
14
|
-
exports.
|
15
|
-
exports.
|
15
|
+
exports.dimap = dimap;
|
16
|
+
exports.dimapIO = dimapIO;
|
16
17
|
exports.duration = duration;
|
17
18
|
exports.either = void 0;
|
18
19
|
exports.eitherWith = eitherWith;
|
19
20
|
exports.elapsed = void 0;
|
20
|
-
exports.
|
21
|
+
exports.ensuring = ensuring;
|
21
22
|
exports.exponential = exponential;
|
22
23
|
exports.fixed = fixed;
|
23
|
-
exports.forever = exports.
|
24
|
-
exports.foreverSelf = foreverSelf;
|
25
|
-
exports.intersectWith_ = exports.identity = void 0;
|
24
|
+
exports.intersectWith = exports.identity = exports.forever = exports.foldIO = exports.fold = void 0;
|
26
25
|
exports.linear = linear;
|
27
|
-
exports.
|
28
|
-
exports.
|
29
|
-
exports.
|
30
|
-
exports.
|
31
|
-
exports.
|
26
|
+
exports.modifyDelayIO = exports.mapIO = exports.map = exports.make = void 0;
|
27
|
+
exports.onDecision = onDecision;
|
28
|
+
exports.provideEnvironment = provideEnvironment;
|
29
|
+
exports.reconsider = reconsider;
|
30
|
+
exports.reconsiderIO = void 0;
|
32
31
|
exports.recurUntil = recurUntil;
|
33
32
|
exports.recurUntilEquals = recurUntilEquals;
|
34
33
|
exports.recurUntilIO = recurUntilIO;
|
@@ -36,26 +35,26 @@ exports.recurWhile = recurWhile;
|
|
36
35
|
exports.recurWhileEquals = recurWhileEquals;
|
37
36
|
exports.recurWhileIO = recurWhileIO;
|
38
37
|
exports.recurs = recurs;
|
38
|
+
exports.repeatForever = repeatForever;
|
39
39
|
exports.repetitions = repetitions;
|
40
|
-
exports.
|
41
|
-
exports.
|
42
|
-
exports.
|
40
|
+
exports.resetAfter = resetAfter;
|
41
|
+
exports.resetWhen = void 0;
|
42
|
+
exports.run = run;
|
43
43
|
exports.spaced = spaced;
|
44
44
|
exports.succeed = succeed;
|
45
|
-
exports.
|
46
|
-
exports.
|
47
|
-
exports.
|
48
|
-
exports.
|
49
|
-
exports.
|
45
|
+
exports.tapInput = tapInput;
|
46
|
+
exports.tapOutput = tapOutput;
|
47
|
+
exports.untilInputIO = exports.untilInput = exports.unionWith = exports.unfold = void 0;
|
48
|
+
exports.untilOutput = untilOutput;
|
49
|
+
exports.untilOutputIO = untilOutputIO;
|
50
50
|
exports.upTo = upTo;
|
51
|
-
exports.
|
52
|
-
exports.
|
53
|
-
exports.whileOutput_ = void 0;
|
51
|
+
exports.whileOutput = exports.whileInputIO = exports.whileInput = void 0;
|
52
|
+
exports.whileOutputIO = whileOutputIO;
|
54
53
|
exports.windowed = windowed;
|
55
|
-
exports.
|
56
|
-
exports.
|
57
|
-
exports.
|
58
|
-
exports.
|
54
|
+
exports.zip = void 0;
|
55
|
+
exports.zipLeft = zipLeft;
|
56
|
+
exports.zipRight = zipRight;
|
57
|
+
exports.zipWith = zipWith;
|
59
58
|
|
60
59
|
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Schedule/definition"));
|
61
60
|
|
@@ -98,66 +97,66 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
98
97
|
const fileName_1 = "(@fncts/io) src/Schedule/api.ts";
|
99
98
|
const make = make_1;
|
100
99
|
exports.make = make;
|
101
|
-
const
|
102
|
-
exports.
|
103
|
-
const
|
104
|
-
exports.
|
105
|
-
const
|
106
|
-
exports.
|
107
|
-
const
|
108
|
-
exports.
|
109
|
-
const
|
110
|
-
exports.
|
111
|
-
const
|
112
|
-
exports.
|
113
|
-
const
|
114
|
-
exports.
|
115
|
-
const
|
116
|
-
exports.
|
100
|
+
const addDelay = addDelay_1;
|
101
|
+
exports.addDelay = addDelay;
|
102
|
+
const addDelayIO = addDelayIO_1;
|
103
|
+
exports.addDelayIO = addDelayIO;
|
104
|
+
const andThenEither = andThenEither_1;
|
105
|
+
exports.andThenEither = andThenEither;
|
106
|
+
const as = as_1;
|
107
|
+
exports.as = as;
|
108
|
+
const check = check_1;
|
109
|
+
exports.check = check;
|
110
|
+
const checkIO = checkIO_1;
|
111
|
+
exports.checkIO = checkIO;
|
112
|
+
const contramap = contramap_1;
|
113
|
+
exports.contramap = contramap;
|
114
|
+
const contramapIO = contramapIO_1;
|
115
|
+
exports.contramapIO = contramapIO;
|
117
116
|
const delayed = delayed_1;
|
118
117
|
exports.delayed = delayed;
|
119
|
-
const
|
120
|
-
exports.
|
118
|
+
const delayedIO = delayedIO_1;
|
119
|
+
exports.delayedIO = delayedIO;
|
121
120
|
const either = either_1;
|
122
121
|
exports.either = either;
|
123
|
-
const
|
124
|
-
exports.
|
125
|
-
const
|
126
|
-
exports.
|
122
|
+
const fold = fold_1;
|
123
|
+
exports.fold = fold;
|
124
|
+
const foldIO = foldIO_1;
|
125
|
+
exports.foldIO = foldIO;
|
127
126
|
const identity = identity_1;
|
128
127
|
exports.identity = identity;
|
129
|
-
const
|
130
|
-
exports.
|
131
|
-
const
|
132
|
-
exports.
|
133
|
-
const
|
134
|
-
exports.
|
135
|
-
const
|
136
|
-
exports.
|
137
|
-
const
|
138
|
-
exports.
|
139
|
-
const
|
140
|
-
exports.
|
141
|
-
const
|
142
|
-
exports.
|
128
|
+
const intersectWith = intersectWith_1;
|
129
|
+
exports.intersectWith = intersectWith;
|
130
|
+
const map = map_1;
|
131
|
+
exports.map = map;
|
132
|
+
const mapIO = mapIO_1;
|
133
|
+
exports.mapIO = mapIO;
|
134
|
+
const modifyDelayIO = modifyDelayIO_1;
|
135
|
+
exports.modifyDelayIO = modifyDelayIO;
|
136
|
+
const reconsiderIO = reconsiderIO_1;
|
137
|
+
exports.reconsiderIO = reconsiderIO;
|
138
|
+
const resetWhen = resetWhen_1;
|
139
|
+
exports.resetWhen = resetWhen;
|
140
|
+
const unionWith = unionWith_1;
|
141
|
+
exports.unionWith = unionWith;
|
143
142
|
const unfold = unfold_1;
|
144
143
|
exports.unfold = unfold;
|
145
|
-
const
|
146
|
-
exports.
|
147
|
-
const
|
148
|
-
exports.
|
149
|
-
const
|
150
|
-
exports.
|
151
|
-
const
|
152
|
-
exports.
|
153
|
-
const
|
154
|
-
exports.
|
155
|
-
const
|
144
|
+
const untilInput = untilInput_1;
|
145
|
+
exports.untilInput = untilInput;
|
146
|
+
const untilInputIO = untilInputIO_1;
|
147
|
+
exports.untilInputIO = untilInputIO;
|
148
|
+
const whileInput = whileInput_1;
|
149
|
+
exports.whileInput = whileInput;
|
150
|
+
const whileInputIO = whileInputIO_1;
|
151
|
+
exports.whileInputIO = whileInputIO;
|
152
|
+
const whileOutput = whileOutput_1;
|
153
|
+
exports.whileOutput = whileOutput;
|
154
|
+
const zip = zip_1;
|
156
155
|
/**
|
157
156
|
* @tsplus static fncts.io.ScheduleOps __call
|
158
157
|
*/
|
159
158
|
|
160
|
-
exports.
|
159
|
+
exports.zip = zip;
|
161
160
|
|
162
161
|
function make_1(initial, step, __tsplusTrace) {
|
163
162
|
return new class extends tsplus_module_1.Schedule {
|
@@ -170,98 +169,120 @@ function make_1(initial, step, __tsplusTrace) {
|
|
170
169
|
}();
|
171
170
|
}
|
172
171
|
/**
|
173
|
-
* @tsplus
|
172
|
+
* @tsplus pipeable fncts.io.Schedule addDelay
|
174
173
|
*/
|
175
174
|
|
176
175
|
|
177
|
-
function addDelay_1(
|
178
|
-
return
|
176
|
+
function addDelay_1(f, __tsplusTrace) {
|
177
|
+
return self => {
|
178
|
+
return addDelayIO_1(out => tsplus_module_2.succeed(() => f(out), __tsplusTrace), __tsplusTrace)(self);
|
179
|
+
};
|
179
180
|
}
|
180
181
|
/**
|
181
|
-
* @tsplus
|
182
|
+
* @tsplus pipeable fncts.io.Schedule addDelayIO
|
182
183
|
*/
|
183
184
|
|
184
185
|
|
185
|
-
function addDelayIO_1(
|
186
|
-
return
|
186
|
+
function addDelayIO_1(f, __tsplusTrace) {
|
187
|
+
return self => {
|
188
|
+
return modifyDelayIO_1((out, duration) => tsplus_module_2.map(d => duration + d, __tsplusTrace)(f(out)), __tsplusTrace)(self);
|
189
|
+
};
|
187
190
|
}
|
188
191
|
/**
|
189
|
-
* @tsplus
|
192
|
+
* @tsplus pipeable fncts.io.Schedule andThen
|
190
193
|
*/
|
191
194
|
|
192
195
|
|
193
|
-
function andThen(
|
194
|
-
return
|
196
|
+
function andThen(that, __tsplusTrace) {
|
197
|
+
return self => {
|
198
|
+
return map_1(out => tsplus_module_3.merge(out), __tsplusTrace)(andThenEither_1(that, __tsplusTrace)(self));
|
199
|
+
};
|
195
200
|
}
|
196
201
|
/**
|
197
|
-
* @tsplus
|
202
|
+
* @tsplus pipeable fncts.io.Schedule andThenEither
|
198
203
|
*/
|
199
204
|
|
200
205
|
|
201
|
-
function andThenEither_1(
|
202
|
-
return
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
206
|
+
function andThenEither_1(that, __tsplusTrace) {
|
207
|
+
return self => {
|
208
|
+
return make_1([self.initial, that.initial, true], (now, inp, [s1, s2, onLeft]) => {
|
209
|
+
if (onLeft) {
|
210
|
+
return tsplus_module_2.flatMap(([lState, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.map(([rState, out, decision]) => [[lState, rState, false], tsplus_module_4.right(out), decision], __tsplusTrace)(that.step(now, inp, s2, __tsplusTrace)), interval => tsplus_module_2.succeedNow([[lState, s2, true], tsplus_module_4.left(out), tsplus_module_5.continue_(interval)], __tsplusTrace))(decision), __tsplusTrace)(self.step(now, inp, s1, __tsplusTrace));
|
211
|
+
} else {
|
212
|
+
return tsplus_module_2.map(([rState, out, decision]) => [[s1, rState, false], tsplus_module_4.right(out), decision], __tsplusTrace)(that.step(now, inp, s2, __tsplusTrace));
|
213
|
+
}
|
214
|
+
}, __tsplusTrace);
|
215
|
+
};
|
209
216
|
}
|
210
217
|
/**
|
211
|
-
* @tsplus
|
218
|
+
* @tsplus pipeable fncts.io.Schedule as
|
212
219
|
*/
|
213
220
|
|
214
221
|
|
215
|
-
function as_1(
|
216
|
-
return
|
222
|
+
function as_1(out2, __tsplusTrace) {
|
223
|
+
return self => {
|
224
|
+
return map_1(() => out2(), __tsplusTrace)(self);
|
225
|
+
};
|
217
226
|
}
|
218
227
|
/**
|
219
|
-
* @tsplus
|
228
|
+
* @tsplus pipeable fncts.io.Schedule check
|
220
229
|
*/
|
221
230
|
|
222
231
|
|
223
|
-
function check_1(
|
224
|
-
return
|
232
|
+
function check_1(test, __tsplusTrace) {
|
233
|
+
return self => {
|
234
|
+
return checkIO_1((inp, out) => tsplus_module_2.succeed(() => test(inp, out), __tsplusTrace), __tsplusTrace)(self);
|
235
|
+
};
|
225
236
|
}
|
226
237
|
/**
|
227
|
-
* @tsplus
|
238
|
+
* @tsplus pipeable fncts.io.Schedule checkIO
|
228
239
|
*/
|
229
240
|
|
230
241
|
|
231
|
-
function checkIO_1(
|
232
|
-
return
|
242
|
+
function checkIO_1(test, __tsplusTrace) {
|
243
|
+
return self => {
|
244
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.succeedNow([state, out, decision], __tsplusTrace), interval => tsplus_module_2.map(b => b ? [state, out, tsplus_module_5.continue_(interval)] : [state, out, tsplus_module_5.done], __tsplusTrace)(test(inp, out)))(decision), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
245
|
+
};
|
233
246
|
}
|
234
247
|
/**
|
235
|
-
* @tsplus
|
248
|
+
* @tsplus pipeable fncts.io.Schedule compose_
|
236
249
|
*/
|
237
250
|
|
238
251
|
|
239
|
-
function
|
240
|
-
return
|
252
|
+
function compose(that, __tsplusTrace) {
|
253
|
+
return self => {
|
254
|
+
return make_1([self.initial, that.initial], (now, inp, state) => tsplus_module_2.flatMap(([lState, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.map(([rState, out2]) => [[lState, rState], out2, tsplus_module_5.done], __tsplusTrace)(that.step(now, out, state[1], __tsplusTrace)), interval => tsplus_module_2.map(([rState, out2, decision]) => tsplus_module_5.match(() => [[lState, rState], out2, tsplus_module_5.done], interval2 => [[lState, rState], out2, tsplus_module_5.continue_(tsplus_module_6.max(interval2)(interval))])(decision), __tsplusTrace)(that.step(now, out, state[1], __tsplusTrace)))(decision), __tsplusTrace)(self.step(now, inp, state[0], __tsplusTrace)), __tsplusTrace);
|
255
|
+
};
|
241
256
|
}
|
242
257
|
/**
|
243
|
-
* @tsplus
|
258
|
+
* @tsplus pipeable fncts.io.Schedule contramap
|
244
259
|
*/
|
245
260
|
|
246
261
|
|
247
|
-
function contramap_1(
|
248
|
-
return
|
262
|
+
function contramap_1(f, __tsplusTrace) {
|
263
|
+
return self => {
|
264
|
+
return contramapIO_1(inp2 => tsplus_module_2.succeed(() => f(inp2), __tsplusTrace), __tsplusTrace)(self);
|
265
|
+
};
|
249
266
|
}
|
250
267
|
/**
|
251
|
-
* @tsplus
|
268
|
+
* @tsplus pipeable fncts.io.Schedule contramapEnvironment
|
252
269
|
*/
|
253
270
|
|
254
271
|
|
255
|
-
function
|
256
|
-
return
|
272
|
+
function contramapEnvironment(f, __tsplusTrace) {
|
273
|
+
return self => {
|
274
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_7.contramapEnvironment(f, __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
275
|
+
};
|
257
276
|
}
|
258
277
|
/**
|
259
|
-
* @tsplus
|
278
|
+
* @tsplus pipeable fncts.io.Schedule contramapIO
|
260
279
|
*/
|
261
280
|
|
262
281
|
|
263
|
-
function contramapIO_1(
|
264
|
-
return
|
282
|
+
function contramapIO_1(f, __tsplusTrace) {
|
283
|
+
return self => {
|
284
|
+
return make_1(self.initial, (now, inp2, state) => tsplus_module_2.flatMap(inp => self.step(now, inp, state, __tsplusTrace), __tsplusTrace)(f(inp2)), __tsplusTrace);
|
285
|
+
};
|
265
286
|
}
|
266
287
|
/**
|
267
288
|
* @tsplus static fncts.io.ScheduleOps delayed
|
@@ -269,23 +290,27 @@ function contramapIO_1(self, f, __tsplusTrace) {
|
|
269
290
|
|
270
291
|
|
271
292
|
function delayed_1(schedule, __tsplusTrace) {
|
272
|
-
return addDelay_1(
|
293
|
+
return addDelay_1(x => x, __tsplusTrace)(schedule);
|
273
294
|
}
|
274
295
|
/**
|
275
|
-
* @tsplus
|
296
|
+
* @tsplus pipeable fncts.io.Schedule delayed
|
276
297
|
*/
|
277
298
|
|
278
299
|
|
279
|
-
function
|
280
|
-
return
|
300
|
+
function delayedSelf(f, __tsplusTrace) {
|
301
|
+
return self => {
|
302
|
+
return delayedIO_1(delay => tsplus_module_2.succeed(() => f(delay), __tsplusTrace), __tsplusTrace)(self);
|
303
|
+
};
|
281
304
|
}
|
282
305
|
/**
|
283
|
-
* @tsplus
|
306
|
+
* @tsplus pipeable fncts.io.Schedule delayedIO
|
284
307
|
*/
|
285
308
|
|
286
309
|
|
287
|
-
function delayedIO_1(
|
288
|
-
return
|
310
|
+
function delayedIO_1(f, __tsplusTrace) {
|
311
|
+
return self => {
|
312
|
+
return modifyDelayIO_1((_, delay) => f(delay), __tsplusTrace)(self);
|
313
|
+
};
|
289
314
|
}
|
290
315
|
/**
|
291
316
|
* @tsplus getter fncts.io.Schedule delays
|
@@ -293,26 +318,30 @@ function delayedIO_1(self, f, __tsplusTrace) {
|
|
293
318
|
|
294
319
|
|
295
320
|
function delays(self, __tsplusTrace) {
|
296
|
-
return make_1(self.initial, (now, inp, state) => tsplus_module_2.
|
321
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, _, decision]) => tsplus_module_5.match(() => tsplus_module_2.succeedNow([state, 0, tsplus_module_5.done], __tsplusTrace), interval => {
|
297
322
|
const delay = tsplus_module_6.start(interval) - now;
|
298
323
|
return tsplus_module_2.succeedNow([state, delay, tsplus_module_5.continue_(interval)], __tsplusTrace);
|
299
|
-
}), __tsplusTrace), __tsplusTrace);
|
324
|
+
})(decision), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
300
325
|
}
|
301
326
|
/**
|
302
|
-
* @tsplus
|
327
|
+
* @tsplus pipeable fncts.io.Schedule dimap
|
303
328
|
*/
|
304
329
|
|
305
330
|
|
306
|
-
function
|
307
|
-
return
|
331
|
+
function dimap(f, g, __tsplusTrace) {
|
332
|
+
return self => {
|
333
|
+
return map_1(g, __tsplusTrace)(contramap_1(f, __tsplusTrace)(self));
|
334
|
+
};
|
308
335
|
}
|
309
336
|
/**
|
310
|
-
* @tsplus
|
337
|
+
* @tsplus pipeable fncts.io.Schedule dimapIO
|
311
338
|
*/
|
312
339
|
|
313
340
|
|
314
|
-
function
|
315
|
-
return
|
341
|
+
function dimapIO(f, g, __tsplusTrace) {
|
342
|
+
return self => {
|
343
|
+
return mapIO_1(g, __tsplusTrace)(contramapIO_1(f, __tsplusTrace)(self));
|
344
|
+
};
|
316
345
|
}
|
317
346
|
/**
|
318
347
|
* @tsplus static fncts.io.ScheduleOps duration
|
@@ -330,40 +359,46 @@ function duration(duration, __tsplusTrace) {
|
|
330
359
|
}, __tsplusTrace), __tsplusTrace);
|
331
360
|
}
|
332
361
|
/**
|
333
|
-
* @tsplus
|
334
|
-
* @tsplus operator fncts.io.Schedule ||
|
362
|
+
* @tsplus pipeable fncts.io.Schedule either
|
363
|
+
* @tsplus pipeable-operator fncts.io.Schedule ||
|
335
364
|
*/
|
336
365
|
|
337
366
|
|
338
|
-
function either_1(
|
339
|
-
return
|
367
|
+
function either_1(that, __tsplusTrace) {
|
368
|
+
return self => {
|
369
|
+
return unionWith_1(that, (interval1, interval2) => tsplus_module_6.union(interval2)(interval1), __tsplusTrace)(self);
|
370
|
+
};
|
340
371
|
}
|
341
372
|
/**
|
342
|
-
* @tsplus
|
373
|
+
* @tsplus pipeable fncts.io.Schedule eitherWith
|
343
374
|
*/
|
344
375
|
|
345
376
|
|
346
|
-
function eitherWith(
|
347
|
-
return
|
377
|
+
function eitherWith(that, f, __tsplusTrace) {
|
378
|
+
return self => {
|
379
|
+
return map_1(tsplus_module_9.tupled(f), __tsplusTrace)(either_1(that, __tsplusTrace)(self));
|
380
|
+
};
|
348
381
|
}
|
349
382
|
/**
|
350
383
|
* @tsplus static fncts.io.ScheduleOps elapsed
|
351
384
|
*/
|
352
385
|
|
353
386
|
|
354
|
-
const elapsed_1 = /*#__PURE__*/make_1( /*#__PURE__*/tsplus_module_10.nothing(), (now, _, state) => tsplus_module_2.succeed(() => tsplus_module_11.
|
387
|
+
const elapsed_1 = /*#__PURE__*/make_1( /*#__PURE__*/tsplus_module_10.nothing(), (now, _, state) => tsplus_module_2.succeed(() => tsplus_module_11.match(() => [tsplus_module_10.just(now), 0, tsplus_module_5.continueWith(tsplus_module_8.makeInterval(now, Number.MAX_SAFE_INTEGER))], start => {
|
355
388
|
const duration = now - start;
|
356
389
|
return [tsplus_module_10.just(start), duration, tsplus_module_5.continueWith(tsplus_module_8.makeInterval(now, Number.MAX_SAFE_INTEGER))];
|
357
|
-
}), fileName_1 + ":
|
390
|
+
})(state), fileName_1 + ":291:13"), fileName_1 + ":290:91");
|
358
391
|
const elapsed = elapsed_1;
|
359
392
|
/**
|
360
|
-
* @tsplus
|
393
|
+
* @tsplus pipeable fncts.io.Schedule ensuring
|
361
394
|
*/
|
362
395
|
|
363
396
|
exports.elapsed = elapsed;
|
364
397
|
|
365
|
-
function
|
366
|
-
return
|
398
|
+
function ensuring(finalizer, __tsplusTrace) {
|
399
|
+
return self => {
|
400
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.as(() => [state, out, tsplus_module_5.done], __tsplusTrace)(finalizer), interval => tsplus_module_2.succeedNow([state, out, tsplus_module_5.continue_(interval)], __tsplusTrace))(decision), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
401
|
+
};
|
367
402
|
}
|
368
403
|
/**
|
369
404
|
* @tsplus static fncts.io.ScheduleOps exponential
|
@@ -371,7 +406,7 @@ function ensuring_(self, finalizer, __tsplusTrace) {
|
|
371
406
|
|
372
407
|
|
373
408
|
function exponential(base, factor = 2, __tsplusTrace) {
|
374
|
-
return delayed_1(map_1(
|
409
|
+
return delayed_1(map_1(i => base * Math.pow(factor, i), __tsplusTrace)(forever_1), __tsplusTrace);
|
375
410
|
}
|
376
411
|
/**
|
377
412
|
* A schedule that recurs on a fixed interval. Returns the number of
|
@@ -390,7 +425,7 @@ function exponential(base, factor = 2, __tsplusTrace) {
|
|
390
425
|
|
391
426
|
|
392
427
|
function fixed(interval, __tsplusTrace) {
|
393
|
-
return make_1([tsplus_module_10.nothing(), 0], (now, inp, [ms, n]) => tsplus_module_2.succeed(() => tsplus_module_11.
|
428
|
+
return make_1([tsplus_module_10.nothing(), 0], (now, inp, [ms, n]) => tsplus_module_2.succeed(() => tsplus_module_11.match(() => {
|
394
429
|
const nextRun = now + interval;
|
395
430
|
return [[tsplus_module_10.just([now, nextRun]), n + 1], n, tsplus_module_5.continueWith(tsplus_module_8.after(nextRun))];
|
396
431
|
}, ([startMillis, lastRun]) => {
|
@@ -399,38 +434,42 @@ function fixed(interval, __tsplusTrace) {
|
|
399
434
|
const sleepTime = boundary === 0 ? interval : boundary;
|
400
435
|
const nextRun = runningBehind ? now : now + sleepTime;
|
401
436
|
return [[tsplus_module_10.just([startMillis, nextRun]), n + 1], n, tsplus_module_5.continueWith(tsplus_module_8.after(nextRun))];
|
402
|
-
}), __tsplusTrace), __tsplusTrace);
|
437
|
+
})(ms), __tsplusTrace), __tsplusTrace);
|
403
438
|
}
|
404
439
|
/**
|
405
|
-
* @tsplus
|
440
|
+
* @tsplus pipeable fncts.io.Schedule fold
|
406
441
|
*/
|
407
442
|
|
408
443
|
|
409
|
-
function fold_1(
|
410
|
-
return
|
444
|
+
function fold_1(z, f, __tsplusTrace) {
|
445
|
+
return self => {
|
446
|
+
return foldIO_1(z, (z, out) => tsplus_module_2.succeed(() => f(z, out), __tsplusTrace), __tsplusTrace)(self);
|
447
|
+
};
|
411
448
|
}
|
412
449
|
/**
|
413
|
-
* @tsplus
|
450
|
+
* @tsplus pipeable fncts.io.Schedule foldIO
|
414
451
|
*/
|
415
452
|
|
416
453
|
|
417
|
-
function foldIO_1(
|
418
|
-
return
|
454
|
+
function foldIO_1(z, f, __tsplusTrace) {
|
455
|
+
return self => {
|
456
|
+
return make_1([self.initial, z], (now, inp, [s, z]) => tsplus_module_2.flatMap(([s, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.succeedNow([[s, z], z, tsplus_module_5.done], __tsplusTrace), interval => tsplus_module_2.map(z2 => [[s, z2], z, tsplus_module_5.continue_(interval)], __tsplusTrace)(f(z, out)))(decision), __tsplusTrace)(self.step(now, inp, s, __tsplusTrace)), __tsplusTrace);
|
457
|
+
};
|
419
458
|
}
|
420
459
|
/**
|
421
460
|
* @tsplus getter fncts.io.Schedule forever
|
422
461
|
*/
|
423
462
|
|
424
463
|
|
425
|
-
function
|
426
|
-
return make_1(self.initial, (now, inp, state) => tsplus_module_2.
|
464
|
+
function repeatForever(self, __tsplusTrace) {
|
465
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, out, decision]) => tsplus_module_5.match(() => self.step(now, inp, self.initial, __tsplusTrace), interval => tsplus_module_2.succeed(() => [state, out, tsplus_module_5.continue_(interval)], __tsplusTrace))(decision), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
427
466
|
}
|
428
467
|
/**
|
429
468
|
* @tsplus static fncts.io.ScheduleOps forever
|
430
469
|
*/
|
431
470
|
|
432
471
|
|
433
|
-
const forever_1 = /*#__PURE__*/unfold_1(() => 0, n => n + 1, fileName_1 + ":
|
472
|
+
const forever_1 = /*#__PURE__*/unfold_1(() => 0, n => n + 1, fileName_1 + ":411:39");
|
434
473
|
const forever = forever_1;
|
435
474
|
/**
|
436
475
|
* @tsplus static fncts.io.ScheduleOps identity
|
@@ -447,33 +486,35 @@ function intersectWithLoop(self, that, inp, lState, out, lInterval, rState, out2
|
|
447
486
|
|
448
487
|
if (tsplus_module_6.isNonEmpty(combined)) {
|
449
488
|
return tsplus_module_2.succeedNow([[lState, rState], [out, out2], tsplus_module_5.continue_(combined)], __tsplusTrace);
|
450
|
-
} else if (tsplus_module_6.lt(
|
451
|
-
return tsplus_module_2.
|
489
|
+
} else if (tsplus_module_6.lt(rInterval)(lInterval)) {
|
490
|
+
return tsplus_module_2.flatMap(([lState, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.succeedNow([[lState, rState], [out, out2], tsplus_module_5.done], __tsplusTrace), lInterval => intersectWithLoop(self, that, inp, lState, out, lInterval, rState, out2, rInterval, f, __tsplusTrace))(decision), __tsplusTrace)(self.step(tsplus_module_6.end(lInterval), inp, lState, __tsplusTrace));
|
452
491
|
} else {
|
453
|
-
return tsplus_module_2.
|
492
|
+
return tsplus_module_2.flatMap(([rState, out2, decision]) => tsplus_module_5.match(() => tsplus_module_2.succeedNow([[lState, rState], [out, out2], tsplus_module_5.done], __tsplusTrace), rInterval => intersectWithLoop(self, that, inp, lState, out, lInterval, rState, out2, rInterval, f, __tsplusTrace))(decision), __tsplusTrace)(that.step(tsplus_module_6.end(rInterval), inp, rState, __tsplusTrace));
|
454
493
|
}
|
455
494
|
}
|
456
495
|
/**
|
457
|
-
* @tsplus
|
496
|
+
* @tsplus pipeable fncts.io.Schedule intersectWith
|
458
497
|
*/
|
459
498
|
|
460
499
|
|
461
|
-
function intersectWith_1(
|
462
|
-
return
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
500
|
+
function intersectWith_1(that, f, __tsplusTrace) {
|
501
|
+
return self => {
|
502
|
+
return make_1([self.initial, that.initial], (now, inp, state) => {
|
503
|
+
const left = self.step(now, inp, state[0], __tsplusTrace);
|
504
|
+
const right = that.step(now, inp, state[1], __tsplusTrace);
|
505
|
+
return tsplus_module_2.flatten(tsplus_module_2.zipWith(right, ([lState, out, lDecision], [rState, out2, rDecision]) => {
|
506
|
+
if (lDecision._tag === "Continue"
|
507
|
+
/* DecisionTag.Continue */
|
508
|
+
&& rDecision._tag === "Continue"
|
509
|
+
/* DecisionTag.Continue */
|
510
|
+
) {
|
511
|
+
return intersectWithLoop(self, that, inp, lState, out, lDecision.interval, rState, out2, rDecision.interval, f, __tsplusTrace);
|
512
|
+
} else {
|
513
|
+
return tsplus_module_2.succeedNow([[lState, rState], [out, out2], tsplus_module_5.done], __tsplusTrace);
|
514
|
+
}
|
515
|
+
}, __tsplusTrace)(left), __tsplusTrace);
|
516
|
+
}, __tsplusTrace);
|
517
|
+
};
|
477
518
|
}
|
478
519
|
/**
|
479
520
|
* @tsplus static fncts.io.Schedule linear
|
@@ -481,73 +522,87 @@ function intersectWith_1(self, that, f, __tsplusTrace) {
|
|
481
522
|
|
482
523
|
|
483
524
|
function linear(base, __tsplusTrace) {
|
484
|
-
return delayed_1(map_1(
|
525
|
+
return delayed_1(map_1(i => base * (i + 1), __tsplusTrace)(forever_1), __tsplusTrace);
|
485
526
|
}
|
486
527
|
/**
|
487
|
-
* @tsplus
|
528
|
+
* @tsplus pipeable fncts.io.Schedule map
|
488
529
|
*/
|
489
530
|
|
490
531
|
|
491
|
-
function map_1(
|
492
|
-
return
|
532
|
+
function map_1(f, __tsplusTrace) {
|
533
|
+
return self => {
|
534
|
+
return mapIO_1(out => tsplus_module_2.succeedNow(f(out), __tsplusTrace), __tsplusTrace)(self);
|
535
|
+
};
|
493
536
|
}
|
494
537
|
/**
|
495
|
-
* @tsplus
|
538
|
+
* @tsplus pipeable fncts.io.Schedule mapIO
|
496
539
|
*/
|
497
540
|
|
498
541
|
|
499
|
-
function mapIO_1(
|
500
|
-
return
|
542
|
+
function mapIO_1(f, __tsplusTrace) {
|
543
|
+
return self => {
|
544
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, out, decision]) => tsplus_module_2.map(out1 => [state, out1, decision], __tsplusTrace)(f(out)), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
545
|
+
};
|
501
546
|
}
|
502
547
|
/**
|
503
|
-
* @tsplus
|
548
|
+
* @tsplus pipeable fncts.io.Schedule modifyDelayIO
|
504
549
|
*/
|
505
550
|
|
506
551
|
|
507
|
-
function modifyDelayIO_1(
|
508
|
-
return
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
552
|
+
function modifyDelayIO_1(f, __tsplusTrace) {
|
553
|
+
return self => {
|
554
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.succeedNow([state, out, decision], __tsplusTrace), interval => {
|
555
|
+
const delay = tsplus_module_8.size(tsplus_module_8.makeInterval(now, tsplus_module_6.start(interval)));
|
556
|
+
return tsplus_module_2.map(duration => {
|
557
|
+
const oldStart = tsplus_module_6.start(interval);
|
558
|
+
const newStart = now + duration;
|
559
|
+
const delta = newStart - oldStart;
|
560
|
+
const newEnd = tsplus_module_6.end(interval) + delta;
|
561
|
+
const newInterval = tsplus_module_8.makeInterval(newStart, newEnd);
|
562
|
+
return [state, out, tsplus_module_5.continueWith(newInterval)];
|
563
|
+
}, __tsplusTrace)(f(out, delay));
|
564
|
+
})(decision), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
565
|
+
};
|
519
566
|
}
|
520
567
|
/**
|
521
|
-
* @tsplus
|
568
|
+
* @tsplus pipeable fncts.io.Schedule onDecision
|
522
569
|
*/
|
523
570
|
|
524
571
|
|
525
|
-
function
|
526
|
-
return
|
572
|
+
function onDecision(f, __tsplusTrace) {
|
573
|
+
return self => {
|
574
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, out, decision]) => tsplus_module_2.as(() => [state, out, decision], __tsplusTrace)(f(state, out, decision)), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
575
|
+
};
|
527
576
|
}
|
528
577
|
/**
|
529
|
-
* @tsplus
|
578
|
+
* @tsplus pipeable fncts.io.Schedule provideEnvironment
|
530
579
|
*/
|
531
580
|
|
532
581
|
|
533
|
-
function
|
534
|
-
return
|
582
|
+
function provideEnvironment(env, __tsplusTrace) {
|
583
|
+
return self => {
|
584
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_7.provideEnvironment(env, __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
585
|
+
};
|
535
586
|
}
|
536
587
|
/**
|
537
|
-
* @tsplus
|
588
|
+
* @tsplus pipeable fncts.io.Schedule reconsider
|
538
589
|
*/
|
539
590
|
|
540
591
|
|
541
|
-
function
|
542
|
-
return
|
592
|
+
function reconsider(f, __tsplusTrace) {
|
593
|
+
return self => {
|
594
|
+
return reconsiderIO_1((state, out, decision) => tsplus_module_2.succeed(() => f(state, out, decision), __tsplusTrace), __tsplusTrace)(self);
|
595
|
+
};
|
543
596
|
}
|
544
597
|
/**
|
545
|
-
* @tsplus
|
598
|
+
* @tsplus pipeable fncts.io.Schedule reconsiderIO
|
546
599
|
*/
|
547
600
|
|
548
601
|
|
549
|
-
function reconsiderIO_1(
|
550
|
-
return
|
602
|
+
function reconsiderIO_1(f, __tsplusTrace) {
|
603
|
+
return self => {
|
604
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.map(r => tsplus_module_12.match(out1 => [state, out1, tsplus_module_5.done], ([out1, _]) => [state, out1, tsplus_module_5.done])(r), __tsplusTrace)(f(state, out, decision)), () => tsplus_module_2.map(r => tsplus_module_12.match(out1 => [state, out1, tsplus_module_5.done], ([out1, interval]) => [state, out1, tsplus_module_5.continueWith(interval)])(r), __tsplusTrace)(f(state, out, decision)))(decision), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
605
|
+
};
|
551
606
|
}
|
552
607
|
/**
|
553
608
|
* @tsplus static fncts.io.Schedule recurs
|
@@ -555,7 +610,7 @@ function reconsiderIO_1(self, f, __tsplusTrace) {
|
|
555
610
|
|
556
611
|
|
557
612
|
function recurs(n, __tsplusTrace) {
|
558
|
-
return whileOutput_1(
|
613
|
+
return whileOutput_1(_ => _ < n, __tsplusTrace)(forever_1);
|
559
614
|
}
|
560
615
|
/**
|
561
616
|
* @tsplus static fncts.io.Schedule recurWhile
|
@@ -563,7 +618,7 @@ function recurs(n, __tsplusTrace) {
|
|
563
618
|
|
564
619
|
|
565
620
|
function recurWhile(f, __tsplusTrace) {
|
566
|
-
return whileInput_1(
|
621
|
+
return whileInput_1(f, __tsplusTrace)(identity_1(__tsplusTrace));
|
567
622
|
}
|
568
623
|
/**
|
569
624
|
* @tsplus static fncts.io.Schedule recurWhileIO
|
@@ -571,7 +626,7 @@ function recurWhile(f, __tsplusTrace) {
|
|
571
626
|
|
572
627
|
|
573
628
|
function recurWhileIO(f, __tsplusTrace) {
|
574
|
-
return whileInputIO_1(
|
629
|
+
return whileInputIO_1(f, __tsplusTrace)(identity_1(__tsplusTrace));
|
575
630
|
}
|
576
631
|
/**
|
577
632
|
* @tsplus static fncts.io.Schedule recurWhileEquals
|
@@ -579,7 +634,7 @@ function recurWhileIO(f, __tsplusTrace) {
|
|
579
634
|
|
580
635
|
|
581
636
|
function recurWhileEquals(value, __tsplusTrace) {
|
582
|
-
return whileInput_1(
|
637
|
+
return whileInput_1(a => tsplus_module_13.strictEquals(a, value()), __tsplusTrace)(identity_1(__tsplusTrace));
|
583
638
|
}
|
584
639
|
/**
|
585
640
|
* @tsplus static fncts.io.Schedule recurUntil
|
@@ -587,7 +642,7 @@ function recurWhileEquals(value, __tsplusTrace) {
|
|
587
642
|
|
588
643
|
|
589
644
|
function recurUntil(f, __tsplusTrace) {
|
590
|
-
return untilInput_1(
|
645
|
+
return untilInput_1(f, __tsplusTrace)(identity_1(__tsplusTrace));
|
591
646
|
}
|
592
647
|
/**
|
593
648
|
* @tsplus static fncts.io.Schedule recurUntilIO
|
@@ -595,7 +650,7 @@ function recurUntil(f, __tsplusTrace) {
|
|
595
650
|
|
596
651
|
|
597
652
|
function recurUntilIO(f, __tsplusTrace) {
|
598
|
-
return untilInputIO_1(
|
653
|
+
return untilInputIO_1(f, __tsplusTrace)(identity_1(__tsplusTrace));
|
599
654
|
}
|
600
655
|
/**
|
601
656
|
* @tsplus static fncts.io.Schedule recurUntilEquals
|
@@ -603,7 +658,7 @@ function recurUntilIO(f, __tsplusTrace) {
|
|
603
658
|
|
604
659
|
|
605
660
|
function recurUntilEquals(value, __tsplusTrace) {
|
606
|
-
return untilInput_1(
|
661
|
+
return untilInput_1(a => tsplus_module_13.strictEquals(a, value()), __tsplusTrace)(identity_1(__tsplusTrace));
|
607
662
|
}
|
608
663
|
/**
|
609
664
|
* @tsplus getter fncts.io.Schedule repetitions
|
@@ -611,39 +666,45 @@ function recurUntilEquals(value, __tsplusTrace) {
|
|
611
666
|
|
612
667
|
|
613
668
|
function repetitions(self, __tsplusTrace) {
|
614
|
-
return fold_1(
|
669
|
+
return fold_1(0, (n, _) => n + 1, __tsplusTrace)(self);
|
615
670
|
}
|
616
671
|
/**
|
617
|
-
* @tsplus
|
672
|
+
* @tsplus pipeable fncts.io.Schedule resetAfter
|
618
673
|
*/
|
619
674
|
|
620
675
|
|
621
|
-
function
|
622
|
-
return
|
676
|
+
function resetAfter(duration, __tsplusTrace) {
|
677
|
+
return self => {
|
678
|
+
return map_1(([out, _]) => out, __tsplusTrace)(resetWhen_1(([_, d]) => d >= duration, __tsplusTrace)(zip_1(elapsed_1, __tsplusTrace)(self)));
|
679
|
+
};
|
623
680
|
}
|
624
681
|
/**
|
625
|
-
* @tsplus
|
682
|
+
* @tsplus pipeable fncts.io.Schedule resetWhen
|
626
683
|
*/
|
627
684
|
|
628
685
|
|
629
|
-
function resetWhen_1(
|
630
|
-
return
|
686
|
+
function resetWhen_1(f, __tsplusTrace) {
|
687
|
+
return self => {
|
688
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.flatMap(([state, out, decision]) => f(out) ? self.step(now, inp, self.initial, __tsplusTrace) : tsplus_module_2.succeedNow([state, out, decision], __tsplusTrace), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
689
|
+
};
|
631
690
|
}
|
632
691
|
/**
|
633
|
-
* @tsplus
|
692
|
+
* @tsplus pipeable fncts.io.Schedule run
|
634
693
|
*/
|
635
694
|
|
636
695
|
|
637
|
-
function
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
696
|
+
function run(now, input, __tsplusTrace) {
|
697
|
+
return self => {
|
698
|
+
const loop = (now, xs, state, acc) => {
|
699
|
+
if (tsplus_module_14.isEmpty(xs)) {
|
700
|
+
return tsplus_module_2.succeedNow(acc, __tsplusTrace);
|
701
|
+
} else {
|
702
|
+
return tsplus_module_2.flatMap(([state, out, decision]) => tsplus_module_5.match(() => tsplus_module_2.succeed(() => tsplus_module_15.append(out)(acc), __tsplusTrace), interval => loop(tsplus_module_6.start(interval), xs.tail, state, tsplus_module_15.append(out)(acc)))(decision), __tsplusTrace)(self.step(now, xs.head, state, __tsplusTrace));
|
703
|
+
}
|
704
|
+
};
|
645
705
|
|
646
|
-
|
706
|
+
return loop(now, tsplus_module_16.from(input), self.initial, tsplus_module_17.empty());
|
707
|
+
};
|
647
708
|
}
|
648
709
|
/**
|
649
710
|
* @tsplus static fncts.io.Schedule spaced
|
@@ -651,7 +712,7 @@ function run_(self, now, input, __tsplusTrace) {
|
|
651
712
|
|
652
713
|
|
653
714
|
function spaced(duration, __tsplusTrace) {
|
654
|
-
return addDelay_1(
|
715
|
+
return addDelay_1(() => duration, __tsplusTrace)(forever_1);
|
655
716
|
}
|
656
717
|
/**
|
657
718
|
* @tsplus static fncts.io.Schedule succeed
|
@@ -659,38 +720,44 @@ function spaced(duration, __tsplusTrace) {
|
|
659
720
|
|
660
721
|
|
661
722
|
function succeed(a, __tsplusTrace) {
|
662
|
-
return as_1(
|
723
|
+
return as_1(a, __tsplusTrace)(forever_1);
|
663
724
|
}
|
664
725
|
/**
|
665
|
-
* @tsplus
|
726
|
+
* @tsplus pipeable fncts.io.Schedule tapInput
|
666
727
|
*/
|
667
728
|
|
668
729
|
|
669
|
-
function
|
670
|
-
return
|
730
|
+
function tapInput(f, __tsplusTrace) {
|
731
|
+
return self => {
|
732
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.apSecond(self.step(now, inp, state, __tsplusTrace), __tsplusTrace)(f(inp)), __tsplusTrace);
|
733
|
+
};
|
671
734
|
}
|
672
735
|
/**
|
673
|
-
* @tsplus
|
736
|
+
* @tsplus pipeable fncts.io.Schedule tapOutput
|
674
737
|
*/
|
675
738
|
|
676
739
|
|
677
|
-
function
|
678
|
-
return
|
740
|
+
function tapOutput(f, __tsplusTrace) {
|
741
|
+
return self => {
|
742
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.tap(([_, out]) => f(out), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
743
|
+
};
|
679
744
|
}
|
680
745
|
/**
|
681
|
-
* @tsplus
|
746
|
+
* @tsplus pipeable fncts.io.Schedule unionWith
|
682
747
|
*/
|
683
748
|
|
684
749
|
|
685
|
-
function unionWith_1(
|
686
|
-
return
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
750
|
+
function unionWith_1(that, f, __tsplusTrace) {
|
751
|
+
return self => {
|
752
|
+
return make_1([self.initial, that.initial], (now, inp, state) => {
|
753
|
+
const left = self.step(now, inp, state[0], __tsplusTrace);
|
754
|
+
const right = that.step(now, inp, state[1], __tsplusTrace);
|
755
|
+
return tsplus_module_2.zipWith(right, ([lstate, l, d1], [rstate, r, d2]) => tsplus_module_5.match(() => tsplus_module_5.match(() => [[lstate, rstate], [l, r], tsplus_module_5.done], interval => [[lstate, rstate], [l, r], tsplus_module_5.continue_(interval)])(d2), linterval => tsplus_module_5.match(() => [[lstate, rstate], [l, r], tsplus_module_5.continue_(linterval)], rinterval => {
|
756
|
+
const combined = f(linterval, rinterval);
|
757
|
+
return [[lstate, rstate], [l, r], tsplus_module_5.continue_(combined)];
|
758
|
+
})(d2))(d1), __tsplusTrace)(left);
|
759
|
+
}, __tsplusTrace);
|
760
|
+
};
|
694
761
|
}
|
695
762
|
/**
|
696
763
|
* @tsplus static fncts.io.ScheduleOps unfold
|
@@ -701,36 +768,44 @@ function unfold_1(a, f, __tsplusTrace) {
|
|
701
768
|
return make_1(a(), (now, inp, state) => tsplus_module_2.succeed(() => [f(state), state, tsplus_module_5.continueWith(tsplus_module_8.makeInterval(now, Number.MAX_SAFE_INTEGER))], __tsplusTrace), __tsplusTrace);
|
702
769
|
}
|
703
770
|
/**
|
704
|
-
* @tsplus
|
771
|
+
* @tsplus pipeable fncts.io.Schedule untilInput
|
705
772
|
*/
|
706
773
|
|
707
774
|
|
708
|
-
function untilInput_1(
|
709
|
-
return
|
775
|
+
function untilInput_1(f, __tsplusTrace) {
|
776
|
+
return self => {
|
777
|
+
return check_1(inp => !f(inp), __tsplusTrace)(self);
|
778
|
+
};
|
710
779
|
}
|
711
780
|
/**
|
712
|
-
* @tsplus
|
781
|
+
* @tsplus pipeable fncts.io.Schedule untilInputIO
|
713
782
|
*/
|
714
783
|
|
715
784
|
|
716
|
-
function untilInputIO_1(
|
717
|
-
return
|
785
|
+
function untilInputIO_1(f, __tsplusTrace) {
|
786
|
+
return self => {
|
787
|
+
return checkIO_1(inp => tsplus_module_2.map(b => !b, __tsplusTrace)(f(inp)), __tsplusTrace)(self);
|
788
|
+
};
|
718
789
|
}
|
719
790
|
/**
|
720
|
-
* @tsplus
|
791
|
+
* @tsplus pipeable fncts.io.Schedule untilOutput
|
721
792
|
*/
|
722
793
|
|
723
794
|
|
724
|
-
function
|
725
|
-
return
|
795
|
+
function untilOutput(f, __tsplusTrace) {
|
796
|
+
return self => {
|
797
|
+
return check_1((_, out) => !f(out), __tsplusTrace)(self);
|
798
|
+
};
|
726
799
|
}
|
727
800
|
/**
|
728
|
-
* @tsplus
|
801
|
+
* @tsplus pipeable fncts.io.Schedule untilOutputIO
|
729
802
|
*/
|
730
803
|
|
731
804
|
|
732
|
-
function
|
733
|
-
return
|
805
|
+
function untilOutputIO(f, __tsplusTrace) {
|
806
|
+
return self => {
|
807
|
+
return checkIO_1((_, out) => tsplus_module_2.map(b => !b, __tsplusTrace)(f(out)), __tsplusTrace)(self);
|
808
|
+
};
|
734
809
|
}
|
735
810
|
/**
|
736
811
|
* @tsplus static fncts.io.Schedule upTo
|
@@ -738,39 +813,47 @@ function untilOutputIO_(self, f, __tsplusTrace) {
|
|
738
813
|
|
739
814
|
|
740
815
|
function upTo(duration, __tsplusTrace) {
|
741
|
-
return whileOutput_1(
|
816
|
+
return whileOutput_1(n => n < duration, __tsplusTrace)(elapsed_1);
|
742
817
|
}
|
743
818
|
/**
|
744
|
-
* @tsplus
|
819
|
+
* @tsplus pipeable fncts.io.Schedule whileInput
|
745
820
|
*/
|
746
821
|
|
747
822
|
|
748
|
-
function whileInput_1(
|
749
|
-
return
|
823
|
+
function whileInput_1(f, __tsplusTrace) {
|
824
|
+
return self => {
|
825
|
+
return check_1(inp => f(inp), __tsplusTrace)(self);
|
826
|
+
};
|
750
827
|
}
|
751
828
|
/**
|
752
|
-
* @tsplus
|
829
|
+
* @tsplus pipeable fncts.io.Schedule whileInputIO
|
753
830
|
*/
|
754
831
|
|
755
832
|
|
756
|
-
function whileInputIO_1(
|
757
|
-
return
|
833
|
+
function whileInputIO_1(f, __tsplusTrace) {
|
834
|
+
return self => {
|
835
|
+
return checkIO_1(inp => f(inp), __tsplusTrace)(self);
|
836
|
+
};
|
758
837
|
}
|
759
838
|
/**
|
760
|
-
* @tsplus
|
839
|
+
* @tsplus pipeable fncts.io.Schedule whileOutput
|
761
840
|
*/
|
762
841
|
|
763
842
|
|
764
|
-
function whileOutput_1(
|
765
|
-
return
|
843
|
+
function whileOutput_1(f, __tsplusTrace) {
|
844
|
+
return self => {
|
845
|
+
return check_1((_, out) => f(out), __tsplusTrace)(self);
|
846
|
+
};
|
766
847
|
}
|
767
848
|
/**
|
768
|
-
* @tsplus
|
849
|
+
* @tsplus pipeable fncts.io.Schedule whileOutputIO
|
769
850
|
*/
|
770
851
|
|
771
852
|
|
772
|
-
function
|
773
|
-
return
|
853
|
+
function whileOutputIO(f, __tsplusTrace) {
|
854
|
+
return self => {
|
855
|
+
return checkIO_1((_, out) => f(out), __tsplusTrace)(self);
|
856
|
+
};
|
774
857
|
}
|
775
858
|
/**
|
776
859
|
* @tsplus static fncts.io.Schedule windowed
|
@@ -778,38 +861,46 @@ function whileOutputIO_(self, f, __tsplusTrace) {
|
|
778
861
|
|
779
862
|
|
780
863
|
function windowed(interval, __tsplusTrace) {
|
781
|
-
return make_1([tsplus_module_10.nothing(), 0], (now, inp, [m, n]) => tsplus_module_2.succeed(() => tsplus_module_11.
|
864
|
+
return make_1([tsplus_module_10.nothing(), 0], (now, inp, [m, n]) => tsplus_module_2.succeed(() => tsplus_module_11.match(() => [[tsplus_module_10.just(now), n + 1], n, tsplus_module_5.continueWith(tsplus_module_8.after(now + interval))], startMillis => [[tsplus_module_10.just(startMillis), n + 1], n, tsplus_module_5.continueWith(tsplus_module_8.after(now + (interval - (now - startMillis) % interval)))])(m), __tsplusTrace), __tsplusTrace);
|
782
865
|
}
|
783
866
|
/**
|
784
|
-
* @tsplus
|
867
|
+
* @tsplus pipeable fncts.io.Schedule zip
|
785
868
|
*/
|
786
869
|
|
787
870
|
|
788
|
-
function zip_1(
|
789
|
-
return
|
871
|
+
function zip_1(that, __tsplusTrace) {
|
872
|
+
return self => {
|
873
|
+
return intersectWith_1(that, (lInterval, rInterval) => tsplus_module_6.intersect(rInterval)(lInterval), __tsplusTrace)(self);
|
874
|
+
};
|
790
875
|
}
|
791
876
|
/**
|
792
|
-
* @tsplus
|
877
|
+
* @tsplus pipeable fncts.io.Schedule zipLeft
|
793
878
|
*/
|
794
879
|
|
795
880
|
|
796
|
-
function
|
797
|
-
return
|
881
|
+
function zipLeft(that, __tsplusTrace) {
|
882
|
+
return self => {
|
883
|
+
return map_1(([out]) => out, __tsplusTrace)(zip_1(that, __tsplusTrace)(self));
|
884
|
+
};
|
798
885
|
}
|
799
886
|
/**
|
800
|
-
* @tsplus
|
887
|
+
* @tsplus pipeable fncts.io.Schedule zipRight
|
801
888
|
*/
|
802
889
|
|
803
890
|
|
804
|
-
function
|
805
|
-
return
|
891
|
+
function zipRight(that, __tsplusTrace) {
|
892
|
+
return self => {
|
893
|
+
return map_1(([_, out1]) => out1, __tsplusTrace)(zip_1(that, __tsplusTrace)(self));
|
894
|
+
};
|
806
895
|
}
|
807
896
|
/**
|
808
|
-
* @tsplus
|
897
|
+
* @tsplus pipeable fncts.io.Schedule zipWith
|
809
898
|
*/
|
810
899
|
|
811
900
|
|
812
|
-
function
|
813
|
-
return
|
901
|
+
function zipWith(that, f, __tsplusTrace) {
|
902
|
+
return self => {
|
903
|
+
return map_1(([out1, out2]) => f(out1, out2), __tsplusTrace)(zip_1(that, __tsplusTrace)(self));
|
904
|
+
};
|
814
905
|
}
|
815
906
|
//# sourceMappingURL=api.cjs.map
|