@fncts/io 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cached/api.d.ts +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/Differ/api.d.ts +24 -0
- package/Differ/definition.d.ts +15 -0
- 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/FiberRef/unsafe.d.ts +12 -6
- 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/IOEnv/services.d.ts +2 -2
- 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 +13 -7
- package/Supervisor/definition.d.ts +28 -0
- package/SupervisorPatch.d.ts +61 -0
- 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 +108 -0
- package/_cjs/Differ/api.cjs.map +1 -0
- package/_cjs/Differ/definition.cjs +23 -0
- package/_cjs/Differ/definition.cjs.map +1 -0
- 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/unsafe.cjs +35 -21
- package/_cjs/FiberRef/unsafe.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/IOEnv/services.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 +49 -34
- 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 +66 -1
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +176 -0
- package/_cjs/SupervisorPatch.cjs.map +1 -0
- 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 +90 -0
- package/_mjs/Differ/api.mjs.map +1 -0
- package/_mjs/Differ/definition.mjs +13 -0
- package/_mjs/Differ/definition.mjs.map +1 -0
- 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/unsafe.mjs +31 -20
- package/_mjs/FiberRef/unsafe.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/IOEnv/services.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 +44 -33
- 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 +55 -0
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +135 -0
- package/_mjs/SupervisorPatch.mjs.map +1 -0
- 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/Differ/api.ts +72 -0
- package/_src/Differ/definition.ts +16 -0
- 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/unsafe.ts +24 -22
- 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/IOEnv/definition.ts +0 -2
- package/_src/IOEnv/services.ts +5 -4
- 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 +39 -31
- package/_src/Supervisor/definition.ts +58 -0
- package/_src/SupervisorPatch.ts +111 -0
- 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 +11 -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 +11 -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/_mjs/Schedule/api.mjs
CHANGED
|
@@ -17,34 +17,34 @@ import * as tsplus_module_15 from "@fncts/base/collection/immutable/Conc/api";
|
|
|
17
17
|
import * as tsplus_module_16 from "@fncts/base/collection/immutable/List/constructors";
|
|
18
18
|
import * as tsplus_module_17 from "@fncts/base/collection/immutable/Conc/api/empty";
|
|
19
19
|
export const make = make_1;
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
20
|
+
export const addDelay = addDelay_1;
|
|
21
|
+
export const addDelayIO = addDelayIO_1;
|
|
22
|
+
export const andThenEither = andThenEither_1;
|
|
23
|
+
export const as = as_1;
|
|
24
|
+
export const check = check_1;
|
|
25
|
+
export const checkIO = checkIO_1;
|
|
26
|
+
export const contramap = contramap_1;
|
|
27
|
+
export const contramapIO = contramapIO_1;
|
|
28
28
|
export const delayed = delayed_1;
|
|
29
|
-
export const
|
|
29
|
+
export const delayedIO = delayedIO_1;
|
|
30
30
|
export const either = either_1;
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
31
|
+
export const fold = fold_1;
|
|
32
|
+
export const foldIO = foldIO_1;
|
|
33
33
|
export const identity = identity_1;
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
34
|
+
export const intersectWith = intersectWith_1;
|
|
35
|
+
export const map = map_1;
|
|
36
|
+
export const mapIO = mapIO_1;
|
|
37
|
+
export const modifyDelayIO = modifyDelayIO_1;
|
|
38
|
+
export const reconsiderIO = reconsiderIO_1;
|
|
39
|
+
export const resetWhen = resetWhen_1;
|
|
40
|
+
export const unionWith = unionWith_1;
|
|
41
41
|
export const unfold = unfold_1;
|
|
42
|
-
export const
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
42
|
+
export const untilInput = untilInput_1;
|
|
43
|
+
export const untilInputIO = untilInputIO_1;
|
|
44
|
+
export const whileInput = whileInput_1;
|
|
45
|
+
export const whileInputIO = whileInputIO_1;
|
|
46
|
+
export const whileOutput = whileOutput_1;
|
|
47
|
+
export const zip = zip_1;
|
|
48
48
|
/**
|
|
49
49
|
* @tsplus static fncts.io.ScheduleOps __call
|
|
50
50
|
*/
|
|
@@ -60,95 +60,117 @@ function make_1(initial, step, __tsplusTrace) {
|
|
|
60
60
|
}();
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* @tsplus
|
|
63
|
+
* @tsplus pipeable fncts.io.Schedule addDelay
|
|
64
64
|
*/
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
function addDelay_1(
|
|
68
|
-
return
|
|
67
|
+
function addDelay_1(f, __tsplusTrace) {
|
|
68
|
+
return self => {
|
|
69
|
+
return addDelayIO_1(out => tsplus_module_2.succeed(() => f(out), __tsplusTrace), __tsplusTrace)(self);
|
|
70
|
+
};
|
|
69
71
|
}
|
|
70
72
|
/**
|
|
71
|
-
* @tsplus
|
|
73
|
+
* @tsplus pipeable fncts.io.Schedule addDelayIO
|
|
72
74
|
*/
|
|
73
75
|
|
|
74
76
|
|
|
75
|
-
function addDelayIO_1(
|
|
76
|
-
return
|
|
77
|
+
function addDelayIO_1(f, __tsplusTrace) {
|
|
78
|
+
return self => {
|
|
79
|
+
return modifyDelayIO_1((out, duration) => tsplus_module_2.map(d => duration + d, __tsplusTrace)(f(out)), __tsplusTrace)(self);
|
|
80
|
+
};
|
|
77
81
|
}
|
|
78
82
|
/**
|
|
79
|
-
* @tsplus
|
|
83
|
+
* @tsplus pipeable fncts.io.Schedule andThen
|
|
80
84
|
*/
|
|
81
85
|
|
|
82
86
|
|
|
83
|
-
export function andThen(
|
|
84
|
-
return
|
|
87
|
+
export function andThen(that, __tsplusTrace) {
|
|
88
|
+
return self => {
|
|
89
|
+
return map_1(out => tsplus_module_3.merge(out), __tsplusTrace)(andThenEither_1(that, __tsplusTrace)(self));
|
|
90
|
+
};
|
|
85
91
|
}
|
|
86
92
|
/**
|
|
87
|
-
* @tsplus
|
|
93
|
+
* @tsplus pipeable fncts.io.Schedule andThenEither
|
|
88
94
|
*/
|
|
89
95
|
|
|
90
|
-
function andThenEither_1(
|
|
91
|
-
return
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
function andThenEither_1(that, __tsplusTrace) {
|
|
97
|
+
return self => {
|
|
98
|
+
return make_1([self.initial, that.initial, true], (now, inp, [s1, s2, onLeft]) => {
|
|
99
|
+
if (onLeft) {
|
|
100
|
+
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));
|
|
101
|
+
} else {
|
|
102
|
+
return tsplus_module_2.map(([rState, out, decision]) => [[s1, rState, false], tsplus_module_4.right(out), decision], __tsplusTrace)(that.step(now, inp, s2, __tsplusTrace));
|
|
103
|
+
}
|
|
104
|
+
}, __tsplusTrace);
|
|
105
|
+
};
|
|
98
106
|
}
|
|
99
107
|
/**
|
|
100
|
-
* @tsplus
|
|
108
|
+
* @tsplus pipeable fncts.io.Schedule as
|
|
101
109
|
*/
|
|
102
110
|
|
|
103
111
|
|
|
104
|
-
function as_1(
|
|
105
|
-
return
|
|
112
|
+
function as_1(out2, __tsplusTrace) {
|
|
113
|
+
return self => {
|
|
114
|
+
return map_1(() => out2(), __tsplusTrace)(self);
|
|
115
|
+
};
|
|
106
116
|
}
|
|
107
117
|
/**
|
|
108
|
-
* @tsplus
|
|
118
|
+
* @tsplus pipeable fncts.io.Schedule check
|
|
109
119
|
*/
|
|
110
120
|
|
|
111
121
|
|
|
112
|
-
function check_1(
|
|
113
|
-
return
|
|
122
|
+
function check_1(test, __tsplusTrace) {
|
|
123
|
+
return self => {
|
|
124
|
+
return checkIO_1((inp, out) => tsplus_module_2.succeed(() => test(inp, out), __tsplusTrace), __tsplusTrace)(self);
|
|
125
|
+
};
|
|
114
126
|
}
|
|
115
127
|
/**
|
|
116
|
-
* @tsplus
|
|
128
|
+
* @tsplus pipeable fncts.io.Schedule checkIO
|
|
117
129
|
*/
|
|
118
130
|
|
|
119
131
|
|
|
120
|
-
function checkIO_1(
|
|
121
|
-
return
|
|
132
|
+
function checkIO_1(test, __tsplusTrace) {
|
|
133
|
+
return self => {
|
|
134
|
+
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);
|
|
135
|
+
};
|
|
122
136
|
}
|
|
123
137
|
/**
|
|
124
|
-
* @tsplus
|
|
138
|
+
* @tsplus pipeable fncts.io.Schedule compose_
|
|
125
139
|
*/
|
|
126
140
|
|
|
127
141
|
|
|
128
|
-
export function
|
|
129
|
-
return
|
|
142
|
+
export function compose(that, __tsplusTrace) {
|
|
143
|
+
return self => {
|
|
144
|
+
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);
|
|
145
|
+
};
|
|
130
146
|
}
|
|
131
147
|
/**
|
|
132
|
-
* @tsplus
|
|
148
|
+
* @tsplus pipeable fncts.io.Schedule contramap
|
|
133
149
|
*/
|
|
134
150
|
|
|
135
|
-
function contramap_1(
|
|
136
|
-
return
|
|
151
|
+
function contramap_1(f, __tsplusTrace) {
|
|
152
|
+
return self => {
|
|
153
|
+
return contramapIO_1(inp2 => tsplus_module_2.succeed(() => f(inp2), __tsplusTrace), __tsplusTrace)(self);
|
|
154
|
+
};
|
|
137
155
|
}
|
|
138
156
|
/**
|
|
139
|
-
* @tsplus
|
|
157
|
+
* @tsplus pipeable fncts.io.Schedule contramapEnvironment
|
|
140
158
|
*/
|
|
141
159
|
|
|
142
160
|
|
|
143
|
-
export function
|
|
144
|
-
return
|
|
161
|
+
export function contramapEnvironment(f, __tsplusTrace) {
|
|
162
|
+
return self => {
|
|
163
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_7.contramapEnvironment(f, __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
|
164
|
+
};
|
|
145
165
|
}
|
|
146
166
|
/**
|
|
147
|
-
* @tsplus
|
|
167
|
+
* @tsplus pipeable fncts.io.Schedule contramapIO
|
|
148
168
|
*/
|
|
149
169
|
|
|
150
|
-
function contramapIO_1(
|
|
151
|
-
return
|
|
170
|
+
function contramapIO_1(f, __tsplusTrace) {
|
|
171
|
+
return self => {
|
|
172
|
+
return make_1(self.initial, (now, inp2, state) => tsplus_module_2.flatMap(inp => self.step(now, inp, state, __tsplusTrace), __tsplusTrace)(f(inp2)), __tsplusTrace);
|
|
173
|
+
};
|
|
152
174
|
}
|
|
153
175
|
/**
|
|
154
176
|
* @tsplus static fncts.io.ScheduleOps delayed
|
|
@@ -156,22 +178,26 @@ function contramapIO_1(self, f, __tsplusTrace) {
|
|
|
156
178
|
|
|
157
179
|
|
|
158
180
|
function delayed_1(schedule, __tsplusTrace) {
|
|
159
|
-
return addDelay_1(
|
|
181
|
+
return addDelay_1(x => x, __tsplusTrace)(schedule);
|
|
160
182
|
}
|
|
161
183
|
/**
|
|
162
|
-
* @tsplus
|
|
184
|
+
* @tsplus pipeable fncts.io.Schedule delayed
|
|
163
185
|
*/
|
|
164
186
|
|
|
165
187
|
|
|
166
|
-
export function
|
|
167
|
-
return
|
|
188
|
+
export function delayedSelf(f, __tsplusTrace) {
|
|
189
|
+
return self => {
|
|
190
|
+
return delayedIO_1(delay => tsplus_module_2.succeed(() => f(delay), __tsplusTrace), __tsplusTrace)(self);
|
|
191
|
+
};
|
|
168
192
|
}
|
|
169
193
|
/**
|
|
170
|
-
* @tsplus
|
|
194
|
+
* @tsplus pipeable fncts.io.Schedule delayedIO
|
|
171
195
|
*/
|
|
172
196
|
|
|
173
|
-
function delayedIO_1(
|
|
174
|
-
return
|
|
197
|
+
function delayedIO_1(f, __tsplusTrace) {
|
|
198
|
+
return self => {
|
|
199
|
+
return modifyDelayIO_1((_, delay) => f(delay), __tsplusTrace)(self);
|
|
200
|
+
};
|
|
175
201
|
}
|
|
176
202
|
/**
|
|
177
203
|
* @tsplus getter fncts.io.Schedule delays
|
|
@@ -179,24 +205,28 @@ function delayedIO_1(self, f, __tsplusTrace) {
|
|
|
179
205
|
|
|
180
206
|
|
|
181
207
|
export function delays(self, __tsplusTrace) {
|
|
182
|
-
return make_1(self.initial, (now, inp, state) => tsplus_module_2.
|
|
208
|
+
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 => {
|
|
183
209
|
const delay = tsplus_module_6.start(interval) - now;
|
|
184
210
|
return tsplus_module_2.succeedNow([state, delay, tsplus_module_5.continue_(interval)], __tsplusTrace);
|
|
185
|
-
}), __tsplusTrace), __tsplusTrace);
|
|
211
|
+
})(decision), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
|
186
212
|
}
|
|
187
213
|
/**
|
|
188
|
-
* @tsplus
|
|
214
|
+
* @tsplus pipeable fncts.io.Schedule dimap
|
|
189
215
|
*/
|
|
190
216
|
|
|
191
|
-
export function
|
|
192
|
-
return
|
|
217
|
+
export function dimap(f, g, __tsplusTrace) {
|
|
218
|
+
return self => {
|
|
219
|
+
return map_1(g, __tsplusTrace)(contramap_1(f, __tsplusTrace)(self));
|
|
220
|
+
};
|
|
193
221
|
}
|
|
194
222
|
/**
|
|
195
|
-
* @tsplus
|
|
223
|
+
* @tsplus pipeable fncts.io.Schedule dimapIO
|
|
196
224
|
*/
|
|
197
225
|
|
|
198
|
-
export function
|
|
199
|
-
return
|
|
226
|
+
export function dimapIO(f, g, __tsplusTrace) {
|
|
227
|
+
return self => {
|
|
228
|
+
return mapIO_1(g, __tsplusTrace)(contramapIO_1(f, __tsplusTrace)(self));
|
|
229
|
+
};
|
|
200
230
|
}
|
|
201
231
|
/**
|
|
202
232
|
* @tsplus static fncts.io.ScheduleOps duration
|
|
@@ -213,43 +243,49 @@ export function duration(duration, __tsplusTrace) {
|
|
|
213
243
|
}, __tsplusTrace), __tsplusTrace);
|
|
214
244
|
}
|
|
215
245
|
/**
|
|
216
|
-
* @tsplus
|
|
217
|
-
* @tsplus operator fncts.io.Schedule ||
|
|
246
|
+
* @tsplus pipeable fncts.io.Schedule either
|
|
247
|
+
* @tsplus pipeable-operator fncts.io.Schedule ||
|
|
218
248
|
*/
|
|
219
249
|
|
|
220
|
-
function either_1(
|
|
221
|
-
return
|
|
250
|
+
function either_1(that, __tsplusTrace) {
|
|
251
|
+
return self => {
|
|
252
|
+
return unionWith_1(that, (interval1, interval2) => tsplus_module_6.union(interval2)(interval1), __tsplusTrace)(self);
|
|
253
|
+
};
|
|
222
254
|
}
|
|
223
255
|
/**
|
|
224
|
-
* @tsplus
|
|
256
|
+
* @tsplus pipeable fncts.io.Schedule eitherWith
|
|
225
257
|
*/
|
|
226
258
|
|
|
227
259
|
|
|
228
|
-
export function eitherWith(
|
|
229
|
-
return
|
|
260
|
+
export function eitherWith(that, f, __tsplusTrace) {
|
|
261
|
+
return self => {
|
|
262
|
+
return map_1(tsplus_module_9.tupled(f), __tsplusTrace)(either_1(that, __tsplusTrace)(self));
|
|
263
|
+
};
|
|
230
264
|
}
|
|
231
265
|
/**
|
|
232
266
|
* @tsplus static fncts.io.ScheduleOps elapsed
|
|
233
267
|
*/
|
|
234
268
|
|
|
235
|
-
const elapsed_1 = /*#__PURE__*/make_1( /*#__PURE__*/tsplus_module_10.nothing(), (now, _, state) => tsplus_module_2.succeed(() => tsplus_module_11.
|
|
269
|
+
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 => {
|
|
236
270
|
const duration = now - start;
|
|
237
271
|
return [tsplus_module_10.just(start), duration, tsplus_module_5.continueWith(tsplus_module_8.makeInterval(now, Number.MAX_SAFE_INTEGER))];
|
|
238
|
-
}), fileName_1 + ":
|
|
272
|
+
})(state), fileName_1 + ":291:13"), fileName_1 + ":290:91");
|
|
239
273
|
export const elapsed = elapsed_1;
|
|
240
274
|
/**
|
|
241
|
-
* @tsplus
|
|
275
|
+
* @tsplus pipeable fncts.io.Schedule ensuring
|
|
242
276
|
*/
|
|
243
277
|
|
|
244
|
-
export function
|
|
245
|
-
return
|
|
278
|
+
export function ensuring(finalizer, __tsplusTrace) {
|
|
279
|
+
return self => {
|
|
280
|
+
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);
|
|
281
|
+
};
|
|
246
282
|
}
|
|
247
283
|
/**
|
|
248
284
|
* @tsplus static fncts.io.ScheduleOps exponential
|
|
249
285
|
*/
|
|
250
286
|
|
|
251
287
|
export function exponential(base, factor = 2, __tsplusTrace) {
|
|
252
|
-
return delayed_1(map_1(
|
|
288
|
+
return delayed_1(map_1(i => base * Math.pow(factor, i), __tsplusTrace)(forever_1), __tsplusTrace);
|
|
253
289
|
}
|
|
254
290
|
/**
|
|
255
291
|
* A schedule that recurs on a fixed interval. Returns the number of
|
|
@@ -267,7 +303,7 @@ export function exponential(base, factor = 2, __tsplusTrace) {
|
|
|
267
303
|
*/
|
|
268
304
|
|
|
269
305
|
export function fixed(interval, __tsplusTrace) {
|
|
270
|
-
return make_1([tsplus_module_10.nothing(), 0], (now, inp, [ms, n]) => tsplus_module_2.succeed(() => tsplus_module_11.
|
|
306
|
+
return make_1([tsplus_module_10.nothing(), 0], (now, inp, [ms, n]) => tsplus_module_2.succeed(() => tsplus_module_11.match(() => {
|
|
271
307
|
const nextRun = now + interval;
|
|
272
308
|
return [[tsplus_module_10.just([now, nextRun]), n + 1], n, tsplus_module_5.continueWith(tsplus_module_8.after(nextRun))];
|
|
273
309
|
}, ([startMillis, lastRun]) => {
|
|
@@ -276,36 +312,40 @@ export function fixed(interval, __tsplusTrace) {
|
|
|
276
312
|
const sleepTime = boundary === 0 ? interval : boundary;
|
|
277
313
|
const nextRun = runningBehind ? now : now + sleepTime;
|
|
278
314
|
return [[tsplus_module_10.just([startMillis, nextRun]), n + 1], n, tsplus_module_5.continueWith(tsplus_module_8.after(nextRun))];
|
|
279
|
-
}), __tsplusTrace), __tsplusTrace);
|
|
315
|
+
})(ms), __tsplusTrace), __tsplusTrace);
|
|
280
316
|
}
|
|
281
317
|
/**
|
|
282
|
-
* @tsplus
|
|
318
|
+
* @tsplus pipeable fncts.io.Schedule fold
|
|
283
319
|
*/
|
|
284
320
|
|
|
285
|
-
function fold_1(
|
|
286
|
-
return
|
|
321
|
+
function fold_1(z, f, __tsplusTrace) {
|
|
322
|
+
return self => {
|
|
323
|
+
return foldIO_1(z, (z, out) => tsplus_module_2.succeed(() => f(z, out), __tsplusTrace), __tsplusTrace)(self);
|
|
324
|
+
};
|
|
287
325
|
}
|
|
288
326
|
/**
|
|
289
|
-
* @tsplus
|
|
327
|
+
* @tsplus pipeable fncts.io.Schedule foldIO
|
|
290
328
|
*/
|
|
291
329
|
|
|
292
330
|
|
|
293
|
-
function foldIO_1(
|
|
294
|
-
return
|
|
331
|
+
function foldIO_1(z, f, __tsplusTrace) {
|
|
332
|
+
return self => {
|
|
333
|
+
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);
|
|
334
|
+
};
|
|
295
335
|
}
|
|
296
336
|
/**
|
|
297
337
|
* @tsplus getter fncts.io.Schedule forever
|
|
298
338
|
*/
|
|
299
339
|
|
|
300
340
|
|
|
301
|
-
export function
|
|
302
|
-
return make_1(self.initial, (now, inp, state) => tsplus_module_2.
|
|
341
|
+
export function repeatForever(self, __tsplusTrace) {
|
|
342
|
+
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);
|
|
303
343
|
}
|
|
304
344
|
/**
|
|
305
345
|
* @tsplus static fncts.io.ScheduleOps forever
|
|
306
346
|
*/
|
|
307
347
|
|
|
308
|
-
const forever_1 = /*#__PURE__*/unfold_1(() => 0, n => n + 1, fileName_1 + ":
|
|
348
|
+
const forever_1 = /*#__PURE__*/unfold_1(() => 0, n => n + 1, fileName_1 + ":411:39");
|
|
309
349
|
export const forever = forever_1;
|
|
310
350
|
/**
|
|
311
351
|
* @tsplus static fncts.io.ScheduleOps identity
|
|
@@ -320,33 +360,35 @@ function intersectWithLoop(self, that, inp, lState, out, lInterval, rState, out2
|
|
|
320
360
|
|
|
321
361
|
if (tsplus_module_6.isNonEmpty(combined)) {
|
|
322
362
|
return tsplus_module_2.succeedNow([[lState, rState], [out, out2], tsplus_module_5.continue_(combined)], __tsplusTrace);
|
|
323
|
-
} else if (tsplus_module_6.lt(
|
|
324
|
-
return tsplus_module_2.
|
|
363
|
+
} else if (tsplus_module_6.lt(rInterval)(lInterval)) {
|
|
364
|
+
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));
|
|
325
365
|
} else {
|
|
326
|
-
return tsplus_module_2.
|
|
366
|
+
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));
|
|
327
367
|
}
|
|
328
368
|
}
|
|
329
369
|
/**
|
|
330
|
-
* @tsplus
|
|
370
|
+
* @tsplus pipeable fncts.io.Schedule intersectWith
|
|
331
371
|
*/
|
|
332
372
|
|
|
333
373
|
|
|
334
|
-
function intersectWith_1(
|
|
335
|
-
return
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
374
|
+
function intersectWith_1(that, f, __tsplusTrace) {
|
|
375
|
+
return self => {
|
|
376
|
+
return make_1([self.initial, that.initial], (now, inp, state) => {
|
|
377
|
+
const left = self.step(now, inp, state[0], __tsplusTrace);
|
|
378
|
+
const right = that.step(now, inp, state[1], __tsplusTrace);
|
|
379
|
+
return tsplus_module_2.flatten(tsplus_module_2.zipWith(right, ([lState, out, lDecision], [rState, out2, rDecision]) => {
|
|
380
|
+
if (lDecision._tag === "Continue"
|
|
381
|
+
/* DecisionTag.Continue */
|
|
382
|
+
&& rDecision._tag === "Continue"
|
|
383
|
+
/* DecisionTag.Continue */
|
|
384
|
+
) {
|
|
385
|
+
return intersectWithLoop(self, that, inp, lState, out, lDecision.interval, rState, out2, rDecision.interval, f, __tsplusTrace);
|
|
386
|
+
} else {
|
|
387
|
+
return tsplus_module_2.succeedNow([[lState, rState], [out, out2], tsplus_module_5.done], __tsplusTrace);
|
|
388
|
+
}
|
|
389
|
+
}, __tsplusTrace)(left), __tsplusTrace);
|
|
390
|
+
}, __tsplusTrace);
|
|
391
|
+
};
|
|
350
392
|
}
|
|
351
393
|
/**
|
|
352
394
|
* @tsplus static fncts.io.Schedule linear
|
|
@@ -354,69 +396,83 @@ function intersectWith_1(self, that, f, __tsplusTrace) {
|
|
|
354
396
|
|
|
355
397
|
|
|
356
398
|
export function linear(base, __tsplusTrace) {
|
|
357
|
-
return delayed_1(map_1(
|
|
399
|
+
return delayed_1(map_1(i => base * (i + 1), __tsplusTrace)(forever_1), __tsplusTrace);
|
|
358
400
|
}
|
|
359
401
|
/**
|
|
360
|
-
* @tsplus
|
|
402
|
+
* @tsplus pipeable fncts.io.Schedule map
|
|
361
403
|
*/
|
|
362
404
|
|
|
363
|
-
function map_1(
|
|
364
|
-
return
|
|
405
|
+
function map_1(f, __tsplusTrace) {
|
|
406
|
+
return self => {
|
|
407
|
+
return mapIO_1(out => tsplus_module_2.succeedNow(f(out), __tsplusTrace), __tsplusTrace)(self);
|
|
408
|
+
};
|
|
365
409
|
}
|
|
366
410
|
/**
|
|
367
|
-
* @tsplus
|
|
411
|
+
* @tsplus pipeable fncts.io.Schedule mapIO
|
|
368
412
|
*/
|
|
369
413
|
|
|
370
414
|
|
|
371
|
-
function mapIO_1(
|
|
372
|
-
return
|
|
415
|
+
function mapIO_1(f, __tsplusTrace) {
|
|
416
|
+
return self => {
|
|
417
|
+
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);
|
|
418
|
+
};
|
|
373
419
|
}
|
|
374
420
|
/**
|
|
375
|
-
* @tsplus
|
|
421
|
+
* @tsplus pipeable fncts.io.Schedule modifyDelayIO
|
|
376
422
|
*/
|
|
377
423
|
|
|
378
424
|
|
|
379
|
-
function modifyDelayIO_1(
|
|
380
|
-
return
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
425
|
+
function modifyDelayIO_1(f, __tsplusTrace) {
|
|
426
|
+
return self => {
|
|
427
|
+
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 => {
|
|
428
|
+
const delay = tsplus_module_8.size(tsplus_module_8.makeInterval(now, tsplus_module_6.start(interval)));
|
|
429
|
+
return tsplus_module_2.map(duration => {
|
|
430
|
+
const oldStart = tsplus_module_6.start(interval);
|
|
431
|
+
const newStart = now + duration;
|
|
432
|
+
const delta = newStart - oldStart;
|
|
433
|
+
const newEnd = tsplus_module_6.end(interval) + delta;
|
|
434
|
+
const newInterval = tsplus_module_8.makeInterval(newStart, newEnd);
|
|
435
|
+
return [state, out, tsplus_module_5.continueWith(newInterval)];
|
|
436
|
+
}, __tsplusTrace)(f(out, delay));
|
|
437
|
+
})(decision), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
|
438
|
+
};
|
|
391
439
|
}
|
|
392
440
|
/**
|
|
393
|
-
* @tsplus
|
|
441
|
+
* @tsplus pipeable fncts.io.Schedule onDecision
|
|
394
442
|
*/
|
|
395
443
|
|
|
396
444
|
|
|
397
|
-
export function
|
|
398
|
-
return
|
|
445
|
+
export function onDecision(f, __tsplusTrace) {
|
|
446
|
+
return self => {
|
|
447
|
+
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);
|
|
448
|
+
};
|
|
399
449
|
}
|
|
400
450
|
/**
|
|
401
|
-
* @tsplus
|
|
451
|
+
* @tsplus pipeable fncts.io.Schedule provideEnvironment
|
|
402
452
|
*/
|
|
403
453
|
|
|
404
|
-
export function
|
|
405
|
-
return
|
|
454
|
+
export function provideEnvironment(env, __tsplusTrace) {
|
|
455
|
+
return self => {
|
|
456
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_7.provideEnvironment(env, __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
|
457
|
+
};
|
|
406
458
|
}
|
|
407
459
|
/**
|
|
408
|
-
* @tsplus
|
|
460
|
+
* @tsplus pipeable fncts.io.Schedule reconsider
|
|
409
461
|
*/
|
|
410
462
|
|
|
411
|
-
export function
|
|
412
|
-
return
|
|
463
|
+
export function reconsider(f, __tsplusTrace) {
|
|
464
|
+
return self => {
|
|
465
|
+
return reconsiderIO_1((state, out, decision) => tsplus_module_2.succeed(() => f(state, out, decision), __tsplusTrace), __tsplusTrace)(self);
|
|
466
|
+
};
|
|
413
467
|
}
|
|
414
468
|
/**
|
|
415
|
-
* @tsplus
|
|
469
|
+
* @tsplus pipeable fncts.io.Schedule reconsiderIO
|
|
416
470
|
*/
|
|
417
471
|
|
|
418
|
-
function reconsiderIO_1(
|
|
419
|
-
return
|
|
472
|
+
function reconsiderIO_1(f, __tsplusTrace) {
|
|
473
|
+
return self => {
|
|
474
|
+
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);
|
|
475
|
+
};
|
|
420
476
|
}
|
|
421
477
|
/**
|
|
422
478
|
* @tsplus static fncts.io.Schedule recurs
|
|
@@ -424,128 +480,140 @@ function reconsiderIO_1(self, f, __tsplusTrace) {
|
|
|
424
480
|
|
|
425
481
|
|
|
426
482
|
export function recurs(n, __tsplusTrace) {
|
|
427
|
-
return whileOutput_1(
|
|
483
|
+
return whileOutput_1(_ => _ < n, __tsplusTrace)(forever_1);
|
|
428
484
|
}
|
|
429
485
|
/**
|
|
430
486
|
* @tsplus static fncts.io.Schedule recurWhile
|
|
431
487
|
*/
|
|
432
488
|
|
|
433
489
|
export function recurWhile(f, __tsplusTrace) {
|
|
434
|
-
return whileInput_1(
|
|
490
|
+
return whileInput_1(f, __tsplusTrace)(identity_1(__tsplusTrace));
|
|
435
491
|
}
|
|
436
492
|
/**
|
|
437
493
|
* @tsplus static fncts.io.Schedule recurWhileIO
|
|
438
494
|
*/
|
|
439
495
|
|
|
440
496
|
export function recurWhileIO(f, __tsplusTrace) {
|
|
441
|
-
return whileInputIO_1(
|
|
497
|
+
return whileInputIO_1(f, __tsplusTrace)(identity_1(__tsplusTrace));
|
|
442
498
|
}
|
|
443
499
|
/**
|
|
444
500
|
* @tsplus static fncts.io.Schedule recurWhileEquals
|
|
445
501
|
*/
|
|
446
502
|
|
|
447
503
|
export function recurWhileEquals(value, __tsplusTrace) {
|
|
448
|
-
return whileInput_1(
|
|
504
|
+
return whileInput_1(a => tsplus_module_13.strictEquals(a, value()), __tsplusTrace)(identity_1(__tsplusTrace));
|
|
449
505
|
}
|
|
450
506
|
/**
|
|
451
507
|
* @tsplus static fncts.io.Schedule recurUntil
|
|
452
508
|
*/
|
|
453
509
|
|
|
454
510
|
export function recurUntil(f, __tsplusTrace) {
|
|
455
|
-
return untilInput_1(
|
|
511
|
+
return untilInput_1(f, __tsplusTrace)(identity_1(__tsplusTrace));
|
|
456
512
|
}
|
|
457
513
|
/**
|
|
458
514
|
* @tsplus static fncts.io.Schedule recurUntilIO
|
|
459
515
|
*/
|
|
460
516
|
|
|
461
517
|
export function recurUntilIO(f, __tsplusTrace) {
|
|
462
|
-
return untilInputIO_1(
|
|
518
|
+
return untilInputIO_1(f, __tsplusTrace)(identity_1(__tsplusTrace));
|
|
463
519
|
}
|
|
464
520
|
/**
|
|
465
521
|
* @tsplus static fncts.io.Schedule recurUntilEquals
|
|
466
522
|
*/
|
|
467
523
|
|
|
468
524
|
export function recurUntilEquals(value, __tsplusTrace) {
|
|
469
|
-
return untilInput_1(
|
|
525
|
+
return untilInput_1(a => tsplus_module_13.strictEquals(a, value()), __tsplusTrace)(identity_1(__tsplusTrace));
|
|
470
526
|
}
|
|
471
527
|
/**
|
|
472
528
|
* @tsplus getter fncts.io.Schedule repetitions
|
|
473
529
|
*/
|
|
474
530
|
|
|
475
531
|
export function repetitions(self, __tsplusTrace) {
|
|
476
|
-
return fold_1(
|
|
532
|
+
return fold_1(0, (n, _) => n + 1, __tsplusTrace)(self);
|
|
477
533
|
}
|
|
478
534
|
/**
|
|
479
|
-
* @tsplus
|
|
535
|
+
* @tsplus pipeable fncts.io.Schedule resetAfter
|
|
480
536
|
*/
|
|
481
537
|
|
|
482
|
-
export function
|
|
483
|
-
return
|
|
538
|
+
export function resetAfter(duration, __tsplusTrace) {
|
|
539
|
+
return self => {
|
|
540
|
+
return map_1(([out, _]) => out, __tsplusTrace)(resetWhen_1(([_, d]) => d >= duration, __tsplusTrace)(zip_1(elapsed_1, __tsplusTrace)(self)));
|
|
541
|
+
};
|
|
484
542
|
}
|
|
485
543
|
/**
|
|
486
|
-
* @tsplus
|
|
544
|
+
* @tsplus pipeable fncts.io.Schedule resetWhen
|
|
487
545
|
*/
|
|
488
546
|
|
|
489
|
-
function resetWhen_1(
|
|
490
|
-
return
|
|
547
|
+
function resetWhen_1(f, __tsplusTrace) {
|
|
548
|
+
return self => {
|
|
549
|
+
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);
|
|
550
|
+
};
|
|
491
551
|
}
|
|
492
552
|
/**
|
|
493
|
-
* @tsplus
|
|
553
|
+
* @tsplus pipeable fncts.io.Schedule run
|
|
494
554
|
*/
|
|
495
555
|
|
|
496
556
|
|
|
497
|
-
export function
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
557
|
+
export function run(now, input, __tsplusTrace) {
|
|
558
|
+
return self => {
|
|
559
|
+
const loop = (now, xs, state, acc) => {
|
|
560
|
+
if (tsplus_module_14.isEmpty(xs)) {
|
|
561
|
+
return tsplus_module_2.succeedNow(acc, __tsplusTrace);
|
|
562
|
+
} else {
|
|
563
|
+
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));
|
|
564
|
+
}
|
|
565
|
+
};
|
|
505
566
|
|
|
506
|
-
|
|
567
|
+
return loop(now, tsplus_module_16.from(input), self.initial, tsplus_module_17.empty());
|
|
568
|
+
};
|
|
507
569
|
}
|
|
508
570
|
/**
|
|
509
571
|
* @tsplus static fncts.io.Schedule spaced
|
|
510
572
|
*/
|
|
511
573
|
|
|
512
574
|
export function spaced(duration, __tsplusTrace) {
|
|
513
|
-
return addDelay_1(
|
|
575
|
+
return addDelay_1(() => duration, __tsplusTrace)(forever_1);
|
|
514
576
|
}
|
|
515
577
|
/**
|
|
516
578
|
* @tsplus static fncts.io.Schedule succeed
|
|
517
579
|
*/
|
|
518
580
|
|
|
519
581
|
export function succeed(a, __tsplusTrace) {
|
|
520
|
-
return as_1(
|
|
582
|
+
return as_1(a, __tsplusTrace)(forever_1);
|
|
521
583
|
}
|
|
522
584
|
/**
|
|
523
|
-
* @tsplus
|
|
585
|
+
* @tsplus pipeable fncts.io.Schedule tapInput
|
|
524
586
|
*/
|
|
525
587
|
|
|
526
|
-
export function
|
|
527
|
-
return
|
|
588
|
+
export function tapInput(f, __tsplusTrace) {
|
|
589
|
+
return self => {
|
|
590
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.apSecond(self.step(now, inp, state, __tsplusTrace), __tsplusTrace)(f(inp)), __tsplusTrace);
|
|
591
|
+
};
|
|
528
592
|
}
|
|
529
593
|
/**
|
|
530
|
-
* @tsplus
|
|
594
|
+
* @tsplus pipeable fncts.io.Schedule tapOutput
|
|
531
595
|
*/
|
|
532
596
|
|
|
533
|
-
export function
|
|
534
|
-
return
|
|
597
|
+
export function tapOutput(f, __tsplusTrace) {
|
|
598
|
+
return self => {
|
|
599
|
+
return make_1(self.initial, (now, inp, state) => tsplus_module_2.tap(([_, out]) => f(out), __tsplusTrace)(self.step(now, inp, state, __tsplusTrace)), __tsplusTrace);
|
|
600
|
+
};
|
|
535
601
|
}
|
|
536
602
|
/**
|
|
537
|
-
* @tsplus
|
|
603
|
+
* @tsplus pipeable fncts.io.Schedule unionWith
|
|
538
604
|
*/
|
|
539
605
|
|
|
540
|
-
function unionWith_1(
|
|
541
|
-
return
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
606
|
+
function unionWith_1(that, f, __tsplusTrace) {
|
|
607
|
+
return self => {
|
|
608
|
+
return make_1([self.initial, that.initial], (now, inp, state) => {
|
|
609
|
+
const left = self.step(now, inp, state[0], __tsplusTrace);
|
|
610
|
+
const right = that.step(now, inp, state[1], __tsplusTrace);
|
|
611
|
+
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 => {
|
|
612
|
+
const combined = f(linterval, rinterval);
|
|
613
|
+
return [[lstate, rstate], [l, r], tsplus_module_5.continue_(combined)];
|
|
614
|
+
})(d2))(d1), __tsplusTrace)(left);
|
|
615
|
+
}, __tsplusTrace);
|
|
616
|
+
};
|
|
549
617
|
}
|
|
550
618
|
/**
|
|
551
619
|
* @tsplus static fncts.io.ScheduleOps unfold
|
|
@@ -556,108 +624,132 @@ function unfold_1(a, f, __tsplusTrace) {
|
|
|
556
624
|
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);
|
|
557
625
|
}
|
|
558
626
|
/**
|
|
559
|
-
* @tsplus
|
|
627
|
+
* @tsplus pipeable fncts.io.Schedule untilInput
|
|
560
628
|
*/
|
|
561
629
|
|
|
562
630
|
|
|
563
|
-
function untilInput_1(
|
|
564
|
-
return
|
|
631
|
+
function untilInput_1(f, __tsplusTrace) {
|
|
632
|
+
return self => {
|
|
633
|
+
return check_1(inp => !f(inp), __tsplusTrace)(self);
|
|
634
|
+
};
|
|
565
635
|
}
|
|
566
636
|
/**
|
|
567
|
-
* @tsplus
|
|
637
|
+
* @tsplus pipeable fncts.io.Schedule untilInputIO
|
|
568
638
|
*/
|
|
569
639
|
|
|
570
640
|
|
|
571
|
-
function untilInputIO_1(
|
|
572
|
-
return
|
|
641
|
+
function untilInputIO_1(f, __tsplusTrace) {
|
|
642
|
+
return self => {
|
|
643
|
+
return checkIO_1(inp => tsplus_module_2.map(b => !b, __tsplusTrace)(f(inp)), __tsplusTrace)(self);
|
|
644
|
+
};
|
|
573
645
|
}
|
|
574
646
|
/**
|
|
575
|
-
* @tsplus
|
|
647
|
+
* @tsplus pipeable fncts.io.Schedule untilOutput
|
|
576
648
|
*/
|
|
577
649
|
|
|
578
650
|
|
|
579
|
-
export function
|
|
580
|
-
return
|
|
651
|
+
export function untilOutput(f, __tsplusTrace) {
|
|
652
|
+
return self => {
|
|
653
|
+
return check_1((_, out) => !f(out), __tsplusTrace)(self);
|
|
654
|
+
};
|
|
581
655
|
}
|
|
582
656
|
/**
|
|
583
|
-
* @tsplus
|
|
657
|
+
* @tsplus pipeable fncts.io.Schedule untilOutputIO
|
|
584
658
|
*/
|
|
585
659
|
|
|
586
|
-
export function
|
|
587
|
-
return
|
|
660
|
+
export function untilOutputIO(f, __tsplusTrace) {
|
|
661
|
+
return self => {
|
|
662
|
+
return checkIO_1((_, out) => tsplus_module_2.map(b => !b, __tsplusTrace)(f(out)), __tsplusTrace)(self);
|
|
663
|
+
};
|
|
588
664
|
}
|
|
589
665
|
/**
|
|
590
666
|
* @tsplus static fncts.io.Schedule upTo
|
|
591
667
|
*/
|
|
592
668
|
|
|
593
669
|
export function upTo(duration, __tsplusTrace) {
|
|
594
|
-
return whileOutput_1(
|
|
670
|
+
return whileOutput_1(n => n < duration, __tsplusTrace)(elapsed_1);
|
|
595
671
|
}
|
|
596
672
|
/**
|
|
597
|
-
* @tsplus
|
|
673
|
+
* @tsplus pipeable fncts.io.Schedule whileInput
|
|
598
674
|
*/
|
|
599
675
|
|
|
600
|
-
function whileInput_1(
|
|
601
|
-
return
|
|
676
|
+
function whileInput_1(f, __tsplusTrace) {
|
|
677
|
+
return self => {
|
|
678
|
+
return check_1(inp => f(inp), __tsplusTrace)(self);
|
|
679
|
+
};
|
|
602
680
|
}
|
|
603
681
|
/**
|
|
604
|
-
* @tsplus
|
|
682
|
+
* @tsplus pipeable fncts.io.Schedule whileInputIO
|
|
605
683
|
*/
|
|
606
684
|
|
|
607
685
|
|
|
608
|
-
function whileInputIO_1(
|
|
609
|
-
return
|
|
686
|
+
function whileInputIO_1(f, __tsplusTrace) {
|
|
687
|
+
return self => {
|
|
688
|
+
return checkIO_1(inp => f(inp), __tsplusTrace)(self);
|
|
689
|
+
};
|
|
610
690
|
}
|
|
611
691
|
/**
|
|
612
|
-
* @tsplus
|
|
692
|
+
* @tsplus pipeable fncts.io.Schedule whileOutput
|
|
613
693
|
*/
|
|
614
694
|
|
|
615
695
|
|
|
616
|
-
function whileOutput_1(
|
|
617
|
-
return
|
|
696
|
+
function whileOutput_1(f, __tsplusTrace) {
|
|
697
|
+
return self => {
|
|
698
|
+
return check_1((_, out) => f(out), __tsplusTrace)(self);
|
|
699
|
+
};
|
|
618
700
|
}
|
|
619
701
|
/**
|
|
620
|
-
* @tsplus
|
|
702
|
+
* @tsplus pipeable fncts.io.Schedule whileOutputIO
|
|
621
703
|
*/
|
|
622
704
|
|
|
623
705
|
|
|
624
|
-
export function
|
|
625
|
-
return
|
|
706
|
+
export function whileOutputIO(f, __tsplusTrace) {
|
|
707
|
+
return self => {
|
|
708
|
+
return checkIO_1((_, out) => f(out), __tsplusTrace)(self);
|
|
709
|
+
};
|
|
626
710
|
}
|
|
627
711
|
/**
|
|
628
712
|
* @tsplus static fncts.io.Schedule windowed
|
|
629
713
|
*/
|
|
630
714
|
|
|
631
715
|
export function windowed(interval, __tsplusTrace) {
|
|
632
|
-
return make_1([tsplus_module_10.nothing(), 0], (now, inp, [m, n]) => tsplus_module_2.succeed(() => tsplus_module_11.
|
|
716
|
+
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);
|
|
633
717
|
}
|
|
634
718
|
/**
|
|
635
|
-
* @tsplus
|
|
719
|
+
* @tsplus pipeable fncts.io.Schedule zip
|
|
636
720
|
*/
|
|
637
721
|
|
|
638
|
-
function zip_1(
|
|
639
|
-
return
|
|
722
|
+
function zip_1(that, __tsplusTrace) {
|
|
723
|
+
return self => {
|
|
724
|
+
return intersectWith_1(that, (lInterval, rInterval) => tsplus_module_6.intersect(rInterval)(lInterval), __tsplusTrace)(self);
|
|
725
|
+
};
|
|
640
726
|
}
|
|
641
727
|
/**
|
|
642
|
-
* @tsplus
|
|
728
|
+
* @tsplus pipeable fncts.io.Schedule zipLeft
|
|
643
729
|
*/
|
|
644
730
|
|
|
645
731
|
|
|
646
|
-
export function
|
|
647
|
-
return
|
|
732
|
+
export function zipLeft(that, __tsplusTrace) {
|
|
733
|
+
return self => {
|
|
734
|
+
return map_1(([out]) => out, __tsplusTrace)(zip_1(that, __tsplusTrace)(self));
|
|
735
|
+
};
|
|
648
736
|
}
|
|
649
737
|
/**
|
|
650
|
-
* @tsplus
|
|
738
|
+
* @tsplus pipeable fncts.io.Schedule zipRight
|
|
651
739
|
*/
|
|
652
740
|
|
|
653
|
-
export function
|
|
654
|
-
return
|
|
741
|
+
export function zipRight(that, __tsplusTrace) {
|
|
742
|
+
return self => {
|
|
743
|
+
return map_1(([_, out1]) => out1, __tsplusTrace)(zip_1(that, __tsplusTrace)(self));
|
|
744
|
+
};
|
|
655
745
|
}
|
|
656
746
|
/**
|
|
657
|
-
* @tsplus
|
|
747
|
+
* @tsplus pipeable fncts.io.Schedule zipWith
|
|
658
748
|
*/
|
|
659
749
|
|
|
660
|
-
export function
|
|
661
|
-
return
|
|
750
|
+
export function zipWith(that, f, __tsplusTrace) {
|
|
751
|
+
return self => {
|
|
752
|
+
return map_1(([out1, out2]) => f(out1, out2), __tsplusTrace)(zip_1(that, __tsplusTrace)(self));
|
|
753
|
+
};
|
|
662
754
|
}
|
|
663
755
|
//# sourceMappingURL=api.mjs.map
|