@fncts/io 0.0.1

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.
Files changed (1688) hide show
  1. package/Cached/api.d.ts +27 -0
  2. package/Cached/definition.d.ts +18 -0
  3. package/Cached/internal.d.ts +10 -0
  4. package/Cached.d.ts +3 -0
  5. package/CancellerState.d.ts +42 -0
  6. package/Channel/ChildExecutorDecision/api.d.ts +6 -0
  7. package/Channel/ChildExecutorDecision/definition.d.ts +35 -0
  8. package/Channel/ChildExecutorDecision.d.ts +2 -0
  9. package/Channel/UpstreamPullRequest/api.d.ts +16 -0
  10. package/Channel/UpstreamPullRequest/definition.d.ts +20 -0
  11. package/Channel/UpstreamPullRequest.d.ts +2 -0
  12. package/Channel/UpstreamPullStrategy/definition.d.ts +26 -0
  13. package/Channel/UpstreamPullStrategy.d.ts +1 -0
  14. package/Channel/api/interruptWhen.d.ts +23 -0
  15. package/Channel/api/mapOutIOC.d.ts +8 -0
  16. package/Channel/api/mergeAll.d.ts +7 -0
  17. package/Channel/api/mergeAllUnboundedWith.d.ts +6 -0
  18. package/Channel/api/mergeAllWith.d.ts +11 -0
  19. package/Channel/api/mergeMap.d.ts +7 -0
  20. package/Channel/api/mergeWith.d.ts +14 -0
  21. package/Channel/api/run.d.ts +8 -0
  22. package/Channel/api/runCollect.d.ts +8 -0
  23. package/Channel/api/runDrain.d.ts +8 -0
  24. package/Channel/api/runScoped.d.ts +10 -0
  25. package/Channel/api/toPull.d.ts +11 -0
  26. package/Channel/api/zipC.d.ts +16 -0
  27. package/Channel/api.d.ts +420 -0
  28. package/Channel/core-api.d.ts +78 -0
  29. package/Channel/definition.d.ts +164 -0
  30. package/Channel/internal/AsyncInputConsumer.d.ts +8 -0
  31. package/Channel/internal/AsyncInputProducer.d.ts +8 -0
  32. package/Channel/internal/ChannelExecutor.d.ts +51 -0
  33. package/Channel/internal/ChannelState.d.ts +44 -0
  34. package/Channel/internal/MergeDecision.d.ts +51 -0
  35. package/Channel/internal/MergeState.d.ts +50 -0
  36. package/Channel/internal/SingleProducerAsyncInput.d.ts +71 -0
  37. package/Channel.d.ts +3 -0
  38. package/Clock/api.d.ts +11 -0
  39. package/Clock/definition.d.ts +14 -0
  40. package/Clock/live.d.ts +7 -0
  41. package/Clock.d.ts +3 -0
  42. package/Console/api.d.ts +11 -0
  43. package/Console/definition.d.ts +15 -0
  44. package/Console/live.d.ts +11 -0
  45. package/Console.d.ts +3 -0
  46. package/Fiber/FiberContext.d.ts +145 -0
  47. package/Fiber/api/await.d.ts +8 -0
  48. package/Fiber/api/awaitAll.d.ts +10 -0
  49. package/Fiber/api/children.d.ts +8 -0
  50. package/Fiber/api/collectAll.d.ts +11 -0
  51. package/Fiber/api/evalOn.d.ts +7 -0
  52. package/Fiber/api/evalOnIO.d.ts +9 -0
  53. package/Fiber/api/fromIO.d.ts +8 -0
  54. package/Fiber/api/id.d.ts +7 -0
  55. package/Fiber/api/inheritRefs.d.ts +7 -0
  56. package/Fiber/api/interrupt.d.ts +11 -0
  57. package/Fiber/api/interruptAll.d.ts +15 -0
  58. package/Fiber/api/interruptAs.d.ts +9 -0
  59. package/Fiber/api/interruptFork.d.ts +10 -0
  60. package/Fiber/api/join.d.ts +12 -0
  61. package/Fiber/api/joinAll.d.ts +11 -0
  62. package/Fiber/api/location.d.ts +7 -0
  63. package/Fiber/api/mapFiber.d.ts +9 -0
  64. package/Fiber/api/mapIO.d.ts +14 -0
  65. package/Fiber/api/poll.d.ts +9 -0
  66. package/Fiber/api/zipWith.d.ts +9 -0
  67. package/Fiber/constructors.d.ts +29 -0
  68. package/Fiber/definition.d.ts +102 -0
  69. package/Fiber.d.ts +23 -0
  70. package/FiberDescriptor.d.ts +18 -0
  71. package/FiberRef/api/locallyScoped.d.ts +9 -0
  72. package/FiberRef/api/locallyScopedWith.d.ts +9 -0
  73. package/FiberRef/api.d.ts +89 -0
  74. package/FiberRef/constructors.d.ts +63 -0
  75. package/FiberRef/definition.d.ts +41 -0
  76. package/FiberRef.d.ts +5 -0
  77. package/FiberRefs/api.d.ts +15 -0
  78. package/FiberRefs/definition.d.ts +14 -0
  79. package/FiberRefs/join.d.ts +8 -0
  80. package/FiberRefs.d.ts +3 -0
  81. package/FiberScope/constructors.d.ts +16 -0
  82. package/FiberScope/definition.d.ts +24 -0
  83. package/FiberScope.d.ts +2 -0
  84. package/FiberState/api.d.ts +7 -0
  85. package/FiberState/constructors.d.ts +22 -0
  86. package/FiberState/definition.d.ts +38 -0
  87. package/FiberState.d.ts +3 -0
  88. package/FiberStatus/constructors.d.ts +22 -0
  89. package/FiberStatus/definition.d.ts +59 -0
  90. package/FiberStatus.d.ts +2 -0
  91. package/Future/api.d.ts +113 -0
  92. package/Future/constructors.d.ts +21 -0
  93. package/Future/definition.d.ts +27 -0
  94. package/Future.d.ts +3 -0
  95. package/Hub/api.d.ts +191 -0
  96. package/Hub/definition.d.ts +89 -0
  97. package/Hub/internal.d.ts +97 -0
  98. package/Hub.d.ts +2 -0
  99. package/IO/api/acquireRelease.d.ts +10 -0
  100. package/IO/api/acquireReleaseExit.d.ts +11 -0
  101. package/IO/api/acquireReleaseInterruptible.d.ts +9 -0
  102. package/IO/api/acquireReleaseInterruptibleExit.d.ts +10 -0
  103. package/IO/api/addFinalizer.d.ts +9 -0
  104. package/IO/api/addFinalizerExit.d.ts +9 -0
  105. package/IO/api/bracket.d.ts +26 -0
  106. package/IO/api/bracketExit.d.ts +14 -0
  107. package/IO/api/clockWith.d.ts +12 -0
  108. package/IO/api/concurrency.d.ts +35 -0
  109. package/IO/api/concurrentFinalizers.d.ts +8 -0
  110. package/IO/api/consoleWith.d.ts +12 -0
  111. package/IO/api/core-scope.d.ts +77 -0
  112. package/IO/api/environment.d.ts +74 -0
  113. package/IO/api/foreachC.d.ts +29 -0
  114. package/IO/api/foreachExec.d.ts +12 -0
  115. package/IO/api/forkAll.d.ts +10 -0
  116. package/IO/api/forkIn.d.ts +9 -0
  117. package/IO/api/forkScoped.d.ts +8 -0
  118. package/IO/api/fulfill.d.ts +10 -0
  119. package/IO/api/interrupt.d.ts +108 -0
  120. package/IO/api/memoize.d.ts +6 -0
  121. package/IO/api/onExit.d.ts +7 -0
  122. package/IO/api/once.d.ts +6 -0
  123. package/IO/api/provideLayer.d.ts +7 -0
  124. package/IO/api/provideSomeLayer.d.ts +13 -0
  125. package/IO/api/race.d.ts +13 -0
  126. package/IO/api/raceFirst.d.ts +16 -0
  127. package/IO/api/randomWith.d.ts +12 -0
  128. package/IO/api/repeat.d.ts +20 -0
  129. package/IO/api/retry.d.ts +19 -0
  130. package/IO/api/schedule.d.ts +13 -0
  131. package/IO/api/scope.d.ts +8 -0
  132. package/IO/api/scopeWith.d.ts +8 -0
  133. package/IO/api/scoped.d.ts +14 -0
  134. package/IO/api/sequenceT.d.ts +10 -0
  135. package/IO/api/sleep.d.ts +6 -0
  136. package/IO/api/stateful.d.ts +10 -0
  137. package/IO/api/withChildren.d.ts +7 -0
  138. package/IO/api/withFinalizer.d.ts +8 -0
  139. package/IO/api/withFinalizerExit.d.ts +9 -0
  140. package/IO/api/withRuntimeConfig.d.ts +10 -0
  141. package/IO/api/zipC.d.ts +6 -0
  142. package/IO/api/zipWithC.d.ts +9 -0
  143. package/IO/api.d.ts +1130 -0
  144. package/IO/definition.d.ts +338 -0
  145. package/IO/runtime.d.ts +43 -0
  146. package/IO.d.ts +47 -0
  147. package/IOEnv/definition.d.ts +16 -0
  148. package/IOEnv/live.d.ts +6 -0
  149. package/IOEnv/services.d.ts +8 -0
  150. package/IOEnv.d.ts +3 -0
  151. package/IOSpec.d.ts +3 -0
  152. package/InterruptStatus/constructors.d.ts +16 -0
  153. package/InterruptStatus/definition.d.ts +12 -0
  154. package/InterruptStatus.d.ts +2 -0
  155. package/Layer/MemoMap.d.ts +43 -0
  156. package/Layer/api.d.ts +209 -0
  157. package/Layer/definition.d.ts +75 -0
  158. package/Layer.d.ts +3 -0
  159. package/LogLevel.d.ts +74 -0
  160. package/LogSpan.d.ts +14 -0
  161. package/Logger/api.d.ts +14 -0
  162. package/Logger/constructors.d.ts +10 -0
  163. package/Logger/definition.d.ts +18 -0
  164. package/Logger.d.ts +3 -0
  165. package/Queue/api/dimapIO.d.ts +41 -0
  166. package/Queue/api/filterInputIO.d.ts +32 -0
  167. package/Queue/api/filterOutputIO.d.ts +31 -0
  168. package/Queue/api/operations.d.ts +82 -0
  169. package/Queue/api/poll.d.ts +9 -0
  170. package/Queue/api/takeBetween.d.ts +11 -0
  171. package/Queue/api/zipWithIO.d.ts +44 -0
  172. package/Queue/api.d.ts +7 -0
  173. package/Queue/constructors.d.ts +22 -0
  174. package/Queue/definition.d.ts +129 -0
  175. package/Queue/internal.d.ts +12 -0
  176. package/Queue/strategy.d.ts +33 -0
  177. package/Queue.d.ts +5 -0
  178. package/Random/api.d.ts +42 -0
  179. package/Random/definition.d.ts +21 -0
  180. package/Random/live.d.ts +20 -0
  181. package/Random.d.ts +3 -0
  182. package/Ref/Atomic/Atomic.d.ts +18 -0
  183. package/Ref/Atomic/api.d.ts +53 -0
  184. package/Ref/Atomic.d.ts +2 -0
  185. package/Ref/Derived.d.ts +14 -0
  186. package/Ref/DerivedAll.d.ts +14 -0
  187. package/Ref/Synchronized/api.d.ts +100 -0
  188. package/Ref/Synchronized/constructors.d.ts +7 -0
  189. package/Ref/Synchronized/definition.d.ts +41 -0
  190. package/Ref/api/collect.d.ts +11 -0
  191. package/Ref/api/dimap.d.ts +56 -0
  192. package/Ref/api/filter.d.ts +20 -0
  193. package/Ref/api/get.d.ts +9 -0
  194. package/Ref/api/match.d.ts +13 -0
  195. package/Ref/api/matchAll.d.ts +11 -0
  196. package/Ref/api/modify.d.ts +79 -0
  197. package/Ref/api/set.d.ts +10 -0
  198. package/Ref/api.d.ts +23 -0
  199. package/Ref/constructors.d.ts +13 -0
  200. package/Ref/definition.d.ts +74 -0
  201. package/Ref.d.ts +9 -0
  202. package/RuntimeConfig.d.ts +34 -0
  203. package/STM/api/core-api.d.ts +35 -0
  204. package/STM/api/core-constructors.d.ts +45 -0
  205. package/STM/api.d.ts +379 -0
  206. package/STM/definition.d.ts +105 -0
  207. package/STM/driver.d.ts +15 -0
  208. package/STM/internal/CommitState.d.ts +47 -0
  209. package/STM/internal/Entry.d.ts +37 -0
  210. package/STM/internal/Journal.d.ts +101 -0
  211. package/STM/internal/TryCommit.d.ts +21 -0
  212. package/STM/internal/Versioned.d.ts +7 -0
  213. package/STM.d.ts +5 -0
  214. package/Schedule/Decision.d.ts +38 -0
  215. package/Schedule/Driver.d.ts +19 -0
  216. package/Schedule/Interval.d.ts +71 -0
  217. package/Schedule/api/driver.d.ts +7 -0
  218. package/Schedule/api.d.ts +359 -0
  219. package/Schedule/definition.d.ts +51 -0
  220. package/Schedule.d.ts +5 -0
  221. package/Scope/Finalizer/definition.d.ts +26 -0
  222. package/Scope/Finalizer.d.ts +1 -0
  223. package/Scope/ReleaseMap/api/releaseAll.d.ts +9 -0
  224. package/Scope/ReleaseMap/api.d.ts +30 -0
  225. package/Scope/ReleaseMap/constructors.d.ts +12 -0
  226. package/Scope/ReleaseMap/definition.d.ts +38 -0
  227. package/Scope/ReleaseMap.d.ts +3 -0
  228. package/Scope/api.d.ts +61 -0
  229. package/Scope/definition.d.ts +32 -0
  230. package/Scope.d.ts +2 -0
  231. package/ScopedRef/api.d.ts +9 -0
  232. package/ScopedRef/definition.d.ts +14 -0
  233. package/ScopedRef.d.ts +2 -0
  234. package/Sink/api.d.ts +35 -0
  235. package/Sink/definition.d.ts +15 -0
  236. package/Sink.d.ts +2 -0
  237. package/State/api.d.ts +25 -0
  238. package/State/definition.d.ts +14 -0
  239. package/State/internal.d.ts +10 -0
  240. package/State.d.ts +2 -0
  241. package/Stream/api/zipAllWith.d.ts +10 -0
  242. package/Stream/api/zipWith.d.ts +6 -0
  243. package/Stream/api/zipWithChunks.d.ts +11 -0
  244. package/Stream/api.d.ts +1087 -0
  245. package/Stream/definition.d.ts +38 -0
  246. package/Stream/internal/DebounceState.d.ts +61 -0
  247. package/Stream/internal/Handoff.d.ts +111 -0
  248. package/Stream/internal/Pull.d.ts +48 -0
  249. package/Stream/internal/SinkEndReason.d.ts +39 -0
  250. package/Stream/internal/Take.d.ts +128 -0
  251. package/Stream/internal/util.d.ts +3 -0
  252. package/Stream.d.ts +2 -0
  253. package/Supervisor/api.d.ts +10 -0
  254. package/Supervisor/constructors.d.ts +34 -0
  255. package/Supervisor/definition.d.ts +35 -0
  256. package/Supervisor.d.ts +3 -0
  257. package/TExit/constructors.d.ts +32 -0
  258. package/TExit/definition.d.ts +90 -0
  259. package/TExit.d.ts +2 -0
  260. package/TFuture/api.d.ts +29 -0
  261. package/TFuture/constructors.d.ts +16 -0
  262. package/TFuture/definition.d.ts +22 -0
  263. package/TFuture.d.ts +3 -0
  264. package/TRef/api.d.ts +85 -0
  265. package/TRef/constructors.d.ts +32 -0
  266. package/TRef/definition.d.ts +87 -0
  267. package/TRef.d.ts +3 -0
  268. package/TSemaphore/api.d.ts +38 -0
  269. package/TSemaphore/constructors.d.ts +13 -0
  270. package/TSemaphore/definition.d.ts +20 -0
  271. package/TSemaphore.d.ts +3 -0
  272. package/TxnId.d.ts +12 -0
  273. package/_cjs/Cached/api.cjs +85 -0
  274. package/_cjs/Cached/api.cjs.map +1 -0
  275. package/_cjs/Cached/definition.cjs +33 -0
  276. package/_cjs/Cached/definition.cjs.map +1 -0
  277. package/_cjs/Cached/internal.cjs +18 -0
  278. package/_cjs/Cached/internal.cjs.map +1 -0
  279. package/_cjs/Cached.cjs +45 -0
  280. package/_cjs/Cached.cjs.map +1 -0
  281. package/_cjs/CancellerState.cjs +64 -0
  282. package/_cjs/CancellerState.cjs.map +1 -0
  283. package/_cjs/Channel/ChildExecutorDecision/api.cjs +29 -0
  284. package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -0
  285. package/_cjs/Channel/ChildExecutorDecision/definition.cjs +39 -0
  286. package/_cjs/Channel/ChildExecutorDecision/definition.cjs.map +1 -0
  287. package/_cjs/Channel/ChildExecutorDecision.cjs +32 -0
  288. package/_cjs/Channel/ChildExecutorDecision.cjs.map +1 -0
  289. package/_cjs/Channel/UpstreamPullRequest/api.cjs +44 -0
  290. package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -0
  291. package/_cjs/Channel/UpstreamPullRequest/definition.cjs +29 -0
  292. package/_cjs/Channel/UpstreamPullRequest/definition.cjs.map +1 -0
  293. package/_cjs/Channel/UpstreamPullRequest.cjs +32 -0
  294. package/_cjs/Channel/UpstreamPullRequest.cjs.map +1 -0
  295. package/_cjs/Channel/UpstreamPullStrategy/definition.cjs +33 -0
  296. package/_cjs/Channel/UpstreamPullStrategy/definition.cjs.map +1 -0
  297. package/_cjs/Channel/UpstreamPullStrategy.cjs +19 -0
  298. package/_cjs/Channel/UpstreamPullStrategy.cjs.map +1 -0
  299. package/_cjs/Channel/api/interruptWhen.cjs +54 -0
  300. package/_cjs/Channel/api/interruptWhen.cjs.map +1 -0
  301. package/_cjs/Channel/api/mapOutIOC.cjs +63 -0
  302. package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -0
  303. package/_cjs/Channel/api/mergeAll.cjs +20 -0
  304. package/_cjs/Channel/api/mergeAll.cjs.map +1 -0
  305. package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +20 -0
  306. package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -0
  307. package/_cjs/Channel/api/mergeAllWith.cjs +97 -0
  308. package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -0
  309. package/_cjs/Channel/api/mergeMap.cjs +22 -0
  310. package/_cjs/Channel/api/mergeMap.cjs.map +1 -0
  311. package/_cjs/Channel/api/mergeWith.cjs +98 -0
  312. package/_cjs/Channel/api/mergeWith.cjs.map +1 -0
  313. package/_cjs/Channel/api/run.cjs +24 -0
  314. package/_cjs/Channel/api/run.cjs.map +1 -0
  315. package/_cjs/Channel/api/runCollect.cjs +22 -0
  316. package/_cjs/Channel/api/runCollect.cjs.map +1 -0
  317. package/_cjs/Channel/api/runDrain.cjs +24 -0
  318. package/_cjs/Channel/api/runDrain.cjs.map +1 -0
  319. package/_cjs/Channel/api/runScoped.cjs +70 -0
  320. package/_cjs/Channel/api/runScoped.cjs.map +1 -0
  321. package/_cjs/Channel/api/toPull.cjs +63 -0
  322. package/_cjs/Channel/api/toPull.cjs.map +1 -0
  323. package/_cjs/Channel/api/zipC.cjs +51 -0
  324. package/_cjs/Channel/api/zipC.cjs.map +1 -0
  325. package/_cjs/Channel/api.cjs +875 -0
  326. package/_cjs/Channel/api.cjs.map +1 -0
  327. package/_cjs/Channel/core-api.cjs +149 -0
  328. package/_cjs/Channel/core-api.cjs.map +1 -0
  329. package/_cjs/Channel/definition.cjs +262 -0
  330. package/_cjs/Channel/definition.cjs.map +1 -0
  331. package/_cjs/Channel/internal/AsyncInputConsumer.cjs +6 -0
  332. package/_cjs/Channel/internal/AsyncInputConsumer.cjs.map +1 -0
  333. package/_cjs/Channel/internal/AsyncInputProducer.cjs +6 -0
  334. package/_cjs/Channel/internal/AsyncInputProducer.cjs.map +1 -0
  335. package/_cjs/Channel/internal/ChannelExecutor.cjs +954 -0
  336. package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -0
  337. package/_cjs/Channel/internal/ChannelState.cjs +100 -0
  338. package/_cjs/Channel/internal/ChannelState.cjs.map +1 -0
  339. package/_cjs/Channel/internal/MergeDecision.cjs +85 -0
  340. package/_cjs/Channel/internal/MergeDecision.cjs.map +1 -0
  341. package/_cjs/Channel/internal/MergeState.cjs +73 -0
  342. package/_cjs/Channel/internal/MergeState.cjs.map +1 -0
  343. package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +276 -0
  344. package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -0
  345. package/_cjs/Channel.cjs +45 -0
  346. package/_cjs/Channel.cjs.map +1 -0
  347. package/_cjs/Clock/api.cjs +30 -0
  348. package/_cjs/Clock/api.cjs.map +1 -0
  349. package/_cjs/Clock/definition.cjs +27 -0
  350. package/_cjs/Clock/definition.cjs.map +1 -0
  351. package/_cjs/Clock/live.cjs +45 -0
  352. package/_cjs/Clock/live.cjs.map +1 -0
  353. package/_cjs/Clock.cjs +45 -0
  354. package/_cjs/Clock.cjs.map +1 -0
  355. package/_cjs/Console/api.cjs +29 -0
  356. package/_cjs/Console/api.cjs.map +1 -0
  357. package/_cjs/Console/definition.cjs +27 -0
  358. package/_cjs/Console/definition.cjs.map +1 -0
  359. package/_cjs/Console/live.cjs +40 -0
  360. package/_cjs/Console/live.cjs.map +1 -0
  361. package/_cjs/Console.cjs +45 -0
  362. package/_cjs/Console.cjs.map +1 -0
  363. package/_cjs/Fiber/FiberContext.cjs +1219 -0
  364. package/_cjs/Fiber/FiberContext.cjs.map +1 -0
  365. package/_cjs/Fiber/api/await.cjs +15 -0
  366. package/_cjs/Fiber/api/await.cjs.map +1 -0
  367. package/_cjs/Fiber/api/awaitAll.cjs +28 -0
  368. package/_cjs/Fiber/api/awaitAll.cjs.map +1 -0
  369. package/_cjs/Fiber/api/children.cjs +15 -0
  370. package/_cjs/Fiber/api/children.cjs.map +1 -0
  371. package/_cjs/Fiber/api/collectAll.cjs +61 -0
  372. package/_cjs/Fiber/api/collectAll.cjs.map +1 -0
  373. package/_cjs/Fiber/api/evalOn.cjs +28 -0
  374. package/_cjs/Fiber/api/evalOn.cjs.map +1 -0
  375. package/_cjs/Fiber/api/evalOnIO.cjs +33 -0
  376. package/_cjs/Fiber/api/evalOnIO.cjs.map +1 -0
  377. package/_cjs/Fiber/api/fromIO.cjs +26 -0
  378. package/_cjs/Fiber/api/fromIO.cjs.map +1 -0
  379. package/_cjs/Fiber/api/id.cjs +15 -0
  380. package/_cjs/Fiber/api/id.cjs.map +1 -0
  381. package/_cjs/Fiber/api/inheritRefs.cjs +15 -0
  382. package/_cjs/Fiber/api/inheritRefs.cjs.map +1 -0
  383. package/_cjs/Fiber/api/interrupt.cjs +27 -0
  384. package/_cjs/Fiber/api/interrupt.cjs.map +1 -0
  385. package/_cjs/Fiber/api/interruptAll.cjs +42 -0
  386. package/_cjs/Fiber/api/interruptAll.cjs.map +1 -0
  387. package/_cjs/Fiber/api/interruptAs.cjs +15 -0
  388. package/_cjs/Fiber/api/interruptAs.cjs.map +1 -0
  389. package/_cjs/Fiber/api/interruptFork.cjs +28 -0
  390. package/_cjs/Fiber/api/interruptFork.cjs.map +1 -0
  391. package/_cjs/Fiber/api/join.cjs +29 -0
  392. package/_cjs/Fiber/api/join.cjs.map +1 -0
  393. package/_cjs/Fiber/api/joinAll.cjs +30 -0
  394. package/_cjs/Fiber/api/joinAll.cjs.map +1 -0
  395. package/_cjs/Fiber/api/location.cjs +21 -0
  396. package/_cjs/Fiber/api/location.cjs.map +1 -0
  397. package/_cjs/Fiber/api/mapFiber.cjs +31 -0
  398. package/_cjs/Fiber/api/mapFiber.cjs.map +1 -0
  399. package/_cjs/Fiber/api/mapIO.cjs +57 -0
  400. package/_cjs/Fiber/api/mapIO.cjs.map +1 -0
  401. package/_cjs/Fiber/api/poll.cjs +15 -0
  402. package/_cjs/Fiber/api/poll.cjs.map +1 -0
  403. package/_cjs/Fiber/api/zipWith.cjs +50 -0
  404. package/_cjs/Fiber/api/zipWith.cjs.map +1 -0
  405. package/_cjs/Fiber/constructors.cjs +70 -0
  406. package/_cjs/Fiber/constructors.cjs.map +1 -0
  407. package/_cjs/Fiber/definition.cjs +48 -0
  408. package/_cjs/Fiber/definition.cjs.map +1 -0
  409. package/_cjs/Fiber.cjs +305 -0
  410. package/_cjs/Fiber.cjs.map +1 -0
  411. package/_cjs/FiberDescriptor.cjs +26 -0
  412. package/_cjs/FiberDescriptor.cjs.map +1 -0
  413. package/_cjs/FiberRef/api/locallyScoped.cjs +26 -0
  414. package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -0
  415. package/_cjs/FiberRef/api/locallyScopedWith.cjs +24 -0
  416. package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -0
  417. package/_cjs/FiberRef/api.cjs +182 -0
  418. package/_cjs/FiberRef/api.cjs.map +1 -0
  419. package/_cjs/FiberRef/constructors.cjs +116 -0
  420. package/_cjs/FiberRef/constructors.cjs.map +1 -0
  421. package/_cjs/FiberRef/definition.cjs +76 -0
  422. package/_cjs/FiberRef/definition.cjs.map +1 -0
  423. package/_cjs/FiberRef.cjs +71 -0
  424. package/_cjs/FiberRef.cjs.map +1 -0
  425. package/_cjs/FiberRefs/api.cjs +31 -0
  426. package/_cjs/FiberRefs/api.cjs.map +1 -0
  427. package/_cjs/FiberRefs/definition.cjs +24 -0
  428. package/_cjs/FiberRefs/definition.cjs.map +1 -0
  429. package/_cjs/FiberRefs/join.cjs +110 -0
  430. package/_cjs/FiberRefs/join.cjs.map +1 -0
  431. package/_cjs/FiberRefs.cjs +45 -0
  432. package/_cjs/FiberRefs.cjs.map +1 -0
  433. package/_cjs/FiberScope/constructors.cjs +28 -0
  434. package/_cjs/FiberScope/constructors.cjs.map +1 -0
  435. package/_cjs/FiberScope/definition.cjs +60 -0
  436. package/_cjs/FiberScope/definition.cjs.map +1 -0
  437. package/_cjs/FiberScope.cjs +32 -0
  438. package/_cjs/FiberScope.cjs.map +1 -0
  439. package/_cjs/FiberState/api.cjs +26 -0
  440. package/_cjs/FiberState/api.cjs.map +1 -0
  441. package/_cjs/FiberState/constructors.cjs +44 -0
  442. package/_cjs/FiberState/constructors.cjs.map +1 -0
  443. package/_cjs/FiberState/definition.cjs +46 -0
  444. package/_cjs/FiberState/definition.cjs.map +1 -0
  445. package/_cjs/FiberState.cjs +45 -0
  446. package/_cjs/FiberState.cjs.map +1 -0
  447. package/_cjs/FiberStatus/constructors.cjs +42 -0
  448. package/_cjs/FiberStatus/constructors.cjs.map +1 -0
  449. package/_cjs/FiberStatus/definition.cjs +107 -0
  450. package/_cjs/FiberStatus/definition.cjs.map +1 -0
  451. package/_cjs/FiberStatus.cjs +32 -0
  452. package/_cjs/FiberStatus.cjs.map +1 -0
  453. package/_cjs/Future/api.cjs +292 -0
  454. package/_cjs/Future/api.cjs.map +1 -0
  455. package/_cjs/Future/constructors.cjs +55 -0
  456. package/_cjs/Future/constructors.cjs.map +1 -0
  457. package/_cjs/Future/definition.cjs +45 -0
  458. package/_cjs/Future/definition.cjs.map +1 -0
  459. package/_cjs/Future.cjs +45 -0
  460. package/_cjs/Future.cjs.map +1 -0
  461. package/_cjs/Hub/api.cjs +456 -0
  462. package/_cjs/Hub/api.cjs.map +1 -0
  463. package/_cjs/Hub/definition.cjs +28 -0
  464. package/_cjs/Hub/definition.cjs.map +1 -0
  465. package/_cjs/Hub/internal.cjs +449 -0
  466. package/_cjs/Hub/internal.cjs.map +1 -0
  467. package/_cjs/Hub.cjs +32 -0
  468. package/_cjs/Hub.cjs.map +1 -0
  469. package/_cjs/IO/api/acquireRelease.cjs +23 -0
  470. package/_cjs/IO/api/acquireRelease.cjs.map +1 -0
  471. package/_cjs/IO/api/acquireReleaseExit.cjs +25 -0
  472. package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -0
  473. package/_cjs/IO/api/acquireReleaseInterruptible.cjs +20 -0
  474. package/_cjs/IO/api/acquireReleaseInterruptible.cjs.map +1 -0
  475. package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +22 -0
  476. package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -0
  477. package/_cjs/IO/api/addFinalizer.cjs +20 -0
  478. package/_cjs/IO/api/addFinalizer.cjs.map +1 -0
  479. package/_cjs/IO/api/addFinalizerExit.cjs +32 -0
  480. package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -0
  481. package/_cjs/IO/api/bracket.cjs +40 -0
  482. package/_cjs/IO/api/bracket.cjs.map +1 -0
  483. package/_cjs/IO/api/bracketExit.cjs +37 -0
  484. package/_cjs/IO/api/bracketExit.cjs.map +1 -0
  485. package/_cjs/IO/api/clockWith.cjs +40 -0
  486. package/_cjs/IO/api/clockWith.cjs.map +1 -0
  487. package/_cjs/IO/api/concurrency.cjs +72 -0
  488. package/_cjs/IO/api/concurrency.cjs.map +1 -0
  489. package/_cjs/IO/api/concurrentFinalizers.cjs +28 -0
  490. package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -0
  491. package/_cjs/IO/api/consoleWith.cjs +40 -0
  492. package/_cjs/IO/api/consoleWith.cjs.map +1 -0
  493. package/_cjs/IO/api/core-scope.cjs +168 -0
  494. package/_cjs/IO/api/core-scope.cjs.map +1 -0
  495. package/_cjs/IO/api/environment.cjs +153 -0
  496. package/_cjs/IO/api/environment.cjs.map +1 -0
  497. package/_cjs/IO/api/foreachC.cjs +152 -0
  498. package/_cjs/IO/api/foreachC.cjs.map +1 -0
  499. package/_cjs/IO/api/foreachExec.cjs +33 -0
  500. package/_cjs/IO/api/foreachExec.cjs.map +1 -0
  501. package/_cjs/IO/api/forkAll.cjs +25 -0
  502. package/_cjs/IO/api/forkAll.cjs.map +1 -0
  503. package/_cjs/IO/api/forkIn.cjs +33 -0
  504. package/_cjs/IO/api/forkIn.cjs.map +1 -0
  505. package/_cjs/IO/api/forkScoped.cjs +30 -0
  506. package/_cjs/IO/api/forkScoped.cjs.map +1 -0
  507. package/_cjs/IO/api/fulfill.cjs +32 -0
  508. package/_cjs/IO/api/fulfill.cjs.map +1 -0
  509. package/_cjs/IO/api/interrupt.cjs +204 -0
  510. package/_cjs/IO/api/interrupt.cjs.map +1 -0
  511. package/_cjs/IO/api/memoize.cjs +30 -0
  512. package/_cjs/IO/api/memoize.cjs.map +1 -0
  513. package/_cjs/IO/api/onExit.cjs +22 -0
  514. package/_cjs/IO/api/onExit.cjs.map +1 -0
  515. package/_cjs/IO/api/once.cjs +24 -0
  516. package/_cjs/IO/api/once.cjs.map +1 -0
  517. package/_cjs/IO/api/provideLayer.cjs +30 -0
  518. package/_cjs/IO/api/provideLayer.cjs.map +1 -0
  519. package/_cjs/IO/api/provideSomeLayer.cjs +37 -0
  520. package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -0
  521. package/_cjs/IO/api/race.cjs +47 -0
  522. package/_cjs/IO/api/race.cjs.map +1 -0
  523. package/_cjs/IO/api/raceFirst.cjs +35 -0
  524. package/_cjs/IO/api/raceFirst.cjs.map +1 -0
  525. package/_cjs/IO/api/randomWith.cjs +40 -0
  526. package/_cjs/IO/api/randomWith.cjs.map +1 -0
  527. package/_cjs/IO/api/repeat.cjs +59 -0
  528. package/_cjs/IO/api/repeat.cjs.map +1 -0
  529. package/_cjs/IO/api/retry.cjs +56 -0
  530. package/_cjs/IO/api/retry.cjs.map +1 -0
  531. package/_cjs/IO/api/schedule.cjs +43 -0
  532. package/_cjs/IO/api/schedule.cjs.map +1 -0
  533. package/_cjs/IO/api/scope.cjs +23 -0
  534. package/_cjs/IO/api/scope.cjs.map +1 -0
  535. package/_cjs/IO/api/scopeWith.cjs +24 -0
  536. package/_cjs/IO/api/scopeWith.cjs.map +1 -0
  537. package/_cjs/IO/api/scoped.cjs +36 -0
  538. package/_cjs/IO/api/scoped.cjs.map +1 -0
  539. package/_cjs/IO/api/sequenceT.cjs +24 -0
  540. package/_cjs/IO/api/sequenceT.cjs.map +1 -0
  541. package/_cjs/IO/api/sleep.cjs +20 -0
  542. package/_cjs/IO/api/sleep.cjs.map +1 -0
  543. package/_cjs/IO/api/stateful.cjs +24 -0
  544. package/_cjs/IO/api/stateful.cjs.map +1 -0
  545. package/_cjs/IO/api/withChildren.cjs +24 -0
  546. package/_cjs/IO/api/withChildren.cjs.map +1 -0
  547. package/_cjs/IO/api/withFinalizer.cjs +20 -0
  548. package/_cjs/IO/api/withFinalizer.cjs.map +1 -0
  549. package/_cjs/IO/api/withFinalizerExit.cjs +22 -0
  550. package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -0
  551. package/_cjs/IO/api/withRuntimeConfig.cjs +27 -0
  552. package/_cjs/IO/api/withRuntimeConfig.cjs.map +1 -0
  553. package/_cjs/IO/api/zipC.cjs +22 -0
  554. package/_cjs/IO/api/zipC.cjs.map +1 -0
  555. package/_cjs/IO/api/zipWithC.cjs +40 -0
  556. package/_cjs/IO/api/zipWithC.cjs.map +1 -0
  557. package/_cjs/IO/api.cjs +2142 -0
  558. package/_cjs/IO/api.cjs.map +1 -0
  559. package/_cjs/IO/definition.cjs +558 -0
  560. package/_cjs/IO/definition.cjs.map +1 -0
  561. package/_cjs/IO/runtime.cjs +144 -0
  562. package/_cjs/IO/runtime.cjs.map +1 -0
  563. package/_cjs/IO.cjs +617 -0
  564. package/_cjs/IO.cjs.map +1 -0
  565. package/_cjs/IOEnv/definition.cjs +34 -0
  566. package/_cjs/IOEnv/definition.cjs.map +1 -0
  567. package/_cjs/IOEnv/live.cjs +31 -0
  568. package/_cjs/IOEnv/live.cjs.map +1 -0
  569. package/_cjs/IOEnv/services.cjs +21 -0
  570. package/_cjs/IOEnv/services.cjs.map +1 -0
  571. package/_cjs/IOEnv.cjs +45 -0
  572. package/_cjs/IOEnv.cjs.map +1 -0
  573. package/_cjs/InterruptStatus/constructors.cjs +36 -0
  574. package/_cjs/InterruptStatus/constructors.cjs.map +1 -0
  575. package/_cjs/InterruptStatus/definition.cjs +30 -0
  576. package/_cjs/InterruptStatus/definition.cjs.map +1 -0
  577. package/_cjs/InterruptStatus.cjs +32 -0
  578. package/_cjs/InterruptStatus.cjs.map +1 -0
  579. package/_cjs/Layer/MemoMap.cjs +215 -0
  580. package/_cjs/Layer/MemoMap.cjs.map +1 -0
  581. package/_cjs/Layer/api.cjs +426 -0
  582. package/_cjs/Layer/api.cjs.map +1 -0
  583. package/_cjs/Layer/definition.cjs +137 -0
  584. package/_cjs/Layer/definition.cjs.map +1 -0
  585. package/_cjs/Layer.cjs +45 -0
  586. package/_cjs/Layer.cjs.map +1 -0
  587. package/_cjs/LogLevel.cjs +111 -0
  588. package/_cjs/LogLevel.cjs.map +1 -0
  589. package/_cjs/LogSpan.cjs +43 -0
  590. package/_cjs/LogSpan.cjs.map +1 -0
  591. package/_cjs/Logger/api.cjs +37 -0
  592. package/_cjs/Logger/api.cjs.map +1 -0
  593. package/_cjs/Logger/constructors.cjs +80 -0
  594. package/_cjs/Logger/constructors.cjs.map +1 -0
  595. package/_cjs/Logger/definition.cjs +20 -0
  596. package/_cjs/Logger/definition.cjs.map +1 -0
  597. package/_cjs/Logger.cjs +45 -0
  598. package/_cjs/Logger.cjs.map +1 -0
  599. package/_cjs/Queue/api/dimapIO.cjs +120 -0
  600. package/_cjs/Queue/api/dimapIO.cjs.map +1 -0
  601. package/_cjs/Queue/api/filterInputIO.cjs +84 -0
  602. package/_cjs/Queue/api/filterInputIO.cjs.map +1 -0
  603. package/_cjs/Queue/api/filterOutputIO.cjs +89 -0
  604. package/_cjs/Queue/api/filterOutputIO.cjs.map +1 -0
  605. package/_cjs/Queue/api/operations.cjs +147 -0
  606. package/_cjs/Queue/api/operations.cjs.map +1 -0
  607. package/_cjs/Queue/api/poll.cjs +29 -0
  608. package/_cjs/Queue/api/poll.cjs.map +1 -0
  609. package/_cjs/Queue/api/takeBetween.cjs +59 -0
  610. package/_cjs/Queue/api/takeBetween.cjs.map +1 -0
  611. package/_cjs/Queue/api/zipWithIO.cjs +99 -0
  612. package/_cjs/Queue/api/zipWithIO.cjs.map +1 -0
  613. package/_cjs/Queue/api.cjs +97 -0
  614. package/_cjs/Queue/api.cjs.map +1 -0
  615. package/_cjs/Queue/constructors.cjs +55 -0
  616. package/_cjs/Queue/constructors.cjs.map +1 -0
  617. package/_cjs/Queue/definition.cjs +29 -0
  618. package/_cjs/Queue/definition.cjs.map +1 -0
  619. package/_cjs/Queue/internal.cjs +255 -0
  620. package/_cjs/Queue/internal.cjs.map +1 -0
  621. package/_cjs/Queue/strategy.cjs +172 -0
  622. package/_cjs/Queue/strategy.cjs.map +1 -0
  623. package/_cjs/Queue.cjs +71 -0
  624. package/_cjs/Queue.cjs.map +1 -0
  625. package/_cjs/Random/api.cjs +76 -0
  626. package/_cjs/Random/api.cjs.map +1 -0
  627. package/_cjs/Random/definition.cjs +28 -0
  628. package/_cjs/Random/definition.cjs.map +1 -0
  629. package/_cjs/Random/live.cjs +57 -0
  630. package/_cjs/Random/live.cjs.map +1 -0
  631. package/_cjs/Random.cjs +45 -0
  632. package/_cjs/Random.cjs.map +1 -0
  633. package/_cjs/Ref/Atomic/Atomic.cjs +64 -0
  634. package/_cjs/Ref/Atomic/Atomic.cjs.map +1 -0
  635. package/_cjs/Ref/Atomic/api.cjs +154 -0
  636. package/_cjs/Ref/Atomic/api.cjs.map +1 -0
  637. package/_cjs/Ref/Atomic.cjs +32 -0
  638. package/_cjs/Ref/Atomic.cjs.map +1 -0
  639. package/_cjs/Ref/Derived.cjs +55 -0
  640. package/_cjs/Ref/Derived.cjs.map +1 -0
  641. package/_cjs/Ref/DerivedAll.cjs +55 -0
  642. package/_cjs/Ref/DerivedAll.cjs.map +1 -0
  643. package/_cjs/Ref/Synchronized/api.cjs +197 -0
  644. package/_cjs/Ref/Synchronized/api.cjs.map +1 -0
  645. package/_cjs/Ref/Synchronized/constructors.cjs +38 -0
  646. package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -0
  647. package/_cjs/Ref/Synchronized/definition.cjs +88 -0
  648. package/_cjs/Ref/Synchronized/definition.cjs.map +1 -0
  649. package/_cjs/Ref/api/collect.cjs +31 -0
  650. package/_cjs/Ref/api/collect.cjs.map +1 -0
  651. package/_cjs/Ref/api/dimap.cjs +110 -0
  652. package/_cjs/Ref/api/dimap.cjs.map +1 -0
  653. package/_cjs/Ref/api/filter.cjs +45 -0
  654. package/_cjs/Ref/api/filter.cjs.map +1 -0
  655. package/_cjs/Ref/api/get.cjs +20 -0
  656. package/_cjs/Ref/api/get.cjs.map +1 -0
  657. package/_cjs/Ref/api/match.cjs +26 -0
  658. package/_cjs/Ref/api/match.cjs.map +1 -0
  659. package/_cjs/Ref/api/matchAll.cjs +24 -0
  660. package/_cjs/Ref/api/matchAll.cjs.map +1 -0
  661. package/_cjs/Ref/api/modify.cjs +240 -0
  662. package/_cjs/Ref/api/modify.cjs.map +1 -0
  663. package/_cjs/Ref/api/set.cjs +21 -0
  664. package/_cjs/Ref/api/set.cjs.map +1 -0
  665. package/_cjs/Ref/api.cjs +158 -0
  666. package/_cjs/Ref/api.cjs.map +1 -0
  667. package/_cjs/Ref/constructors.cjs +35 -0
  668. package/_cjs/Ref/constructors.cjs.map +1 -0
  669. package/_cjs/Ref/definition.cjs +23 -0
  670. package/_cjs/Ref/definition.cjs.map +1 -0
  671. package/_cjs/Ref.cjs +123 -0
  672. package/_cjs/Ref.cjs.map +1 -0
  673. package/_cjs/RuntimeConfig.cjs +55 -0
  674. package/_cjs/RuntimeConfig.cjs.map +1 -0
  675. package/_cjs/STM/api/core-api.cjs +83 -0
  676. package/_cjs/STM/api/core-api.cjs.map +1 -0
  677. package/_cjs/STM/api/core-constructors.cjs +90 -0
  678. package/_cjs/STM/api/core-constructors.cjs.map +1 -0
  679. package/_cjs/STM/api.cjs +758 -0
  680. package/_cjs/STM/api.cjs.map +1 -0
  681. package/_cjs/STM/definition.cjs +213 -0
  682. package/_cjs/STM/definition.cjs.map +1 -0
  683. package/_cjs/STM/driver.cjs +184 -0
  684. package/_cjs/STM/driver.cjs.map +1 -0
  685. package/_cjs/STM/internal/CommitState.cjs +89 -0
  686. package/_cjs/STM/internal/CommitState.cjs.map +1 -0
  687. package/_cjs/STM/internal/Entry.cjs +89 -0
  688. package/_cjs/STM/internal/Entry.cjs.map +1 -0
  689. package/_cjs/STM/internal/Journal.cjs +414 -0
  690. package/_cjs/STM/internal/Journal.cjs.map +1 -0
  691. package/_cjs/STM/internal/TryCommit.cjs +35 -0
  692. package/_cjs/STM/internal/TryCommit.cjs.map +1 -0
  693. package/_cjs/STM/internal/Versioned.cjs +19 -0
  694. package/_cjs/STM/internal/Versioned.cjs.map +1 -0
  695. package/_cjs/STM.cjs +71 -0
  696. package/_cjs/STM.cjs.map +1 -0
  697. package/_cjs/Schedule/Decision.cjs +67 -0
  698. package/_cjs/Schedule/Decision.cjs.map +1 -0
  699. package/_cjs/Schedule/Driver.cjs +32 -0
  700. package/_cjs/Schedule/Driver.cjs.map +1 -0
  701. package/_cjs/Schedule/Interval.cjs +154 -0
  702. package/_cjs/Schedule/Interval.cjs.map +1 -0
  703. package/_cjs/Schedule/api/driver.cjs +50 -0
  704. package/_cjs/Schedule/api/driver.cjs.map +1 -0
  705. package/_cjs/Schedule/api.cjs +790 -0
  706. package/_cjs/Schedule/api.cjs.map +1 -0
  707. package/_cjs/Schedule/definition.cjs +41 -0
  708. package/_cjs/Schedule/definition.cjs.map +1 -0
  709. package/_cjs/Schedule.cjs +71 -0
  710. package/_cjs/Schedule.cjs.map +1 -0
  711. package/_cjs/Scope/Finalizer/definition.cjs +24 -0
  712. package/_cjs/Scope/Finalizer/definition.cjs.map +1 -0
  713. package/_cjs/Scope/Finalizer.cjs +19 -0
  714. package/_cjs/Scope/Finalizer.cjs.map +1 -0
  715. package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +46 -0
  716. package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -0
  717. package/_cjs/Scope/ReleaseMap/api.cjs +110 -0
  718. package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -0
  719. package/_cjs/Scope/ReleaseMap/constructors.cjs +39 -0
  720. package/_cjs/Scope/ReleaseMap/constructors.cjs.map +1 -0
  721. package/_cjs/Scope/ReleaseMap/definition.cjs +39 -0
  722. package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -0
  723. package/_cjs/Scope/ReleaseMap.cjs +45 -0
  724. package/_cjs/Scope/ReleaseMap.cjs.map +1 -0
  725. package/_cjs/Scope/api.cjs +178 -0
  726. package/_cjs/Scope/api.cjs.map +1 -0
  727. package/_cjs/Scope/definition.cjs +45 -0
  728. package/_cjs/Scope/definition.cjs.map +1 -0
  729. package/_cjs/Scope.cjs +32 -0
  730. package/_cjs/Scope.cjs.map +1 -0
  731. package/_cjs/ScopedRef/api.cjs +73 -0
  732. package/_cjs/ScopedRef/api.cjs.map +1 -0
  733. package/_cjs/ScopedRef/definition.cjs +23 -0
  734. package/_cjs/ScopedRef/definition.cjs.map +1 -0
  735. package/_cjs/ScopedRef.cjs +32 -0
  736. package/_cjs/ScopedRef.cjs.map +1 -0
  737. package/_cjs/Sink/api.cjs +102 -0
  738. package/_cjs/Sink/api.cjs.map +1 -0
  739. package/_cjs/Sink/definition.cjs +25 -0
  740. package/_cjs/Sink/definition.cjs.map +1 -0
  741. package/_cjs/Sink.cjs +32 -0
  742. package/_cjs/Sink.cjs.map +1 -0
  743. package/_cjs/State/api.cjs +76 -0
  744. package/_cjs/State/api.cjs.map +1 -0
  745. package/_cjs/State/definition.cjs +30 -0
  746. package/_cjs/State/definition.cjs.map +1 -0
  747. package/_cjs/State/internal.cjs +18 -0
  748. package/_cjs/State/internal.cjs.map +1 -0
  749. package/_cjs/State.cjs +32 -0
  750. package/_cjs/State.cjs.map +1 -0
  751. package/_cjs/Stream/api/zipAllWith.cjs +127 -0
  752. package/_cjs/Stream/api/zipAllWith.cjs.map +1 -0
  753. package/_cjs/Stream/api/zipWith.cjs +22 -0
  754. package/_cjs/Stream/api/zipWith.cjs.map +1 -0
  755. package/_cjs/Stream/api/zipWithChunks.cjs +100 -0
  756. package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -0
  757. package/_cjs/Stream/api.cjs +2517 -0
  758. package/_cjs/Stream/api.cjs.map +1 -0
  759. package/_cjs/Stream/definition.cjs +55 -0
  760. package/_cjs/Stream/definition.cjs.map +1 -0
  761. package/_cjs/Stream/internal/DebounceState.cjs +99 -0
  762. package/_cjs/Stream/internal/DebounceState.cjs.map +1 -0
  763. package/_cjs/Stream/internal/Handoff.cjs +222 -0
  764. package/_cjs/Stream/internal/Handoff.cjs.map +1 -0
  765. package/_cjs/Stream/internal/Pull.cjs +89 -0
  766. package/_cjs/Stream/internal/Pull.cjs.map +1 -0
  767. package/_cjs/Stream/internal/SinkEndReason.cjs +87 -0
  768. package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -0
  769. package/_cjs/Stream/internal/Take.cjs +249 -0
  770. package/_cjs/Stream/internal/Take.cjs.map +1 -0
  771. package/_cjs/Stream/internal/util.cjs +34 -0
  772. package/_cjs/Stream/internal/util.cjs.map +1 -0
  773. package/_cjs/Stream.cjs +32 -0
  774. package/_cjs/Stream.cjs.map +1 -0
  775. package/_cjs/Supervisor/api.cjs +56 -0
  776. package/_cjs/Supervisor/api.cjs.map +1 -0
  777. package/_cjs/Supervisor/constructors.cjs +92 -0
  778. package/_cjs/Supervisor/constructors.cjs.map +1 -0
  779. package/_cjs/Supervisor/definition.cjs +89 -0
  780. package/_cjs/Supervisor/definition.cjs.map +1 -0
  781. package/_cjs/Supervisor.cjs +45 -0
  782. package/_cjs/Supervisor.cjs.map +1 -0
  783. package/_cjs/TExit/constructors.cjs +59 -0
  784. package/_cjs/TExit/constructors.cjs.map +1 -0
  785. package/_cjs/TExit/definition.cjs +214 -0
  786. package/_cjs/TExit/definition.cjs.map +1 -0
  787. package/_cjs/TExit.cjs +32 -0
  788. package/_cjs/TExit.cjs.map +1 -0
  789. package/_cjs/TFuture/api.cjs +76 -0
  790. package/_cjs/TFuture/api.cjs.map +1 -0
  791. package/_cjs/TFuture/constructors.cjs +42 -0
  792. package/_cjs/TFuture/constructors.cjs.map +1 -0
  793. package/_cjs/TFuture/definition.cjs +16 -0
  794. package/_cjs/TFuture/definition.cjs.map +1 -0
  795. package/_cjs/TFuture.cjs +45 -0
  796. package/_cjs/TFuture.cjs.map +1 -0
  797. package/_cjs/TRef/api.cjs +372 -0
  798. package/_cjs/TRef/api.cjs.map +1 -0
  799. package/_cjs/TRef/constructors.cjs +98 -0
  800. package/_cjs/TRef/constructors.cjs.map +1 -0
  801. package/_cjs/TRef/definition.cjs +101 -0
  802. package/_cjs/TRef/definition.cjs.map +1 -0
  803. package/_cjs/TRef.cjs +45 -0
  804. package/_cjs/TRef.cjs.map +1 -0
  805. package/_cjs/TSemaphore/api.cjs +104 -0
  806. package/_cjs/TSemaphore/api.cjs.map +1 -0
  807. package/_cjs/TSemaphore/constructors.cjs +34 -0
  808. package/_cjs/TSemaphore/constructors.cjs.map +1 -0
  809. package/_cjs/TSemaphore/definition.cjs +16 -0
  810. package/_cjs/TSemaphore/definition.cjs.map +1 -0
  811. package/_cjs/TSemaphore.cjs +45 -0
  812. package/_cjs/TSemaphore.cjs.map +1 -0
  813. package/_cjs/TxnId.cjs +21 -0
  814. package/_cjs/TxnId.cjs.map +1 -0
  815. package/_cjs/collection/immutable/Conc/findIO.cjs +54 -0
  816. package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -0
  817. package/_cjs/collection/immutable/Conc/mapIO.cjs +29 -0
  818. package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -0
  819. package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +53 -0
  820. package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -0
  821. package/_cjs/collection/immutable/Conc.cjs +45 -0
  822. package/_cjs/collection/immutable/Conc.cjs.map +1 -0
  823. package/_cjs/data/Exit/foreachIO.cjs +29 -0
  824. package/_cjs/data/Exit/foreachIO.cjs.map +1 -0
  825. package/_cjs/internal/HashedPair.cjs +37 -0
  826. package/_cjs/internal/HashedPair.cjs.map +1 -0
  827. package/_cjs/internal/Hub.cjs +758 -0
  828. package/_cjs/internal/Hub.cjs.map +1 -0
  829. package/_cjs/internal/MutableQueue.cjs +315 -0
  830. package/_cjs/internal/MutableQueue.cjs.map +1 -0
  831. package/_cjs/internal/Scheduler.cjs +33 -0
  832. package/_cjs/internal/Scheduler.cjs.map +1 -0
  833. package/_cjs/internal/StackTraceBuilder.cjs +36 -0
  834. package/_cjs/internal/StackTraceBuilder.cjs.map +1 -0
  835. package/_mjs/Cached/api.mjs +57 -0
  836. package/_mjs/Cached/api.mjs.map +1 -0
  837. package/_mjs/Cached/definition.mjs +22 -0
  838. package/_mjs/Cached/definition.mjs.map +1 -0
  839. package/_mjs/Cached/internal.mjs +8 -0
  840. package/_mjs/Cached/internal.mjs.map +1 -0
  841. package/_mjs/Cached.mjs +5 -0
  842. package/_mjs/Cached.mjs.map +1 -0
  843. package/_mjs/CancellerState.mjs +44 -0
  844. package/_mjs/CancellerState.mjs.map +1 -0
  845. package/_mjs/Channel/ChildExecutorDecision/api.mjs +22 -0
  846. package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -0
  847. package/_mjs/Channel/ChildExecutorDecision/definition.mjs +25 -0
  848. package/_mjs/Channel/ChildExecutorDecision/definition.mjs.map +1 -0
  849. package/_mjs/Channel/ChildExecutorDecision.mjs +4 -0
  850. package/_mjs/Channel/ChildExecutorDecision.mjs.map +1 -0
  851. package/_mjs/Channel/UpstreamPullRequest/api.mjs +34 -0
  852. package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -0
  853. package/_mjs/Channel/UpstreamPullRequest/definition.mjs +16 -0
  854. package/_mjs/Channel/UpstreamPullRequest/definition.mjs.map +1 -0
  855. package/_mjs/Channel/UpstreamPullRequest.mjs +4 -0
  856. package/_mjs/Channel/UpstreamPullRequest.mjs.map +1 -0
  857. package/_mjs/Channel/UpstreamPullStrategy/definition.mjs +21 -0
  858. package/_mjs/Channel/UpstreamPullStrategy/definition.mjs.map +1 -0
  859. package/_mjs/Channel/UpstreamPullStrategy.mjs +3 -0
  860. package/_mjs/Channel/UpstreamPullStrategy.mjs.map +1 -0
  861. package/_mjs/Channel/api/interruptWhen.mjs +35 -0
  862. package/_mjs/Channel/api/interruptWhen.mjs.map +1 -0
  863. package/_mjs/Channel/api/mapOutIOC.mjs +32 -0
  864. package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -0
  865. package/_mjs/Channel/api/mergeAll.mjs +9 -0
  866. package/_mjs/Channel/api/mergeAll.mjs.map +1 -0
  867. package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +9 -0
  868. package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -0
  869. package/_mjs/Channel/api/mergeAllWith.mjs +58 -0
  870. package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -0
  871. package/_mjs/Channel/api/mergeMap.mjs +10 -0
  872. package/_mjs/Channel/api/mergeMap.mjs.map +1 -0
  873. package/_mjs/Channel/api/mergeWith.mjs +74 -0
  874. package/_mjs/Channel/api/mergeWith.mjs.map +1 -0
  875. package/_mjs/Channel/api/run.mjs +12 -0
  876. package/_mjs/Channel/api/run.mjs.map +1 -0
  877. package/_mjs/Channel/api/runCollect.mjs +10 -0
  878. package/_mjs/Channel/api/runCollect.mjs.map +1 -0
  879. package/_mjs/Channel/api/runDrain.mjs +12 -0
  880. package/_mjs/Channel/api/runDrain.mjs.map +1 -0
  881. package/_mjs/Channel/api/runScoped.mjs +55 -0
  882. package/_mjs/Channel/api/runScoped.mjs.map +1 -0
  883. package/_mjs/Channel/api/toPull.mjs +46 -0
  884. package/_mjs/Channel/api/toPull.mjs.map +1 -0
  885. package/_mjs/Channel/api/zipC.mjs +30 -0
  886. package/_mjs/Channel/api/zipC.mjs.map +1 -0
  887. package/_mjs/Channel/api.mjs +727 -0
  888. package/_mjs/Channel/api.mjs.map +1 -0
  889. package/_mjs/Channel/core-api.mjs +123 -0
  890. package/_mjs/Channel/core-api.mjs.map +1 -0
  891. package/_mjs/Channel/definition.mjs +195 -0
  892. package/_mjs/Channel/definition.mjs.map +1 -0
  893. package/_mjs/Channel/internal/AsyncInputConsumer.mjs +2 -0
  894. package/_mjs/Channel/internal/AsyncInputConsumer.mjs.map +1 -0
  895. package/_mjs/Channel/internal/AsyncInputProducer.mjs +2 -0
  896. package/_mjs/Channel/internal/AsyncInputProducer.mjs.map +1 -0
  897. package/_mjs/Channel/internal/ChannelExecutor.mjs +913 -0
  898. package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -0
  899. package/_mjs/Channel/internal/ChannelState.mjs +67 -0
  900. package/_mjs/Channel/internal/ChannelState.mjs.map +1 -0
  901. package/_mjs/Channel/internal/MergeDecision.mjs +61 -0
  902. package/_mjs/Channel/internal/MergeDecision.mjs.map +1 -0
  903. package/_mjs/Channel/internal/MergeState.mjs +51 -0
  904. package/_mjs/Channel/internal/MergeState.mjs.map +1 -0
  905. package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +234 -0
  906. package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -0
  907. package/_mjs/Channel.mjs +5 -0
  908. package/_mjs/Channel.mjs.map +1 -0
  909. package/_mjs/Clock/api.mjs +15 -0
  910. package/_mjs/Clock/api.mjs.map +1 -0
  911. package/_mjs/Clock/definition.mjs +13 -0
  912. package/_mjs/Clock/definition.mjs.map +1 -0
  913. package/_mjs/Clock/live.mjs +30 -0
  914. package/_mjs/Clock/live.mjs.map +1 -0
  915. package/_mjs/Clock.mjs +5 -0
  916. package/_mjs/Clock.mjs.map +1 -0
  917. package/_mjs/Console/api.mjs +16 -0
  918. package/_mjs/Console/api.mjs.map +1 -0
  919. package/_mjs/Console/definition.mjs +13 -0
  920. package/_mjs/Console/definition.mjs.map +1 -0
  921. package/_mjs/Console/live.mjs +23 -0
  922. package/_mjs/Console/live.mjs.map +1 -0
  923. package/_mjs/Console.mjs +5 -0
  924. package/_mjs/Console.mjs.map +1 -0
  925. package/_mjs/Fiber/FiberContext.mjs +1141 -0
  926. package/_mjs/Fiber/FiberContext.mjs.map +1 -0
  927. package/_mjs/Fiber/api/await.mjs +8 -0
  928. package/_mjs/Fiber/api/await.mjs.map +1 -0
  929. package/_mjs/Fiber/api/awaitAll.mjs +14 -0
  930. package/_mjs/Fiber/api/awaitAll.mjs.map +1 -0
  931. package/_mjs/Fiber/api/children.mjs +8 -0
  932. package/_mjs/Fiber/api/children.mjs.map +1 -0
  933. package/_mjs/Fiber/api/collectAll.mjs +31 -0
  934. package/_mjs/Fiber/api/collectAll.mjs.map +1 -0
  935. package/_mjs/Fiber/api/evalOn.mjs +17 -0
  936. package/_mjs/Fiber/api/evalOn.mjs.map +1 -0
  937. package/_mjs/Fiber/api/evalOnIO.mjs +17 -0
  938. package/_mjs/Fiber/api/evalOnIO.mjs.map +1 -0
  939. package/_mjs/Fiber/api/fromIO.mjs +13 -0
  940. package/_mjs/Fiber/api/fromIO.mjs.map +1 -0
  941. package/_mjs/Fiber/api/id.mjs +8 -0
  942. package/_mjs/Fiber/api/id.mjs.map +1 -0
  943. package/_mjs/Fiber/api/inheritRefs.mjs +8 -0
  944. package/_mjs/Fiber/api/inheritRefs.mjs.map +1 -0
  945. package/_mjs/Fiber/api/interrupt.mjs +15 -0
  946. package/_mjs/Fiber/api/interrupt.mjs.map +1 -0
  947. package/_mjs/Fiber/api/interruptAll.mjs +25 -0
  948. package/_mjs/Fiber/api/interruptAll.mjs.map +1 -0
  949. package/_mjs/Fiber/api/interruptAs.mjs +8 -0
  950. package/_mjs/Fiber/api/interruptAs.mjs.map +1 -0
  951. package/_mjs/Fiber/api/interruptFork.mjs +15 -0
  952. package/_mjs/Fiber/api/interruptFork.mjs.map +1 -0
  953. package/_mjs/Fiber/api/join.mjs +17 -0
  954. package/_mjs/Fiber/api/join.mjs.map +1 -0
  955. package/_mjs/Fiber/api/joinAll.mjs +16 -0
  956. package/_mjs/Fiber/api/joinAll.mjs.map +1 -0
  957. package/_mjs/Fiber/api/location.mjs +10 -0
  958. package/_mjs/Fiber/api/location.mjs.map +1 -0
  959. package/_mjs/Fiber/api/mapFiber.mjs +16 -0
  960. package/_mjs/Fiber/api/mapFiber.mjs.map +1 -0
  961. package/_mjs/Fiber/api/mapIO.mjs +33 -0
  962. package/_mjs/Fiber/api/mapIO.mjs.map +1 -0
  963. package/_mjs/Fiber/api/poll.mjs +8 -0
  964. package/_mjs/Fiber/api/poll.mjs.map +1 -0
  965. package/_mjs/Fiber/api/zipWith.mjs +26 -0
  966. package/_mjs/Fiber/api/zipWith.mjs.map +1 -0
  967. package/_mjs/Fiber/constructors.mjs +45 -0
  968. package/_mjs/Fiber/constructors.mjs.map +1 -0
  969. package/_mjs/Fiber/definition.mjs +27 -0
  970. package/_mjs/Fiber/definition.mjs.map +1 -0
  971. package/_mjs/Fiber.mjs +27 -0
  972. package/_mjs/Fiber.mjs.map +1 -0
  973. package/_mjs/FiberDescriptor.mjs +17 -0
  974. package/_mjs/FiberDescriptor.mjs.map +1 -0
  975. package/_mjs/FiberRef/api/locallyScoped.mjs +12 -0
  976. package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -0
  977. package/_mjs/FiberRef/api/locallyScopedWith.mjs +11 -0
  978. package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -0
  979. package/_mjs/FiberRef/api.mjs +139 -0
  980. package/_mjs/FiberRef/api.mjs.map +1 -0
  981. package/_mjs/FiberRef/constructors.mjs +82 -0
  982. package/_mjs/FiberRef/constructors.mjs.map +1 -0
  983. package/_mjs/FiberRef/definition.mjs +50 -0
  984. package/_mjs/FiberRef/definition.mjs.map +1 -0
  985. package/_mjs/FiberRef.mjs +9 -0
  986. package/_mjs/FiberRef.mjs.map +1 -0
  987. package/_mjs/FiberRefs/api.mjs +17 -0
  988. package/_mjs/FiberRefs/api.mjs.map +1 -0
  989. package/_mjs/FiberRefs/definition.mjs +14 -0
  990. package/_mjs/FiberRefs/definition.mjs.map +1 -0
  991. package/_mjs/FiberRefs/join.mjs +90 -0
  992. package/_mjs/FiberRefs/join.mjs.map +1 -0
  993. package/_mjs/FiberRefs.mjs +5 -0
  994. package/_mjs/FiberRefs.mjs.map +1 -0
  995. package/_mjs/FiberScope/constructors.mjs +18 -0
  996. package/_mjs/FiberScope/constructors.mjs.map +1 -0
  997. package/_mjs/FiberScope/definition.mjs +41 -0
  998. package/_mjs/FiberScope/definition.mjs.map +1 -0
  999. package/_mjs/FiberScope.mjs +4 -0
  1000. package/_mjs/FiberScope.mjs.map +1 -0
  1001. package/_mjs/FiberState/api.mjs +15 -0
  1002. package/_mjs/FiberState/api.mjs.map +1 -0
  1003. package/_mjs/FiberState/constructors.mjs +26 -0
  1004. package/_mjs/FiberState/constructors.mjs.map +1 -0
  1005. package/_mjs/FiberState/definition.mjs +26 -0
  1006. package/_mjs/FiberState/definition.mjs.map +1 -0
  1007. package/_mjs/FiberState.mjs +5 -0
  1008. package/_mjs/FiberState.mjs.map +1 -0
  1009. package/_mjs/FiberStatus/constructors.mjs +28 -0
  1010. package/_mjs/FiberStatus/constructors.mjs.map +1 -0
  1011. package/_mjs/FiberStatus/definition.mjs +88 -0
  1012. package/_mjs/FiberStatus/definition.mjs.map +1 -0
  1013. package/_mjs/FiberStatus.mjs +4 -0
  1014. package/_mjs/FiberStatus.mjs.map +1 -0
  1015. package/_mjs/Future/api.mjs +249 -0
  1016. package/_mjs/Future/api.mjs.map +1 -0
  1017. package/_mjs/Future/constructors.mjs +36 -0
  1018. package/_mjs/Future/constructors.mjs.map +1 -0
  1019. package/_mjs/Future/definition.mjs +30 -0
  1020. package/_mjs/Future/definition.mjs.map +1 -0
  1021. package/_mjs/Future.mjs +5 -0
  1022. package/_mjs/Future.mjs.map +1 -0
  1023. package/_mjs/Hub/api.mjs +384 -0
  1024. package/_mjs/Hub/api.mjs.map +1 -0
  1025. package/_mjs/Hub/definition.mjs +15 -0
  1026. package/_mjs/Hub/definition.mjs.map +1 -0
  1027. package/_mjs/Hub/internal.mjs +400 -0
  1028. package/_mjs/Hub/internal.mjs.map +1 -0
  1029. package/_mjs/Hub.mjs +4 -0
  1030. package/_mjs/Hub.mjs.map +1 -0
  1031. package/_mjs/IO/api/acquireRelease.mjs +11 -0
  1032. package/_mjs/IO/api/acquireRelease.mjs.map +1 -0
  1033. package/_mjs/IO/api/acquireReleaseExit.mjs +12 -0
  1034. package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -0
  1035. package/_mjs/IO/api/acquireReleaseInterruptible.mjs +9 -0
  1036. package/_mjs/IO/api/acquireReleaseInterruptible.mjs.map +1 -0
  1037. package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +10 -0
  1038. package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -0
  1039. package/_mjs/IO/api/addFinalizer.mjs +9 -0
  1040. package/_mjs/IO/api/addFinalizer.mjs.map +1 -0
  1041. package/_mjs/IO/api/addFinalizerExit.mjs +17 -0
  1042. package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -0
  1043. package/_mjs/IO/api/bracket.mjs +29 -0
  1044. package/_mjs/IO/api/bracket.mjs.map +1 -0
  1045. package/_mjs/IO/api/bracketExit.mjs +22 -0
  1046. package/_mjs/IO/api/bracketExit.mjs.map +1 -0
  1047. package/_mjs/IO/api/clockWith.mjs +21 -0
  1048. package/_mjs/IO/api/clockWith.mjs.map +1 -0
  1049. package/_mjs/IO/api/concurrency.mjs +49 -0
  1050. package/_mjs/IO/api/concurrency.mjs.map +1 -0
  1051. package/_mjs/IO/api/concurrentFinalizers.mjs +13 -0
  1052. package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -0
  1053. package/_mjs/IO/api/consoleWith.mjs +21 -0
  1054. package/_mjs/IO/api/consoleWith.mjs.map +1 -0
  1055. package/_mjs/IO/api/core-scope.mjs +130 -0
  1056. package/_mjs/IO/api/core-scope.mjs.map +1 -0
  1057. package/_mjs/IO/api/environment.mjs +116 -0
  1058. package/_mjs/IO/api/environment.mjs.map +1 -0
  1059. package/_mjs/IO/api/foreachC.mjs +119 -0
  1060. package/_mjs/IO/api/foreachC.mjs.map +1 -0
  1061. package/_mjs/IO/api/foreachExec.mjs +18 -0
  1062. package/_mjs/IO/api/foreachExec.mjs.map +1 -0
  1063. package/_mjs/IO/api/forkAll.mjs +13 -0
  1064. package/_mjs/IO/api/forkAll.mjs.map +1 -0
  1065. package/_mjs/IO/api/forkIn.mjs +18 -0
  1066. package/_mjs/IO/api/forkIn.mjs.map +1 -0
  1067. package/_mjs/IO/api/forkScoped.mjs +15 -0
  1068. package/_mjs/IO/api/forkScoped.mjs.map +1 -0
  1069. package/_mjs/IO/api/fulfill.mjs +18 -0
  1070. package/_mjs/IO/api/fulfill.mjs.map +1 -0
  1071. package/_mjs/IO/api/interrupt.mjs +171 -0
  1072. package/_mjs/IO/api/interrupt.mjs.map +1 -0
  1073. package/_mjs/IO/api/memoize.mjs +16 -0
  1074. package/_mjs/IO/api/memoize.mjs.map +1 -0
  1075. package/_mjs/IO/api/onExit.mjs +10 -0
  1076. package/_mjs/IO/api/onExit.mjs.map +1 -0
  1077. package/_mjs/IO/api/once.mjs +11 -0
  1078. package/_mjs/IO/api/once.mjs.map +1 -0
  1079. package/_mjs/IO/api/provideLayer.mjs +14 -0
  1080. package/_mjs/IO/api/provideLayer.mjs.map +1 -0
  1081. package/_mjs/IO/api/provideSomeLayer.mjs +21 -0
  1082. package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -0
  1083. package/_mjs/IO/api/race.mjs +29 -0
  1084. package/_mjs/IO/api/race.mjs.map +1 -0
  1085. package/_mjs/IO/api/raceFirst.mjs +22 -0
  1086. package/_mjs/IO/api/raceFirst.mjs.map +1 -0
  1087. package/_mjs/IO/api/randomWith.mjs +21 -0
  1088. package/_mjs/IO/api/randomWith.mjs.map +1 -0
  1089. package/_mjs/IO/api/repeat.mjs +38 -0
  1090. package/_mjs/IO/api/repeat.mjs.map +1 -0
  1091. package/_mjs/IO/api/retry.mjs +36 -0
  1092. package/_mjs/IO/api/retry.mjs.map +1 -0
  1093. package/_mjs/IO/api/schedule.mjs +27 -0
  1094. package/_mjs/IO/api/schedule.mjs.map +1 -0
  1095. package/_mjs/IO/api/scope.mjs +9 -0
  1096. package/_mjs/IO/api/scope.mjs.map +1 -0
  1097. package/_mjs/IO/api/scopeWith.mjs +11 -0
  1098. package/_mjs/IO/api/scopeWith.mjs.map +1 -0
  1099. package/_mjs/IO/api/scoped.mjs +20 -0
  1100. package/_mjs/IO/api/scoped.mjs.map +1 -0
  1101. package/_mjs/IO/api/sequenceT.mjs +11 -0
  1102. package/_mjs/IO/api/sequenceT.mjs.map +1 -0
  1103. package/_mjs/IO/api/sleep.mjs +9 -0
  1104. package/_mjs/IO/api/sleep.mjs.map +1 -0
  1105. package/_mjs/IO/api/stateful.mjs +11 -0
  1106. package/_mjs/IO/api/stateful.mjs.map +1 -0
  1107. package/_mjs/IO/api/withChildren.mjs +11 -0
  1108. package/_mjs/IO/api/withChildren.mjs.map +1 -0
  1109. package/_mjs/IO/api/withFinalizer.mjs +9 -0
  1110. package/_mjs/IO/api/withFinalizer.mjs.map +1 -0
  1111. package/_mjs/IO/api/withFinalizerExit.mjs +10 -0
  1112. package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -0
  1113. package/_mjs/IO/api/withRuntimeConfig.mjs +14 -0
  1114. package/_mjs/IO/api/withRuntimeConfig.mjs.map +1 -0
  1115. package/_mjs/IO/api/zipC.mjs +10 -0
  1116. package/_mjs/IO/api/zipC.mjs.map +1 -0
  1117. package/_mjs/IO/api/zipWithC.mjs +23 -0
  1118. package/_mjs/IO/api/zipWithC.mjs.map +1 -0
  1119. package/_mjs/IO/api.mjs +1804 -0
  1120. package/_mjs/IO/api.mjs.map +1 -0
  1121. package/_mjs/IO/definition.mjs +444 -0
  1122. package/_mjs/IO/definition.mjs.map +1 -0
  1123. package/_mjs/IO/runtime.mjs +97 -0
  1124. package/_mjs/IO/runtime.mjs.map +1 -0
  1125. package/_mjs/IO.mjs +51 -0
  1126. package/_mjs/IO.mjs.map +1 -0
  1127. package/_mjs/IOEnv/definition.mjs +14 -0
  1128. package/_mjs/IOEnv/definition.mjs.map +1 -0
  1129. package/_mjs/IOEnv/live.mjs +13 -0
  1130. package/_mjs/IOEnv/live.mjs.map +1 -0
  1131. package/_mjs/IOEnv/services.mjs +8 -0
  1132. package/_mjs/IOEnv/services.mjs.map +1 -0
  1133. package/_mjs/IOEnv.mjs +5 -0
  1134. package/_mjs/IOEnv.mjs.map +1 -0
  1135. package/_mjs/InterruptStatus/constructors.mjs +21 -0
  1136. package/_mjs/InterruptStatus/constructors.mjs.map +1 -0
  1137. package/_mjs/InterruptStatus/definition.mjs +21 -0
  1138. package/_mjs/InterruptStatus/definition.mjs.map +1 -0
  1139. package/_mjs/InterruptStatus.mjs +4 -0
  1140. package/_mjs/InterruptStatus.mjs.map +1 -0
  1141. package/_mjs/Layer/MemoMap.mjs +171 -0
  1142. package/_mjs/Layer/MemoMap.mjs.map +1 -0
  1143. package/_mjs/Layer/api.mjs +338 -0
  1144. package/_mjs/Layer/api.mjs.map +1 -0
  1145. package/_mjs/Layer/definition.mjs +104 -0
  1146. package/_mjs/Layer/definition.mjs.map +1 -0
  1147. package/_mjs/Layer.mjs +5 -0
  1148. package/_mjs/Layer.mjs.map +1 -0
  1149. package/_mjs/LogLevel.mjs +85 -0
  1150. package/_mjs/LogLevel.mjs.map +1 -0
  1151. package/_mjs/LogSpan.mjs +32 -0
  1152. package/_mjs/LogSpan.mjs.map +1 -0
  1153. package/_mjs/Logger/api.mjs +23 -0
  1154. package/_mjs/Logger/api.mjs.map +1 -0
  1155. package/_mjs/Logger/constructors.mjs +63 -0
  1156. package/_mjs/Logger/constructors.mjs.map +1 -0
  1157. package/_mjs/Logger/definition.mjs +11 -0
  1158. package/_mjs/Logger/definition.mjs.map +1 -0
  1159. package/_mjs/Logger.mjs +5 -0
  1160. package/_mjs/Logger.mjs.map +1 -0
  1161. package/_mjs/Queue/api/dimapIO.mjs +97 -0
  1162. package/_mjs/Queue/api/dimapIO.mjs.map +1 -0
  1163. package/_mjs/Queue/api/filterInputIO.mjs +63 -0
  1164. package/_mjs/Queue/api/filterInputIO.mjs.map +1 -0
  1165. package/_mjs/Queue/api/filterOutputIO.mjs +68 -0
  1166. package/_mjs/Queue/api/filterOutputIO.mjs.map +1 -0
  1167. package/_mjs/Queue/api/operations.mjs +122 -0
  1168. package/_mjs/Queue/api/operations.mjs.map +1 -0
  1169. package/_mjs/Queue/api/poll.mjs +15 -0
  1170. package/_mjs/Queue/api/poll.mjs.map +1 -0
  1171. package/_mjs/Queue/api/takeBetween.mjs +44 -0
  1172. package/_mjs/Queue/api/takeBetween.mjs.map +1 -0
  1173. package/_mjs/Queue/api/zipWithIO.mjs +75 -0
  1174. package/_mjs/Queue/api/zipWithIO.mjs.map +1 -0
  1175. package/_mjs/Queue/api.mjs +9 -0
  1176. package/_mjs/Queue/api.mjs.map +1 -0
  1177. package/_mjs/Queue/constructors.mjs +34 -0
  1178. package/_mjs/Queue/constructors.mjs.map +1 -0
  1179. package/_mjs/Queue/definition.mjs +17 -0
  1180. package/_mjs/Queue/definition.mjs.map +1 -0
  1181. package/_mjs/Queue/internal.mjs +224 -0
  1182. package/_mjs/Queue/internal.mjs.map +1 -0
  1183. package/_mjs/Queue/strategy.mjs +147 -0
  1184. package/_mjs/Queue/strategy.mjs.map +1 -0
  1185. package/_mjs/Queue.mjs +7 -0
  1186. package/_mjs/Queue.mjs.map +1 -0
  1187. package/_mjs/Random/api.mjs +52 -0
  1188. package/_mjs/Random/api.mjs.map +1 -0
  1189. package/_mjs/Random/definition.mjs +13 -0
  1190. package/_mjs/Random/definition.mjs.map +1 -0
  1191. package/_mjs/Random/live.mjs +40 -0
  1192. package/_mjs/Random/live.mjs.map +1 -0
  1193. package/_mjs/Random.mjs +5 -0
  1194. package/_mjs/Random.mjs.map +1 -0
  1195. package/_mjs/Ref/Atomic/Atomic.mjs +47 -0
  1196. package/_mjs/Ref/Atomic/Atomic.mjs.map +1 -0
  1197. package/_mjs/Ref/Atomic/api.mjs +124 -0
  1198. package/_mjs/Ref/Atomic/api.mjs.map +1 -0
  1199. package/_mjs/Ref/Atomic.mjs +4 -0
  1200. package/_mjs/Ref/Atomic.mjs.map +1 -0
  1201. package/_mjs/Ref/Derived.mjs +35 -0
  1202. package/_mjs/Ref/Derived.mjs.map +1 -0
  1203. package/_mjs/Ref/DerivedAll.mjs +35 -0
  1204. package/_mjs/Ref/DerivedAll.mjs.map +1 -0
  1205. package/_mjs/Ref/Synchronized/api.mjs +155 -0
  1206. package/_mjs/Ref/Synchronized/api.mjs.map +1 -0
  1207. package/_mjs/Ref/Synchronized/constructors.mjs +20 -0
  1208. package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -0
  1209. package/_mjs/Ref/Synchronized/definition.mjs +66 -0
  1210. package/_mjs/Ref/Synchronized/definition.mjs.map +1 -0
  1211. package/_mjs/Ref/api/collect.mjs +17 -0
  1212. package/_mjs/Ref/api/collect.mjs.map +1 -0
  1213. package/_mjs/Ref/api/dimap.mjs +84 -0
  1214. package/_mjs/Ref/api/dimap.mjs.map +1 -0
  1215. package/_mjs/Ref/api/filter.mjs +29 -0
  1216. package/_mjs/Ref/api/filter.mjs.map +1 -0
  1217. package/_mjs/Ref/api/get.mjs +13 -0
  1218. package/_mjs/Ref/api/get.mjs.map +1 -0
  1219. package/_mjs/Ref/api/match.mjs +18 -0
  1220. package/_mjs/Ref/api/match.mjs.map +1 -0
  1221. package/_mjs/Ref/api/matchAll.mjs +16 -0
  1222. package/_mjs/Ref/api/matchAll.mjs.map +1 -0
  1223. package/_mjs/Ref/api/modify.mjs +205 -0
  1224. package/_mjs/Ref/api/modify.mjs.map +1 -0
  1225. package/_mjs/Ref/api/set.mjs +14 -0
  1226. package/_mjs/Ref/api/set.mjs.map +1 -0
  1227. package/_mjs/Ref/api.mjs +34 -0
  1228. package/_mjs/Ref/api.mjs.map +1 -0
  1229. package/_mjs/Ref/constructors.mjs +19 -0
  1230. package/_mjs/Ref/constructors.mjs.map +1 -0
  1231. package/_mjs/Ref/definition.mjs +10 -0
  1232. package/_mjs/Ref/definition.mjs.map +1 -0
  1233. package/_mjs/Ref.mjs +13 -0
  1234. package/_mjs/Ref.mjs.map +1 -0
  1235. package/_mjs/RuntimeConfig.mjs +34 -0
  1236. package/_mjs/RuntimeConfig.mjs.map +1 -0
  1237. package/_mjs/STM/api/core-api.mjs +61 -0
  1238. package/_mjs/STM/api/core-api.mjs.map +1 -0
  1239. package/_mjs/STM/api/core-constructors.mjs +68 -0
  1240. package/_mjs/STM/api/core-constructors.mjs.map +1 -0
  1241. package/_mjs/STM/api.mjs +633 -0
  1242. package/_mjs/STM/api.mjs.map +1 -0
  1243. package/_mjs/STM/definition.mjs +148 -0
  1244. package/_mjs/STM/definition.mjs.map +1 -0
  1245. package/_mjs/STM/driver.mjs +166 -0
  1246. package/_mjs/STM/driver.mjs.map +1 -0
  1247. package/_mjs/STM/internal/CommitState.mjs +68 -0
  1248. package/_mjs/STM/internal/CommitState.mjs.map +1 -0
  1249. package/_mjs/STM/internal/Entry.mjs +70 -0
  1250. package/_mjs/STM/internal/Entry.mjs.map +1 -0
  1251. package/_mjs/STM/internal/Journal.mjs +377 -0
  1252. package/_mjs/STM/internal/Journal.mjs.map +1 -0
  1253. package/_mjs/STM/internal/TryCommit.mjs +22 -0
  1254. package/_mjs/STM/internal/TryCommit.mjs.map +1 -0
  1255. package/_mjs/STM/internal/Versioned.mjs +9 -0
  1256. package/_mjs/STM/internal/Versioned.mjs.map +1 -0
  1257. package/_mjs/STM.mjs +9 -0
  1258. package/_mjs/STM.mjs.map +1 -0
  1259. package/_mjs/Schedule/Decision.mjs +48 -0
  1260. package/_mjs/Schedule/Decision.mjs.map +1 -0
  1261. package/_mjs/Schedule/Driver.mjs +21 -0
  1262. package/_mjs/Schedule/Driver.mjs.map +1 -0
  1263. package/_mjs/Schedule/Interval.mjs +114 -0
  1264. package/_mjs/Schedule/Interval.mjs.map +1 -0
  1265. package/_mjs/Schedule/api/driver.mjs +30 -0
  1266. package/_mjs/Schedule/api/driver.mjs.map +1 -0
  1267. package/_mjs/Schedule/api.mjs +642 -0
  1268. package/_mjs/Schedule/api.mjs.map +1 -0
  1269. package/_mjs/Schedule/definition.mjs +32 -0
  1270. package/_mjs/Schedule/definition.mjs.map +1 -0
  1271. package/_mjs/Schedule.mjs +7 -0
  1272. package/_mjs/Schedule.mjs.map +1 -0
  1273. package/_mjs/Scope/Finalizer/definition.mjs +9 -0
  1274. package/_mjs/Scope/Finalizer/definition.mjs.map +1 -0
  1275. package/_mjs/Scope/Finalizer.mjs +3 -0
  1276. package/_mjs/Scope/Finalizer.mjs.map +1 -0
  1277. package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +26 -0
  1278. package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -0
  1279. package/_mjs/Scope/ReleaseMap/api.mjs +84 -0
  1280. package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -0
  1281. package/_mjs/Scope/ReleaseMap/constructors.mjs +21 -0
  1282. package/_mjs/Scope/ReleaseMap/constructors.mjs.map +1 -0
  1283. package/_mjs/Scope/ReleaseMap/definition.mjs +21 -0
  1284. package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -0
  1285. package/_mjs/Scope/ReleaseMap.mjs +5 -0
  1286. package/_mjs/Scope/ReleaseMap.mjs.map +1 -0
  1287. package/_mjs/Scope/api.mjs +140 -0
  1288. package/_mjs/Scope/api.mjs.map +1 -0
  1289. package/_mjs/Scope/definition.mjs +25 -0
  1290. package/_mjs/Scope/definition.mjs.map +1 -0
  1291. package/_mjs/Scope.mjs +4 -0
  1292. package/_mjs/Scope.mjs.map +1 -0
  1293. package/_mjs/ScopedRef/api.mjs +50 -0
  1294. package/_mjs/ScopedRef/api.mjs.map +1 -0
  1295. package/_mjs/ScopedRef/definition.mjs +13 -0
  1296. package/_mjs/ScopedRef/definition.mjs.map +1 -0
  1297. package/_mjs/ScopedRef.mjs +4 -0
  1298. package/_mjs/ScopedRef.mjs.map +1 -0
  1299. package/_mjs/Sink/api.mjs +76 -0
  1300. package/_mjs/Sink/api.mjs.map +1 -0
  1301. package/_mjs/Sink/definition.mjs +16 -0
  1302. package/_mjs/Sink/definition.mjs.map +1 -0
  1303. package/_mjs/Sink.mjs +4 -0
  1304. package/_mjs/Sink.mjs.map +1 -0
  1305. package/_mjs/State/api.mjs +53 -0
  1306. package/_mjs/State/api.mjs.map +1 -0
  1307. package/_mjs/State/definition.mjs +19 -0
  1308. package/_mjs/State/definition.mjs.map +1 -0
  1309. package/_mjs/State/internal.mjs +8 -0
  1310. package/_mjs/State/internal.mjs.map +1 -0
  1311. package/_mjs/State.mjs +4 -0
  1312. package/_mjs/State.mjs.map +1 -0
  1313. package/_mjs/Stream/api/zipAllWith.mjs +106 -0
  1314. package/_mjs/Stream/api/zipAllWith.mjs.map +1 -0
  1315. package/_mjs/Stream/api/zipWith.mjs +10 -0
  1316. package/_mjs/Stream/api/zipWith.mjs.map +1 -0
  1317. package/_mjs/Stream/api/zipWithChunks.mjs +83 -0
  1318. package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -0
  1319. package/_mjs/Stream/api.mjs +2178 -0
  1320. package/_mjs/Stream/api.mjs.map +1 -0
  1321. package/_mjs/Stream/definition.mjs +41 -0
  1322. package/_mjs/Stream/definition.mjs.map +1 -0
  1323. package/_mjs/Stream/internal/DebounceState.mjs +72 -0
  1324. package/_mjs/Stream/internal/DebounceState.mjs.map +1 -0
  1325. package/_mjs/Stream/internal/Handoff.mjs +162 -0
  1326. package/_mjs/Stream/internal/Handoff.mjs.map +1 -0
  1327. package/_mjs/Stream/internal/Pull.mjs +56 -0
  1328. package/_mjs/Stream/internal/Pull.mjs.map +1 -0
  1329. package/_mjs/Stream/internal/SinkEndReason.mjs +66 -0
  1330. package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -0
  1331. package/_mjs/Stream/internal/Take.mjs +191 -0
  1332. package/_mjs/Stream/internal/Take.mjs.map +1 -0
  1333. package/_mjs/Stream/internal/util.mjs +19 -0
  1334. package/_mjs/Stream/internal/util.mjs.map +1 -0
  1335. package/_mjs/Stream.mjs +4 -0
  1336. package/_mjs/Stream.mjs.map +1 -0
  1337. package/_mjs/Supervisor/api.mjs +44 -0
  1338. package/_mjs/Supervisor/api.mjs.map +1 -0
  1339. package/_mjs/Supervisor/constructors.mjs +69 -0
  1340. package/_mjs/Supervisor/constructors.mjs.map +1 -0
  1341. package/_mjs/Supervisor/definition.mjs +74 -0
  1342. package/_mjs/Supervisor/definition.mjs.map +1 -0
  1343. package/_mjs/Supervisor.mjs +5 -0
  1344. package/_mjs/Supervisor.mjs.map +1 -0
  1345. package/_mjs/TExit/constructors.mjs +40 -0
  1346. package/_mjs/TExit/constructors.mjs.map +1 -0
  1347. package/_mjs/TExit/definition.mjs +173 -0
  1348. package/_mjs/TExit/definition.mjs.map +1 -0
  1349. package/_mjs/TExit.mjs +4 -0
  1350. package/_mjs/TExit.mjs.map +1 -0
  1351. package/_mjs/TFuture/api.mjs +47 -0
  1352. package/_mjs/TFuture/api.mjs.map +1 -0
  1353. package/_mjs/TFuture/constructors.mjs +23 -0
  1354. package/_mjs/TFuture/constructors.mjs.map +1 -0
  1355. package/_mjs/TFuture/definition.mjs +3 -0
  1356. package/_mjs/TFuture/definition.mjs.map +1 -0
  1357. package/_mjs/TFuture.mjs +5 -0
  1358. package/_mjs/TFuture.mjs.map +1 -0
  1359. package/_mjs/TRef/api.mjs +327 -0
  1360. package/_mjs/TRef/api.mjs.map +1 -0
  1361. package/_mjs/TRef/constructors.mjs +72 -0
  1362. package/_mjs/TRef/constructors.mjs.map +1 -0
  1363. package/_mjs/TRef/definition.mjs +71 -0
  1364. package/_mjs/TRef/definition.mjs.map +1 -0
  1365. package/_mjs/TRef.mjs +5 -0
  1366. package/_mjs/TRef.mjs.map +1 -0
  1367. package/_mjs/TSemaphore/api.mjs +74 -0
  1368. package/_mjs/TSemaphore/api.mjs.map +1 -0
  1369. package/_mjs/TSemaphore/constructors.mjs +19 -0
  1370. package/_mjs/TSemaphore/constructors.mjs.map +1 -0
  1371. package/_mjs/TSemaphore/definition.mjs +3 -0
  1372. package/_mjs/TSemaphore/definition.mjs.map +1 -0
  1373. package/_mjs/TSemaphore.mjs +5 -0
  1374. package/_mjs/TSemaphore.mjs.map +1 -0
  1375. package/_mjs/TxnId.mjs +11 -0
  1376. package/_mjs/TxnId.mjs.map +1 -0
  1377. package/_mjs/collection/immutable/Conc/findIO.mjs +40 -0
  1378. package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -0
  1379. package/_mjs/collection/immutable/Conc/mapIO.mjs +16 -0
  1380. package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -0
  1381. package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +39 -0
  1382. package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -0
  1383. package/_mjs/collection/immutable/Conc.mjs +5 -0
  1384. package/_mjs/collection/immutable/Conc.mjs.map +1 -0
  1385. package/_mjs/data/Exit/foreachIO.mjs +15 -0
  1386. package/_mjs/data/Exit/foreachIO.mjs.map +1 -0
  1387. package/_mjs/internal/HashedPair.mjs +20 -0
  1388. package/_mjs/internal/HashedPair.mjs.map +1 -0
  1389. package/_mjs/internal/Hub.mjs +723 -0
  1390. package/_mjs/internal/Hub.mjs.map +1 -0
  1391. package/_mjs/internal/MutableQueue.mjs +276 -0
  1392. package/_mjs/internal/MutableQueue.mjs.map +1 -0
  1393. package/_mjs/internal/Scheduler.mjs +18 -0
  1394. package/_mjs/internal/Scheduler.mjs.map +1 -0
  1395. package/_mjs/internal/StackTraceBuilder.mjs +21 -0
  1396. package/_mjs/internal/StackTraceBuilder.mjs.map +1 -0
  1397. package/_src/Cached/api.ts +54 -0
  1398. package/_src/Cached/definition.ts +23 -0
  1399. package/_src/Cached/internal.ts +10 -0
  1400. package/_src/Cached.ts +5 -0
  1401. package/_src/CancellerState.ts +47 -0
  1402. package/_src/Channel/ChildExecutorDecision/api.ts +23 -0
  1403. package/_src/Channel/ChildExecutorDecision/definition.ts +48 -0
  1404. package/_src/Channel/ChildExecutorDecision.ts +4 -0
  1405. package/_src/Channel/UpstreamPullRequest/api.ts +36 -0
  1406. package/_src/Channel/UpstreamPullRequest/definition.ts +21 -0
  1407. package/_src/Channel/UpstreamPullRequest.ts +4 -0
  1408. package/_src/Channel/UpstreamPullStrategy/definition.ts +38 -0
  1409. package/_src/Channel/UpstreamPullStrategy.ts +3 -0
  1410. package/_src/Channel/api/interruptWhen.ts +37 -0
  1411. package/_src/Channel/api/mapOutIOC.ts +63 -0
  1412. package/_src/Channel/api/mergeAll.ts +21 -0
  1413. package/_src/Channel/api/mergeAllUnboundedWith.ts +30 -0
  1414. package/_src/Channel/api/mergeAllWith.ts +141 -0
  1415. package/_src/Channel/api/mergeMap.ts +27 -0
  1416. package/_src/Channel/api/mergeWith.ts +200 -0
  1417. package/_src/Channel/api/run.ts +10 -0
  1418. package/_src/Channel/api/runCollect.ts +8 -0
  1419. package/_src/Channel/api/runDrain.ts +10 -0
  1420. package/_src/Channel/api/runScoped.ts +45 -0
  1421. package/_src/Channel/api/toPull.ts +38 -0
  1422. package/_src/Channel/api/zipC.ts +104 -0
  1423. package/_src/Channel/api.ts +1258 -0
  1424. package/_src/Channel/core-api.ts +230 -0
  1425. package/_src/Channel/definition.ts +322 -0
  1426. package/_src/Channel/internal/AsyncInputConsumer.ts +6 -0
  1427. package/_src/Channel/internal/AsyncInputProducer.ts +6 -0
  1428. package/_src/Channel/internal/ChannelExecutor.ts +1078 -0
  1429. package/_src/Channel/internal/ChannelState.ts +61 -0
  1430. package/_src/Channel/internal/MergeDecision.ts +65 -0
  1431. package/_src/Channel/internal/MergeState.ts +63 -0
  1432. package/_src/Channel/internal/SingleProducerAsyncInput.ts +186 -0
  1433. package/_src/Channel.ts +5 -0
  1434. package/_src/Clock/api.ts +11 -0
  1435. package/_src/Clock/definition.ts +13 -0
  1436. package/_src/Clock/live.ts +21 -0
  1437. package/_src/Clock.ts +5 -0
  1438. package/_src/Console/api.ts +13 -0
  1439. package/_src/Console/definition.ts +14 -0
  1440. package/_src/Console/live.ts +18 -0
  1441. package/_src/Console.ts +5 -0
  1442. package/_src/Fiber/FiberContext.ts +1101 -0
  1443. package/_src/Fiber/api/await.ts +7 -0
  1444. package/_src/Fiber/api/awaitAll.ts +8 -0
  1445. package/_src/Fiber/api/children.ts +7 -0
  1446. package/_src/Fiber/api/collectAll.ts +32 -0
  1447. package/_src/Fiber/api/evalOn.ts +12 -0
  1448. package/_src/Fiber/api/evalOnIO.ts +18 -0
  1449. package/_src/Fiber/api/fromIO.ts +8 -0
  1450. package/_src/Fiber/api/id.ts +7 -0
  1451. package/_src/Fiber/api/inheritRefs.ts +7 -0
  1452. package/_src/Fiber/api/interrupt.ts +11 -0
  1453. package/_src/Fiber/api/interruptAll.ts +17 -0
  1454. package/_src/Fiber/api/interruptAs.ts +7 -0
  1455. package/_src/Fiber/api/interruptFork.ts +10 -0
  1456. package/_src/Fiber/api/join.ts +13 -0
  1457. package/_src/Fiber/api/joinAll.ts +12 -0
  1458. package/_src/Fiber/api/location.ts +7 -0
  1459. package/_src/Fiber/api/mapFiber.ts +9 -0
  1460. package/_src/Fiber/api/mapIO.ts +31 -0
  1461. package/_src/Fiber/api/poll.ts +7 -0
  1462. package/_src/Fiber/api/zipWith.ts +25 -0
  1463. package/_src/Fiber/constructors.ts +43 -0
  1464. package/_src/Fiber/definition.ts +128 -0
  1465. package/_src/Fiber.ts +28 -0
  1466. package/_src/FiberDescriptor.ts +19 -0
  1467. package/_src/FiberRef/api/locallyScoped.ts +9 -0
  1468. package/_src/FiberRef/api/locallyScopedWith.ts +6 -0
  1469. package/_src/FiberRef/api.ts +135 -0
  1470. package/_src/FiberRef/constructors.ts +98 -0
  1471. package/_src/FiberRef/definition.ts +64 -0
  1472. package/_src/FiberRef.ts +10 -0
  1473. package/_src/FiberRefs/api.ts +15 -0
  1474. package/_src/FiberRefs/definition.ts +11 -0
  1475. package/_src/FiberRefs/join.ts +67 -0
  1476. package/_src/FiberRefs.ts +5 -0
  1477. package/_src/FiberScope/constructors.ts +19 -0
  1478. package/_src/FiberScope/definition.ts +38 -0
  1479. package/_src/FiberScope.ts +4 -0
  1480. package/_src/FiberState/api.ts +12 -0
  1481. package/_src/FiberState/constructors.ts +33 -0
  1482. package/_src/FiberState/definition.ts +44 -0
  1483. package/_src/FiberState.ts +5 -0
  1484. package/_src/FiberStatus/constructors.ts +35 -0
  1485. package/_src/FiberStatus/definition.ts +87 -0
  1486. package/_src/FiberStatus.ts +4 -0
  1487. package/_src/Future/api.ts +204 -0
  1488. package/_src/Future/constructors.ts +28 -0
  1489. package/_src/Future/definition.ts +24 -0
  1490. package/_src/Future.ts +5 -0
  1491. package/_src/Hub/api.ts +434 -0
  1492. package/_src/Hub/definition.ts +102 -0
  1493. package/_src/Hub/internal.ts +493 -0
  1494. package/_src/Hub.ts +4 -0
  1495. package/_src/IO/api/acquireRelease.ts +10 -0
  1496. package/_src/IO/api/acquireReleaseExit.ts +11 -0
  1497. package/_src/IO/api/acquireReleaseInterruptible.ts +10 -0
  1498. package/_src/IO/api/acquireReleaseInterruptibleExit.ts +10 -0
  1499. package/_src/IO/api/addFinalizer.ts +9 -0
  1500. package/_src/IO/api/addFinalizerExit.ts +12 -0
  1501. package/_src/IO/api/bracket.ts +30 -0
  1502. package/_src/IO/api/bracketExit.ts +32 -0
  1503. package/_src/IO/api/clockWith.ts +11 -0
  1504. package/_src/IO/api/concurrency.ts +42 -0
  1505. package/_src/IO/api/concurrentFinalizers.ts +11 -0
  1506. package/_src/IO/api/consoleWith.ts +13 -0
  1507. package/_src/IO/api/core-scope.ts +138 -0
  1508. package/_src/IO/api/environment.ts +126 -0
  1509. package/_src/IO/api/foreachC.ts +178 -0
  1510. package/_src/IO/api/foreachExec.ts +19 -0
  1511. package/_src/IO/api/forkAll.ts +9 -0
  1512. package/_src/IO/api/forkIn.ts +15 -0
  1513. package/_src/IO/api/forkScoped.ts +11 -0
  1514. package/_src/IO/api/fulfill.ts +10 -0
  1515. package/_src/IO/api/interrupt.ts +169 -0
  1516. package/_src/IO/api/memoize.ts +10 -0
  1517. package/_src/IO/api/onExit.ts +12 -0
  1518. package/_src/IO/api/once.ts +6 -0
  1519. package/_src/IO/api/provideLayer.ts +12 -0
  1520. package/_src/IO/api/provideSomeLayer.ts +23 -0
  1521. package/_src/IO/api/race.ts +32 -0
  1522. package/_src/IO/api/raceFirst.ts +17 -0
  1523. package/_src/IO/api/randomWith.ts +11 -0
  1524. package/_src/IO/api/repeat.ts +49 -0
  1525. package/_src/IO/api/retry.ts +42 -0
  1526. package/_src/IO/api/schedule.ts +31 -0
  1527. package/_src/IO/api/scope.ts +4 -0
  1528. package/_src/IO/api/scopeWith.ts +6 -0
  1529. package/_src/IO/api/scoped.ts +13 -0
  1530. package/_src/IO/api/sequenceT.ts +12 -0
  1531. package/_src/IO/api/sleep.ts +6 -0
  1532. package/_src/IO/api/stateful.ts +15 -0
  1533. package/_src/IO/api/withChildren.ts +13 -0
  1534. package/_src/IO/api/withFinalizer.ts +9 -0
  1535. package/_src/IO/api/withFinalizerExit.ts +9 -0
  1536. package/_src/IO/api/withRuntimeConfig.ts +16 -0
  1537. package/_src/IO/api/zipC.ts +8 -0
  1538. package/_src/IO/api/zipWithC.ts +41 -0
  1539. package/_src/IO/api.ts +2126 -0
  1540. package/_src/IO/definition.ts +429 -0
  1541. package/_src/IO/runtime.ts +99 -0
  1542. package/_src/IO.ts +52 -0
  1543. package/_src/IOEnv/definition.ts +20 -0
  1544. package/_src/IOEnv/live.ts +8 -0
  1545. package/_src/IOEnv/services.ts +10 -0
  1546. package/_src/IOEnv.ts +5 -0
  1547. package/_src/InterruptStatus/constructors.ts +16 -0
  1548. package/_src/InterruptStatus/definition.ts +17 -0
  1549. package/_src/InterruptStatus.ts +4 -0
  1550. package/_src/Layer/MemoMap.ts +170 -0
  1551. package/_src/Layer/api.ts +378 -0
  1552. package/_src/Layer/definition.ts +111 -0
  1553. package/_src/Layer.ts +5 -0
  1554. package/_src/LogLevel.ts +79 -0
  1555. package/_src/LogSpan.ts +27 -0
  1556. package/_src/Logger/api.ts +24 -0
  1557. package/_src/Logger/constructors.ts +59 -0
  1558. package/_src/Logger/definition.ts +22 -0
  1559. package/_src/Logger.ts +5 -0
  1560. package/_src/Queue/api/dimapIO.ts +120 -0
  1561. package/_src/Queue/api/filterInputIO.ts +73 -0
  1562. package/_src/Queue/api/filterOutputIO.ts +74 -0
  1563. package/_src/Queue/api/operations.ts +121 -0
  1564. package/_src/Queue/api/poll.ts +11 -0
  1565. package/_src/Queue/api/takeBetween.ts +40 -0
  1566. package/_src/Queue/api/zipWithIO.ts +96 -0
  1567. package/_src/Queue/api.ts +9 -0
  1568. package/_src/Queue/constructors.ts +33 -0
  1569. package/_src/Queue/definition.ts +134 -0
  1570. package/_src/Queue/internal.ts +240 -0
  1571. package/_src/Queue/strategy.ts +177 -0
  1572. package/_src/Queue.ts +7 -0
  1573. package/_src/Random/api.ts +51 -0
  1574. package/_src/Random/definition.ts +21 -0
  1575. package/_src/Random/live.ts +36 -0
  1576. package/_src/Random.ts +5 -0
  1577. package/_src/Ref/Atomic/Atomic.ts +56 -0
  1578. package/_src/Ref/Atomic/api.ts +120 -0
  1579. package/_src/Ref/Atomic.ts +4 -0
  1580. package/_src/Ref/Derived.ts +71 -0
  1581. package/_src/Ref/DerivedAll.ts +75 -0
  1582. package/_src/Ref/Synchronized/api.ts +234 -0
  1583. package/_src/Ref/Synchronized/constructors.ts +12 -0
  1584. package/_src/Ref/Synchronized/definition.ts +126 -0
  1585. package/_src/Ref/api/collect.ts +18 -0
  1586. package/_src/Ref/api/dimap.ts +108 -0
  1587. package/_src/Ref/api/filter.ts +33 -0
  1588. package/_src/Ref/api/get.ts +14 -0
  1589. package/_src/Ref/api/match.ts +24 -0
  1590. package/_src/Ref/api/matchAll.ts +23 -0
  1591. package/_src/Ref/api/modify.ts +225 -0
  1592. package/_src/Ref/api/set.ts +15 -0
  1593. package/_src/Ref/api.ts +39 -0
  1594. package/_src/Ref/constructors.ts +15 -0
  1595. package/_src/Ref/definition.ts +104 -0
  1596. package/_src/Ref.ts +14 -0
  1597. package/_src/RuntimeConfig.ts +37 -0
  1598. package/_src/STM/api/core-api.ts +60 -0
  1599. package/_src/STM/api/core-constructors.ts +65 -0
  1600. package/_src/STM/api.ts +685 -0
  1601. package/_src/STM/definition.ts +155 -0
  1602. package/_src/STM/driver.ts +131 -0
  1603. package/_src/STM/internal/CommitState.ts +75 -0
  1604. package/_src/STM/internal/Entry.ts +76 -0
  1605. package/_src/STM/internal/Journal.ts +341 -0
  1606. package/_src/STM/internal/TryCommit.ts +23 -0
  1607. package/_src/STM/internal/Versioned.ts +7 -0
  1608. package/_src/STM.ts +10 -0
  1609. package/_src/Schedule/Decision.ts +51 -0
  1610. package/_src/Schedule/Driver.ts +24 -0
  1611. package/_src/Schedule/Interval.ts +103 -0
  1612. package/_src/Schedule/api/driver.ts +38 -0
  1613. package/_src/Schedule/api.ts +887 -0
  1614. package/_src/Schedule/definition.ts +60 -0
  1615. package/_src/Schedule.ts +7 -0
  1616. package/_src/Scope/Finalizer/definition.ts +26 -0
  1617. package/_src/Scope/Finalizer.ts +3 -0
  1618. package/_src/Scope/ReleaseMap/api/releaseAll.ts +28 -0
  1619. package/_src/Scope/ReleaseMap/api.ts +86 -0
  1620. package/_src/Scope/ReleaseMap/constructors.ts +17 -0
  1621. package/_src/Scope/ReleaseMap/definition.ts +37 -0
  1622. package/_src/Scope/ReleaseMap.ts +5 -0
  1623. package/_src/Scope/api.ts +117 -0
  1624. package/_src/Scope/definition.ts +31 -0
  1625. package/_src/Scope.ts +4 -0
  1626. package/_src/ScopedRef/api.ts +50 -0
  1627. package/_src/ScopedRef/definition.ts +13 -0
  1628. package/_src/ScopedRef.ts +4 -0
  1629. package/_src/Sink/api.ts +88 -0
  1630. package/_src/Sink/definition.ts +12 -0
  1631. package/_src/Sink.ts +4 -0
  1632. package/_src/State/api.ts +49 -0
  1633. package/_src/State/definition.ts +19 -0
  1634. package/_src/State/internal.ts +10 -0
  1635. package/_src/State.ts +4 -0
  1636. package/_src/Stream/api/zipAllWith.ts +135 -0
  1637. package/_src/Stream/api/zipWith.ts +12 -0
  1638. package/_src/Stream/api/zipWithChunks.ts +89 -0
  1639. package/_src/Stream/api.ts +2931 -0
  1640. package/_src/Stream/definition.ts +42 -0
  1641. package/_src/Stream/internal/DebounceState.ts +79 -0
  1642. package/_src/Stream/internal/Handoff.ts +174 -0
  1643. package/_src/Stream/internal/Pull.ts +58 -0
  1644. package/_src/Stream/internal/SinkEndReason.ts +59 -0
  1645. package/_src/Stream/internal/Take.ts +192 -0
  1646. package/_src/Stream/internal/util.ts +19 -0
  1647. package/_src/Stream.ts +4 -0
  1648. package/_src/Supervisor/api.ts +36 -0
  1649. package/_src/Supervisor/constructors.ts +65 -0
  1650. package/_src/Supervisor/definition.ts +70 -0
  1651. package/_src/Supervisor.ts +5 -0
  1652. package/_src/TExit/constructors.ts +39 -0
  1653. package/_src/TExit/definition.ts +147 -0
  1654. package/_src/TExit.ts +4 -0
  1655. package/_src/TFuture/api.ts +42 -0
  1656. package/_src/TFuture/constructors.ts +14 -0
  1657. package/_src/TFuture/definition.ts +23 -0
  1658. package/_src/TFuture.ts +5 -0
  1659. package/_src/TRef/api.ts +312 -0
  1660. package/_src/TRef/constructors.ts +69 -0
  1661. package/_src/TRef/definition.ts +230 -0
  1662. package/_src/TRef.ts +5 -0
  1663. package/_src/TSemaphore/api.ts +68 -0
  1664. package/_src/TSemaphore/constructors.ts +14 -0
  1665. package/_src/TSemaphore/definition.ts +21 -0
  1666. package/_src/TSemaphore.ts +5 -0
  1667. package/_src/TxnId.ts +19 -0
  1668. package/_src/collection/immutable/Conc/findIO.ts +37 -0
  1669. package/_src/collection/immutable/Conc/mapIO.ts +13 -0
  1670. package/_src/collection/immutable/Conc/takeWhileIO.ts +32 -0
  1671. package/_src/collection/immutable/Conc.ts +5 -0
  1672. package/_src/data/Exit/foreachIO.ts +15 -0
  1673. package/_src/internal/HashedPair.ts +15 -0
  1674. package/_src/internal/Hub.ts +754 -0
  1675. package/_src/internal/MutableQueue.ts +295 -0
  1676. package/_src/internal/Scheduler.ts +15 -0
  1677. package/_src/internal/StackTraceBuilder.ts +16 -0
  1678. package/collection/immutable/Conc/findIO.d.ts +8 -0
  1679. package/collection/immutable/Conc/mapIO.d.ts +7 -0
  1680. package/collection/immutable/Conc/takeWhileIO.d.ts +7 -0
  1681. package/collection/immutable/Conc.d.ts +3 -0
  1682. package/data/Exit/foreachIO.d.ts +9 -0
  1683. package/internal/HashedPair.d.ts +9 -0
  1684. package/internal/Hub.d.ts +121 -0
  1685. package/internal/MutableQueue.d.ts +125 -0
  1686. package/internal/Scheduler.d.ts +1 -0
  1687. package/internal/StackTraceBuilder.d.ts +8 -0
  1688. package/package.json +17 -0
@@ -0,0 +1,1804 @@
1
+ const fileName_1 = "(@fncts/io) src/IO/api.ts";
2
+ import * as tsplus_module_1 from "@fncts/base/data/FiberId/constructors";
3
+ import * as tsplus_module_2 from "@fncts/base/data/Maybe/constructors";
4
+ import * as tsplus_module_3 from "@fncts/base/data/Either/constructors";
5
+ import * as tsplus_module_4 from "@fncts/base/data/Maybe/destructors";
6
+ import * as tsplus_module_5 from "@fncts/base/data/Cause/api";
7
+ import * as tsplus_module_6 from "@fncts/base/data/Either/destructors";
8
+ import * as tsplus_module_7 from "@fncts/base/data/Maybe/api";
9
+ import * as tsplus_module_8 from "@fncts/base/data/Exit/constructors";
10
+ import * as tsplus_module_9 from "@fncts/base/collection/immutable/Conc/api";
11
+ import * as tsplus_module_10 from "@fncts/base/collection/Iterable/api";
12
+ import * as tsplus_module_11 from "@fncts/base/collection/immutable/Conc/constructors";
13
+ import * as tsplus_module_12 from "@fncts/base/data/Maybe/definition";
14
+ import * as tsplus_module_13 from "@fncts/base/control/Eval/run";
15
+ import * as tsplus_module_14 from "@fncts/base/data/Exit/api";
16
+ import * as tsplus_module_15 from "@fncts/base/data/Trace/constructors";
17
+ import * as tsplus_module_16 from "@fncts/base/collection/immutable/Conc/api/empty";
18
+ import * as tsplus_module_17 from "@fncts/base/collection/immutable/List/api";
19
+ import * as tsplus_module_18 from "@fncts/base/collection/immutable/ImmutableArray/constructors";
20
+ import * as tsplus_module_19 from "@fncts/base/collection/immutable/ImmutableArray/api";
21
+ export const async = async_1;
22
+ export const asyncMaybe = asyncMaybe_1;
23
+ export const asyncInterrupt = asyncInterrupt_1;
24
+ export const apSecond_ = apSecond_1;
25
+ export const as_ = as_1;
26
+ export const asUnit = asUnit_1;
27
+ export const catch_ = catch_1;
28
+ export const catchAll_ = catchAll_1;
29
+ export const catchAllCause_ = catchAllCause_1;
30
+ export const flatMap_ = flatMap_1;
31
+ export const collectIO_ = collectIO_1;
32
+ export const defer = defer_1;
33
+ export const deferWith = deferWith_1;
34
+ export const descriptorWith = descriptorWith_1;
35
+ export const either = either_1;
36
+ export const eventually = eventually_1;
37
+ export const fail = fail_1;
38
+ export const failNow = failNow_1;
39
+ export const failCauseNow = failCauseNow_1;
40
+ export const failCause = failCause_1;
41
+ export const filter_ = filter_1;
42
+ export const filterMapWithIndex_ = filterMapWithIndex_1;
43
+ export const filterOrElse_ = filterOrElse_1;
44
+ export const foldLeft_ = foldLeft_1;
45
+ export const foreach_ = foreach_1;
46
+ export const foreachWithIndexDiscard_ = foreachWithIndexDiscard_1;
47
+ export const foreachDiscard_ = foreachDiscard_1;
48
+ export const forever = forever_1;
49
+ export const fromPromiseCatch = fromPromiseCatch_1;
50
+ export const getOrFailWith_ = getOrFailWith_1;
51
+ export const haltNow = haltNow_1;
52
+ export const ifIO_ = ifIO_1;
53
+ export const iterate_ = iterate_1;
54
+ export const loop_ = loop_1;
55
+ export const map_ = map_1;
56
+ export const mapError_ = mapError_1;
57
+ export const mapErrorCause_ = mapErrorCause_1;
58
+ export const matchCauseIO_ = matchCauseIO_1;
59
+ export const matchIO_ = matchIO_1;
60
+ export const match_ = match_1;
61
+ export const orElse_ = orElse_1;
62
+ export const orHaltWith_ = orHaltWith_1;
63
+ export const refineOrHaltWith_ = refineOrHaltWith_1;
64
+ export const rejectIO_ = rejectIO_1;
65
+ export const repeatN_ = repeatN_1;
66
+ export const repeatUntilIO_ = repeatUntilIO_1;
67
+ export const repeatWhileIO_ = repeatWhileIO_1;
68
+ export const retryUntilIO_ = retryUntilIO_1;
69
+ export const retryWhileIO_ = retryWhileIO_1;
70
+ export const sandbox = sandbox_1;
71
+ export const succeedNow = succeedNow_1;
72
+ export const succeed = succeed_1;
73
+ export const summarized_ = summarized_1;
74
+ export const swap = swap_1;
75
+ export const swapWith_ = swapWith_1;
76
+ export const tryCatch = tryCatch_1;
77
+ export const tryOrElse_ = tryOrElse_1;
78
+ export const unrefineWith_ = unrefineWith_1;
79
+ export const unsandbox = unsandbox_1;
80
+ export const whenIO_ = whenIO_1;
81
+ export const zipWith_ = zipWith_1;
82
+ export const gen = gen_1;
83
+ import { identity, pipe, tuple } from "@fncts/base/data/function";
84
+ import { Async, Chain, Defer, DeferWith, Ensuring, Fail, FiberRefModifyAll, Fork, GetDescriptor, GetInterrupt, IOError, Logged, Match, SetRuntimeConfig, Succeed, SucceedNow, Supervise, Yield } from "@fncts/io/IO/definition";
85
+ /**
86
+ * Imports an asynchronous side-effect into a `IO`
87
+ *
88
+ * @tsplus static fncts.io.IOOps async
89
+ */
90
+
91
+ function async_1(register, blockingOn = tsplus_module_1.none, __tsplusTrace) {
92
+ return asyncMaybe_1(cb => {
93
+ register(cb);
94
+ return tsplus_module_2.nothing();
95
+ }, blockingOn, __tsplusTrace);
96
+ }
97
+ /**
98
+ * Imports an asynchronous effect into a pure `IO`, possibly returning the value synchronously.
99
+ *
100
+ * If the register function returns a value synchronously, then the callback
101
+ * function must not be called. Otherwise the callback function must be called at most once.
102
+ *
103
+ * @tsplus static fncts.io.IOOps asyncMaybe
104
+ */
105
+
106
+
107
+ function asyncMaybe_1(register, blockingOn = tsplus_module_1.none, __tsplusTrace) {
108
+ return asyncInterrupt_1(cb => tsplus_module_4.match_(register(cb), () => tsplus_module_3.left(unit_1), tsplus_module_3.right), blockingOn, __tsplusTrace);
109
+ }
110
+ /**
111
+ * Imports an asynchronous side-effect into an IO. The side-effect
112
+ * has the option of returning the value synchronously, which is useful in
113
+ * cases where it cannot be determined if the effect is synchronous or
114
+ * asynchronous until the side-effect is actually executed. The effect also
115
+ * has the option of returning a canceler, which will be used by the runtime
116
+ * to cancel the asynchronous effect if the fiber executing the effect is
117
+ * interrupted.
118
+ *
119
+ * If the register function returns a value synchronously, then the callback
120
+ * function must not be called. Otherwise the callback function must be called
121
+ * at most once.
122
+ *
123
+ * The list of fibers, that may complete the async callback, is used to
124
+ * provide better diagnostics.
125
+ *
126
+ * @tsplus static fncts.io.IOOps asyncInterrupt
127
+ */
128
+
129
+
130
+ function asyncInterrupt_1(register, blockingOn = tsplus_module_1.none, __tsplusTrace) {
131
+ return new Async(register, blockingOn, __tsplusTrace);
132
+ } // /**
133
+ // * Attempts to convert defects into a failure, throwing away all information
134
+ // * about the cause of the failure.
135
+ // *
136
+ // * @tsplus fluent fncts.io.IO absorbWith
137
+ // */
138
+ // export function absorbWith_<R, E, A>(ma: IO<R, E, A>, f: (e: E) => unknown, __tsplusTrace?: string) {
139
+ // return ma.sandbox.matchIO((cause) => IO.failNow(cause.squash(f)), IO.succeedNow)
140
+ // }
141
+
142
+ /**
143
+ * @tsplus fluent fncts.io.IO apFirst
144
+ * @tsplus operator fncts.io.IO <
145
+ */
146
+
147
+
148
+ export function apFirst_(self, fb, __tsplusTrace) {
149
+ return flatMap_1(self, a => map_1(fb, () => a, __tsplusTrace), __tsplusTrace);
150
+ }
151
+ /**
152
+ * Combine two effectful actions, keeping only the result of the second
153
+ *
154
+ * @tsplus fluent fncts.io.IO apSecond
155
+ * @tsplus operator fncts.io.IO >
156
+ */
157
+
158
+ function apSecond_1(self, fb, __tsplusTrace) {
159
+ return flatMap_1(self, () => fb, __tsplusTrace);
160
+ }
161
+ /**
162
+ * @tsplus fluent fncts.io.IO as
163
+ */
164
+
165
+
166
+ function as_1(self, b) {
167
+ return map_1(self, () => b(), fileName_1 + ":135:18");
168
+ }
169
+ /**
170
+ * Maps the success value of this effect to an optional value.
171
+ *
172
+ * @tsplus getter fncts.io.IO asJust
173
+ */
174
+
175
+
176
+ export function asJust(ma, __tsplusTrace) {
177
+ return map_1(ma, tsplus_module_2.just, __tsplusTrace);
178
+ }
179
+ /**
180
+ * Maps the error value of this IO to an optional value.
181
+ *
182
+ * @tsplus getter fncts.io.IO asJustError
183
+ */
184
+
185
+ export function asJustError(ma, __tsplusTrace) {
186
+ return mapError_1(ma, tsplus_module_2.just, __tsplusTrace);
187
+ }
188
+ /**
189
+ * @tsplus getter fncts.io.IO asUnit
190
+ */
191
+
192
+ function asUnit_1(self) {
193
+ return as_1(self, () => undefined);
194
+ }
195
+ /**
196
+ * Returns an IO whose failure and success channels have been mapped by
197
+ * the specified pair of functions, `f` and `g`.
198
+ *
199
+ * @tsplus fluent fncts.io.IO bimap
200
+ */
201
+
202
+
203
+ export function bimap_(self, f, g, __tsplusTrace) {
204
+ return matchIO_1(self, e => failNow_1(f(e), __tsplusTrace), a => succeedNow_1(g(a), __tsplusTrace), __tsplusTrace);
205
+ }
206
+ /**
207
+ * Returns an IO that effectfully "peeks" at the failure or success of
208
+ * this effect.
209
+ *
210
+ * @tsplus fluent fncts.io.IO bitap
211
+ */
212
+
213
+ export function bitap_(self, onFailure, onSuccess, __tsplusTrace) {
214
+ return matchCauseIO_1(self, cause => tsplus_module_6.match_(tsplus_module_5.failureOrCause(cause), e => flatMap_1(onFailure(e), () => failCauseNow_1(cause, __tsplusTrace), __tsplusTrace), () => failCauseNow_1(cause, __tsplusTrace)), a => apSecond_1(onSuccess(a), succeedNow_1(a, __tsplusTrace), __tsplusTrace), __tsplusTrace);
215
+ }
216
+ /**
217
+ * Recovers from the specified error
218
+ *
219
+ * @tsplus fluent fncts.io.IO catch
220
+ */
221
+
222
+ function catch_1(ma, tag, k, f, __tsplusTrace) {
223
+ return catchAll_1(ma, e => {
224
+ if (tag in e && e[tag] === k) {
225
+ return f(e);
226
+ }
227
+
228
+ return failNow_1(e, __tsplusTrace);
229
+ }, __tsplusTrace);
230
+ }
231
+ /**
232
+ * Recovers from all errors
233
+ *
234
+ * @tsplus fluent fncts.io.IO catchAll
235
+ */
236
+
237
+
238
+ function catchAll_1(ma, f, __tsplusTrace) {
239
+ return matchIO_1(ma, f, succeedNow_1, __tsplusTrace);
240
+ }
241
+ /**
242
+ *
243
+ * Recovers from all errors with provided cause.
244
+ *
245
+ * @tsplus fluent fncts.io.IO catchAllCause
246
+ */
247
+
248
+
249
+ function catchAllCause_1(ma, f, __tsplusTrace) {
250
+ return matchCauseIO_1(ma, f, succeedNow_1, __tsplusTrace);
251
+ }
252
+ /**
253
+ * Recovers from some or all of the error cases.
254
+ *
255
+ * @tsplus fluent fncts.io.IO catchJust
256
+ */
257
+
258
+
259
+ export function catchJust_(ma, f, __tsplusTrace) {
260
+ return matchCauseIO_1(ma, cause => tsplus_module_6.match_(tsplus_module_5.failureOrCause(cause), e => tsplus_module_7.getOrElse_(f(e), () => failCauseNow_1(cause, __tsplusTrace)), failCauseNow_1), succeedNow_1, __tsplusTrace);
261
+ }
262
+ /**
263
+ * Recovers from some or all of the error cases with provided cause.
264
+ *
265
+ * @tsplus fluent fncts.io.IO catchJustCause
266
+ */
267
+
268
+ export function catchJustCause_(ma, f) {
269
+ return matchCauseIO_1(ma, cause => tsplus_module_7.getOrElse_(f(cause), () => failCauseNow_1(cause, fileName_1 + ":275:71")), succeedNow_1, fileName_1 + ":275:25");
270
+ }
271
+ /**
272
+ * Recovers from some or all of the defects with provided partial function.
273
+ *
274
+ * *WARNING*: There is no sensible way to recover from defects. This
275
+ * method should be used only at the boundary between IO and an external
276
+ * system, to transmit information on a defect for diagnostic or explanatory
277
+ * purposes.
278
+ *
279
+ * @tsplus fluent fncts.io.IO catchJustDefect
280
+ */
281
+
282
+ export function catchJustDefect_(ma, f, __tsplusTrace) {
283
+ return catchAll_1(unrefineWith_1(ma, f, failNow_1, __tsplusTrace), identity, __tsplusTrace);
284
+ }
285
+ /**
286
+ * Recovers from the specified error
287
+ *
288
+ * @tsplus fluent IO catchTag
289
+ */
290
+
291
+ export function catchTag_(ma, k, f, __tsplusTrace) {
292
+ return catch_1(ma, "_tag", k, f, __tsplusTrace);
293
+ }
294
+ /**
295
+ * @tsplus getter fncts.io.IO cause
296
+ */
297
+
298
+ export function cause(ma, __tsplusTrace) {
299
+ return matchCauseIO_1(ma, succeedNow_1, () => succeedNow_1(tsplus_module_5.empty(), __tsplusTrace), __tsplusTrace);
300
+ }
301
+ /**
302
+ * @tsplus fluent fncts.io.IO causeAsError
303
+ */
304
+
305
+ export function causeAsError(ma, __tsplusTrace) {
306
+ return matchCauseIO_1(ma, failNow_1, succeedNow_1, __tsplusTrace);
307
+ }
308
+ /**
309
+ * Returns an IO that models the execution of this effect, followed by
310
+ * the passing of its value to the specified continuation function `f`,
311
+ * followed by the effect that it returns.
312
+ *
313
+ * @tsplus fluent fncts.io.IO flatMap
314
+ */
315
+
316
+ function flatMap_1(ma, f, __tsplusTrace) {
317
+ return new Chain(ma, f, __tsplusTrace);
318
+ }
319
+ /**
320
+ * @tsplus fluent fncts.io.IO flatMapError
321
+ */
322
+
323
+
324
+ export function flatMapError_(ma, f) {
325
+ return swapWith_1(ma, effect => flatMap_1(effect, f, fileName_1 + ":343:48"));
326
+ }
327
+ /**
328
+ * Checks the interrupt status, and produces the IO returned by the
329
+ * specified callback.
330
+ *
331
+ * @tsplus static fncts.io.IOOps checkInterruptible
332
+ */
333
+
334
+ export function checkInterruptible(f, __tsplusTrace) {
335
+ return new GetInterrupt(f, __tsplusTrace);
336
+ }
337
+ /**
338
+ * @tsplus fluent fncts.io.IO collect
339
+ */
340
+
341
+ export function collect_(ma, f, pf, __tsplusTrace) {
342
+ return collectIO_1(ma, f, a => tsplus_module_7.map_(pf(a), succeedNow_1), __tsplusTrace);
343
+ }
344
+ /**
345
+ * @tsplus fluent fncts.io.IO collectIO
346
+ */
347
+
348
+ function collectIO_1(ma, f, pf, __tsplusTrace) {
349
+ return flatMap_1(ma, a => tsplus_module_7.getOrElse_(pf(a), () => fail_1(f, __tsplusTrace)), __tsplusTrace);
350
+ }
351
+ /**
352
+ * @tsplus static fncts.io.IOOps condIO
353
+ */
354
+
355
+
356
+ export function condIO_(b, onTrue, onFalse) {
357
+ return b ? onTrue : flatMap_1(onFalse, failNow_1, fileName_1 + ":387:38");
358
+ }
359
+ /**
360
+ * Returns a lazily constructed effect, whose construction may itself require
361
+ * effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == unknown)
362
+ * it is conceptually equivalent to `flatten(succeedWith(io))`. If you wonder if the effect throws exceptions,
363
+ * do not use this method, use `IO.deferTryCatch`.
364
+ *
365
+ * @tsplus static fncts.io.IOOps defer
366
+ */
367
+
368
+ function defer_1(io, __tsplusTrace) {
369
+ return new Defer(io, __tsplusTrace);
370
+ }
371
+ /**
372
+ * Returns a lazily constructed effect, whose construction may itself require
373
+ * effects. The effect must not throw any exceptions. When no environment is required (i.e., when R == unknown)
374
+ * it is conceptually equivalent to `flatten(effectTotal(io))`. If you wonder if the effect throws exceptions,
375
+ * do not use this method, use `IO.deferTryCatchWith`.
376
+ *
377
+ * @tsplus static fncts.io.IOOps deferWith
378
+ */
379
+
380
+
381
+ function deferWith_1(io, __tsplusTrace) {
382
+ return new DeferWith(io, __tsplusTrace);
383
+ }
384
+ /**
385
+ * Returns a lazily constructed effect, whose construction may itself require effects.
386
+ * When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(try(io))`.
387
+ *
388
+ * @tsplus static fncts.io.IOOps deferTry
389
+ */
390
+
391
+
392
+ export function deferTry(io, __tsplusTrace) {
393
+ return defer_1(() => {
394
+ try {
395
+ return io();
396
+ } catch (u) {
397
+ throw new IOError(tsplus_module_8.fail(u));
398
+ }
399
+ }, __tsplusTrace);
400
+ }
401
+ /**
402
+ * Returns a lazily constructed effect, whose construction may itself require effects.
403
+ * When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(effect(io))`.
404
+ *
405
+ * @tsplus static IOOps deferTryWith
406
+ */
407
+
408
+ export function deferTryWith(io) {
409
+ return deferWith_1((runtimeConfig, id) => {
410
+ try {
411
+ return io(runtimeConfig, id);
412
+ } catch (u) {
413
+ throw new IOError(tsplus_module_8.fail(u));
414
+ }
415
+ }, fileName_1 + ":442:22");
416
+ }
417
+ /**
418
+ * Returns a lazily constructed effect, whose construction may itself require effects,
419
+ * translating any thrown exceptions into typed failed effects and mapping the error.
420
+ *
421
+ * When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(effect(io))`.
422
+ *
423
+ * @tsplus static IOOps deferTryCatch
424
+ */
425
+
426
+ export function deferTryCatch(io, onThrow) {
427
+ return defer_1(() => {
428
+ try {
429
+ return io();
430
+ } catch (u) {
431
+ throw new IOError(tsplus_module_8.fail(onThrow(u)));
432
+ }
433
+ }, fileName_1 + ":460:18");
434
+ }
435
+ /**
436
+ * Returns a lazily constructed effect, whose construction may itself require effects,
437
+ * translating any thrown exceptions into typed failed effects and mapping the error.
438
+ *
439
+ * When no environment is required (i.e., when R == unknown) it is conceptually equivalent to `flatten(effect(io))`.
440
+ *
441
+ * @tsplus static IOOps deferTryCatchWith
442
+ */
443
+
444
+ export function deferTryCatchWith(io, onThrow) {
445
+ return deferWith_1((runtimeConfig, id) => {
446
+ try {
447
+ return io(runtimeConfig, id);
448
+ } catch (u) {
449
+ throw new IOError(tsplus_module_8.fail(onThrow(u)));
450
+ }
451
+ }, fileName_1 + ":481:22");
452
+ }
453
+ /**
454
+ * @tsplus static fncts.io.IOOps descriptor
455
+ */
456
+
457
+ export const descriptor = /*#__PURE__*/descriptorWith_1(succeedNow_1, fileName_1 + ":493:41");
458
+ /**
459
+ * Constructs an IO based on information about the current fiber, such as
460
+ * its identity.
461
+ *
462
+ * @tsplus static fncts.io.IOOps descriptorWith
463
+ */
464
+
465
+ function descriptorWith_1(f, __tsplusTrace) {
466
+ return new GetDescriptor(f, __tsplusTrace);
467
+ }
468
+ /**
469
+ * Folds an `IO` that may fail with `E` or succeed with `A` into one that never fails but succeeds with `Either<E, A>`
470
+ *
471
+ * @tsplus getter fncts.io.IO either
472
+ */
473
+
474
+
475
+ function either_1(ma, __tsplusTrace) {
476
+ return match_1(ma, tsplus_module_3.left, tsplus_module_3.right, __tsplusTrace);
477
+ }
478
+ /**
479
+ * @tsplus fluent fncts.io.IO ensuring
480
+ */
481
+
482
+
483
+ export function ensuring_(self, finalizer, __tsplusTrace) {
484
+ return new Ensuring(self, finalizer, __tsplusTrace);
485
+ }
486
+ /**
487
+ * @tsplus fluent fncts.io.IO errorAsCause
488
+ */
489
+
490
+ export function errorAsCause(ma, __tsplusTrace) {
491
+ return matchIO_1(ma, failCauseNow_1, succeedNow_1, __tsplusTrace);
492
+ }
493
+ /**
494
+ * @tsplus getter fncts.io.IO eventually
495
+ */
496
+
497
+ function eventually_1(ma, __tsplusTrace) {
498
+ return orElse_1(ma, () => eventually_1(ma), __tsplusTrace);
499
+ }
500
+ /**
501
+ * @tsplus fluent fncts.io.IO extend
502
+ */
503
+
504
+
505
+ export function extend_(wa, f, __tsplusTrace) {
506
+ return matchIO_1(wa, failNow_1, _ => succeed_1(() => f(wa), __tsplusTrace), __tsplusTrace);
507
+ }
508
+ /**
509
+ * @tsplus static fncts.io.IOOps fail
510
+ */
511
+
512
+ function fail_1(e, __tsplusTrace) {
513
+ return new Fail(() => tsplus_module_5.fail(e()), __tsplusTrace);
514
+ }
515
+ /**
516
+ * @tsplus static fncts.io.IOOps failNow
517
+ */
518
+
519
+
520
+ function failNow_1(e, __tsplusTrace) {
521
+ return new Fail(() => tsplus_module_5.fail(e), __tsplusTrace);
522
+ }
523
+ /**
524
+ * Creates a `IO` that has failed with the specified `Cause`
525
+ *
526
+ * @tsplus static fncts.io.IOOps failCauseNow
527
+ */
528
+
529
+
530
+ function failCauseNow_1(cause, __tsplusTrace) {
531
+ return new Fail(() => cause, __tsplusTrace);
532
+ }
533
+ /**
534
+ * Returns an effect that models failure with the specified lazily-evaluated `Cause`.
535
+ *
536
+ * @tsplus static fncts.io.IOOps failCause
537
+ */
538
+
539
+
540
+ function failCause_1(cause, __tsplusTrace) {
541
+ return new Fail(cause, __tsplusTrace);
542
+ }
543
+ /**
544
+ * Returns the `FiberId` of the `Fiber` on which this `IO` is running
545
+ *
546
+ * @tsplus static fncts.io.IOOps fiberId
547
+ */
548
+
549
+
550
+ export const fiberId = /*#__PURE__*/descriptorWith_1(d => succeedNow_1(d.id, fileName_1 + ":583:91"), fileName_1 + ":583:70");
551
+ /**
552
+ * Filters the collection using the specified effectual predicate.
553
+ *
554
+ * @tsplus static fncts.io.IOOps filter
555
+ */
556
+
557
+ function filter_1(as, f, __tsplusTrace) {
558
+ return map_1(tsplus_module_10.foldLeft_(as, succeedNow_1(tsplus_module_9.builder(), __tsplusTrace), (eff, a) => zipWith_1(eff, f(a), (builder, p) => {
559
+ if (p) {
560
+ builder.append(a);
561
+ }
562
+
563
+ return builder;
564
+ })), b => b.result(), __tsplusTrace);
565
+ }
566
+ /**
567
+ * @tsplus static fncts.io.IOOps filterMap
568
+ */
569
+
570
+
571
+ export function filterMap_(as, f, __tsplusTrace) {
572
+ return filterMapWithIndex_1(as, (_, a) => f(a), __tsplusTrace);
573
+ }
574
+ /**
575
+ * @tsplus static fncts.io.IOOps filterMapWithIndex
576
+ */
577
+
578
+ function filterMapWithIndex_1(as, f, __tsplusTrace) {
579
+ return defer_1(() => {
580
+ const bs = [];
581
+ return as_1(foreachWithIndexDiscard_1(as, (i, a) => map_1(f(i, a), b => {
582
+ if (tsplus_module_12.isJust(b)) {
583
+ bs.push(b.value);
584
+ }
585
+ }, __tsplusTrace)), () => tsplus_module_11.from(bs));
586
+ }, __tsplusTrace);
587
+ }
588
+ /**
589
+ * Filters the collection using the specified effectual predicate, removing
590
+ * all elements that satisfy the predicate.
591
+ *
592
+ * @tsplus static fncts.io.IOOps filterNot
593
+ */
594
+
595
+
596
+ export function filterNot_(as, f, __tsplusTrace) {
597
+ return filter_1(as, a => map_1(f(a), b => !b, __tsplusTrace), __tsplusTrace);
598
+ }
599
+
600
+ function filterOrElse_1(fa, predicate, or, __tsplusTrace) {
601
+ return flatMap_1(fa, a => predicate(a) ? succeedNow_1(a, __tsplusTrace) : defer_1(() => or(a), __tsplusTrace), __tsplusTrace);
602
+ }
603
+
604
+ export function filterOrFail_(fa, predicate, failWith) {
605
+ return filterOrElse_1(fa, predicate, a => failNow_1(failWith(a), fileName_1 + ":701:56"), fileName_1 + ":701:23");
606
+ }
607
+ /**
608
+ * Returns an `IO` that yields the value of the first
609
+ * `IO` to succeed.
610
+ *
611
+ * @tsplus static fncts.io.IOOps firstSuccess
612
+ */
613
+
614
+ export function firstSuccess(mas) {
615
+ return mas.reduce((b, a) => orElse_1(b, () => a, fileName_1 + ":711:39"));
616
+ }
617
+ export function filterOrHalt_(fa, predicate, haltWith, __tsplusTrace) {
618
+ return filterOrElse_1(fa, predicate, a => haltNow_1(haltWith(a), __tsplusTrace), __tsplusTrace);
619
+ }
620
+ /**
621
+ * @tsplus getter fncts.io.IO flatten
622
+ */
623
+
624
+ export function flatten(self) {
625
+ return flatMap_1(self, identity, fileName_1 + ":744:22");
626
+ }
627
+ /**
628
+ * Folds an `Iterable<A>` using an effectful function f, working sequentially from left to right.
629
+ *
630
+ * @tsplus static fncts.io.IOOps foldLeft
631
+ */
632
+
633
+ function foldLeft_1(as, b, f, __tsplusTrace) {
634
+ return tsplus_module_10.foldLeft_(as, succeedNow_1(b, __tsplusTrace), (acc, el) => flatMap_1(acc, a => f(a, el), __tsplusTrace));
635
+ }
636
+ /**
637
+ * Combines an array of `IO`s using a `Monoid`
638
+ *
639
+ * @constrained
640
+ * @tsplus static fncts.io.IOOps foldMap
641
+ */
642
+
643
+
644
+ export function foldMap_(M) {
645
+ return (as, f) => foldLeft_1(as, M.nat, (m, a) => map_1(a, a => M.combine_(m, f(a)), fileName_1 + ":769:43"), fileName_1 + ":769:16");
646
+ }
647
+
648
+ function foldRightLoop(iterator, b, f) {
649
+ const next = iterator.next();
650
+ return next.done ? b : f(next.value, foldRightLoop(iterator, b, f));
651
+ }
652
+ /**
653
+ * Performs a right-associative fold of an `Iterable<A>`
654
+ *
655
+ * @tsplus static fncts.io.IOOps foldRight
656
+ */
657
+
658
+
659
+ export function foldRight_(as, b, f) {
660
+ return foldRightLoop(as[Symbol.iterator](), b, f);
661
+ }
662
+
663
+ function foreachWithIndexDiscardLoop(iterator, f, i = 0) {
664
+ const next = iterator.next();
665
+ return next.done ? unit_1 : flatMap_1(f(i, next.value), () => foreachWithIndexDiscardLoop(iterator, f, i + 1), fileName_1 + ":800:56");
666
+ }
667
+ /**
668
+ * Applies the function `f` to each element of the `Iterable<A>` and
669
+ * returns the results in a new `Conc<B>`.
670
+ *
671
+ * For a parallel version of this method, see `foreachC`.
672
+ * If you do not need the results, see `foreachUnit` for a more efficient implementation.
673
+ *
674
+ * @tsplus static fncts.io.IOOps foreach
675
+ */
676
+
677
+
678
+ function foreach_1(as, f, __tsplusTrace) {
679
+ return defer_1(() => {
680
+ const acc = [];
681
+ return as_1(foreachWithIndexDiscard_1(as, (_, a) => flatMap_1(f(a), b => {
682
+ acc.push(b);
683
+ return unit_1;
684
+ }, __tsplusTrace)), () => tsplus_module_11.from(acc));
685
+ }, __tsplusTrace);
686
+ }
687
+ /**
688
+ * Applies the function `f` to each element of the `Iterable<A>` and
689
+ * returns the results in a new `Conc<B>`.
690
+ *
691
+ * For a parallel version of this method, see `foreachC`.
692
+ * If you do not need the results, see `foreachUnit` for a more efficient implementation.
693
+ *
694
+ * @tsplus static fncts.io.IOOps foreachWithIndex
695
+ */
696
+
697
+
698
+ export function foreachWithIndex_(as, f) {
699
+ return defer_1(() => {
700
+ const acc = [];
701
+ return as_1(foreachWithIndexDiscard_1(as, (i, a) => flatMap_1(f(i, a), b => {
702
+ acc.push(b);
703
+ return unit_1;
704
+ }, fileName_1 + ":841:22")), () => tsplus_module_11.from(acc));
705
+ }, fileName_1 + ":838:18");
706
+ }
707
+ /**
708
+ * @tsplus static fncts.io.IOOps foreachWithIndexDiscard
709
+ */
710
+
711
+ function foreachWithIndexDiscard_1(as, f) {
712
+ return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), f), fileName_1 + ":856:18");
713
+ }
714
+ /**
715
+ * Applies the function `f` to each element of the `Iterable<A>` and runs
716
+ * produced IOs sequentially.
717
+ *
718
+ * @tsplus static fncts.io.IOOps foreachDiscard
719
+ */
720
+
721
+
722
+ function foreachDiscard_1(as, f) {
723
+ return defer_1(() => foreachWithIndexDiscardLoop(as[Symbol.iterator](), (_, a) => f(a)), fileName_1 + ":866:18");
724
+ }
725
+ /**
726
+ * Repeats this effect forever (until the first failure).
727
+ *
728
+ * @tsplus getter fncts.io.IO forever
729
+ */
730
+
731
+
732
+ function forever_1(ma) {
733
+ return flatMap_1(apSecond_1(ma, yieldNow_1, fileName_1 + ":875:21"), () => forever_1(ma), fileName_1 + ":875:42");
734
+ }
735
+ /**
736
+ * Returns an IO that forks this IO into its own separate fiber,
737
+ * returning the fiber immediately, without waiting for it to begin executing
738
+ * the IO.
739
+ *
740
+ * You can use the `fork` method whenever you want to execute an IO in a
741
+ * new fiber, concurrently and without "blocking" the fiber executing other
742
+ * IOs. Using fibers can be tricky, so instead of using this method
743
+ * directly, consider other higher-level methods, such as `raceWith`,
744
+ * `zipPar`, and so forth.
745
+ *
746
+ * The fiber returned by this method has methods interrupt the fiber and to
747
+ * wait for it to finish executing the IO. See `Fiber` for more
748
+ * information.
749
+ *
750
+ * Whenever you use this method to launch a new fiber, the new fiber is
751
+ * attached to the parent fiber's scope. This means when the parent fiber
752
+ * terminates, the child fiber will be terminated as well, ensuring that no
753
+ * fibers leak. This behavior is called "None supervision", and if this
754
+ * behavior is not desired, you may use the `forkDaemon` or `forkIn`
755
+ * methods.
756
+ *
757
+ * @tsplus getter fncts.io.IO fork
758
+ */
759
+
760
+
761
+ export function fork(ma, __tsplusTrace) {
762
+ return new Fork(ma, tsplus_module_2.nothing(), __tsplusTrace);
763
+ }
764
+ /**
765
+ * Lifts an `Either` into an `IO`
766
+ *
767
+ * @tsplus static fncts.io.IOOps fromEither
768
+ */
769
+
770
+ export function fromEither(either, __tsplusTrace) {
771
+ return flatMap_1(succeed_1(either, __tsplusTrace), ea => tsplus_module_6.match_(ea, failNow_1, succeedNow_1), __tsplusTrace);
772
+ }
773
+ /**
774
+ * Lifts an `Either` into an `IO`
775
+ *
776
+ * @tsplus static fncts.io.IOOps fromEitherNow
777
+ */
778
+
779
+ export function fromEitherNow(either, __tsplusTrace) {
780
+ return tsplus_module_6.match_(either, failNow_1, succeedNow_1);
781
+ }
782
+ /**
783
+ * Lifts an `Eval` into an `IO`
784
+ *
785
+ * @tsplus static fncts.io.IOOps fromEval
786
+ */
787
+
788
+ export function fromEval(computation, __tsplusTrace) {
789
+ return succeed_1(() => tsplus_module_13.run(computation), __tsplusTrace);
790
+ }
791
+ /**
792
+ * Creates a `IO` from an exit value
793
+ *
794
+ * @tsplus static fncts.io.IOOps fromExit
795
+ */
796
+
797
+ export function fromExit(exit, __tsplusTrace) {
798
+ return defer_1(() => tsplus_module_14.match_(exit(), failCauseNow_1, succeedNow_1), __tsplusTrace);
799
+ }
800
+ /**
801
+ * Creates a `IO` from an exit value
802
+ *
803
+ * @tsplus static fncts.io.IOOps fromExitNow
804
+ */
805
+
806
+ export function fromExitNow(exit, __tsplusTrace) {
807
+ return tsplus_module_14.match_(exit, failCauseNow_1, succeedNow_1);
808
+ }
809
+ /**
810
+ * Lifts a `Maybe` into an `IO` but preserves the error as a `Maybe` in the error channel, making it easier to compose
811
+ * in some scenarios.
812
+ *
813
+ * @tsplus static fncts.io.IOOps fromMaybe
814
+ */
815
+
816
+ export function fromMaybe(maybe, __tsplusTrace) {
817
+ return flatMap_1(succeed_1(maybe, __tsplusTrace), m => tsplus_module_4.match_(m, () => failNow_1(tsplus_module_2.nothing(), __tsplusTrace), succeedNow_1), __tsplusTrace);
818
+ }
819
+ /**
820
+ * @tsplus static fncts.io.IOOps fromMaybeNow
821
+ */
822
+
823
+ export function fromMaybeNow(maybe, __tsplusTrace) {
824
+ return tsplus_module_4.match_(maybe, () => failNow_1(tsplus_module_2.nothing(), __tsplusTrace), succeedNow_1);
825
+ }
826
+ /**
827
+ * Create an IO that when executed will construct `promise` and wait for its result,
828
+ * errors will be handled using `onReject`
829
+ *
830
+ * @tsplus static fncts.io.IOOps fromPromiseCatch
831
+ */
832
+
833
+ function fromPromiseCatch_1(promise, onReject, __tsplusTrace) {
834
+ return async_1(k => {
835
+ promise().then(a => k(succeedNow_1(a, __tsplusTrace))).catch(e => k(failNow_1(onReject(e), __tsplusTrace)));
836
+ });
837
+ }
838
+ /**
839
+ * Create an IO that when executed will construct `promise` and wait for its result,
840
+ * errors will produce failure as `unknown`
841
+ *
842
+ * @tsplus static fncts.io.IOOps fromPromise
843
+ */
844
+
845
+
846
+ export function fromPromise(promise, __tsplusTrace) {
847
+ return fromPromiseCatch_1(promise, identity, __tsplusTrace);
848
+ }
849
+ /**
850
+ * Like fromPromise but produces a defect in case of errors
851
+ *
852
+ * @tsplus static fncts.io.IOOps fromPromiseHalt
853
+ */
854
+
855
+ export function fromPromiseHalt(promise, __tsplusTrace) {
856
+ return async_1(k => {
857
+ promise().then(a => k(succeedNow_1(a, __tsplusTrace))).catch(e => k(haltNow_1(e, __tsplusTrace)));
858
+ });
859
+ }
860
+ /**
861
+ * Unwraps the optional success of an `IO`, but can fail with a `Nothing` value.
862
+ *
863
+ * @tsplus getter fncts.io.IO get
864
+ */
865
+
866
+ export function get(ma) {
867
+ return matchCauseIO_1(ma, cause => failCauseNow_1(tsplus_module_5.map_(cause, tsplus_module_2.just), fileName_1 + ":1016:31"), ma => tsplus_module_4.match_(ma, () => failNow_1(tsplus_module_2.nothing(), fileName_1 + ":1017:38"), succeedNow_1), fileName_1 + ":1015:25");
868
+ }
869
+ /**
870
+ * Extracts the optional value, or returns the given 'orElse'.
871
+ *
872
+ * @tsplus fluent fncts.io.IO getOrElse
873
+ */
874
+
875
+ export function getOrElse_(ma, orElse) {
876
+ return map_1(ma, ma => tsplus_module_7.getOrElse_(ma, orElse), fileName_1 + ":1027:16");
877
+ }
878
+ /**
879
+ * Extracts the optional value, or executes the effect 'orElse'.
880
+ *
881
+ * @tsplus fluent fncts.io.IO getOrElseIO
882
+ */
883
+
884
+ export function getOrElseIO_(ma, orElse) {
885
+ return flatMap_1(ma, mab => tsplus_module_7.getOrElse_(tsplus_module_7.map_(mab, succeedNow_1), orElse), fileName_1 + ":1039:48");
886
+ }
887
+ /**
888
+ * Lifts a Maybe into an IO. If the option is `Nothing`, fail with `onNothing`.
889
+ *
890
+ * @tsplus static fncts.io.IOOps getOrFailWith
891
+ */
892
+
893
+ function getOrFailWith_1(maybe, onNothing) {
894
+ return defer_1(() => tsplus_module_4.match_(maybe, () => fail_1(onNothing, fileName_1 + ":1048:44"), succeedNow_1), fileName_1 + ":1048:18");
895
+ }
896
+ /**
897
+ * Lifts a Maybe into a IO, if the Maybe is `Nothing` it fails with Unit.
898
+ *
899
+ * @tsplus static fncts.io.IOOps getOrFailUnit
900
+ */
901
+
902
+
903
+ export function getOrFailUnit(option) {
904
+ return getOrFailWith_1(option, () => undefined);
905
+ }
906
+ /**
907
+ * Creates an `IO` that halts with the specified lazily-evaluated defect.
908
+ * This method can be used for terminating a fiber because a defect has been
909
+ * detected in the code.
910
+ *
911
+ * @tsplus static fncts.io.IOOps halt
912
+ */
913
+
914
+ export function halt(e, __tsplusTrace) {
915
+ return failCause_1(() => tsplus_module_5.halt(e(), tsplus_module_15.none), __tsplusTrace);
916
+ }
917
+ /**
918
+ * Creates an `IO` that halts with the specified defect
919
+ * This method can be used for terminating a fiber because a defect has been
920
+ * detected in the code.
921
+ *
922
+ * @tsplus static fncts.io.IOOps haltNow
923
+ */
924
+
925
+ function haltNow_1(e, __tsplusTrace) {
926
+ return failCauseNow_1(tsplus_module_5.halt(e, tsplus_module_15.none), __tsplusTrace);
927
+ }
928
+ /**
929
+ * @tsplus fluent fncts.io.IO ifIO
930
+ */
931
+
932
+
933
+ function ifIO_1(self, onFalse, onTrue) {
934
+ return flatMap_1(self, b => b ? onTrue() : onFalse(), fileName_1 + ":1090:22");
935
+ }
936
+ /**
937
+ * @tsplus static fncts.io.IOOps if
938
+ */
939
+
940
+
941
+ export function if_(b, onTrue, onFalse, __tsplusTrace) {
942
+ return ifIO_1(succeedNow_1(b, __tsplusTrace), onTrue, onFalse);
943
+ }
944
+ /**
945
+ * @tsplus getter fncts.io.IO ignore
946
+ */
947
+
948
+ export function ignore(fa) {
949
+ return match_1(fa, () => undefined, () => undefined, fileName_1 + ":1109:18");
950
+ }
951
+ /**
952
+ * Folds a `IO` to a boolean describing whether or not it is a failure
953
+ *
954
+ * @tsplus getter fncts.io.IO isFailure
955
+ */
956
+
957
+ export function isFailure(ma) {
958
+ return match_1(ma, () => true, () => false, fileName_1 + ":1121:18");
959
+ }
960
+ /**
961
+ * Folds a `IO` to a boolean describing whether or not it is a success
962
+ *
963
+ * @tsplus getter fncts.io.IO isSuccess
964
+ */
965
+
966
+ export function isSuccess(ma) {
967
+ return match_1(ma, () => false, () => true, fileName_1 + ":1133:18");
968
+ }
969
+ /**
970
+ * Iterates with the specified effectual function. The moral equivalent of:
971
+ *
972
+ * ```typescript
973
+ * let s = initial;
974
+ *
975
+ * while (cont(s)) {
976
+ * s = body(s);
977
+ * }
978
+ *
979
+ * return s;
980
+ * ```
981
+ *
982
+ * @tsplus static fncts.io.IOOps iterate
983
+ */
984
+
985
+ function iterate_1(initial, cont, body, __tsplusTrace) {
986
+ return cont(initial) ? flatMap_1(body(initial), a => iterate_1(a, cont, body, __tsplusTrace), __tsplusTrace) : succeedNow_1(initial, __tsplusTrace);
987
+ }
988
+ /**
989
+ * Returns an IO with the value on the left part.
990
+ *
991
+ * @tsplus static fncts.io.IOOps left
992
+ */
993
+
994
+
995
+ export function left(a) {
996
+ return flatMap_1(succeed_1(a, fileName_1 + ":1168:20"), a => succeedNow_1(tsplus_module_3.left(a), fileName_1 + ":1168:52"), fileName_1 + ":1168:31");
997
+ }
998
+ /**
999
+ * @tsplus static fncts.io.IOOps log
1000
+ */
1001
+
1002
+ export function log(message, __tsplusTrace) {
1003
+ return new Logged(message, tsplus_module_5.empty(), tsplus_module_2.nothing(), __tsplusTrace);
1004
+ }
1005
+ /**
1006
+ * Loops with the specified effectual function, collecting the results into a
1007
+ * list. The moral equivalent of:
1008
+ *
1009
+ * ```typescript
1010
+ * let s = initial
1011
+ * let as = [] as readonly A[]
1012
+ *
1013
+ * while (cont(s)) {
1014
+ * as = [body(s), ...as]
1015
+ * s = inc(s)
1016
+ * }
1017
+ *
1018
+ * A.reverse(as)
1019
+ * ```
1020
+ *
1021
+ * @tsplus static fncts.io.IOOps loop
1022
+ */
1023
+
1024
+ function loop_1(initial, cont, inc, body, __tsplusTrace) {
1025
+ if (cont(initial)) {
1026
+ return flatMap_1(body(initial), a => map_1(loop_1(inc(initial), cont, inc, body, __tsplusTrace), as => tsplus_module_9.prepend_(as, a), __tsplusTrace), __tsplusTrace);
1027
+ } else {
1028
+ return succeedNow_1(tsplus_module_16.empty(), __tsplusTrace);
1029
+ }
1030
+ }
1031
+ /**
1032
+ * Loops with the specified effectual function purely for its effects. The
1033
+ * moral equivalent of:
1034
+ *
1035
+ * ```
1036
+ * var s = initial
1037
+ *
1038
+ * while (cont(s)) {
1039
+ * body(s)
1040
+ * s = inc(s)
1041
+ * }
1042
+ * ```
1043
+ *
1044
+ * @tsplus static fncts.io.IOOps loopUnit
1045
+ */
1046
+
1047
+
1048
+ export function loopUnit_(initial, cont, inc, body, __tsplusTrace) {
1049
+ if (cont(initial)) {
1050
+ return asUnit_1(flatMap_1(body(initial), () => loop_1(inc(initial), cont, inc, body, __tsplusTrace), __tsplusTrace));
1051
+ } else {
1052
+ return unit_1;
1053
+ }
1054
+ }
1055
+ /**
1056
+ * Returns an `IO` whose success is mapped by the specified function `f`.
1057
+ *
1058
+ * @tsplus fluent fncts.io.IO map
1059
+ */
1060
+
1061
+ function map_1(fa, f, __tsplusTrace) {
1062
+ return flatMap_1(fa, a => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace);
1063
+ }
1064
+ /**
1065
+ * Map covariantly over the first argument.
1066
+ *
1067
+ * Returns an IO with its error channel mapped using the specified
1068
+ * function. This can be used to lift a "smaller" error into a "larger"
1069
+ * error.
1070
+ *
1071
+ * @tsplus fluent fncts.io.IO mapError
1072
+ */
1073
+
1074
+
1075
+ function mapError_1(fea, f, __tsplusTrace) {
1076
+ return matchCauseIO_1(fea, cause => failCauseNow_1(tsplus_module_5.map_(cause, f), __tsplusTrace), succeedNow_1, __tsplusTrace);
1077
+ }
1078
+ /**
1079
+ * @tsplus static fncts.io.IOOps mapTryCatch
1080
+ */
1081
+
1082
+
1083
+ export function mapTryCatch_(io, f, onThrow, __tsplusTrace) {
1084
+ return flatMap_1(io, a => tryCatch_1(() => f(a), onThrow, __tsplusTrace), __tsplusTrace);
1085
+ }
1086
+ /**
1087
+ * Returns an IO with its full cause of failure mapped using
1088
+ * the specified function. This can be used to transform errors
1089
+ * while preserving the original structure of Cause.
1090
+ *
1091
+ * @tsplus fluent fncts.io.IO mapErrorCause
1092
+ */
1093
+
1094
+ function mapErrorCause_1(ma, f, __tsplusTrace) {
1095
+ return matchCauseIO_1(ma, cause => failCauseNow_1(f(cause), __tsplusTrace), succeedNow_1, __tsplusTrace);
1096
+ }
1097
+ /**
1098
+ * A more powerful version of `match_` that allows recovering from any kind of failure except interruptions.
1099
+ *
1100
+ * @tsplus fluent fncts.io.IO matchCause
1101
+ */
1102
+
1103
+
1104
+ export function matchCause_(self, onFailure, onSuccess, __tsplusTrace) {
1105
+ return matchCauseIO_1(self, cause => succeedNow_1(onFailure(cause), __tsplusTrace), a => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace);
1106
+ }
1107
+ /**
1108
+ * A more powerful version of `matchIO` that allows recovering from any kind of failure except interruptions.
1109
+ *
1110
+ * @tsplus fluent fncts.io.IO matchCauseIO
1111
+ */
1112
+
1113
+ function matchCauseIO_1(self, onFailure, onSuccess, __tsplusTrace) {
1114
+ return new Match(self, onFailure, onSuccess, __tsplusTrace);
1115
+ }
1116
+ /**
1117
+ * @tsplus fluent fncts.io.IO matchIO
1118
+ */
1119
+
1120
+
1121
+ function matchIO_1(self, onFailure, onSuccess, __tsplusTrace) {
1122
+ return matchCauseIO_1(self, cause => tsplus_module_6.match_(tsplus_module_5.failureOrCause(cause), onFailure, failCauseNow_1), onSuccess, __tsplusTrace);
1123
+ }
1124
+ /**
1125
+ * Folds over the failure value or the success value to yield an IO that
1126
+ * does not fail, but succeeds with the value returned by the left or right
1127
+ * function passed to `match_`.
1128
+ *
1129
+ * @tsplus fluent fncts.io.IO match
1130
+ */
1131
+
1132
+
1133
+ function match_1(self, onFailure, onSuccess, __tsplusTrace) {
1134
+ return matchIO_1(self, e => succeedNow_1(onFailure(e), __tsplusTrace), a => succeedNow_1(onSuccess(a), __tsplusTrace), __tsplusTrace);
1135
+ }
1136
+ /**
1137
+ * A version of `matchIO` that gives you the (optional) trace of the error.
1138
+ *
1139
+ * @tsplus fluent fncts.io.IO matchTraceIO
1140
+ */
1141
+
1142
+
1143
+ export function matchTraceIO_(ma, onFailure, onSuccess, __tsplusTrace) {
1144
+ return matchCauseIO_1(ma, cause => tsplus_module_6.match_(tsplus_module_5.failureTraceOrCause(cause), ([e, trace]) => onFailure(e, trace), failCauseNow_1), onSuccess, __tsplusTrace);
1145
+ }
1146
+ /**
1147
+ * @tsplus getter fncts.io.IO maybe
1148
+ */
1149
+
1150
+ export function maybe(io, __tsplusTrace) {
1151
+ return match_1(io, () => tsplus_module_2.nothing(), tsplus_module_2.just, __tsplusTrace);
1152
+ }
1153
+ /**
1154
+ * @tsplus getter fncts.io.IO merge
1155
+ */
1156
+
1157
+ export function merge(io, __tsplusTrace) {
1158
+ return matchIO_1(io, succeedNow_1, succeedNow_1, __tsplusTrace);
1159
+ }
1160
+ /**
1161
+ * Merges an `Iterable<IO>` to a single IO, working sequentially.
1162
+ *
1163
+ * @tsplus static fncts.io.IOOps mergeAll
1164
+ */
1165
+
1166
+ export function mergeAll_(fas, b, f, __tsplusTrace) {
1167
+ return tsplus_module_10.foldLeft_(fas, succeed_1(() => b, __tsplusTrace), (b, a) => zipWith_1(b, a, f));
1168
+ }
1169
+ /**
1170
+ * Returns a `IO` that will never produce anything. The moral equivalent of
1171
+ * `while(true) {}`, only without the wasted CPU cycles.
1172
+ *
1173
+ * @tsplus static fncts.io.IOOps never
1174
+ */
1175
+
1176
+ export const never = /*#__PURE__*/defer_1(() => asyncInterrupt_1(() => {
1177
+ const interval = setInterval(() => {//
1178
+ }, 60000);
1179
+ return tsplus_module_3.left(succeed_1(() => {
1180
+ clearInterval(interval);
1181
+ }, fileName_1 + ":1407:17"));
1182
+ }), fileName_1 + ":1401:39");
1183
+ /**
1184
+ * Converts an option on errors into an option on values.
1185
+ *
1186
+ * @tsplus getter fncts.io.IO optional
1187
+ */
1188
+
1189
+ export function optional(ma) {
1190
+ return matchIO_1(ma, me => tsplus_module_4.match_(me, () => succeedNow_1(tsplus_module_2.nothing(), fileName_1 + ":1421:41"), failNow_1), a => succeedNow_1(tsplus_module_2.just(a), fileName_1 + ":1422:25"), fileName_1 + ":1420:20");
1191
+ }
1192
+ /**
1193
+ * Returns the logical disjunction of the `Boolean` value returned by this
1194
+ * effect and the `Boolean` value returned by the specified effect. This
1195
+ * operator has "short circuiting" behavior so if the value returned by this
1196
+ * effect is true the specified effect will not be evaluated.
1197
+ *
1198
+ * @tsplus fluent fncts.io.IO or
1199
+ */
1200
+
1201
+ export function or_(ma, mb, __tsplusTrace) {
1202
+ return flatMap_1(ma, b => b ? succeedNow_1(true, __tsplusTrace) : mb, __tsplusTrace);
1203
+ }
1204
+ /**
1205
+ * @tsplus fluent fncts.io.IO orElse
1206
+ */
1207
+
1208
+ function orElse_1(ma, that, __tsplusTrace) {
1209
+ return tryOrElse_1(ma, that, succeedNow_1, __tsplusTrace);
1210
+ }
1211
+ /**
1212
+ * @tsplus fluent fncts.io.IO orElseEither
1213
+ */
1214
+
1215
+
1216
+ export function orElseEither_(self, that, __tsplusTrace) {
1217
+ return tryOrElse_1(self, () => map_1(that(), tsplus_module_3.right, __tsplusTrace), a => succeedNow_1(tsplus_module_3.left(a), __tsplusTrace), __tsplusTrace);
1218
+ }
1219
+ /**
1220
+ * @tsplus fluent fncts.io.IO orElseFail
1221
+ */
1222
+
1223
+ export function orElseFail_(ma, e) {
1224
+ return orElse_1(ma, () => fail_1(e, fileName_1 + ":1468:27"), fileName_1 + ":1468:19");
1225
+ }
1226
+ /**
1227
+ * @tsplus fluent fncts.io.IO orElseMaybe
1228
+ */
1229
+
1230
+ export function orElseMaybe_(ma, that, __tsplusTrace) {
1231
+ return catchAll_1(ma, me => tsplus_module_4.match_(me, that, e => fail_1(() => tsplus_module_2.just(e), __tsplusTrace)), __tsplusTrace);
1232
+ }
1233
+ /**
1234
+ * @tsplus fluent fncts.io.IO orElseSucceed
1235
+ */
1236
+
1237
+ export function orElseSucceed_(ma, a, __tsplusTrace) {
1238
+ return orElse_1(ma, () => succeed_1(a, __tsplusTrace), __tsplusTrace);
1239
+ }
1240
+ /**
1241
+ * @tsplus getter fncts.io.IO orHalt
1242
+ */
1243
+
1244
+ export function orHalt(ma, __tsplusTrace) {
1245
+ return orHaltWith_1(ma, identity, __tsplusTrace);
1246
+ }
1247
+ /**
1248
+ * @tsplus getter fncts.io.IO orHaltKeep
1249
+ */
1250
+
1251
+ export function orHaltKeep(ma) {
1252
+ return matchCauseIO_1(ma, cause => failCauseNow_1(tsplus_module_5.flatMap_(cause, tsplus_module_5.halt), fileName_1 + ":1500:52"), succeedNow_1, fileName_1 + ":1500:25");
1253
+ }
1254
+ /**
1255
+ * @tsplus fluent fncts.io.IO orHaltWith
1256
+ */
1257
+
1258
+ function orHaltWith_1(ma, f, __tsplusTrace) {
1259
+ return matchIO_1(ma, e => haltNow_1(f(e), __tsplusTrace), succeedNow_1, __tsplusTrace);
1260
+ }
1261
+ /**
1262
+ * Exposes all parallel errors in a single call
1263
+ *
1264
+ * @tsplus fluent fncts.io.IO parallelErrors
1265
+ */
1266
+
1267
+
1268
+ export function parallelErrors(io) {
1269
+ return matchCauseIO_1(io, cause => {
1270
+ const f = tsplus_module_5.failures(cause);
1271
+
1272
+ if (tsplus_module_17.length(f) === 0) {
1273
+ return failCauseNow_1(cause, fileName_1 + ":1519:29");
1274
+ } else {
1275
+ return failNow_1(f, fileName_1 + ":1521:24");
1276
+ }
1277
+ }, succeedNow_1, fileName_1 + ":1516:25");
1278
+ }
1279
+ /**
1280
+ * Feeds elements of type `A` to a function `f` that returns an IO.
1281
+ * Collects all successes and failures in a separated fashion.
1282
+ *
1283
+ * @tsplus static fncts.io.IOOps partition
1284
+ */
1285
+
1286
+ export function partition_(as, f, __tsplusTrace) {
1287
+ return map_1(foreach_1(as, a => either_1(f(a)), __tsplusTrace), c => tsplus_module_9.separate(c), __tsplusTrace);
1288
+ }
1289
+ /**
1290
+ * Keeps some of the errors, and terminates the fiber with the rest
1291
+ *
1292
+ * @tsplus fluent fncts.io.IO refineOrHalt
1293
+ */
1294
+
1295
+ export function refineOrHalt_(fa, pf, __tsplusTrace) {
1296
+ return refineOrHaltWith_1(fa, pf, identity);
1297
+ }
1298
+ /**
1299
+ * Keeps some of the errors, and terminates the fiber with the rest, using
1300
+ * the specified function to convert the `E` into a `Throwable`.
1301
+ *
1302
+ * @tsplus fluent fncts.io.IO refineOrHaltWith
1303
+ */
1304
+
1305
+ function refineOrHaltWith_1(fa, pf, f) {
1306
+ return catchAll_1(fa, e => tsplus_module_4.match_(pf(e), () => haltNow_1(f(e), fileName_1 + ":1564:57"), failNow_1), fileName_1 + ":1564:21");
1307
+ }
1308
+ /**
1309
+ * Fail with the returned value if the partial function `pf` matches, otherwise
1310
+ * continue with the held value.
1311
+ *
1312
+ * @tsplus fluent fncts.io.IO reject
1313
+ */
1314
+
1315
+
1316
+ export function reject_(fa, pf, __tsplusTrace) {
1317
+ return rejectIO_1(fa, a => tsplus_module_7.map_(pf(a), failNow_1), __tsplusTrace);
1318
+ }
1319
+ /**
1320
+ * Continue with the returned computation if the partial function `pf` matches,
1321
+ * translating the successful match into a failure, otherwise continue with
1322
+ * the held value.
1323
+ *
1324
+ * @tsplus fluent fncts.io.IO rejectIO
1325
+ */
1326
+
1327
+ function rejectIO_1(fa, pf, __tsplusTrace) {
1328
+ return flatMap_1(fa, a => tsplus_module_4.match_(pf(a), () => succeedNow_1(a, __tsplusTrace), io => flatMap_1(io, failNow_1, __tsplusTrace)), __tsplusTrace);
1329
+ }
1330
+ /**
1331
+ * Repeats this effect the specified number of times.
1332
+ *
1333
+ * @tsplus fluent fncts.io.IO repeatN
1334
+ */
1335
+
1336
+
1337
+ function repeatN_1(ma, n, __tsplusTrace) {
1338
+ return flatMap_1(ma, a => n <= 0 ? succeed_1(() => a, __tsplusTrace) : repeatN_1(ma, n - 1, __tsplusTrace), __tsplusTrace);
1339
+ }
1340
+ /**
1341
+ * Repeats this effect until its result satisfies the specified predicate.
1342
+ *
1343
+ * @tsplus fluent fncts.io.IO repeatUntil
1344
+ */
1345
+
1346
+
1347
+ export function repeatUntil_(ma, f, __tsplusTrace) {
1348
+ return repeatUntilIO_1(ma, a => succeedNow_1(f(a), __tsplusTrace), __tsplusTrace);
1349
+ }
1350
+ /**
1351
+ * Repeats this effect until its error satisfies the specified effectful predicate.
1352
+ *
1353
+ * @tsplus fluent fncts.io.IO repeatUntilIO
1354
+ */
1355
+
1356
+ function repeatUntilIO_1(ma, f, __tsplusTrace) {
1357
+ return flatMap_1(ma, a => flatMap_1(f(a), b => b ? succeed_1(() => a, __tsplusTrace) : repeatUntilIO_1(ma, f, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1358
+ }
1359
+ /**
1360
+ * Repeats this effect while its error satisfies the specified predicate.
1361
+ *
1362
+ * @tsplus fluent fncts.io.IO repeatWhile
1363
+ */
1364
+
1365
+
1366
+ export function repeatWhile_(ma, f) {
1367
+ return repeatWhileIO_1(ma, a => succeedNow_1(f(a), fileName_1 + ":1638:47"), fileName_1 + ":1638:26");
1368
+ }
1369
+ /**
1370
+ * Repeats this effect while its error satisfies the specified effectful predicate.
1371
+ *
1372
+ * @tsplus fluent fncts.io.IO repeatWhileIO
1373
+ */
1374
+
1375
+ function repeatWhileIO_1(ma, f, __tsplusTrace) {
1376
+ return flatMap_1(ma, a => flatMap_1(f(a), b => b ? repeatWhileIO_1(ma, f, __tsplusTrace) : succeed_1(() => a, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1377
+ }
1378
+ /**
1379
+ * @tsplus fluent fncts.io.IO replicate
1380
+ */
1381
+
1382
+
1383
+ export function replicate_(self, n, __tsplusTrace) {
1384
+ return tsplus_module_19.map_(tsplus_module_18.range(0, n), () => self);
1385
+ }
1386
+ /**
1387
+ * @tsplus fluent fncts.io.IO require
1388
+ */
1389
+
1390
+ export function require_(ma, error, __tsplusTrace) {
1391
+ return flatMap_1(ma, ma => tsplus_module_4.match_(ma, () => fail_1(error, __tsplusTrace), succeedNow_1), __tsplusTrace);
1392
+ }
1393
+ /**
1394
+ * Returns an IO that semantically runs the IO on a fiber,
1395
+ * producing an `Exit` for the completion value of the fiber.
1396
+ *
1397
+ * @tsplus getter fncts.io.IO result
1398
+ */
1399
+
1400
+ export function result(ma, __tsplusTrace) {
1401
+ return matchCauseIO_1(ma, cause => succeedNow_1(tsplus_module_8.failCause(cause), __tsplusTrace), a => succeedNow_1(tsplus_module_8.succeed(a), __tsplusTrace), __tsplusTrace);
1402
+ }
1403
+ /**
1404
+ * Recover from the unchecked failure of the `IO`. (opposite of `orHalt`)
1405
+ *
1406
+ * @trace call
1407
+ */
1408
+
1409
+ export function resurrect(io) {
1410
+ return unrefineWith_1(io, tsplus_module_2.just, identity, fileName_1 + ":1687:25");
1411
+ }
1412
+ /**
1413
+ * Retries this effect until its error satisfies the specified predicate.
1414
+ *
1415
+ * @tsplus fluent fncts.io.IO retryUntil
1416
+ */
1417
+
1418
+ export function retryUntil_(fa, f, __tsplusTrace) {
1419
+ return retryUntilIO_1(fa, e => succeedNow_1(f(e), __tsplusTrace), __tsplusTrace);
1420
+ }
1421
+ /**
1422
+ * Retries this effect until its error satisfies the specified effectful predicate.
1423
+ *
1424
+ * @tsplus fluent fncts.io.IO retryUntilIO
1425
+ */
1426
+
1427
+ function retryUntilIO_1(fa, f, __tsplusTrace) {
1428
+ return catchAll_1(fa, e => flatMap_1(f(e), b => b ? failNow_1(e, __tsplusTrace) : retryUntilIO_1(fa, f, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1429
+ }
1430
+ /**
1431
+ * Retries this effect while its error satisfies the specified predicate.
1432
+ *
1433
+ * @tsplus fluent fncts.io.IO retryWhile
1434
+ */
1435
+
1436
+
1437
+ export function retryWhile_(fa, f, __tsplusTrace) {
1438
+ return retryWhileIO_1(fa, e => succeedNow_1(f(e), __tsplusTrace), __tsplusTrace);
1439
+ }
1440
+ /**
1441
+ * Retries this effect while its error satisfies the specified effectful predicate.
1442
+ *
1443
+ * @tsplus fluent fncts.io.IO retryWhileIO
1444
+ */
1445
+
1446
+ function retryWhileIO_1(fa, f, __tsplusTrace) {
1447
+ return catchAll_1(fa, e => flatMap_1(f(e), b => b ? retryWhileIO_1(fa, f, __tsplusTrace) : fail_1(() => e, __tsplusTrace), __tsplusTrace), __tsplusTrace);
1448
+ }
1449
+ /**
1450
+ * Retrieves the runtimeConfig that this effect is running on.
1451
+ *
1452
+ * @tsplus static fncts.io.IOOps runtimeConfig
1453
+ */
1454
+
1455
+
1456
+ export const runtimeConfig = /*#__PURE__*/deferWith_1(runtimeConfig => succeedNow_1(runtimeConfig, fileName_1 + ":1739:95"), fileName_1 + ":1739:62");
1457
+ /**
1458
+ * Exposes the full cause of failure of this effect.
1459
+ *
1460
+ * @tsplus getter fncts.io.IO sandbox
1461
+ */
1462
+
1463
+ function sandbox_1(fa, __tsplusTrace) {
1464
+ return matchCauseIO_1(fa, failNow_1, succeedNow_1, __tsplusTrace);
1465
+ }
1466
+ /**
1467
+ * @tsplus fluent fncts.io.IO sandboxWith
1468
+ */
1469
+
1470
+
1471
+ export function sandboxWith_(ma, f, __tsplusTrace) {
1472
+ return unsandbox_1(f(sandbox_1(ma)));
1473
+ }
1474
+ /**
1475
+ * Sets the runtime configuration to the specified value.
1476
+ * @tsplus static fncts.io.IOOps setRuntimeConfig
1477
+ */
1478
+
1479
+ export function setRuntimeConfig(runtimeConfig, __tsplusTrace) {
1480
+ return defer_1(() => new SetRuntimeConfig(runtimeConfig(), __tsplusTrace), __tsplusTrace);
1481
+ }
1482
+ /**
1483
+ * @tsplus static fncts.io.IOOps sequenceIterable
1484
+ */
1485
+
1486
+ export function sequenceIterable(as) {
1487
+ return foreach_1(as, identity, fileName_1 + ":1773:20");
1488
+ }
1489
+ /**
1490
+ * @tsplus static fncts.io.IOOps sequenceIterableDiscard
1491
+ */
1492
+
1493
+ export function sequenceIterableDiscard(as, __tsplusTrace) {
1494
+ return foreachDiscard_1(as, identity);
1495
+ }
1496
+ /**
1497
+ * Creates a `IO` that has succeeded with a pure value
1498
+ *
1499
+ * @tsplus static fncts.io.IOOps succeedNow
1500
+ */
1501
+
1502
+ function succeedNow_1(value, __tsplusTrace) {
1503
+ return new SucceedNow(value, __tsplusTrace);
1504
+ }
1505
+ /**
1506
+ * Imports a total synchronous effect into a pure `IO` value.
1507
+ * The effect must not throw any exceptions. If you wonder if the effect
1508
+ * throws exceptions, then do not use this method, use `IO.try`
1509
+ *
1510
+ * @tsplus static fncts.io.IOOps succeed
1511
+ * @tsplus static fncts.io.IOOps __call
1512
+ */
1513
+
1514
+
1515
+ function succeed_1(effect, __tsplusTrace) {
1516
+ return new Succeed(effect, __tsplusTrace);
1517
+ }
1518
+ /**
1519
+ *
1520
+ * Returns an IO with the behavior of this one, but where all child
1521
+ * fibers forked in the effect are reported to the specified supervisor.
1522
+ *
1523
+ * @tsplus fluent fncts.io.IO supervised
1524
+ */
1525
+
1526
+
1527
+ export function supervised_(fa, supervisor, __tsplusTrace) {
1528
+ return new Supervise(fa, supervisor);
1529
+ }
1530
+ /**
1531
+ * @tsplus fluent fncts.io.IO summarized
1532
+ */
1533
+
1534
+ function summarized_1(ma, summary, f, __tsplusTrace) {
1535
+ return gen_1(function* (_) {
1536
+ const start = yield* _(summary, __tsplusTrace);
1537
+ const value = yield* _(ma, __tsplusTrace);
1538
+ const end = yield* _(summary, __tsplusTrace);
1539
+ return tuple(f(start, end), value);
1540
+ });
1541
+ }
1542
+ /**
1543
+ * Swaps the positions of a Bifunctor's arguments
1544
+ *
1545
+ * @tsplus getter fncts.io.IO swap
1546
+ */
1547
+
1548
+
1549
+ function swap_1(pab) {
1550
+ return matchIO_1(pab, succeedNow_1, failNow_1, fileName_1 + ":1842:21");
1551
+ }
1552
+ /**
1553
+ * Swaps the error/value parameters, applies the function `f` and flips the parameters back
1554
+ *
1555
+ * @tsplus fluent fncts.io.IO swapWith
1556
+ */
1557
+
1558
+
1559
+ function swapWith_1(fa, f) {
1560
+ return swap_1(f(swap_1(fa)));
1561
+ }
1562
+ /**
1563
+ * A more powerful variation of `timed` that allows specifying the clock.
1564
+ *
1565
+ * @tsplus fluent fncts.io.IO timedWith
1566
+ */
1567
+
1568
+
1569
+ export function timedWith_(ma, msTime, __tsplusTrace) {
1570
+ return summarized_1(ma, msTime, (start, end) => end - start, __tsplusTrace);
1571
+ }
1572
+ /**
1573
+ * Creates a `IO` that has succeeded with a pure value
1574
+ *
1575
+ * @tsplus static fncts.io.IOOps tryCatch
1576
+ */
1577
+
1578
+ function tryCatch_1(effect, onThrow, __tsplusTrace) {
1579
+ return succeed_1(() => {
1580
+ try {
1581
+ return effect();
1582
+ } catch (u) {
1583
+ throw new IOError(tsplus_module_8.fail(onThrow(u)));
1584
+ }
1585
+ }, __tsplusTrace);
1586
+ }
1587
+ /**
1588
+ * Returns an `IO` that submerges an `Either` into the `IO`.
1589
+ *
1590
+ * @tsplus getter fncts.io.IO absolve
1591
+ */
1592
+
1593
+
1594
+ export function absolve(ma, __tsplusTrace) {
1595
+ return flatMap_1(ma, ea => tsplus_module_6.match_(ea, failNow_1, succeedNow_1), __tsplusTrace);
1596
+ }
1597
+ /**
1598
+ * Composes computations in sequence, using the return value of one computation as input for the next
1599
+ * and keeping only the result of the first
1600
+ *
1601
+ * Returns an IO that effectfully "peeks" at the success of this effect.
1602
+ *
1603
+ * @tsplus fluent fncts.io.IO tap
1604
+ */
1605
+
1606
+ export function tap_(self, f, __tsplusTrace) {
1607
+ return flatMap_1(self, a => map_1(f(a), () => a, __tsplusTrace), __tsplusTrace);
1608
+ }
1609
+ /**
1610
+ * Returns an IO that effectually "peeks" at the cause of the failure of
1611
+ * this IO.
1612
+ *
1613
+ * @tsplus fluent fncts.io.IO tapCause
1614
+ */
1615
+
1616
+ export function tapCause_(ma, f, __tsplusTrace) {
1617
+ return matchCauseIO_1(ma, c => flatMap_1(f(c), () => failCauseNow_1(c, __tsplusTrace), __tsplusTrace), succeedNow_1, __tsplusTrace);
1618
+ }
1619
+ /**
1620
+ * Returns an IO that effectfully "peeks" at the failure of this effect.
1621
+ *
1622
+ * @tsplus fluent fncts.io.IO tapError
1623
+ */
1624
+
1625
+ export function tapError_(self, f, __tsplusTrace) {
1626
+ return matchCauseIO_1(self, cause => tsplus_module_6.match_(tsplus_module_5.failureOrCause(cause), e => flatMap_1(f(e), () => failCauseNow_1(cause, __tsplusTrace), __tsplusTrace), _ => failCauseNow_1(cause, __tsplusTrace)), succeedNow_1, __tsplusTrace);
1627
+ }
1628
+ /**
1629
+ * Returns an effect that effectually "peeks" at the cause of the failure of
1630
+ * this effect.
1631
+ *
1632
+ * @tsplus fluent fncts.io.IO tapErrorCause
1633
+ */
1634
+
1635
+ export function tapErrorCause_(self, f, __tsplusTrace) {
1636
+ return matchCauseIO_1(self, cause => apSecond_1(f(cause), failCauseNow_1(cause, __tsplusTrace), __tsplusTrace), succeedNow_1, __tsplusTrace);
1637
+ }
1638
+ /**
1639
+ * @tsplus fluent fncts.io.IO tryOrElse
1640
+ */
1641
+
1642
+ function tryOrElse_1(ma, that, onSuccess, __tsplusTrace) {
1643
+ return matchCauseIO_1(ma, cause => tsplus_module_4.match_(tsplus_module_5.keepDefects(cause), that, failCauseNow_1), onSuccess, __tsplusTrace);
1644
+ }
1645
+ /**
1646
+ * @tsplus static fncts.io.IOOps unit
1647
+ */
1648
+
1649
+
1650
+ const unit_1 = /*#__PURE__*/succeedNow_1(undefined, fileName_1 + ":1962:45");
1651
+ export const unit = unit_1;
1652
+ /**
1653
+ * Converts an option on errors into an option on values.
1654
+ *
1655
+ * @tsplus getter fncts.io.IO unjust
1656
+ */
1657
+
1658
+ export function unjust(self) {
1659
+ return matchIO_1(self, e => tsplus_module_4.match_(e, () => succeedNow_1(tsplus_module_2.nothing(), fileName_1 + ":1971:39"), failNow_1), a => succeedNow_1(tsplus_module_2.just(a), fileName_1 + ":1972:25"), fileName_1 + ":1970:22");
1660
+ }
1661
+ /**
1662
+ * Takes some fiber failures and converts them into errors, using the
1663
+ * specified function to convert the `E` into an `E1 | E2`.
1664
+ *
1665
+ * @tsplus fluent fncts.io.IO unrefineWith
1666
+ */
1667
+
1668
+ function unrefineWith_1(fa, pf, f, __tsplusTrace) {
1669
+ return catchAllCause_1(fa, cause => tsplus_module_4.match_(tsplus_module_5.find_(cause, c => tsplus_module_5.isHalt(c) ? pf(c.value) : tsplus_module_2.nothing()), () => failCauseNow_1(tsplus_module_5.map_(cause, f), __tsplusTrace), failNow_1), __tsplusTrace);
1670
+ }
1671
+ /**
1672
+ * The inverse operation `sandbox`
1673
+ *
1674
+ * @tsplus getter fncts.io.IO unsandbox
1675
+ */
1676
+
1677
+
1678
+ function unsandbox_1(ma) {
1679
+ return mapErrorCause_1(ma, cause => tsplus_module_5.flatten(cause), fileName_1 + ":1999:26");
1680
+ }
1681
+ /**
1682
+ * Updates the `FiberRef` values for the fiber running this effect using the
1683
+ * specified function
1684
+ *
1685
+ * @tsplus static fncts.io.IOOps updateFiberRefs
1686
+ */
1687
+
1688
+
1689
+ export function updateFiberRefs(f, __tsplusTrace) {
1690
+ return new FiberRefModifyAll((fiberId, fiberRefs) => [undefined, f(fiberId, fiberRefs)], __tsplusTrace);
1691
+ }
1692
+ /**
1693
+ * @tsplus fluent fncts.io.IO __call
1694
+ */
1695
+
1696
+ export const via = pipe;
1697
+ /**
1698
+ * @tsplus fluent fncts.io.IO when
1699
+ */
1700
+
1701
+ export function when_(ma, b, __tsplusTrace) {
1702
+ return whenIO_1(ma, succeed_1(b, __tsplusTrace));
1703
+ }
1704
+ /**
1705
+ * The moral equivalent of `if (p) exp` when `p` has side-effects
1706
+ *
1707
+ * @tsplus fluent fncts.io.IO whenIO
1708
+ */
1709
+
1710
+ function whenIO_1(ma, mb) {
1711
+ return flatMap_1(mb, b => b ? asUnit_1(ma) : unit_1, fileName_1 + ":2033:20");
1712
+ }
1713
+ /**
1714
+ * Returns an effect that yields to the runtime system, starting on a fresh
1715
+ * stack. Manual use of this method can improve fairness, at the cost of
1716
+ * overhead.
1717
+ *
1718
+ * @tsplus static fncts.io.IOOps yieldNow
1719
+ */
1720
+
1721
+
1722
+ const yieldNow_1 = /*#__PURE__*/new Yield();
1723
+ export const yieldNow = yieldNow_1;
1724
+ /**
1725
+ * @tsplus fluent fncts.io.IO zip
1726
+ */
1727
+
1728
+ export function zip_(self, that) {
1729
+ return zipWith_1(self, that, tuple);
1730
+ }
1731
+ /**
1732
+ * @tsplus fluent fncts.io.IO zipWith
1733
+ */
1734
+
1735
+ function zipWith_1(self, that, f) {
1736
+ return flatMap_1(self, a => map_1(that, b => f(a, b), fileName_1 + ":2060:38"), fileName_1 + ":2060:22");
1737
+ }
1738
+
1739
+ export class GenIO {
1740
+ constructor(effect, _trace) {
1741
+ this.effect = effect;
1742
+ this._trace = _trace;
1743
+ }
1744
+
1745
+ *[Symbol.iterator]() {
1746
+ return yield this;
1747
+ }
1748
+
1749
+ }
1750
+ /**
1751
+ * @internal
1752
+ */
1753
+
1754
+ export const __adapter = _ => {
1755
+ // if (Either.isEither(_)) {
1756
+ // return IO.fromEither(_);
1757
+ // }
1758
+ // if (Maybe.isMaybe(_)) {
1759
+ // return __
1760
+ // ? _._tag === "Nothing"
1761
+ // ? IO.failNow(__())
1762
+ // : IO.succeed(_.value)
1763
+ // : getOrFail(_);
1764
+ // }
1765
+ // if (isTag(_)) {
1766
+ // return service(_);
1767
+ // }
1768
+ // if (S.isSync(_)) {
1769
+ // return fromSync(_);
1770
+ // }
1771
+ return _;
1772
+ };
1773
+
1774
+ const adapter = (_, __tsplusTrace) => {
1775
+ return new GenIO(__adapter(_), __tsplusTrace);
1776
+ };
1777
+ /**
1778
+ * @tsplus static fncts.io.IOOps gen
1779
+ * @gen
1780
+ */
1781
+
1782
+
1783
+ function gen_1(f) {
1784
+ return defer_1(() => {
1785
+ const iterator = f(adapter);
1786
+ const state = iterator.next();
1787
+
1788
+ const run = state => {
1789
+ if (state.done) {
1790
+ return succeed_1(() => state.value, fileName_1 + ":2115:26");
1791
+ }
1792
+
1793
+ const f = val => {
1794
+ const next = iterator.next(val);
1795
+ return run(next);
1796
+ };
1797
+
1798
+ return flatMap_1(state.value.effect, f, fileName_1 + ":2121:40");
1799
+ };
1800
+
1801
+ return run(state);
1802
+ }, fileName_1 + ":2109:18");
1803
+ }
1804
+ //# sourceMappingURL=api.mjs.map