@fncts/io 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1089) hide show
  1. package/Cached/api.d.ts +2 -2
  2. package/Channel/ChildExecutorDecision/api.d.ts +2 -2
  3. package/Channel/UpstreamPullRequest/api.d.ts +2 -2
  4. package/Channel/api/interruptWhen.d.ts +5 -5
  5. package/Channel/api/mapOutIOC.d.ts +3 -3
  6. package/Channel/api/mergeAll.d.ts +2 -2
  7. package/Channel/api/mergeAllUnboundedWith.d.ts +2 -2
  8. package/Channel/api/mergeAllWith.d.ts +2 -2
  9. package/Channel/api/mergeMap.d.ts +2 -2
  10. package/Channel/api/mergeWith.d.ts +2 -2
  11. package/Channel/api/zipC.d.ts +6 -6
  12. package/Channel/api.d.ts +64 -64
  13. package/Channel/core-api.d.ts +11 -11
  14. package/Channel/definition.d.ts +35 -21
  15. package/Fiber/api/evalOn.d.ts +3 -3
  16. package/Fiber/api/evalOnIO.d.ts +3 -3
  17. package/Fiber/api/interruptAs.d.ts +3 -3
  18. package/Fiber/api/interruptAsFork.d.ts +3 -3
  19. package/Fiber/api/mapFiber.d.ts +2 -2
  20. package/Fiber/api/mapIO.d.ts +5 -5
  21. package/Fiber/api/zipWith.d.ts +2 -2
  22. package/Fiber.d.ts +1 -0
  23. package/FiberRef/api/locallyScoped.d.ts +2 -2
  24. package/FiberRef/api/locallyScopedWith.d.ts +2 -2
  25. package/FiberRef/api.d.ts +18 -18
  26. package/FiberRefs/api.d.ts +2 -2
  27. package/FiberRefs/join.d.ts +3 -3
  28. package/Future/api.d.ts +21 -21
  29. package/Hub/constructors.d.ts +49 -0
  30. package/Hub/definition.d.ts +37 -81
  31. package/Hub/internal.d.ts +4 -11
  32. package/Hub.d.ts +1 -1
  33. package/IO/api/acquireRelease.d.ts +1 -1
  34. package/IO/api/acquireReleaseExit.d.ts +1 -1
  35. package/IO/api/bracket.d.ts +1 -1
  36. package/IO/api/bracketExit.d.ts +1 -1
  37. package/IO/api/concurrency.d.ts +2 -2
  38. package/IO/api/core-scope.d.ts +5 -5
  39. package/IO/api/ensuringChildren.d.ts +3 -3
  40. package/IO/api/environment.d.ts +11 -15
  41. package/IO/api/foreachC.d.ts +2 -2
  42. package/IO/api/foreachExec.d.ts +1 -1
  43. package/IO/api/forkIn.d.ts +3 -3
  44. package/IO/api/fulfill.d.ts +3 -3
  45. package/IO/api/interrupt.d.ts +6 -6
  46. package/IO/api/onExit.d.ts +3 -3
  47. package/IO/api/onTermination.d.ts +4 -4
  48. package/IO/api/provideLayer.d.ts +3 -3
  49. package/IO/api/provideSomeLayer.d.ts +3 -7
  50. package/IO/api/race.d.ts +2 -2
  51. package/IO/api/raceFirst.d.ts +2 -2
  52. package/IO/api/repeat.d.ts +3 -3
  53. package/IO/api/retry.d.ts +7 -7
  54. package/IO/api/schedule.d.ts +5 -5
  55. package/IO/api/scoped.d.ts +2 -2
  56. package/IO/api/supervised.d.ts +3 -3
  57. package/IO/api/timeout.d.ts +5 -5
  58. package/IO/api/withFinalizer.d.ts +3 -3
  59. package/IO/api/withFinalizerExit.d.ts +3 -3
  60. package/IO/api/withRuntimeConfig.d.ts +3 -3
  61. package/IO/api/zipC.d.ts +4 -4
  62. package/IO/api.d.ts +179 -176
  63. package/IO/definition.d.ts +15 -9
  64. package/Layer/MemoMap.d.ts +4 -4
  65. package/Layer/api.d.ts +28 -28
  66. package/LogLevel.d.ts +12 -12
  67. package/LogSpan.d.ts +2 -2
  68. package/Logger/api.d.ts +5 -5
  69. package/Queue/constructors.d.ts +2 -1
  70. package/Queue/definition.d.ts +91 -82
  71. package/Queue/internal.d.ts +7 -9
  72. package/Queue.d.ts +0 -2
  73. package/Ref/Atomic.d.ts +15 -2
  74. package/Ref/Synchronized.d.ts +72 -0
  75. package/Ref/constructors.d.ts +7 -0
  76. package/Ref/definition.d.ts +60 -58
  77. package/Ref.d.ts +1 -6
  78. package/STM/api/core-api.d.ts +10 -10
  79. package/STM/api.d.ts +61 -61
  80. package/STM/internal/Journal.d.ts +4 -4
  81. package/Schedule/Decision.d.ts +2 -2
  82. package/Schedule/api.d.ts +94 -94
  83. package/Scope/ReleaseMap/api/releaseAll.d.ts +2 -2
  84. package/Scope/ReleaseMap/api.d.ts +10 -10
  85. package/Scope/api.d.ts +8 -8
  86. package/Sink/api.d.ts +68 -68
  87. package/State/api.d.ts +4 -4
  88. package/State/internal.d.ts +1 -1
  89. package/Stream/api/zipAllWith.d.ts +2 -2
  90. package/Stream/api/zipWith.d.ts +2 -2
  91. package/Stream/api/zipWithChunks.d.ts +2 -2
  92. package/Stream/api.d.ts +216 -205
  93. package/Stream/internal/DebounceState.d.ts +3 -3
  94. package/Stream/internal/Handoff.d.ts +5 -5
  95. package/Stream/internal/Pull.d.ts +2 -2
  96. package/Stream/internal/SinkEndReason.d.ts +3 -3
  97. package/Stream/internal/Take.d.ts +8 -8
  98. package/SubscriptionRef.d.ts +29 -0
  99. package/Supervisor/api.d.ts +4 -4
  100. package/SupervisorPatch.d.ts +4 -4
  101. package/TFuture/api.d.ts +7 -7
  102. package/TReentrantLock/api.d.ts +4 -4
  103. package/TRef/api.d.ts +24 -24
  104. package/TSemaphore/api.d.ts +4 -4
  105. package/TSemaphore/constructors.d.ts +6 -0
  106. package/_cjs/Cached/api.cjs +9 -9
  107. package/_cjs/Cached/api.cjs.map +1 -1
  108. package/_cjs/Channel/ChildExecutorDecision/api.cjs +19 -17
  109. package/_cjs/Channel/ChildExecutorDecision/api.cjs.map +1 -1
  110. package/_cjs/Channel/UpstreamPullRequest/api.cjs +16 -14
  111. package/_cjs/Channel/UpstreamPullRequest/api.cjs.map +1 -1
  112. package/_cjs/Channel/api/interruptWhen.cjs +14 -10
  113. package/_cjs/Channel/api/interruptWhen.cjs.map +1 -1
  114. package/_cjs/Channel/api/mapOutIOC.cjs +25 -25
  115. package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -1
  116. package/_cjs/Channel/api/mergeAll.cjs +6 -4
  117. package/_cjs/Channel/api/mergeAll.cjs.map +1 -1
  118. package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +6 -4
  119. package/_cjs/Channel/api/mergeAllUnboundedWith.cjs.map +1 -1
  120. package/_cjs/Channel/api/mergeAllWith.cjs +48 -52
  121. package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
  122. package/_cjs/Channel/api/mergeMap.cjs +6 -4
  123. package/_cjs/Channel/api/mergeMap.cjs.map +1 -1
  124. package/_cjs/Channel/api/mergeWith.cjs +48 -46
  125. package/_cjs/Channel/api/mergeWith.cjs.map +1 -1
  126. package/_cjs/Channel/api/run.cjs +1 -1
  127. package/_cjs/Channel/api/run.cjs.map +1 -1
  128. package/_cjs/Channel/api/runScoped.cjs +2 -2
  129. package/_cjs/Channel/api/runScoped.cjs.map +1 -1
  130. package/_cjs/Channel/api/toPull.cjs +3 -3
  131. package/_cjs/Channel/api/toPull.cjs.map +1 -1
  132. package/_cjs/Channel/api/zipC.cjs +20 -14
  133. package/_cjs/Channel/api/zipC.cjs.map +1 -1
  134. package/_cjs/Channel/api.cjs +264 -218
  135. package/_cjs/Channel/api.cjs.map +1 -1
  136. package/_cjs/Channel/core-api.cjs +34 -24
  137. package/_cjs/Channel/core-api.cjs.map +1 -1
  138. package/_cjs/Channel/definition.cjs +1 -1
  139. package/_cjs/Channel/definition.cjs.map +1 -1
  140. package/_cjs/Channel/internal/ChannelExecutor.cjs +83 -83
  141. package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
  142. package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +22 -24
  143. package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs.map +1 -1
  144. package/_cjs/Differ/api.cjs +5 -5
  145. package/_cjs/Differ/api.cjs.map +1 -1
  146. package/_cjs/Fiber/FiberContext.cjs +48 -48
  147. package/_cjs/Fiber/FiberContext.cjs.map +1 -1
  148. package/_cjs/Fiber/api/awaitAll.cjs +1 -1
  149. package/_cjs/Fiber/api/awaitAll.cjs.map +1 -1
  150. package/_cjs/Fiber/api/collectAll.cjs +1 -1
  151. package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
  152. package/_cjs/Fiber/api/evalOn.cjs +12 -10
  153. package/_cjs/Fiber/api/evalOn.cjs.map +1 -1
  154. package/_cjs/Fiber/api/evalOnIO.cjs +6 -4
  155. package/_cjs/Fiber/api/evalOnIO.cjs.map +1 -1
  156. package/_cjs/Fiber/api/fromIO.cjs +1 -1
  157. package/_cjs/Fiber/api/fromIO.cjs.map +1 -1
  158. package/_cjs/Fiber/api/interrupt.cjs +1 -1
  159. package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
  160. package/_cjs/Fiber/api/interruptAll.cjs +2 -2
  161. package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
  162. package/_cjs/Fiber/api/interruptAs.cjs +6 -4
  163. package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
  164. package/_cjs/Fiber/api/interruptAsFork.cjs +6 -4
  165. package/_cjs/Fiber/api/interruptAsFork.cjs.map +1 -1
  166. package/_cjs/Fiber/api/interruptFork.cjs +1 -1
  167. package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
  168. package/_cjs/Fiber/api/join.cjs +1 -1
  169. package/_cjs/Fiber/api/join.cjs.map +1 -1
  170. package/_cjs/Fiber/api/joinAll.cjs +1 -1
  171. package/_cjs/Fiber/api/joinAll.cjs.map +1 -1
  172. package/_cjs/Fiber/api/mapFiber.cjs +6 -4
  173. package/_cjs/Fiber/api/mapFiber.cjs.map +1 -1
  174. package/_cjs/Fiber/api/mapIO.cjs +14 -10
  175. package/_cjs/Fiber/api/mapIO.cjs.map +1 -1
  176. package/_cjs/Fiber/api/zipWith.cjs +6 -4
  177. package/_cjs/Fiber/api/zipWith.cjs.map +1 -1
  178. package/_cjs/Fiber/definition.cjs.map +1 -1
  179. package/_cjs/Fiber.cjs +13 -0
  180. package/_cjs/Fiber.cjs.map +1 -1
  181. package/_cjs/FiberRef/api/locallyScoped.cjs +6 -4
  182. package/_cjs/FiberRef/api/locallyScoped.cjs.map +1 -1
  183. package/_cjs/FiberRef/api/locallyScopedWith.cjs +5 -3
  184. package/_cjs/FiberRef/api/locallyScopedWith.cjs.map +1 -1
  185. package/_cjs/FiberRef/api.cjs +64 -47
  186. package/_cjs/FiberRef/api.cjs.map +1 -1
  187. package/_cjs/FiberRef/constructors.cjs +1 -1
  188. package/_cjs/FiberRef/constructors.cjs.map +1 -1
  189. package/_cjs/FiberRef.cjs.map +1 -1
  190. package/_cjs/FiberRefs/api.cjs +15 -13
  191. package/_cjs/FiberRefs/api.cjs.map +1 -1
  192. package/_cjs/FiberRefs/join.cjs +37 -35
  193. package/_cjs/FiberRefs/join.cjs.map +1 -1
  194. package/_cjs/FiberState/definition.cjs.map +1 -1
  195. package/_cjs/Future/api.cjs +97 -79
  196. package/_cjs/Future/api.cjs.map +1 -1
  197. package/_cjs/Future/constructors.cjs +1 -1
  198. package/_cjs/Future/constructors.cjs.map +1 -1
  199. package/_cjs/Hub/constructors.cjs +93 -0
  200. package/_cjs/Hub/constructors.cjs.map +1 -0
  201. package/_cjs/Hub/definition.cjs +104 -13
  202. package/_cjs/Hub/definition.cjs.map +1 -1
  203. package/_cjs/Hub/internal.cjs +104 -129
  204. package/_cjs/Hub/internal.cjs.map +1 -1
  205. package/_cjs/Hub.cjs +4 -4
  206. package/_cjs/IO/api/acquireReleaseExit.cjs +1 -1
  207. package/_cjs/IO/api/acquireReleaseExit.cjs.map +1 -1
  208. package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +1 -1
  209. package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs.map +1 -1
  210. package/_cjs/IO/api/addFinalizerExit.cjs +1 -1
  211. package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
  212. package/_cjs/IO/api/asyncIO.cjs +4 -4
  213. package/_cjs/IO/api/asyncIO.cjs.map +1 -1
  214. package/_cjs/IO/api/bracket.cjs +3 -3
  215. package/_cjs/IO/api/bracket.cjs.map +1 -1
  216. package/_cjs/IO/api/bracketExit.cjs +3 -3
  217. package/_cjs/IO/api/bracketExit.cjs.map +1 -1
  218. package/_cjs/IO/api/clockWith.cjs +2 -2
  219. package/_cjs/IO/api/clockWith.cjs.map +1 -1
  220. package/_cjs/IO/api/concurrency.cjs +9 -7
  221. package/_cjs/IO/api/concurrency.cjs.map +1 -1
  222. package/_cjs/IO/api/concurrentFinalizers.cjs +1 -1
  223. package/_cjs/IO/api/concurrentFinalizers.cjs.map +1 -1
  224. package/_cjs/IO/api/consoleWith.cjs +2 -2
  225. package/_cjs/IO/api/consoleWith.cjs.map +1 -1
  226. package/_cjs/IO/api/core-scope.cjs +45 -41
  227. package/_cjs/IO/api/core-scope.cjs.map +1 -1
  228. package/_cjs/IO/api/ensuringChildren.cjs +5 -3
  229. package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
  230. package/_cjs/IO/api/environment.cjs +35 -35
  231. package/_cjs/IO/api/environment.cjs.map +1 -1
  232. package/_cjs/IO/api/foreachC.cjs +19 -23
  233. package/_cjs/IO/api/foreachC.cjs.map +1 -1
  234. package/_cjs/IO/api/foreachExec.cjs +3 -3
  235. package/_cjs/IO/api/foreachExec.cjs.map +1 -1
  236. package/_cjs/IO/api/forkAll.cjs +1 -1
  237. package/_cjs/IO/api/forkAll.cjs.map +1 -1
  238. package/_cjs/IO/api/forkIn.cjs +8 -6
  239. package/_cjs/IO/api/forkIn.cjs.map +1 -1
  240. package/_cjs/IO/api/forkScoped.cjs +1 -1
  241. package/_cjs/IO/api/forkScoped.cjs.map +1 -1
  242. package/_cjs/IO/api/fulfill.cjs +8 -6
  243. package/_cjs/IO/api/fulfill.cjs.map +1 -1
  244. package/_cjs/IO/api/interrupt.cjs +36 -30
  245. package/_cjs/IO/api/interrupt.cjs.map +1 -1
  246. package/_cjs/IO/api/memoize.cjs +1 -1
  247. package/_cjs/IO/api/memoize.cjs.map +1 -1
  248. package/_cjs/IO/api/onExit.cjs +6 -4
  249. package/_cjs/IO/api/onExit.cjs.map +1 -1
  250. package/_cjs/IO/api/onTermination.cjs +5 -3
  251. package/_cjs/IO/api/onTermination.cjs.map +1 -1
  252. package/_cjs/IO/api/once.cjs +3 -5
  253. package/_cjs/IO/api/once.cjs.map +1 -1
  254. package/_cjs/IO/api/provideLayer.cjs +6 -4
  255. package/_cjs/IO/api/provideLayer.cjs.map +1 -1
  256. package/_cjs/IO/api/provideSomeLayer.cjs +5 -15
  257. package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
  258. package/_cjs/IO/api/race.cjs +6 -4
  259. package/_cjs/IO/api/race.cjs.map +1 -1
  260. package/_cjs/IO/api/raceFirst.cjs +6 -4
  261. package/_cjs/IO/api/raceFirst.cjs.map +1 -1
  262. package/_cjs/IO/api/randomWith.cjs +1 -1
  263. package/_cjs/IO/api/randomWith.cjs.map +1 -1
  264. package/_cjs/IO/api/repeat.cjs +12 -12
  265. package/_cjs/IO/api/repeat.cjs.map +1 -1
  266. package/_cjs/IO/api/retry.cjs +14 -14
  267. package/_cjs/IO/api/retry.cjs.map +1 -1
  268. package/_cjs/IO/api/schedule.cjs +15 -11
  269. package/_cjs/IO/api/schedule.cjs.map +1 -1
  270. package/_cjs/IO/api/scoped.cjs +6 -6
  271. package/_cjs/IO/api/scoped.cjs.map +1 -1
  272. package/_cjs/IO/api/sequenceT.cjs +1 -1
  273. package/_cjs/IO/api/sequenceT.cjs.map +1 -1
  274. package/_cjs/IO/api/stateful.cjs.map +1 -1
  275. package/_cjs/IO/api/supervised.cjs +6 -4
  276. package/_cjs/IO/api/supervised.cjs.map +1 -1
  277. package/_cjs/IO/api/timeout.cjs +10 -6
  278. package/_cjs/IO/api/timeout.cjs.map +1 -1
  279. package/_cjs/IO/api/withChildren.cjs +1 -1
  280. package/_cjs/IO/api/withChildren.cjs.map +1 -1
  281. package/_cjs/IO/api/withEarlyRelease.cjs +1 -1
  282. package/_cjs/IO/api/withEarlyRelease.cjs.map +1 -1
  283. package/_cjs/IO/api/withFinalizer.cjs +6 -4
  284. package/_cjs/IO/api/withFinalizer.cjs.map +1 -1
  285. package/_cjs/IO/api/withFinalizerExit.cjs +6 -4
  286. package/_cjs/IO/api/withFinalizerExit.cjs.map +1 -1
  287. package/_cjs/IO/api/withRuntimeConfig.cjs +6 -4
  288. package/_cjs/IO/api/withRuntimeConfig.cjs.map +1 -1
  289. package/_cjs/IO/api/zipC.cjs +21 -17
  290. package/_cjs/IO/api/zipC.cjs.map +1 -1
  291. package/_cjs/IO/api.cjs +634 -509
  292. package/_cjs/IO/api.cjs.map +1 -1
  293. package/_cjs/IO/definition.cjs.map +1 -1
  294. package/_cjs/IO/runtime.cjs +7 -7
  295. package/_cjs/IO/runtime.cjs.map +1 -1
  296. package/_cjs/IO.cjs.map +1 -1
  297. package/_cjs/IOEnv/definition.cjs +1 -1
  298. package/_cjs/IOEnv/definition.cjs.map +1 -1
  299. package/_cjs/IOEnv/live.cjs +1 -1
  300. package/_cjs/IOEnv/live.cjs.map +1 -1
  301. package/_cjs/Layer/MemoMap.cjs +86 -92
  302. package/_cjs/Layer/MemoMap.cjs.map +1 -1
  303. package/_cjs/Layer/api.cjs +110 -81
  304. package/_cjs/Layer/api.cjs.map +1 -1
  305. package/_cjs/Layer/definition.cjs.map +1 -1
  306. package/_cjs/LogLevel.cjs +24 -16
  307. package/_cjs/LogLevel.cjs.map +1 -1
  308. package/_cjs/LogSpan.cjs +18 -16
  309. package/_cjs/LogSpan.cjs.map +1 -1
  310. package/_cjs/Logger/api.cjs +18 -14
  311. package/_cjs/Logger/api.cjs.map +1 -1
  312. package/_cjs/Logger/constructors.cjs +1 -1
  313. package/_cjs/Logger/constructors.cjs.map +1 -1
  314. package/_cjs/Queue/constructors.cjs +19 -5
  315. package/_cjs/Queue/constructors.cjs.map +1 -1
  316. package/_cjs/Queue/definition.cjs +191 -16
  317. package/_cjs/Queue/definition.cjs.map +1 -1
  318. package/_cjs/Queue/internal.cjs +27 -181
  319. package/_cjs/Queue/internal.cjs.map +1 -1
  320. package/_cjs/Queue/strategy.cjs +19 -19
  321. package/_cjs/Queue/strategy.cjs.map +1 -1
  322. package/_cjs/Queue.cjs +0 -26
  323. package/_cjs/Queue.cjs.map +1 -1
  324. package/_cjs/Random/live.cjs +2 -2
  325. package/_cjs/Random/live.cjs.map +1 -1
  326. package/_cjs/Ref/Atomic.cjs +47 -24
  327. package/_cjs/Ref/Atomic.cjs.map +1 -1
  328. package/_cjs/Ref/Synchronized.cjs +140 -0
  329. package/_cjs/Ref/Synchronized.cjs.map +1 -0
  330. package/_cjs/Ref/constructors.cjs +21 -2
  331. package/_cjs/Ref/constructors.cjs.map +1 -1
  332. package/_cjs/Ref/definition.cjs +105 -10
  333. package/_cjs/Ref/definition.cjs.map +1 -1
  334. package/_cjs/Ref.cjs +4 -69
  335. package/_cjs/Ref.cjs.map +1 -1
  336. package/_cjs/Reloadable/constructors.cjs +10 -10
  337. package/_cjs/Reloadable/constructors.cjs.map +1 -1
  338. package/_cjs/RuntimeConfig.cjs +2 -2
  339. package/_cjs/RuntimeConfig.cjs.map +1 -1
  340. package/_cjs/STM/api/core-api.cjs +36 -26
  341. package/_cjs/STM/api/core-api.cjs.map +1 -1
  342. package/_cjs/STM/api.cjs +217 -163
  343. package/_cjs/STM/api.cjs.map +1 -1
  344. package/_cjs/STM/driver.cjs +3 -3
  345. package/_cjs/STM/driver.cjs.map +1 -1
  346. package/_cjs/STM/internal/Entry.cjs.map +1 -1
  347. package/_cjs/STM/internal/Journal.cjs +33 -29
  348. package/_cjs/STM/internal/Journal.cjs.map +1 -1
  349. package/_cjs/STM.cjs.map +1 -1
  350. package/_cjs/Schedule/Decision.cjs +16 -14
  351. package/_cjs/Schedule/Decision.cjs.map +1 -1
  352. package/_cjs/Schedule/api/driver.cjs +16 -20
  353. package/_cjs/Schedule/api/driver.cjs.map +1 -1
  354. package/_cjs/Schedule/api.cjs +381 -290
  355. package/_cjs/Schedule/api.cjs.map +1 -1
  356. package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +14 -14
  357. package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs.map +1 -1
  358. package/_cjs/Scope/ReleaseMap/api.cjs +68 -61
  359. package/_cjs/Scope/ReleaseMap/api.cjs.map +1 -1
  360. package/_cjs/Scope/api.cjs +34 -27
  361. package/_cjs/Scope/api.cjs.map +1 -1
  362. package/_cjs/ScopedRef/api.cjs +9 -13
  363. package/_cjs/ScopedRef/api.cjs.map +1 -1
  364. package/_cjs/ScopedRef/definition.cjs +1 -1
  365. package/_cjs/ScopedRef/definition.cjs.map +1 -1
  366. package/_cjs/Sink/api.cjs +307 -249
  367. package/_cjs/Sink/api.cjs.map +1 -1
  368. package/_cjs/State/api.cjs +18 -14
  369. package/_cjs/State/api.cjs.map +1 -1
  370. package/_cjs/Stream/api/zipAllWith.cjs +15 -13
  371. package/_cjs/Stream/api/zipAllWith.cjs.map +1 -1
  372. package/_cjs/Stream/api/zipWith.cjs +6 -4
  373. package/_cjs/Stream/api/zipWith.cjs.map +1 -1
  374. package/_cjs/Stream/api/zipWithChunks.cjs +13 -11
  375. package/_cjs/Stream/api/zipWithChunks.cjs.map +1 -1
  376. package/_cjs/Stream/api.cjs +992 -788
  377. package/_cjs/Stream/api.cjs.map +1 -1
  378. package/_cjs/Stream/definition.cjs.map +1 -1
  379. package/_cjs/Stream/internal/DebounceState.cjs +21 -19
  380. package/_cjs/Stream/internal/DebounceState.cjs.map +1 -1
  381. package/_cjs/Stream/internal/Handoff.cjs +35 -33
  382. package/_cjs/Stream/internal/Handoff.cjs.map +1 -1
  383. package/_cjs/Stream/internal/Pull.cjs +9 -11
  384. package/_cjs/Stream/internal/Pull.cjs.map +1 -1
  385. package/_cjs/Stream/internal/SinkEndReason.cjs +16 -14
  386. package/_cjs/Stream/internal/SinkEndReason.cjs.map +1 -1
  387. package/_cjs/Stream/internal/Take.cjs +32 -24
  388. package/_cjs/Stream/internal/Take.cjs.map +1 -1
  389. package/_cjs/Stream/internal/util.cjs +3 -3
  390. package/_cjs/Stream/internal/util.cjs.map +1 -1
  391. package/_cjs/SubscriptionRef.cjs +68 -0
  392. package/_cjs/SubscriptionRef.cjs.map +1 -0
  393. package/_cjs/Supervisor/api.cjs +24 -20
  394. package/_cjs/Supervisor/api.cjs.map +1 -1
  395. package/_cjs/Supervisor/constructors.cjs +2 -2
  396. package/_cjs/Supervisor/constructors.cjs.map +1 -1
  397. package/_cjs/Supervisor/definition.cjs +1 -1
  398. package/_cjs/Supervisor/definition.cjs.map +1 -1
  399. package/_cjs/SupervisorPatch.cjs +15 -11
  400. package/_cjs/SupervisorPatch.cjs.map +1 -1
  401. package/_cjs/TExit/definition.cjs.map +1 -1
  402. package/_cjs/TFuture/api.cjs +21 -15
  403. package/_cjs/TFuture/api.cjs.map +1 -1
  404. package/_cjs/TFuture/constructors.cjs +1 -1
  405. package/_cjs/TFuture/constructors.cjs.map +1 -1
  406. package/_cjs/TFuture/definition.cjs.map +1 -1
  407. package/_cjs/TReentrantLock/api.cjs +32 -28
  408. package/_cjs/TReentrantLock/api.cjs.map +1 -1
  409. package/_cjs/TReentrantLock/definition.cjs +4 -4
  410. package/_cjs/TReentrantLock/definition.cjs.map +1 -1
  411. package/_cjs/TRef/api.cjs +233 -209
  412. package/_cjs/TRef/api.cjs.map +1 -1
  413. package/_cjs/TRef/definition.cjs +4 -4
  414. package/_cjs/TRef/definition.cjs.map +1 -1
  415. package/_cjs/TSemaphore/api.cjs +27 -23
  416. package/_cjs/TSemaphore/api.cjs.map +1 -1
  417. package/_cjs/TSemaphore/constructors.cjs +18 -3
  418. package/_cjs/TSemaphore/constructors.cjs.map +1 -1
  419. package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +21 -19
  420. package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -1
  421. package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +21 -19
  422. package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -1
  423. package/_cjs/collection/immutable/Conc/filterIO.cjs +16 -14
  424. package/_cjs/collection/immutable/Conc/filterIO.cjs.map +1 -1
  425. package/_cjs/collection/immutable/Conc/findIO.cjs +19 -17
  426. package/_cjs/collection/immutable/Conc/findIO.cjs.map +1 -1
  427. package/_cjs/collection/immutable/Conc/mapIO.cjs +11 -9
  428. package/_cjs/collection/immutable/Conc/mapIO.cjs.map +1 -1
  429. package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +31 -29
  430. package/_cjs/collection/immutable/Conc/takeWhileIO.cjs.map +1 -1
  431. package/_cjs/data/Exit/foreachIO.cjs +6 -4
  432. package/_cjs/data/Exit/foreachIO.cjs.map +1 -1
  433. package/_cjs/internal/Hub.cjs +13 -11
  434. package/_cjs/internal/Hub.cjs.map +1 -1
  435. package/_cjs/internal/IsFatal.cjs +18 -16
  436. package/_cjs/internal/IsFatal.cjs.map +1 -1
  437. package/_cjs/internal/MutableQueue.cjs +11 -9
  438. package/_cjs/internal/MutableQueue.cjs.map +1 -1
  439. package/_cjs/internal/StackTraceBuilder.cjs.map +1 -1
  440. package/_mjs/Cached/api.mjs +6 -6
  441. package/_mjs/Cached/api.mjs.map +1 -1
  442. package/_mjs/Channel/ChildExecutorDecision/api.mjs +18 -16
  443. package/_mjs/Channel/ChildExecutorDecision/api.mjs.map +1 -1
  444. package/_mjs/Channel/UpstreamPullRequest/api.mjs +14 -12
  445. package/_mjs/Channel/UpstreamPullRequest/api.mjs.map +1 -1
  446. package/_mjs/Channel/api/interruptWhen.mjs +11 -7
  447. package/_mjs/Channel/api/interruptWhen.mjs.map +1 -1
  448. package/_mjs/Channel/api/mapOutIOC.mjs +24 -23
  449. package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -1
  450. package/_mjs/Channel/api/mergeAll.mjs +5 -3
  451. package/_mjs/Channel/api/mergeAll.mjs.map +1 -1
  452. package/_mjs/Channel/api/mergeAllUnboundedWith.mjs +5 -3
  453. package/_mjs/Channel/api/mergeAllUnboundedWith.mjs.map +1 -1
  454. package/_mjs/Channel/api/mergeAllWith.mjs +45 -46
  455. package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
  456. package/_mjs/Channel/api/mergeMap.mjs +5 -3
  457. package/_mjs/Channel/api/mergeMap.mjs.map +1 -1
  458. package/_mjs/Channel/api/mergeWith.mjs +46 -44
  459. package/_mjs/Channel/api/mergeWith.mjs.map +1 -1
  460. package/_mjs/Channel/api/run.mjs +1 -1
  461. package/_mjs/Channel/api/run.mjs.map +1 -1
  462. package/_mjs/Channel/api/runScoped.mjs +2 -2
  463. package/_mjs/Channel/api/runScoped.mjs.map +1 -1
  464. package/_mjs/Channel/api/toPull.mjs +3 -3
  465. package/_mjs/Channel/api/toPull.mjs.map +1 -1
  466. package/_mjs/Channel/api/zipC.mjs +16 -10
  467. package/_mjs/Channel/api/zipC.mjs.map +1 -1
  468. package/_mjs/Channel/api.mjs +224 -173
  469. package/_mjs/Channel/api.mjs.map +1 -1
  470. package/_mjs/Channel/core-api.mjs +28 -18
  471. package/_mjs/Channel/core-api.mjs.map +1 -1
  472. package/_mjs/Channel/definition.mjs +1 -1
  473. package/_mjs/Channel/definition.mjs.map +1 -1
  474. package/_mjs/Channel/internal/ChannelExecutor.mjs +83 -83
  475. package/_mjs/Channel/internal/ChannelExecutor.mjs.map +1 -1
  476. package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs +22 -23
  477. package/_mjs/Channel/internal/SingleProducerAsyncInput.mjs.map +1 -1
  478. package/_mjs/Differ/api.mjs +5 -5
  479. package/_mjs/Differ/api.mjs.map +1 -1
  480. package/_mjs/Fiber/FiberContext.mjs +48 -48
  481. package/_mjs/Fiber/FiberContext.mjs.map +1 -1
  482. package/_mjs/Fiber/api/awaitAll.mjs +1 -1
  483. package/_mjs/Fiber/api/awaitAll.mjs.map +1 -1
  484. package/_mjs/Fiber/api/collectAll.mjs +1 -1
  485. package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
  486. package/_mjs/Fiber/api/evalOn.mjs +11 -9
  487. package/_mjs/Fiber/api/evalOn.mjs.map +1 -1
  488. package/_mjs/Fiber/api/evalOnIO.mjs +5 -3
  489. package/_mjs/Fiber/api/evalOnIO.mjs.map +1 -1
  490. package/_mjs/Fiber/api/fromIO.mjs +1 -1
  491. package/_mjs/Fiber/api/fromIO.mjs.map +1 -1
  492. package/_mjs/Fiber/api/interrupt.mjs +1 -1
  493. package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
  494. package/_mjs/Fiber/api/interruptAll.mjs +2 -2
  495. package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
  496. package/_mjs/Fiber/api/interruptAs.mjs +6 -4
  497. package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
  498. package/_mjs/Fiber/api/interruptAsFork.mjs +6 -4
  499. package/_mjs/Fiber/api/interruptAsFork.mjs.map +1 -1
  500. package/_mjs/Fiber/api/interruptFork.mjs +1 -1
  501. package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
  502. package/_mjs/Fiber/api/join.mjs +1 -1
  503. package/_mjs/Fiber/api/join.mjs.map +1 -1
  504. package/_mjs/Fiber/api/joinAll.mjs +1 -1
  505. package/_mjs/Fiber/api/joinAll.mjs.map +1 -1
  506. package/_mjs/Fiber/api/mapFiber.mjs +5 -3
  507. package/_mjs/Fiber/api/mapFiber.mjs.map +1 -1
  508. package/_mjs/Fiber/api/mapIO.mjs +11 -7
  509. package/_mjs/Fiber/api/mapIO.mjs.map +1 -1
  510. package/_mjs/Fiber/api/zipWith.mjs +5 -3
  511. package/_mjs/Fiber/api/zipWith.mjs.map +1 -1
  512. package/_mjs/Fiber/definition.mjs.map +1 -1
  513. package/_mjs/Fiber.mjs +1 -0
  514. package/_mjs/Fiber.mjs.map +1 -1
  515. package/_mjs/FiberRef/api/locallyScoped.mjs +5 -3
  516. package/_mjs/FiberRef/api/locallyScoped.mjs.map +1 -1
  517. package/_mjs/FiberRef/api/locallyScopedWith.mjs +5 -3
  518. package/_mjs/FiberRef/api/locallyScopedWith.mjs.map +1 -1
  519. package/_mjs/FiberRef/api.mjs +52 -36
  520. package/_mjs/FiberRef/api.mjs.map +1 -1
  521. package/_mjs/FiberRef/constructors.mjs +1 -1
  522. package/_mjs/FiberRef/constructors.mjs.map +1 -1
  523. package/_mjs/FiberRef.mjs.map +1 -1
  524. package/_mjs/FiberRefs/api.mjs +14 -12
  525. package/_mjs/FiberRefs/api.mjs.map +1 -1
  526. package/_mjs/FiberRefs/join.mjs +35 -33
  527. package/_mjs/FiberRefs/join.mjs.map +1 -1
  528. package/_mjs/FiberState/definition.mjs.map +1 -1
  529. package/_mjs/Future/api.mjs +84 -66
  530. package/_mjs/Future/api.mjs.map +1 -1
  531. package/_mjs/Future/constructors.mjs +1 -1
  532. package/_mjs/Future/constructors.mjs.map +1 -1
  533. package/_mjs/Hub/constructors.mjs +66 -0
  534. package/_mjs/Hub/constructors.mjs.map +1 -0
  535. package/_mjs/Hub/definition.mjs +88 -9
  536. package/_mjs/Hub/definition.mjs.map +1 -1
  537. package/_mjs/Hub/internal.mjs +105 -122
  538. package/_mjs/Hub/internal.mjs.map +1 -1
  539. package/_mjs/Hub.mjs +1 -1
  540. package/_mjs/Hub.mjs.map +1 -1
  541. package/_mjs/IO/api/acquireReleaseExit.mjs +1 -1
  542. package/_mjs/IO/api/acquireReleaseExit.mjs.map +1 -1
  543. package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs +1 -1
  544. package/_mjs/IO/api/acquireReleaseInterruptibleExit.mjs.map +1 -1
  545. package/_mjs/IO/api/addFinalizerExit.mjs +1 -1
  546. package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
  547. package/_mjs/IO/api/asyncIO.mjs +4 -4
  548. package/_mjs/IO/api/asyncIO.mjs.map +1 -1
  549. package/_mjs/IO/api/bracket.mjs +2 -2
  550. package/_mjs/IO/api/bracket.mjs.map +1 -1
  551. package/_mjs/IO/api/bracketExit.mjs +2 -2
  552. package/_mjs/IO/api/bracketExit.mjs.map +1 -1
  553. package/_mjs/IO/api/clockWith.mjs +2 -2
  554. package/_mjs/IO/api/clockWith.mjs.map +1 -1
  555. package/_mjs/IO/api/concurrency.mjs +8 -6
  556. package/_mjs/IO/api/concurrency.mjs.map +1 -1
  557. package/_mjs/IO/api/concurrentFinalizers.mjs +1 -1
  558. package/_mjs/IO/api/concurrentFinalizers.mjs.map +1 -1
  559. package/_mjs/IO/api/consoleWith.mjs +2 -2
  560. package/_mjs/IO/api/consoleWith.mjs.map +1 -1
  561. package/_mjs/IO/api/core-scope.mjs +40 -36
  562. package/_mjs/IO/api/core-scope.mjs.map +1 -1
  563. package/_mjs/IO/api/ensuringChildren.mjs +5 -3
  564. package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
  565. package/_mjs/IO/api/environment.mjs +29 -27
  566. package/_mjs/IO/api/environment.mjs.map +1 -1
  567. package/_mjs/IO/api/foreachC.mjs +17 -19
  568. package/_mjs/IO/api/foreachC.mjs.map +1 -1
  569. package/_mjs/IO/api/foreachExec.mjs +2 -2
  570. package/_mjs/IO/api/foreachExec.mjs.map +1 -1
  571. package/_mjs/IO/api/forkAll.mjs +1 -1
  572. package/_mjs/IO/api/forkAll.mjs.map +1 -1
  573. package/_mjs/IO/api/forkIn.mjs +7 -5
  574. package/_mjs/IO/api/forkIn.mjs.map +1 -1
  575. package/_mjs/IO/api/forkScoped.mjs +1 -1
  576. package/_mjs/IO/api/forkScoped.mjs.map +1 -1
  577. package/_mjs/IO/api/fulfill.mjs +7 -5
  578. package/_mjs/IO/api/fulfill.mjs.map +1 -1
  579. package/_mjs/IO/api/interrupt.mjs +34 -28
  580. package/_mjs/IO/api/interrupt.mjs.map +1 -1
  581. package/_mjs/IO/api/memoize.mjs +1 -1
  582. package/_mjs/IO/api/memoize.mjs.map +1 -1
  583. package/_mjs/IO/api/onExit.mjs +5 -3
  584. package/_mjs/IO/api/onExit.mjs.map +1 -1
  585. package/_mjs/IO/api/onTermination.mjs +5 -3
  586. package/_mjs/IO/api/onTermination.mjs.map +1 -1
  587. package/_mjs/IO/api/once.mjs +3 -4
  588. package/_mjs/IO/api/once.mjs.map +1 -1
  589. package/_mjs/IO/api/provideLayer.mjs +5 -3
  590. package/_mjs/IO/api/provideLayer.mjs.map +1 -1
  591. package/_mjs/IO/api/provideSomeLayer.mjs +5 -11
  592. package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
  593. package/_mjs/IO/api/race.mjs +5 -3
  594. package/_mjs/IO/api/race.mjs.map +1 -1
  595. package/_mjs/IO/api/raceFirst.mjs +5 -3
  596. package/_mjs/IO/api/raceFirst.mjs.map +1 -1
  597. package/_mjs/IO/api/randomWith.mjs +1 -1
  598. package/_mjs/IO/api/randomWith.mjs.map +1 -1
  599. package/_mjs/IO/api/repeat.mjs +8 -8
  600. package/_mjs/IO/api/repeat.mjs.map +1 -1
  601. package/_mjs/IO/api/retry.mjs +12 -12
  602. package/_mjs/IO/api/retry.mjs.map +1 -1
  603. package/_mjs/IO/api/schedule.mjs +15 -11
  604. package/_mjs/IO/api/schedule.mjs.map +1 -1
  605. package/_mjs/IO/api/scoped.mjs +3 -3
  606. package/_mjs/IO/api/scoped.mjs.map +1 -1
  607. package/_mjs/IO/api/sequenceT.mjs +1 -1
  608. package/_mjs/IO/api/sequenceT.mjs.map +1 -1
  609. package/_mjs/IO/api/stateful.mjs.map +1 -1
  610. package/_mjs/IO/api/supervised.mjs +5 -3
  611. package/_mjs/IO/api/supervised.mjs.map +1 -1
  612. package/_mjs/IO/api/timeout.mjs +10 -6
  613. package/_mjs/IO/api/timeout.mjs.map +1 -1
  614. package/_mjs/IO/api/withChildren.mjs +1 -1
  615. package/_mjs/IO/api/withChildren.mjs.map +1 -1
  616. package/_mjs/IO/api/withEarlyRelease.mjs +1 -1
  617. package/_mjs/IO/api/withEarlyRelease.mjs.map +1 -1
  618. package/_mjs/IO/api/withFinalizer.mjs +5 -3
  619. package/_mjs/IO/api/withFinalizer.mjs.map +1 -1
  620. package/_mjs/IO/api/withFinalizerExit.mjs +5 -3
  621. package/_mjs/IO/api/withFinalizerExit.mjs.map +1 -1
  622. package/_mjs/IO/api/withRuntimeConfig.mjs +5 -3
  623. package/_mjs/IO/api/withRuntimeConfig.mjs.map +1 -1
  624. package/_mjs/IO/api/zipC.mjs +18 -14
  625. package/_mjs/IO/api/zipC.mjs.map +1 -1
  626. package/_mjs/IO/api.mjs +511 -387
  627. package/_mjs/IO/api.mjs.map +1 -1
  628. package/_mjs/IO/definition.mjs.map +1 -1
  629. package/_mjs/IO/runtime.mjs +7 -7
  630. package/_mjs/IO/runtime.mjs.map +1 -1
  631. package/_mjs/IO.mjs.map +1 -1
  632. package/_mjs/IOEnv/definition.mjs +1 -1
  633. package/_mjs/IOEnv/definition.mjs.map +1 -1
  634. package/_mjs/IOEnv/live.mjs +1 -1
  635. package/_mjs/IOEnv/live.mjs.map +1 -1
  636. package/_mjs/Layer/MemoMap.mjs +86 -87
  637. package/_mjs/Layer/MemoMap.mjs.map +1 -1
  638. package/_mjs/Layer/api.mjs +91 -63
  639. package/_mjs/Layer/api.mjs.map +1 -1
  640. package/_mjs/Layer/definition.mjs.map +1 -1
  641. package/_mjs/LogLevel.mjs +24 -16
  642. package/_mjs/LogLevel.mjs.map +1 -1
  643. package/_mjs/LogSpan.mjs +16 -14
  644. package/_mjs/LogSpan.mjs.map +1 -1
  645. package/_mjs/Logger/api.mjs +16 -12
  646. package/_mjs/Logger/api.mjs.map +1 -1
  647. package/_mjs/Logger/constructors.mjs +1 -1
  648. package/_mjs/Logger/constructors.mjs.map +1 -1
  649. package/_mjs/Queue/constructors.mjs +16 -5
  650. package/_mjs/Queue/constructors.mjs.map +1 -1
  651. package/_mjs/Queue/definition.mjs +174 -12
  652. package/_mjs/Queue/definition.mjs.map +1 -1
  653. package/_mjs/Queue/internal.mjs +21 -170
  654. package/_mjs/Queue/internal.mjs.map +1 -1
  655. package/_mjs/Queue/strategy.mjs +20 -23
  656. package/_mjs/Queue/strategy.mjs.map +1 -1
  657. package/_mjs/Queue.mjs +1 -3
  658. package/_mjs/Queue.mjs.map +1 -1
  659. package/_mjs/Random/live.mjs +2 -2
  660. package/_mjs/Random/live.mjs.map +1 -1
  661. package/_mjs/Ref/Atomic.mjs +39 -3
  662. package/_mjs/Ref/Atomic.mjs.map +1 -1
  663. package/_mjs/Ref/Synchronized.mjs +123 -0
  664. package/_mjs/Ref/Synchronized.mjs.map +1 -0
  665. package/_mjs/Ref/constructors.mjs +15 -1
  666. package/_mjs/Ref/constructors.mjs.map +1 -1
  667. package/_mjs/Ref/definition.mjs +96 -4
  668. package/_mjs/Ref/definition.mjs.map +1 -1
  669. package/_mjs/Ref.mjs +1 -8
  670. package/_mjs/Ref.mjs.map +1 -1
  671. package/_mjs/Reloadable/constructors.mjs +10 -10
  672. package/_mjs/Reloadable/constructors.mjs.map +1 -1
  673. package/_mjs/RuntimeConfig.mjs +2 -2
  674. package/_mjs/RuntimeConfig.mjs.map +1 -1
  675. package/_mjs/STM/api/core-api.mjs +29 -19
  676. package/_mjs/STM/api/core-api.mjs.map +1 -1
  677. package/_mjs/STM/api.mjs +180 -127
  678. package/_mjs/STM/api.mjs.map +1 -1
  679. package/_mjs/STM/driver.mjs +3 -3
  680. package/_mjs/STM/driver.mjs.map +1 -1
  681. package/_mjs/STM/internal/Entry.mjs.map +1 -1
  682. package/_mjs/STM/internal/Journal.mjs +33 -29
  683. package/_mjs/STM/internal/Journal.mjs.map +1 -1
  684. package/_mjs/STM.mjs.map +1 -1
  685. package/_mjs/Schedule/Decision.mjs +14 -12
  686. package/_mjs/Schedule/Decision.mjs.map +1 -1
  687. package/_mjs/Schedule/api/driver.mjs +15 -17
  688. package/_mjs/Schedule/api/driver.mjs.map +1 -1
  689. package/_mjs/Schedule/api.mjs +326 -234
  690. package/_mjs/Schedule/api.mjs.map +1 -1
  691. package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs +12 -11
  692. package/_mjs/Scope/ReleaseMap/api/releaseAll.mjs.map +1 -1
  693. package/_mjs/Scope/ReleaseMap/api.mjs +60 -51
  694. package/_mjs/Scope/ReleaseMap/api.mjs.map +1 -1
  695. package/_mjs/Scope/api.mjs +28 -22
  696. package/_mjs/Scope/api.mjs.map +1 -1
  697. package/_mjs/ScopedRef/api.mjs +9 -11
  698. package/_mjs/ScopedRef/api.mjs.map +1 -1
  699. package/_mjs/ScopedRef/definition.mjs +1 -1
  700. package/_mjs/ScopedRef/definition.mjs.map +1 -1
  701. package/_mjs/Sink/api.mjs +301 -240
  702. package/_mjs/Sink/api.mjs.map +1 -1
  703. package/_mjs/State/api.mjs +16 -12
  704. package/_mjs/State/api.mjs.map +1 -1
  705. package/_mjs/Stream/api/zipAllWith.mjs +14 -12
  706. package/_mjs/Stream/api/zipAllWith.mjs.map +1 -1
  707. package/_mjs/Stream/api/zipWith.mjs +5 -3
  708. package/_mjs/Stream/api/zipWith.mjs.map +1 -1
  709. package/_mjs/Stream/api/zipWithChunks.mjs +12 -10
  710. package/_mjs/Stream/api/zipWithChunks.mjs.map +1 -1
  711. package/_mjs/Stream/api.mjs +856 -653
  712. package/_mjs/Stream/api.mjs.map +1 -1
  713. package/_mjs/Stream/definition.mjs.map +1 -1
  714. package/_mjs/Stream/internal/DebounceState.mjs +18 -16
  715. package/_mjs/Stream/internal/DebounceState.mjs.map +1 -1
  716. package/_mjs/Stream/internal/Handoff.mjs +35 -32
  717. package/_mjs/Stream/internal/Handoff.mjs.map +1 -1
  718. package/_mjs/Stream/internal/Pull.mjs +9 -10
  719. package/_mjs/Stream/internal/Pull.mjs.map +1 -1
  720. package/_mjs/Stream/internal/SinkEndReason.mjs +14 -12
  721. package/_mjs/Stream/internal/SinkEndReason.mjs.map +1 -1
  722. package/_mjs/Stream/internal/Take.mjs +28 -20
  723. package/_mjs/Stream/internal/Take.mjs.map +1 -1
  724. package/_mjs/Stream/internal/util.mjs +3 -3
  725. package/_mjs/Stream/internal/util.mjs.map +1 -1
  726. package/_mjs/SubscriptionRef.mjs +45 -0
  727. package/_mjs/SubscriptionRef.mjs.map +1 -0
  728. package/_mjs/Supervisor/api.mjs +22 -18
  729. package/_mjs/Supervisor/api.mjs.map +1 -1
  730. package/_mjs/Supervisor/constructors.mjs +2 -2
  731. package/_mjs/Supervisor/constructors.mjs.map +1 -1
  732. package/_mjs/Supervisor/definition.mjs +1 -1
  733. package/_mjs/Supervisor/definition.mjs.map +1 -1
  734. package/_mjs/SupervisorPatch.mjs +15 -11
  735. package/_mjs/SupervisorPatch.mjs.map +1 -1
  736. package/_mjs/TExit/definition.mjs.map +1 -1
  737. package/_mjs/TFuture/api.mjs +17 -11
  738. package/_mjs/TFuture/api.mjs.map +1 -1
  739. package/_mjs/TFuture/constructors.mjs +1 -1
  740. package/_mjs/TFuture/constructors.mjs.map +1 -1
  741. package/_mjs/TFuture/definition.mjs.map +1 -1
  742. package/_mjs/TReentrantLock/api.mjs +32 -28
  743. package/_mjs/TReentrantLock/api.mjs.map +1 -1
  744. package/_mjs/TReentrantLock/definition.mjs +4 -4
  745. package/_mjs/TReentrantLock/definition.mjs.map +1 -1
  746. package/_mjs/TRef/api.mjs +218 -194
  747. package/_mjs/TRef/api.mjs.map +1 -1
  748. package/_mjs/TRef/definition.mjs +4 -4
  749. package/_mjs/TRef/definition.mjs.map +1 -1
  750. package/_mjs/TSemaphore/api.mjs +23 -19
  751. package/_mjs/TSemaphore/api.mjs.map +1 -1
  752. package/_mjs/TSemaphore/constructors.mjs +12 -2
  753. package/_mjs/TSemaphore/constructors.mjs.map +1 -1
  754. package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +19 -17
  755. package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -1
  756. package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +19 -17
  757. package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -1
  758. package/_mjs/collection/immutable/Conc/filterIO.mjs +14 -12
  759. package/_mjs/collection/immutable/Conc/filterIO.mjs.map +1 -1
  760. package/_mjs/collection/immutable/Conc/findIO.mjs +17 -15
  761. package/_mjs/collection/immutable/Conc/findIO.mjs.map +1 -1
  762. package/_mjs/collection/immutable/Conc/mapIO.mjs +10 -8
  763. package/_mjs/collection/immutable/Conc/mapIO.mjs.map +1 -1
  764. package/_mjs/collection/immutable/Conc/takeWhileIO.mjs +28 -26
  765. package/_mjs/collection/immutable/Conc/takeWhileIO.mjs.map +1 -1
  766. package/_mjs/data/Exit/foreachIO.mjs +5 -3
  767. package/_mjs/data/Exit/foreachIO.mjs.map +1 -1
  768. package/_mjs/internal/Hub.mjs +13 -11
  769. package/_mjs/internal/Hub.mjs.map +1 -1
  770. package/_mjs/internal/IsFatal.mjs +18 -16
  771. package/_mjs/internal/IsFatal.mjs.map +1 -1
  772. package/_mjs/internal/MutableQueue.mjs +10 -8
  773. package/_mjs/internal/MutableQueue.mjs.map +1 -1
  774. package/_mjs/internal/StackTraceBuilder.mjs.map +1 -1
  775. package/_src/Cached/api.ts +2 -2
  776. package/_src/Channel/ChildExecutorDecision/api.ts +14 -17
  777. package/_src/Channel/UpstreamPullRequest/api.ts +11 -13
  778. package/_src/Channel/api/interruptWhen.ts +18 -17
  779. package/_src/Channel/api/mapOutIOC.ts +58 -58
  780. package/_src/Channel/api/mergeAll.ts +15 -16
  781. package/_src/Channel/api/mergeAllUnboundedWith.ts +15 -27
  782. package/_src/Channel/api/mergeAllWith.ts +114 -126
  783. package/_src/Channel/api/mergeMap.ts +8 -18
  784. package/_src/Channel/api/mergeWith.ts +154 -158
  785. package/_src/Channel/api/toPull.ts +1 -1
  786. package/_src/Channel/api/zipC.ts +52 -88
  787. package/_src/Channel/api.ts +345 -405
  788. package/_src/Channel/core-api.ts +75 -122
  789. package/_src/Channel/definition.ts +49 -7
  790. package/_src/Channel/internal/ChannelExecutor.ts +1 -5
  791. package/_src/Channel/internal/SingleProducerAsyncInput.ts +1 -3
  792. package/_src/Fiber/FiberContext.ts +13 -33
  793. package/_src/Fiber/api/collectAll.ts +1 -2
  794. package/_src/Fiber/api/evalOn.ts +11 -14
  795. package/_src/Fiber/api/evalOnIO.ts +10 -13
  796. package/_src/Fiber/api/interruptAll.ts +1 -2
  797. package/_src/Fiber/api/interruptAs.ts +6 -4
  798. package/_src/Fiber/api/interruptAsFork.ts +6 -4
  799. package/_src/Fiber/api/interruptFork.ts +1 -1
  800. package/_src/Fiber/api/mapFiber.ts +5 -7
  801. package/_src/Fiber/api/mapIO.ts +21 -21
  802. package/_src/Fiber/api/zipWith.ts +14 -17
  803. package/_src/Fiber/definition.ts +1 -15
  804. package/_src/Fiber.ts +1 -1
  805. package/_src/FiberRef/api/locallyScoped.ts +8 -6
  806. package/_src/FiberRef/api/locallyScopedWith.ts +5 -7
  807. package/_src/FiberRef/api.ts +50 -39
  808. package/_src/FiberRef.ts +0 -1
  809. package/_src/FiberRefs/api.ts +14 -12
  810. package/_src/FiberRefs/join.ts +37 -46
  811. package/_src/FiberState/definition.ts +1 -2
  812. package/_src/Future/api.ts +67 -53
  813. package/_src/Hub/constructors.ts +80 -0
  814. package/_src/Hub/definition.ts +95 -89
  815. package/_src/Hub/internal.ts +115 -165
  816. package/_src/Hub.ts +1 -1
  817. package/_src/IO/api/acquireRelease.ts +1 -1
  818. package/_src/IO/api/acquireReleaseExit.ts +1 -1
  819. package/_src/IO/api/bracket.ts +1 -1
  820. package/_src/IO/api/bracketExit.ts +1 -1
  821. package/_src/IO/api/clockWith.ts +0 -1
  822. package/_src/IO/api/concurrency.ts +5 -7
  823. package/_src/IO/api/consoleWith.ts +0 -2
  824. package/_src/IO/api/core-scope.ts +36 -33
  825. package/_src/IO/api/ensuringChildren.ts +8 -7
  826. package/_src/IO/api/environment.ts +24 -42
  827. package/_src/IO/api/foreachC.ts +24 -12
  828. package/_src/IO/api/foreachExec.ts +1 -1
  829. package/_src/IO/api/forkIn.ts +7 -9
  830. package/_src/IO/api/fulfill.ts +5 -3
  831. package/_src/IO/api/interrupt.ts +37 -40
  832. package/_src/IO/api/onExit.ts +8 -10
  833. package/_src/IO/api/onTermination.ts +12 -14
  834. package/_src/IO/api/provideLayer.ts +8 -10
  835. package/_src/IO/api/provideSomeLayer.ts +5 -14
  836. package/_src/IO/api/race.ts +19 -21
  837. package/_src/IO/api/raceFirst.ts +5 -7
  838. package/_src/IO/api/repeat.ts +3 -5
  839. package/_src/IO/api/retry.ts +19 -21
  840. package/_src/IO/api/schedule.ts +20 -21
  841. package/_src/IO/api/scoped.ts +2 -2
  842. package/_src/IO/api/sequenceT.ts +7 -1
  843. package/_src/IO/api/stateful.ts +0 -2
  844. package/_src/IO/api/supervised.ts +5 -7
  845. package/_src/IO/api/timeout.ts +10 -16
  846. package/_src/IO/api/withFinalizer.ts +5 -7
  847. package/_src/IO/api/withFinalizerExit.ts +6 -5
  848. package/_src/IO/api/withRuntimeConfig.ts +12 -14
  849. package/_src/IO/api/zipC.ts +57 -62
  850. package/_src/IO/api.ts +512 -539
  851. package/_src/IO/definition.ts +21 -9
  852. package/_src/IO/runtime.ts +0 -12
  853. package/_src/IO.ts +0 -1
  854. package/_src/Layer/MemoMap.ts +61 -63
  855. package/_src/Layer/api.ts +95 -104
  856. package/_src/Layer/definition.ts +0 -1
  857. package/_src/LogLevel.ts +24 -16
  858. package/_src/LogSpan.ts +16 -16
  859. package/_src/Logger/api.ts +18 -17
  860. package/_src/Logger/constructors.ts +9 -15
  861. package/_src/Queue/constructors.ts +22 -6
  862. package/_src/Queue/definition.ts +230 -81
  863. package/_src/Queue/internal.ts +9 -180
  864. package/_src/Queue/strategy.ts +9 -23
  865. package/_src/Queue.ts +1 -3
  866. package/_src/Ref/Atomic.ts +37 -4
  867. package/_src/Ref/Synchronized.ts +107 -0
  868. package/_src/Ref/constructors.ts +15 -0
  869. package/_src/Ref/definition.ts +86 -85
  870. package/_src/Ref.ts +1 -9
  871. package/_src/Reloadable/constructors.ts +2 -2
  872. package/_src/RuntimeConfig.ts +0 -2
  873. package/_src/STM/api/core-api.ts +32 -35
  874. package/_src/STM/api.ts +210 -200
  875. package/_src/STM/internal/Entry.ts +0 -10
  876. package/_src/STM/internal/Journal.ts +23 -26
  877. package/_src/STM.ts +0 -1
  878. package/_src/Schedule/Decision.ts +10 -8
  879. package/_src/Schedule/api/driver.ts +0 -4
  880. package/_src/Schedule/api.ts +419 -444
  881. package/_src/Schedule/definition.ts +0 -1
  882. package/_src/Scope/ReleaseMap/api/releaseAll.ts +23 -26
  883. package/_src/Scope/ReleaseMap/api.ts +77 -74
  884. package/_src/Scope/api.ts +16 -18
  885. package/_src/ScopedRef/api.ts +0 -3
  886. package/_src/ScopedRef/definition.ts +1 -2
  887. package/_src/Sink/api.ts +326 -357
  888. package/_src/State/api.ts +12 -8
  889. package/_src/State/internal.ts +1 -1
  890. package/_src/Stream/api/zipAllWith.ts +6 -5
  891. package/_src/Stream/api/zipWith.ts +5 -8
  892. package/_src/Stream/api/zipWithChunks.ts +6 -5
  893. package/_src/Stream/api.ts +1049 -1176
  894. package/_src/Stream/definition.ts +0 -2
  895. package/_src/Stream/internal/DebounceState.ts +16 -17
  896. package/_src/Stream/internal/Handoff.ts +31 -35
  897. package/_src/Stream/internal/Pull.ts +1 -2
  898. package/_src/Stream/internal/SinkEndReason.ts +13 -14
  899. package/_src/Stream/internal/Take.ts +21 -21
  900. package/_src/Stream/internal/util.ts +0 -2
  901. package/_src/SubscriptionRef.ts +44 -0
  902. package/_src/Supervisor/api.ts +18 -14
  903. package/_src/Supervisor/definition.ts +0 -1
  904. package/_src/SupervisorPatch.ts +10 -6
  905. package/_src/TExit/definition.ts +0 -8
  906. package/_src/TFuture/api.ts +23 -17
  907. package/_src/TFuture/definition.ts +0 -1
  908. package/_src/TReentrantLock/api.ts +14 -10
  909. package/_src/TReentrantLock/definition.ts +0 -7
  910. package/_src/TRef/api.ts +207 -209
  911. package/_src/TRef/definition.ts +0 -12
  912. package/_src/TSemaphore/api.ts +19 -18
  913. package/_src/TSemaphore/constructors.ts +7 -0
  914. package/_src/collection/immutable/Conc/dropUntilIO.ts +19 -21
  915. package/_src/collection/immutable/Conc/dropWhileIO.ts +21 -23
  916. package/_src/collection/immutable/Conc/filterIO.ts +15 -17
  917. package/_src/collection/immutable/Conc/findIO.ts +17 -19
  918. package/_src/collection/immutable/Conc/mapIO.ts +12 -10
  919. package/_src/collection/immutable/Conc/takeWhileIO.ts +27 -29
  920. package/_src/data/Exit/foreachIO.ts +8 -10
  921. package/_src/global.ts +7 -3
  922. package/_src/index.ts +3 -0
  923. package/_src/internal/Hub.ts +17 -27
  924. package/_src/internal/IsFatal.ts +14 -12
  925. package/_src/internal/MutableQueue.ts +8 -8
  926. package/_src/internal/StackTraceBuilder.ts +1 -2
  927. package/collection/immutable/Conc/dropUntilIO.d.ts +3 -3
  928. package/collection/immutable/Conc/dropWhileIO.d.ts +3 -3
  929. package/collection/immutable/Conc/filterIO.d.ts +3 -3
  930. package/collection/immutable/Conc/findIO.d.ts +2 -2
  931. package/collection/immutable/Conc/mapIO.d.ts +3 -3
  932. package/collection/immutable/Conc/takeWhileIO.d.ts +3 -3
  933. package/data/Exit/foreachIO.d.ts +3 -3
  934. package/global.d.ts +7 -3
  935. package/index.d.ts +3 -0
  936. package/internal/Hub.d.ts +2 -2
  937. package/internal/IsFatal.d.ts +3 -3
  938. package/internal/MutableQueue.d.ts +3 -3
  939. package/package.json +3 -3
  940. package/Hub/api.d.ts +0 -190
  941. package/Queue/api/dimapIO.d.ts +0 -41
  942. package/Queue/api/filterInputIO.d.ts +0 -33
  943. package/Queue/api/filterOutputIO.d.ts +0 -31
  944. package/Queue/api/operations.d.ts +0 -82
  945. package/Queue/api/poll.d.ts +0 -9
  946. package/Queue/api/takeBetween.d.ts +0 -11
  947. package/Queue/api/zipWithIO.d.ts +0 -44
  948. package/Queue/api.d.ts +0 -7
  949. package/Ref/Atomic/Atomic.d.ts +0 -18
  950. package/Ref/Atomic/api.d.ts +0 -53
  951. package/Ref/Derived.d.ts +0 -14
  952. package/Ref/DerivedAll.d.ts +0 -14
  953. package/Ref/Synchronized/api.d.ts +0 -100
  954. package/Ref/Synchronized/constructors.d.ts +0 -8
  955. package/Ref/Synchronized/definition.d.ts +0 -42
  956. package/Ref/api/collect.d.ts +0 -11
  957. package/Ref/api/dimap.d.ts +0 -56
  958. package/Ref/api/filter.d.ts +0 -20
  959. package/Ref/api/get.d.ts +0 -9
  960. package/Ref/api/match.d.ts +0 -13
  961. package/Ref/api/matchAll.d.ts +0 -11
  962. package/Ref/api/modify.d.ts +0 -79
  963. package/Ref/api/set.d.ts +0 -10
  964. package/Ref/api.d.ts +0 -23
  965. package/_cjs/Hub/api.cjs +0 -456
  966. package/_cjs/Hub/api.cjs.map +0 -1
  967. package/_cjs/Queue/api/dimapIO.cjs +0 -120
  968. package/_cjs/Queue/api/dimapIO.cjs.map +0 -1
  969. package/_cjs/Queue/api/filterInputIO.cjs +0 -84
  970. package/_cjs/Queue/api/filterInputIO.cjs.map +0 -1
  971. package/_cjs/Queue/api/filterOutputIO.cjs +0 -89
  972. package/_cjs/Queue/api/filterOutputIO.cjs.map +0 -1
  973. package/_cjs/Queue/api/operations.cjs +0 -147
  974. package/_cjs/Queue/api/operations.cjs.map +0 -1
  975. package/_cjs/Queue/api/poll.cjs +0 -27
  976. package/_cjs/Queue/api/poll.cjs.map +0 -1
  977. package/_cjs/Queue/api/takeBetween.cjs +0 -57
  978. package/_cjs/Queue/api/takeBetween.cjs.map +0 -1
  979. package/_cjs/Queue/api/zipWithIO.cjs +0 -97
  980. package/_cjs/Queue/api/zipWithIO.cjs.map +0 -1
  981. package/_cjs/Queue/api.cjs +0 -97
  982. package/_cjs/Queue/api.cjs.map +0 -1
  983. package/_cjs/Ref/Atomic/Atomic.cjs +0 -64
  984. package/_cjs/Ref/Atomic/Atomic.cjs.map +0 -1
  985. package/_cjs/Ref/Atomic/api.cjs +0 -156
  986. package/_cjs/Ref/Atomic/api.cjs.map +0 -1
  987. package/_cjs/Ref/Derived.cjs +0 -55
  988. package/_cjs/Ref/Derived.cjs.map +0 -1
  989. package/_cjs/Ref/DerivedAll.cjs +0 -55
  990. package/_cjs/Ref/DerivedAll.cjs.map +0 -1
  991. package/_cjs/Ref/Synchronized/api.cjs +0 -196
  992. package/_cjs/Ref/Synchronized/api.cjs.map +0 -1
  993. package/_cjs/Ref/Synchronized/constructors.cjs +0 -32
  994. package/_cjs/Ref/Synchronized/constructors.cjs.map +0 -1
  995. package/_cjs/Ref/Synchronized/definition.cjs +0 -88
  996. package/_cjs/Ref/Synchronized/definition.cjs.map +0 -1
  997. package/_cjs/Ref/api/collect.cjs +0 -31
  998. package/_cjs/Ref/api/collect.cjs.map +0 -1
  999. package/_cjs/Ref/api/dimap.cjs +0 -110
  1000. package/_cjs/Ref/api/dimap.cjs.map +0 -1
  1001. package/_cjs/Ref/api/filter.cjs +0 -45
  1002. package/_cjs/Ref/api/filter.cjs.map +0 -1
  1003. package/_cjs/Ref/api/get.cjs +0 -20
  1004. package/_cjs/Ref/api/get.cjs.map +0 -1
  1005. package/_cjs/Ref/api/match.cjs +0 -26
  1006. package/_cjs/Ref/api/match.cjs.map +0 -1
  1007. package/_cjs/Ref/api/matchAll.cjs +0 -24
  1008. package/_cjs/Ref/api/matchAll.cjs.map +0 -1
  1009. package/_cjs/Ref/api/modify.cjs +0 -239
  1010. package/_cjs/Ref/api/modify.cjs.map +0 -1
  1011. package/_cjs/Ref/api/set.cjs +0 -21
  1012. package/_cjs/Ref/api/set.cjs.map +0 -1
  1013. package/_cjs/Ref/api.cjs +0 -158
  1014. package/_cjs/Ref/api.cjs.map +0 -1
  1015. package/_mjs/Hub/api.mjs +0 -384
  1016. package/_mjs/Hub/api.mjs.map +0 -1
  1017. package/_mjs/Queue/api/dimapIO.mjs +0 -97
  1018. package/_mjs/Queue/api/dimapIO.mjs.map +0 -1
  1019. package/_mjs/Queue/api/filterInputIO.mjs +0 -63
  1020. package/_mjs/Queue/api/filterInputIO.mjs.map +0 -1
  1021. package/_mjs/Queue/api/filterOutputIO.mjs +0 -68
  1022. package/_mjs/Queue/api/filterOutputIO.mjs.map +0 -1
  1023. package/_mjs/Queue/api/operations.mjs +0 -122
  1024. package/_mjs/Queue/api/operations.mjs.map +0 -1
  1025. package/_mjs/Queue/api/poll.mjs +0 -14
  1026. package/_mjs/Queue/api/poll.mjs.map +0 -1
  1027. package/_mjs/Queue/api/takeBetween.mjs +0 -43
  1028. package/_mjs/Queue/api/takeBetween.mjs.map +0 -1
  1029. package/_mjs/Queue/api/zipWithIO.mjs +0 -74
  1030. package/_mjs/Queue/api/zipWithIO.mjs.map +0 -1
  1031. package/_mjs/Queue/api.mjs +0 -9
  1032. package/_mjs/Queue/api.mjs.map +0 -1
  1033. package/_mjs/Ref/Atomic/Atomic.mjs +0 -47
  1034. package/_mjs/Ref/Atomic/Atomic.mjs.map +0 -1
  1035. package/_mjs/Ref/Atomic/api.mjs +0 -127
  1036. package/_mjs/Ref/Atomic/api.mjs.map +0 -1
  1037. package/_mjs/Ref/Derived.mjs +0 -35
  1038. package/_mjs/Ref/Derived.mjs.map +0 -1
  1039. package/_mjs/Ref/DerivedAll.mjs +0 -35
  1040. package/_mjs/Ref/DerivedAll.mjs.map +0 -1
  1041. package/_mjs/Ref/Synchronized/api.mjs +0 -154
  1042. package/_mjs/Ref/Synchronized/api.mjs.map +0 -1
  1043. package/_mjs/Ref/Synchronized/constructors.mjs +0 -15
  1044. package/_mjs/Ref/Synchronized/constructors.mjs.map +0 -1
  1045. package/_mjs/Ref/Synchronized/definition.mjs +0 -66
  1046. package/_mjs/Ref/Synchronized/definition.mjs.map +0 -1
  1047. package/_mjs/Ref/api/collect.mjs +0 -17
  1048. package/_mjs/Ref/api/collect.mjs.map +0 -1
  1049. package/_mjs/Ref/api/dimap.mjs +0 -84
  1050. package/_mjs/Ref/api/dimap.mjs.map +0 -1
  1051. package/_mjs/Ref/api/filter.mjs +0 -29
  1052. package/_mjs/Ref/api/filter.mjs.map +0 -1
  1053. package/_mjs/Ref/api/get.mjs +0 -13
  1054. package/_mjs/Ref/api/get.mjs.map +0 -1
  1055. package/_mjs/Ref/api/match.mjs +0 -18
  1056. package/_mjs/Ref/api/match.mjs.map +0 -1
  1057. package/_mjs/Ref/api/matchAll.mjs +0 -16
  1058. package/_mjs/Ref/api/matchAll.mjs.map +0 -1
  1059. package/_mjs/Ref/api/modify.mjs +0 -204
  1060. package/_mjs/Ref/api/modify.mjs.map +0 -1
  1061. package/_mjs/Ref/api/set.mjs +0 -14
  1062. package/_mjs/Ref/api/set.mjs.map +0 -1
  1063. package/_mjs/Ref/api.mjs +0 -34
  1064. package/_mjs/Ref/api.mjs.map +0 -1
  1065. package/_src/Hub/api.ts +0 -461
  1066. package/_src/Queue/api/dimapIO.ts +0 -130
  1067. package/_src/Queue/api/filterInputIO.ts +0 -75
  1068. package/_src/Queue/api/filterOutputIO.ts +0 -76
  1069. package/_src/Queue/api/operations.ts +0 -139
  1070. package/_src/Queue/api/poll.ts +0 -14
  1071. package/_src/Queue/api/takeBetween.ts +0 -45
  1072. package/_src/Queue/api/zipWithIO.ts +0 -99
  1073. package/_src/Queue/api.ts +0 -9
  1074. package/_src/Ref/Atomic/Atomic.ts +0 -56
  1075. package/_src/Ref/Atomic/api.ts +0 -124
  1076. package/_src/Ref/Derived.ts +0 -71
  1077. package/_src/Ref/DerivedAll.ts +0 -75
  1078. package/_src/Ref/Synchronized/api.ts +0 -249
  1079. package/_src/Ref/Synchronized/constructors.ts +0 -12
  1080. package/_src/Ref/Synchronized/definition.ts +0 -126
  1081. package/_src/Ref/api/collect.ts +0 -19
  1082. package/_src/Ref/api/dimap.ts +0 -115
  1083. package/_src/Ref/api/filter.ts +0 -35
  1084. package/_src/Ref/api/get.ts +0 -17
  1085. package/_src/Ref/api/match.ts +0 -24
  1086. package/_src/Ref/api/matchAll.ts +0 -23
  1087. package/_src/Ref/api/modify.ts +0 -237
  1088. package/_src/Ref/api/set.ts +0 -19
  1089. package/_src/Ref/api.ts +0 -39
@@ -1 +1 @@
1
- {"version":3,"file":"SupervisorPatch.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;;;MA4DgBA,OAAO;;AA5DhB,MAAMC,qBAAqB,gBAAGC,MAAM,CAACC,GAAP,CAAW,2BAAX,CAA9B;AAUP;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AAO,GAAGH,sEACFF,cADE,GACaN,OADb,EAEmB,CAACS,KAAD,EAAQjB,UAAR,KAAuBkB,iBAAc,IAAIb,gBAAJ,CAAqBL,UAArB,CAAd,CAF1C,CAAhB;IAGA,OAAOkB,iBAAcC,OAAd,CAAP;EACD;AACF;;AAED,SAASC,SAAT,CAAmBpB,UAAnB,EAAgDqB,OAAhD,EAA8E;EAC5E,IAAIC,gCAAJ,EAAuB;IACrB,OAAOtB,UAAP;EACD;;EACD,MAAMuB,IAAI,GAAGF,OAAO,CAACE,IAArB;EACA,MAAMC,IAAI,GAAGH,OAAO,CAACG,IAArB;EACA;;EACA,QAAQD,IAAI,CAACE,IAAb;IACE;IAAA;IAAA;MACE,OAAOL,SAAS,CAACM,iCAAeH,IAAI,CAACvB,UAApB,CAAD,EAAkCwB,IAAlC,CAAhB;;IACF;IAAA;IAAA;MACE,OAAOJ,SAAS,CAACpB,UAAD,EAAa2B,qBAAKJ,IAAI,CAACrB,KAAV,EAAiByB,qBAAKJ,IAAI,CAACpB,MAAV,EAAkBkB,OAAlB,CAAjB,CAAb,CAAhB;;IACF;IAAA;IAAA;MACE,OAAOD,SAAS,CAACpB,UAAD,EAAawB,IAAb,CAAhB;;IACF;IAAA;IAAA;MACE,OAAOJ,SAAS,CAACM,6CAA4BH,IAAI,CAACvB,UAAjC,CAAD,EAA+CwB,IAA/C,CAAhB;EARJ;AAUD;AAED;;;;;AAGM,SAAUI,KAAV,CAAgBC,IAAhB,EAAuC7B,UAAvC,EAAkE;EACtE,OAAOoB,SAAS,CAACpB,UAAD,EAAa2B,qBAAKE,IAAL,CAAb,CAAhB;AACD","names":["combine","SupervisorPatchTypeId","Symbol","for","SupervisorPatch","constructor","AddSupervisor","supervisor","Combine","first","second","Empty","RemoveSupervisor","concrete","_","empty_1","empty","diff","oldValue","newValue","oldSupervisors","newSupervisors","added","tsplus_module_2","patch","combine_1","removed","applyLoop","patches","tsplus_module_3","head","tail","_tag","tsplus_module_1","tsplus_module_4","apply","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hB;EACD,CAFD;AAGD","names":["combine","SupervisorPatchTypeId","Symbol","for","SupervisorPatch","constructor","AddSupervisor","supervisor","Combine","first","second","Empty","RemoveSupervisor","concrete","_","empty_1","empty","diff","oldValue","newValue","oldSupervisors","newSupervisors","added","tsplus_module_2","patch","combine_1","removed","applyLoop","patches","tsplus_module_3","head","tail","_tag","tsplus_module_1","tsplus_module_4","apply","self"],"sourceRoot":"","sources":["../_src/SupervisorPatch.ts"],"sourcesContent":[null]}
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;;;;;MAiCgBA,OAAO;;MAqBPC,MAAM;;MAuBNC,SAAS;;MAuBTC,MAAM;;MAuBNC,WAAW;;MAoBXC,OAAO;;AAnIhB,MAAMC,KAAK,GAAa,EAAxB;;AAEA,MAAMC,WAAW,gBAAGC,MAAM,CAACC,GAAP,CAAW,aAAX,CAApB;;AAWA,MAAMC,UAAU,gBAAGF,MAAM,CAACC,GAAP,CAAW,kBAAX,CAAnB;;;AAGP,MAAME,SAAS,gBAAGC,2BAAgB,kBAAhB,CAAlB;AAEA;;;;;AAGA,mBAAwBC,CAAxB,EAAkC;EAChC,OAAO,2BAAUA,CAAV,EAAaN,WAAb,CAAP;AACD;;AAEK,MAAOO,IAAP,CAAW;EAGfC,YAAqBC,KAArB,EAA6B;IAAR;IAFZ,eAAuBT,WAAvB;IACA,YAAI;IAAA;IAAJ;EACwB;;EAE7B,mCAAa;IACf,OAAOK,4BAAiBD,SAAjB,EAA4BC,4BAAiB,KAAKI,KAAtB,CAA5B,CAAP;EACD;;EAED,+BAAgBC,IAAhB,EAA6B;IAC3B,OAAOC,UAAQD,IAAR,KAAiBE,SAAOF,IAAP,CAAjB,IAAiCG,6BAAuB,KAAKJ,KAA5B,EAAmCC,IAAI,CAACD,KAAxC,CAAxC;EACD;;AAXc;AAcjB;;;;;;;AAGA,kBAA6BK,IAA7B,EAA8C;EAC5C,OAAOA,IAAI,CAACC,I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ACA,YAAI;IAAA;IAAJ;EACgC;;EAErC,mCAAa;IACf,OAAOK,4BAAiBiB,cAAjB,EAAiCjB,4BAAiB,KAAKmB,OAAtB,CAAjC,CAAP;EACD;;EAED,+BAAgBd,IAAhB,EAA6B;IAC3B,OAAOC,UAAQD,IAAR,KAAiBe,cAAYf,IAAZ,CAAjB,IAAsCG,6BAAyB,KAAKW,OAA9B,EAAuCd,IAAI,CAACc,OAA5C,CAA7C;EACD;;AAXmB;AActB;;;;;;;AAGA,uBAAkCV,IAAlC,EAAmD;EACjD,OAAOA,IAAI,CAACC,IAAL,KAAS;EAAA;EAAhB;AACD;;AAED,MAAMW,UAAU,gBAAGrB,2BAAgB,mBAAhB,CAAnB;;AAEM,MAAOsB,KAAP,CAAY;EAAlBnB;IACW,eAAuBR,WAAvB;IACA,YAAI;IAAA;IAAJ;EAOV;;EANK,mCAAa;IACf,OAAO0B,UAAP;EACD;;EACD,+BAAgBhB,IAAhB,EAA6B;IAC3B,OAAOC,UAAQD,IAAR,KAAiBkB,UAAQlB,IAAR,CAAxB;EACD;;AARe;AAWlB;;;;;;;AAGA,mBAA8BI,IAA9B,EAA+C;EAC7C,OAAOA,IAAI,CAACC,IAAL,KAAS;EAAA;EAAhB;AACD","names":["isTExit","isFail","isSucceed","isHalt","isInterrupt","isRetry","TExit","TExitTypeId","Symbol","for","FailTypeId","_failHash","tsplus_module_1","u","Fail","constructor","value","that","isTExit_1","isFail_1","tsplus_module_4","self","_tag","_succeedHash","Succeed","isSucceed_1","_haltHash","Halt","isHalt_1","_interruptHash","Interrupt","fiberId","isInterrupt_1","_retryHash","Retry","isRetry_1"],"sourceRoot":"","sources":["../../_src/TExit/definition.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;;;;;;AAAA;;AACA;;;;;;MAiCgBA,OAAO;;MAmBPC,MAAM;;MAqBNC,SAAS;;MAqBTC,MAAM;;MAqBNC,WAAW;;MAoBXC,OAAO;;AA3HhB,M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AuBR,WAAvB;IACA,YAAI;IAAA;IAAJ;EAOV;;EANK,mCAAa;IACf,OAAO0B,UAAP;EACD;;EACD,+BAAgBhB,IAAhB,EAA6B;IAC3B,OAAOC,UAAQD,IAAR,KAAiBkB,UAAQlB,IAAR,CAAxB;EACD;;AARe;AAWlB;;;;;;;AAGA,mBAA8BI,IAA9B,EAA+C;EAC7C,OAAOA,IAAI,CAACC,IAAL,KAAS;EAAA;EAAhB;AACD","names":["isTExit","isFail","isSucceed","isHalt","isInterrupt","isRetry","TExit","TExitTypeId","Symbol","for","FailTypeId","_failHash","tsplus_module_1","u","Fail","constructor","value","that","isTExit_1","isFail_1","tsplus_module_4","self","_tag","_succeedHash","Succeed","isSucceed_1","_haltHash","Halt","isHalt_1","_interruptHash","Interrupt","fiberId","isInterrupt_1","_retryHash","Retry","isRetry_1"],"sourceRoot":"","sources":["../../_src/TExit/definition.ts"],"sourcesContent":[null]}
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.done_ = void 0;
7
- exports.fail_ = fail_;
6
+ exports.done = void 0;
7
+ exports.fail = fail;
8
8
  exports.poll = poll;
9
- exports.succeed_ = succeed_;
9
+ exports.succeed = succeed;
10
10
  exports.wait = wait;
11
11
 
12
12
  var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/STM/api/core-constructors"));
@@ -31,23 +31,27 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
31
31
 
32
32
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
33
33
 
34
- const done_ = done_1;
34
+ const done = done_1;
35
35
  /**
36
- * @tsplus fluent fncts.io.TFuture done
36
+ * @tsplus pipeable fncts.io.TFuture done
37
37
  */
38
38
 
39
- exports.done_ = done_;
39
+ exports.done = done;
40
40
 
41
- function done_1(self, v, __tsplusTrace) {
42
- return tsplus_module_5.flatMap_(tsplus_module_4.get(tsplus_module_3.TFuture.reverseGet(self), __tsplusTrace), mea => tsplus_module_6.match_(mea, () => tsplus_module_5.flatMap_(tsplus_module_4.set_(tsplus_module_3.TFuture.reverseGet(self), tsplus_module_2.just(v), __tsplusTrace), () => tsplus_module_1.succeedNow(true, __tsplusTrace), __tsplusTrace), () => tsplus_module_1.succeedNow(false, __tsplusTrace)), __tsplusTrace);
41
+ function done_1(v, __tsplusTrace) {
42
+ return self => {
43
+ return tsplus_module_5.flatMap(mea => tsplus_module_6.match(() => tsplus_module_5.flatMap(() => tsplus_module_1.succeedNow(true, __tsplusTrace), __tsplusTrace)(tsplus_module_4.set(tsplus_module_2.just(v), __tsplusTrace)(tsplus_module_3.TFuture.reverseGet(self))), () => tsplus_module_1.succeedNow(false, __tsplusTrace))(mea), __tsplusTrace)(tsplus_module_4.get(tsplus_module_3.TFuture.reverseGet(self), __tsplusTrace));
44
+ };
43
45
  }
44
46
  /**
45
- * @tsplus fluent fncts.io.TFuture fail
47
+ * @tsplus pipeable fncts.io.TFuture fail
46
48
  */
47
49
 
48
50
 
49
- function fail_(self, e, __tsplusTrace) {
50
- return done_1(self, tsplus_module_7.left(e), __tsplusTrace);
51
+ function fail(e, __tsplusTrace) {
52
+ return self => {
53
+ return done_1(tsplus_module_7.left(e), __tsplusTrace)(self);
54
+ };
51
55
  }
52
56
  /**
53
57
  * @tsplus getter fncts.io.TFuture poll
@@ -58,12 +62,14 @@ function poll(self, __tsplusTrace) {
58
62
  return tsplus_module_4.get(tsplus_module_3.TFuture.reverseGet(self), __tsplusTrace);
59
63
  }
60
64
  /**
61
- * @tsplus fluent fncts.io.TFuture succeed
65
+ * @tsplus pipeable fncts.io.TFuture succeed
62
66
  */
63
67
 
64
68
 
65
- function succeed_(self, a, __tsplusTrace) {
66
- return done_1(self, tsplus_module_7.right(a), __tsplusTrace);
69
+ function succeed(a, __tsplusTrace) {
70
+ return self => {
71
+ return done_1(tsplus_module_7.right(a), __tsplusTrace)(self);
72
+ };
67
73
  }
68
74
  /**
69
75
  * @tsplus getter fncts.io.TFuture await
@@ -71,6 +77,6 @@ function succeed_(self, a, __tsplusTrace) {
71
77
 
72
78
 
73
79
  function wait(self, __tsplusTrace) {
74
- return tsplus_module_8.filterMapSTM_(tsplus_module_4.get(tsplus_module_3.TFuture.reverseGet(self), __tsplusTrace), mea => tsplus_module_9.map_(mea, tsplus_module_8.fromEitherNow), __tsplusTrace);
80
+ return tsplus_module_8.filterMapSTM(mea => tsplus_module_9.map(tsplus_module_8.fromEitherNow)(mea), __tsplusTrace)(tsplus_module_4.get(tsplus_module_3.TFuture.reverseGet(self), __tsplusTrace));
75
81
  }
76
82
  //# sourceMappingURL=api.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGgBA,KAAK;AAHrB;;;;;;AAGA,gBAA4BC,IAA5B,EAAiDC,CAAjD,EAAkEC,aAAlE,EAAwF;EACtF,OAAOC,qEAAQC,UAAR,CAAmBJ,IAAnB,GADyDE,aACzD,GAAsCG,GAAD,IAC1CC,4BACE,MACEH,sEAAQC,UAAR,CAAmBJ,IAAnB,GACOO,qBAAKN,CAAL,CADP,EAJ0DC,aAI1D,GAEW,MAAMM,2BAAe,IAAf,EANyCN,aAMzC,CAFjB,EAJ0DA,aAI1D,CAFJ,EAKE,MAAMM,2BAAe,KAAf,EAPsDN,aAOtD,CALR,CADK,EADyDA,aACzD,CAAP;AASD;AAED;;;;;AAGM,SAAUO,KAAV,CAAsBT,IAAtB,EAA2CU,CAA3C,EAAiDR,aAAjD,EAAuE;EAC3E,OAAOS,aAAUC,qBAAYF,CAAZ,CAAV,EAD8CR,aAC9C,CAAP;AACD;AAED;;;;;AAGM,SAAUW,IAAV,CAAqBb,IAArB,EAA0CE,aAA1C,EAAgE;EACpE,2BAAOY,wBAAQV,UAAR,CAAmBJ,IAAnB,CAAP,EAD8CE,aAC9C;AACD;AAED;;;;;AAGM,SAAUa,QAAV,CAAyBf,IAAzB,EAA8CgB,CAA9C,EAAoDd,aAApD,EAA0E;EAC9E,OAAOS,aAAUC,sBAAaI,CAAb,CAAV,EADiDd,aACjD,CAAP;AACD;AAED;;;;;AAGM,SAAUe,IAAV,CAAqBjB,IAArB,EAA0CE,aAA1C,EAAgE;EACpE,OAAOgB,0EAAQd,UAAR,CAAmBJ,IAAnB,GADuCE,aACvC,GAA2CG,GAAD,IAASc,0BAAGD,6BAAH,CAAnD,EADuChB,aACvC,CAAP;AACD","names":["done_","self","v","__tsplusTrace","tsplus_module_5","reverseGet","mea","tsplus_module_6","tsplus_module_2","tsplus_module_1","fail_","e","done_1","tsplus_module_7","poll","tsplus_module_3","succeed_","a","wait","tsplus_module_8","tsplus_module_9"],"sourceRoot":"","sources":["../../_src/TFuture/api.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"api.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGgBA,IAAI;AAHpB;;;;;;AAGA,gBAA2BC,CAA3B,EAA4CC,aAA5C,EAAkE;EAChE,OAAQC,IAAD,IAAuC;IAC5C,OAAOC,wBAAsCC,GAAD,IAC1CC,sBACE,MACEF,wBAEW,MAAMG,2BAAe,IAAf,EAPiBL,aAOjB,CAFjB,EALkCA,aAKlC,sBACOM,qBAAKP,CAAL,CADP,EALkCC,aAKlC,0BAAQO,UAAR,CAAmBN,IAAnB,GAFJ,EAKE,MAAMI,2BAAe,KAAf,EAR8BL,aAQ9B,CALR,MADK,EAFiCA,aAEjC,EAFiCQ,oBAEjCC,wBAAQF,UAAR,CAAmBN,IAAnB,CAFiC,gBAEjC,CAAP;EASD,CAVD;AAWD;AAED;;;;;AAGM,SAAUS,IAAV,CAAkBC,CAAlB,EAAwBX,aAAxB,EAA8C;EAClD,OAAWC,IAAJ,IAA0C;IAC/C,OAAOW,OAAUC,qBAAYF,CAAZ,CAAV,EAFmBX,aAEnB,OAAP;EACD,CAFD;AAGD;AAED;;;;;AAGM,SAAUc,IAAV,CAAqBb,IAArB,EAA0CD,aAA1C,EAAgE;EACpE,2BAAOS,wBAAQF,UAAR,CAAmBN,IAAnB,CAAP,EAD8CD,aAC9C;AACD;AAED;;;;;AAGM,SAAUe,OAAV,CAAqBC,CAArB,EAA2BhB,aAA3B,EAAiD;EACrD,OAAWC,IAAJ,IAA0C;IAC/C,OAAOW,OAAUC,sBAAaG,CAAb,CAAV,EAFsBhB,aAEtB,OAAP;EACD,CAFD;AAGD;AAED;;;;;AAGM,SAAUiB,IAAV,CAAqBhB,IAArB,EAA0CD,aAA1C,EAAgE;EACpE,OAAOkB,6BAA2Cf,GAAD,IAASgB,uDAAnD,EADuCnB,aACvC,EADuCQ,oBACvCC,wBAAQF,UAAR,CAAmBN,IAAnB,CADuC,gBACvC,CAAP;AACD","names":["done","v","__tsplusTrace","self","tsplus_module_5","mea","tsplus_module_6","tsplus_module_1","tsplus_module_2","reverseGet","tsplus_module_4","tsplus_module_3","fail","e","done_1","tsplus_module_7","poll","succeed","a","wait","tsplus_module_8","tsplus_module_9"],"sourceRoot":"","sources":["../../_src/TFuture/api.ts"],"sourcesContent":[null]}
@@ -29,7 +29,7 @@ const make = make_1;
29
29
  exports.make = make;
30
30
 
31
31
  function make_1(__tsplusTrace) {
32
- return tsplus_module_4.map_(tsplus_module_3.make(() => tsplus_module_2.nothing(), __tsplusTrace), _ => tsplus_module_1.TFuture.get(_), __tsplusTrace);
32
+ return tsplus_module_4.map(_ => tsplus_module_1.TFuture.get(_), __tsplusTrace)(tsplus_module_3.make(() => tsplus_module_2.nothing(), __tsplusTrace));
33
33
  }
34
34
  /**
35
35
  * @tsplus static fncts.io.TFutureOps makeCommit
@@ -1 +1 @@
1
- {"version":3,"file":"constructors.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;MAIgBA,IAAI;AAJpB;;;;;;;AAIA,gBAA2BC,aAA3B,EAAiD;EAC/C,OAAOC,gDAA+BC,yBAA/B,EADkBF,aAClB,GAA+CG,CAAD,IAAOC,wBAAQC,GAAR,CAAYF,CAAZ,CAArD,EADkBH,aAClB,CAAP;AACD;AAED;;;;;AAGM,SAAUM,UAAV,CAA2BN,aAA3B,EAAiD;EACrD,kCAAOO,OADwBP,aACxB,CAAP,EAD+BA,aAC/B;AACD","names":["make","__tsplusTrace","tsplus_module_4","tsplus_module_2","_","tsplus_module_1","get","makeCommit","make_1"],"sourceRoot":"","sources":["../../_src/TFuture/constructors.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"constructors.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;MAIgBA,IAAI;AAJpB;;;;;;;AAIA,gBAA2BC,aAA3B,EAAiD;EAC/C,OAAOC,oBAA+CC,CAAD,IAAOC,wBAAQC,GAAR,CAAYF,CAAZ,CAArD,EADkBF,aAClB,6BAA+BK,yBAA/B,EADkBL,aAClB,EAAP;AACD;AAED;;;;;AAGM,SAAUM,UAAV,CAA2BN,aAA3B,EAAiD;EACrD,kCAAOO,OADwBP,aACxB,CAAP,EAD+BA,aAC/B;AACD","names":["make","__tsplusTrace","tsplus_module_4","_","tsplus_module_1","get","tsplus_module_2","makeCommit","make_1"],"sourceRoot":"","sources":["../../_src/TFuture/constructors.ts"],"sourcesContent":[null]}
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;;;;AAsBO,MAAMA,OAAO,gBAAeC,yBAA5B","names":["TFuture","tsplus_module_1"],"sourceRoot":"","sources":["../../_src/TFuture/definition.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;;;;AAqBO,MAAMA,OAAO,gBAAeC,yBAA5B","names":["TFuture","tsplus_module_1"],"sourceRoot":"","sources":["../../_src/TFuture/definition.ts"],"sourcesContent":[null]}
@@ -72,7 +72,7 @@ const emptyReadLock = emptyReadLock_1;
72
72
  exports.emptyReadLock = emptyReadLock;
73
73
 
74
74
  function makeReadLock(fiberId, count, __tsplusTrace) {
75
- return count <= 0 ? emptyReadLock_1 : new _definition.ReadLock(tsplus_module_1.set_(tsplus_module_1.makeDefault(), fiberId, count));
75
+ return count <= 0 ? emptyReadLock_1 : new _definition.ReadLock(tsplus_module_1.set(fiberId, count)(tsplus_module_1.makeDefault()));
76
76
  }
77
77
  /**
78
78
  * @tsplus static fncts.io.TReentrantLockOps make
@@ -81,7 +81,7 @@ function makeReadLock(fiberId, count, __tsplusTrace) {
81
81
 
82
82
 
83
83
  function make(__tsplusTrace) {
84
- return tsplus_module_3.map_(tsplus_module_2.make(() => new _definition.ReadLock(tsplus_module_1.makeDefault()), __tsplusTrace), ref => new _definition.TReentrantLock(ref), __tsplusTrace);
84
+ return tsplus_module_3.map(ref => new _definition.TReentrantLock(ref), __tsplusTrace)(tsplus_module_2.make(() => new _definition.ReadLock(tsplus_module_1.makeDefault()), __tsplusTrace));
85
85
  }
86
86
  /**
87
87
  * @tsplus getter fncts.io.TReentrantLock acquireRead
@@ -98,7 +98,7 @@ function acquireRead_1(self, __tsplusTrace) {
98
98
 
99
99
  function acquireWrite_1(self, __tsplusTrace) {
100
100
  return tsplus_module_6.makeEffect((journal, fiberId, _) => {
101
- const lockState = tsplus_module_4.unsafeGet_(self.data, journal, __tsplusTrace);
101
+ const lockState = tsplus_module_4.unsafeGet(journal, __tsplusTrace)(self.data);
102
102
 
103
103
  switch (lockState._tag) {
104
104
  case 1
@@ -106,7 +106,7 @@ function acquireWrite_1(self, __tsplusTrace) {
106
106
  :
107
107
  {
108
108
  if (lockState.noOtherHolder(fiberId)) {
109
- tsplus_module_4.unsafeSet_(self.data, journal, new _definition.WriteLock(1, lockState.readLocksHeld(fiberId), fiberId), __tsplusTrace);
109
+ tsplus_module_4.unsafeSet(journal, new _definition.WriteLock(1, lockState.readLocksHeld(fiberId), fiberId), __tsplusTrace)(self.data);
110
110
  return 1;
111
111
  }
112
112
 
@@ -118,7 +118,7 @@ function acquireWrite_1(self, __tsplusTrace) {
118
118
  :
119
119
  {
120
120
  if (tsplus_module_5.strictEquals(lockState.fiberId, fiberId)) {
121
- tsplus_module_4.unsafeSet_(self.data, journal, new _definition.WriteLock(lockState.writeLocks + 1, lockState.readLocks, fiberId), __tsplusTrace);
121
+ tsplus_module_4.unsafeSet(journal, new _definition.WriteLock(lockState.writeLocks + 1, lockState.readLocks, fiberId), __tsplusTrace)(self.data);
122
122
  return lockState.writeLocks + 1;
123
123
  }
124
124
 
@@ -142,14 +142,14 @@ function releaseRead_1(self, __tsplusTrace) {
142
142
 
143
143
  function releaseWrite_1(self, __tsplusTrace) {
144
144
  return tsplus_module_6.makeEffect((journal, fiberId) => {
145
- const lockState = tsplus_module_4.unsafeGet_(self.data, journal, __tsplusTrace);
145
+ const lockState = tsplus_module_4.unsafeGet(journal, __tsplusTrace)(self.data);
146
146
  let res;
147
147
 
148
148
  if (lockState._tag === 0
149
149
  /* LockTag.WriteLock */
150
150
  && tsplus_module_5.strictEquals(lockState.fiberId, fiberId)) {
151
151
  if (lockState.writeLocks === 1) {
152
- res = new _definition.ReadLock(tsplus_module_1.set_(tsplus_module_1.makeDefault(), fiberId, lockState.readLocks));
152
+ res = new _definition.ReadLock(tsplus_module_1.set(fiberId, lockState.readLocks)(tsplus_module_1.makeDefault()));
153
153
  }
154
154
 
155
155
  if (lockState.writeLocks > 1) {
@@ -161,29 +161,33 @@ function releaseWrite_1(self, __tsplusTrace) {
161
161
  throw new Error(`Defect: Fiber ${tsplus_module_7.threadName(fiberId)} releasing write lock it does not hold`);
162
162
  }
163
163
 
164
- tsplus_module_4.unsafeSet_(self.data, journal, res, __tsplusTrace);
164
+ tsplus_module_4.unsafeSet(journal, res, __tsplusTrace)(self.data);
165
165
  return res.writeLocksHeld(fiberId);
166
166
  }, __tsplusTrace);
167
167
  }
168
168
  /**
169
- * @tsplus fluent fncts.io.TReentrantLock withReadLock
169
+ * @tsplus pipeable fncts.io.TReentrantLock withReadLock
170
170
  */
171
171
 
172
172
 
173
- function withReadLock(self, io, __tsplusTrace) {
174
- return tsplus_module_9.uninterruptibleMask(({
175
- restore
176
- }) => tsplus_module_8.apSecond_(restore(tsplus_module_6.atomically(acquireRead_1(self, __tsplusTrace), __tsplusTrace)), tsplus_module_8.ensuring_(restore(io), tsplus_module_6.atomically(releaseRead_1(self, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace);
173
+ function withReadLock(io, __tsplusTrace) {
174
+ return self => {
175
+ return tsplus_module_9.uninterruptibleMask(({
176
+ restore
177
+ }) => tsplus_module_8.apSecond(tsplus_module_8.ensuring(tsplus_module_6.atomically(releaseRead_1(self, __tsplusTrace), __tsplusTrace), __tsplusTrace)(restore(io)), __tsplusTrace)(restore(tsplus_module_6.atomically(acquireRead_1(self, __tsplusTrace), __tsplusTrace))), __tsplusTrace);
178
+ };
177
179
  }
178
180
  /**
179
- * @tsplus fluent fncts.io.TReentrantLock withWriteLock
181
+ * @tsplus pipeable fncts.io.TReentrantLock withWriteLock
180
182
  */
181
183
 
182
184
 
183
- function withWriteLock(self, io, __tsplusTrace) {
184
- return tsplus_module_9.uninterruptibleMask(({
185
- restore
186
- }) => tsplus_module_8.apSecond_(restore(tsplus_module_6.atomically(acquireWrite_1(self, __tsplusTrace), __tsplusTrace)), tsplus_module_8.ensuring_(restore(io), tsplus_module_6.atomically(releaseWrite_1(self, __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace), __tsplusTrace);
185
+ function withWriteLock(io, __tsplusTrace) {
186
+ return self => {
187
+ return tsplus_module_9.uninterruptibleMask(({
188
+ restore
189
+ }) => tsplus_module_8.apSecond(tsplus_module_8.ensuring(tsplus_module_6.atomically(releaseWrite_1(self, __tsplusTrace), __tsplusTrace), __tsplusTrace)(restore(io)), __tsplusTrace)(restore(tsplus_module_6.atomically(acquireWrite_1(self, __tsplusTrace), __tsplusTrace))), __tsplusTrace);
190
+ };
187
191
  }
188
192
  /**
189
193
  * @tsplus getter fncts.io.TReentrantLock readLock
@@ -207,7 +211,7 @@ function writeLock(self, __tsplusTrace) {
207
211
 
208
212
 
209
213
  function readLocked_1(self, __tsplusTrace) {
210
- return tsplus_module_3.map_(tsplus_module_4.get(self.data, __tsplusTrace), state => state.readLocks > 0, __tsplusTrace);
214
+ return tsplus_module_3.map(state => state.readLocks > 0, __tsplusTrace)(tsplus_module_4.get(self.data, __tsplusTrace));
211
215
  }
212
216
  /**
213
217
  * @tsplus getter fncts.io.TReentrantLock writeLocked
@@ -215,7 +219,7 @@ function readLocked_1(self, __tsplusTrace) {
215
219
 
216
220
 
217
221
  function writeLocked_1(self, __tsplusTrace) {
218
- return tsplus_module_3.map_(tsplus_module_4.get(self.data, __tsplusTrace), state => state.writeLocks > 0, __tsplusTrace);
222
+ return tsplus_module_3.map(state => state.writeLocks > 0, __tsplusTrace)(tsplus_module_4.get(self.data, __tsplusTrace));
219
223
  }
220
224
  /**
221
225
  * @tsplus getter fncts.io.TReentrantLock locked
@@ -223,7 +227,7 @@ function writeLocked_1(self, __tsplusTrace) {
223
227
 
224
228
 
225
229
  function locked(self, __tsplusTrace) {
226
- return tsplus_module_6.zipWith_(readLocked_1(self, __tsplusTrace), writeLocked_1(self, __tsplusTrace), (a, b) => a || b, __tsplusTrace);
230
+ return tsplus_module_6.zipWith(writeLocked_1(self, __tsplusTrace), (a, b) => a || b, __tsplusTrace)(readLocked_1(self, __tsplusTrace));
227
231
  }
228
232
  /**
229
233
  * @tsplus getter fncts.io.TReentrantLock fiberReadLocks
@@ -231,7 +235,7 @@ function locked(self, __tsplusTrace) {
231
235
 
232
236
 
233
237
  function fiberReadLocks(self, __tsplusTrace) {
234
- return tsplus_module_6.makeEffect((journal, fiberId) => tsplus_module_4.unsafeGet_(self.data, journal, __tsplusTrace).readLocksHeld(fiberId), __tsplusTrace);
238
+ return tsplus_module_6.makeEffect((journal, fiberId) => tsplus_module_4.unsafeGet(journal, __tsplusTrace)(self.data).readLocksHeld(fiberId), __tsplusTrace);
235
239
  }
236
240
  /**
237
241
  * @tsplus getter fncts.io.TReentrantLock fiberWriteLocks
@@ -239,7 +243,7 @@ function fiberReadLocks(self, __tsplusTrace) {
239
243
 
240
244
 
241
245
  function fiberWriteLocks(self, __tsplusTrace) {
242
- return tsplus_module_6.makeEffect((journal, fiberId) => tsplus_module_4.unsafeGet_(self.data, journal, __tsplusTrace).writeLocksHeld(fiberId), __tsplusTrace);
246
+ return tsplus_module_6.makeEffect((journal, fiberId) => tsplus_module_4.unsafeGet(journal, __tsplusTrace)(self.data).writeLocksHeld(fiberId), __tsplusTrace);
243
247
  }
244
248
  /**
245
249
  * @tsplus getter fncts.io.TReentrantLock writeLocks
@@ -247,7 +251,7 @@ function fiberWriteLocks(self, __tsplusTrace) {
247
251
 
248
252
 
249
253
  function writeLocks(self, __tsplusTrace) {
250
- return tsplus_module_3.map_(tsplus_module_4.get(self.data, __tsplusTrace), state => state.writeLocks, __tsplusTrace);
254
+ return tsplus_module_3.map(state => state.writeLocks, __tsplusTrace)(tsplus_module_4.get(self.data, __tsplusTrace));
251
255
  }
252
256
  /**
253
257
  * @tsplus getter fncts.io.TReentrantLock readLocks
@@ -255,12 +259,12 @@ function writeLocks(self, __tsplusTrace) {
255
259
 
256
260
 
257
261
  function readLocks(self, __tsplusTrace) {
258
- return tsplus_module_3.map_(tsplus_module_4.get(self.data, __tsplusTrace), state => state.readLocks, __tsplusTrace);
262
+ return tsplus_module_3.map(state => state.readLocks, __tsplusTrace)(tsplus_module_4.get(self.data, __tsplusTrace));
259
263
  }
260
264
 
261
265
  function adjustRead(self, delta, __tsplusTrace) {
262
266
  return tsplus_module_6.makeEffect((journal, fiberId, _) => {
263
- const lockState = tsplus_module_4.unsafeGet_(self.data, journal, __tsplusTrace);
267
+ const lockState = tsplus_module_4.unsafeGet(journal, __tsplusTrace)(self.data);
264
268
 
265
269
  switch (lockState._tag) {
266
270
  case 1
@@ -268,7 +272,7 @@ function adjustRead(self, delta, __tsplusTrace) {
268
272
  :
269
273
  {
270
274
  const res = lockState.adjust(fiberId, delta);
271
- tsplus_module_4.unsafeSet_(self.data, journal, res, __tsplusTrace);
275
+ tsplus_module_4.unsafeSet(journal, res, __tsplusTrace)(self.data);
272
276
  return res.readLocksHeld(fiberId);
273
277
  }
274
278
 
@@ -285,7 +289,7 @@ function adjustRead(self, delta, __tsplusTrace) {
285
289
  if (newTotal < 0) {
286
290
  throw new Error(`Defect: Fiber ${tsplus_module_7.threadName(lockState.fiberId)} releasing read lock it does not hold`);
287
291
  } else {
288
- tsplus_module_4.unsafeSet_(self.data, journal, new _definition.WriteLock(lockState.writeLocks, newTotal, lockState.fiberId), __tsplusTrace);
292
+ tsplus_module_4.unsafeSet(journal, new _definition.WriteLock(lockState.writeLocks, newTotal, lockState.fiberId), __tsplusTrace)(self.data);
289
293
  }
290
294
 
291
295
  return newTotal;
@@ -1 +1 @@
1
- {"version":3,"file":"api.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;AACA;;;;;;MA0BgBA,WAAW;;MAOXC,YAAY;;MAyBZC,WAAW;;MAOXC,YAAY;;MAuDZC,UAAU;;MAOVC,WAAW;;;AA5H3B;;;AAGO,MAAMC,+BAA0B,IAAIC,oBAAJ,eAAaC,6BAAb,CAAhC;MAAMC,aAAa;AAE1B;;;;;;AAGM,SAAUC,YAAV,CAAuBC,OAAvB,EAAyCC,KAAzC,EAAwDC,aAAxD,EAA8E;EAClF,OAAOD,KAAK,IAAI,C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,IAAWA,KAAK,CAACf,SAAnC,EADuCnB,aACvC,CAAP;AACD;;AAED,SAASM,UAAT,CAAoBD,IAApB,EAA0CoC,KAA1C,EAAyDzC,aAAzD,EAA+E;EAC7E,OAAOO,2BAAW,CAACC,OAAD,EAAUV,OAAV,EAAmBW,CAAnB,KAAwB;IACxC,MAAMC,SAAS,GAAGC,+BAAI,CAACC,IAAL,EAAoBJ,OAApB,EAFmCR,aAEnC,CAAlB;;IACA,QAAQU,SAAS,CAACG,IAAlB;MACE;MAAA;MAAA;QAAuB;UACrB,MAAMO,GAAG,GAAGV,SAAS,CAACgC,MAAV,CAAiB5C,OAAjB,EAA0B2C,KAA1B,CAAZ;UACA9B,+BAAI,CAACC,IAAL,EAAoBJ,OAApB,EAA6BY,GAA7B,EANiDpB,aAMjD;UACA,OAAOoB,GAAG,CAACJ,aAAJ,CAAkBlB,OAAlB,CAAP;QACD;;MACD;MAAA;MAAA;QAAwB;UACtB,iCAAI,CAACY,SAAS,CAACZ,OAAf,EAA0BA,OAA1B,GAAmC;YACjC,MAAM,IAAImB,mBAAJ,EAAN;UACD;;UACD,MAAM0B,QAAQ,GAAGjC,SAAS,CAACQ,UAAV,GAAuBuB,KAAxC;;UACA,IAAIE,QAAQ,GAAG,CAAf,EAAkB;YAChB,MAAM,IAAIrB,KAAJ,CAAU,iBAAiBC,oCAAS,CAACzB,OAAV,CAA4B,uCAAvD,CAAN;UACD,CAFD,MAEO;YACLa,+BAAI,CAACC,IAAL,EAAoBJ,OAApB,EAA6B,IAAIO,qBAAJ,CAAcL,SAAS,CAACQ,UAAxB,EAAoCyB,QAApC,EAA8CjC,SAAS,CAACZ,OAAxD,CAA7B,EAjB+CE,aAiB/C;UACD;;UACD,OAAO2C,QAAP;QACD;IAjBH;EAmBD,CArBM,EADgD3C,aAChD,CAAP;AAsBD","names":["acquireRead","acquireWrite","releaseRead","releaseWrite","readLocked","writeLocked","emptyReadLock_1","ReadLock","tsplus_module_1","emptyReadLock","makeReadLock","fiberId","count","__tsplusTrace","make","tsplus_module_3","ref","TReentrantLock","self","adjustRead","tsplus_module_6","journal","_","lockState","tsplus_module_4","data","_tag","noOtherHolder","WriteLock","readLocksHeld","RetryException","writeLocks","readLocks","res","tsplus_module_5","Error","tsplus_module_7","writeLocksHeld","withReadLock","io","tsplus_module_9","restore","tsplus_module_8","withWriteLock","readLock","tsplus_module_10","writeLock","state","locked","writeLocked_1","a","b","fiberReadLocks","fiberWriteLocks","delta","adjust","newTotal"],"sourceRoot":"","sources":["../../_src/TReentrantLock/api.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"api.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;;AACA;;;;;;MA0BgBA,WAAW;;MAOXC,YAAY;;MAyBZC,WAAW;;MAOXC,YAAY;;MA2DZC,UAAU;;MAOVC,WAAW;;;AAhI3B;;;AAGO,MAAMC,+BAA0B,IAAIC,oBAAJ,eAAaC,6BAAb,CAAhC;MAAMC,aAAa;AAE1B;;;;;;AAGM,SAAUC,YAAV,CAAuBC,OAAvB,EAAyCC,KAAzC,EAAwDC,aAAxD,EAA8E;EAClF,OAAOD,KAAK,IAAI,CAAT,GAAYN,eAAZ,GAA8B,IAAIC,oBAAJ,CAAaC,oBAA2CG,OAA3C,EAAoDC,KAApD,gCAAb,CAArC;AACD;AAED;;;;;;AAIM,SAAUE,IAAV,CAAeD,aAAf,EAAqC;EACzC,OAAOE,oBAA+DC,GAAD,IAAS,IAAIC,0BAAJ,CAAmBD,GAAnB,CAAvE,EADYH,aACZ,6BAAqB,IAAIN,oBAAJ,CAAaC,6BAAb,CAArB,EADYK,aACZ,EAAP;AACD;AAED;;;;;AAGA,uBAA4BK,IAA5B,EAAkDL,aAAlD,EAAwE;EACtE,OAAOM,UAAU,CAACD,IAAD,EAAO,CAAP,EAD+BL,aAC/B,CAAjB;AACD;AAED;;;;;AAGA,wBAA6BK,IAA7B,EAAmDL,aAAnD,EAAyE;EACvE,OA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AAZ;UACA9B,0BAAoBH,OAApB,EAA6BY,GAA7B,EANiDpB,aAMjD,MAAI,CAACY,IAAL;UACA,OAAOQ,GAAG,CAACJ,aAAJ,CAAkBlB,OAAlB,CAAP;QACD;;MACD;MAAA;MAAA;QAAwB;UACtB,iCAAI,CAACY,SAAS,CAACZ,OAAf,EAA0BA,OAA1B,GAAmC;YACjC,MAAM,IAAImB,mBAAJ,EAAN;UACD;;UACD,MAAM0B,QAAQ,GAAGjC,SAAS,CAACQ,UAAV,GAAuBuB,KAAxC;;UACA,IAAIE,QAAQ,GAAG,CAAf,EAAkB;YAChB,MAAM,IAAIrB,KAAJ,CAAU,iBAAiBC,oCAAS,CAACzB,OAAV,CAA4B,uCAAvD,CAAN;UACD,CAFD,MAEO;YACLa,0BAAoBH,OAApB,EAA6B,IAAIO,qBAAJ,CAAcL,SAAS,CAACQ,UAAxB,EAAoCyB,QAApC,EAA8CjC,SAAS,CAACZ,OAAxD,CAA7B,EAjB+CE,aAiB/C,MAAI,CAACY,IAAL;UACD;;UACD,OAAO+B,QAAP;QACD;IAjBH;EAmBD,CArBM,EADgD3C,aAChD,CAAP;AAsBD","names":["acquireRead","acquireWrite","releaseRead","releaseWrite","readLocked","writeLocked","emptyReadLock_1","ReadLock","tsplus_module_1","emptyReadLock","makeReadLock","fiberId","count","__tsplusTrace","make","tsplus_module_3","ref","TReentrantLock","self","adjustRead","tsplus_module_6","journal","_","lockState","tsplus_module_4","data","_tag","noOtherHolder","WriteLock","readLocksHeld","RetryException","writeLocks","readLocks","res","tsplus_module_5","Error","tsplus_module_7","writeLocksHeld","withReadLock","io","tsplus_module_9","restore","tsplus_module_8","withWriteLock","readLock","tsplus_module_10","writeLock","state","locked","a","b","readLocked_1","fiberReadLocks","fiberWriteLocks","delta","adjust","newTotal"],"sourceRoot":"","sources":["../../_src/TReentrantLock/api.ts"],"sourcesContent":[null]}
@@ -93,7 +93,7 @@ class ReadLock {
93
93
  }
94
94
 
95
95
  readLocksHeld(fiberId) {
96
- return tsplus_module_4.getOrElse_(tsplus_module_2.get_(this.readers, fiberId), () => 0);
96
+ return tsplus_module_4.getOrElse(() => 0)(tsplus_module_2.get(fiberId)(this.readers));
97
97
  }
98
98
 
99
99
  writeLocksHeld(_fiberId) {
@@ -101,7 +101,7 @@ class ReadLock {
101
101
  }
102
102
 
103
103
  noOtherHolder(fiberId) {
104
- return tsplus_module_2.isEmpty(this.readers) || this.readers.size === 1 && tsplus_module_2.has_(this.readers, fiberId);
104
+ return tsplus_module_2.isEmpty(this.readers) || this.readers.size === 1 && tsplus_module_2.has(fiberId)(this.readers);
105
105
  }
106
106
 
107
107
  adjust(fiberId, adjust) {
@@ -113,10 +113,10 @@ class ReadLock {
113
113
  }
114
114
 
115
115
  if (newTotal === 0) {
116
- return new ReadLock(tsplus_module_2.remove_(this.readers, fiberId));
116
+ return new ReadLock(tsplus_module_2.remove(fiberId)(this.readers));
117
117
  }
118
118
 
119
- return new ReadLock(tsplus_module_2.set_(this.readers, fiberId, newTotal));
119
+ return new ReadLock(tsplus_module_2.set(fiberId, newTotal)(this.readers));
120
120
  }
121
121
 
122
122
  }
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs","mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;AAmBM,MAAOA,cAAP,CAAqB;EACzBC,YAAqBC,IAArB,EAA2C;IAAtB;EAA0B;;AADtB;AAgB3B;;;;;;;;AAIM,MAAOC,SAAP,CAAgB;EAEpBF,YAAqBG,UAArB,EAAkDC,SAAlD,EAA8EC,OAA9E,EAA8F;IAAzE;IAA6B;IAA4B;IADrE,YAAI;IAAA;IAAJ;EACyF;;EAClGC,aAAa,CAACD,OAAD,EAAiB;IAC5B,OAAOE,kCAAKF,OAAL,EAAgBA,OAAhB,IAA0B,KAAKD,SAA/B,GAA2C,CAAlD;EACD;;EACDI,cAAc,CAACH,OAAD,EAAiB;IAC7B,OAAOE,kCAAKF,OAAL,EAAgBA,OAAhB,IAA0B,KAAKF,UAA/B,GAA4C,CAAnD;EACD;;AARmB;AAWtB;;;;;;;;AAIM,MAAOM,QAAP,CAAe;EAEnBT,YAAqBU,OAArB,EAAsD;IAAjC;IADZ,YAAI;IAAA;IAAJ;IAKT,kBAAa,CAAb;EAJ0D;;EAC7C,IAATN,SAAS;IACX,2BAAQO,4BAAKD,OAAL,CAAR;EACD;;EAGDJ,aAAa,CAACD,OAAD,EAAiB;IAC5B,OAAOO,qDAAKF,OAAL,EAAiBL,OAAjB,GAAyB,MAAW,CAApC,CAAP;EACD;;EACDG,cAAc,CAACK,QAAD,EAAkB;IAC9B,OAAO,CAAP;EACD;;EAEDC,aAAa,CAACT,OAAD,EAAiB;IAC5B,OAAOM,6BAAKD,OAAL,KAAyB,KAAKA,OAAL,CAAaK,IAAb,KAAsB,CAAtB,IAA2BJ,0BAAKD,OAAL,EAAiBL,OAAjB,CAA3D;EACD;;EACDW,MAAM,CAACX,OAAD,EAAmBW,MAAnB,EAAiC;IACrC,MAAMC,KAAK,GAAM,KAAKX,aAAL,CAAmBD,OAAnB,CAAjB;IACA,MAAMa,QAAQ,GAAGD,KAAK,GAAGD,MAAzB;;IACA,IAAIE,QAAQ,GAAG,CAAf,EAAkB;MAChB,MAAM,IAAIC,KAAJ,CAAU,iBAAiBC,mCAAkB,uCAA7C,CAAN;IACD;;IACD,IAAIF,QAAQ,KAAK,CAAjB,EAAoB;MAClB,OAAO,IAAIT,QAAJ,CAAaE,6BAAKD,OAAL,EAAoBL,OAApB,CAAb,CAAP;IACD;;IACD,OAAO,IAAII,QAAJ,CAAaE,0BAAKD,OAAL,EAAiBL,OAAjB,EAA0Ba,QAA1B,CAAb,CAAP;EACD;;AA5BkB","names":["TReentrantLock","constructor","data","WriteLock","writeLocks","readLocks","fiberId","readLocksHeld","tsplus_module_1","writeLocksHeld","ReadLock","readers","tsplus_module_2","tsplus_module_4","_fiberId","noOtherHolder","size","adjust","total","newTotal","Error","tsplus_module_5"],"sourceRoot":"","sources":["../../_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QAAQ,GAAGD,KAAK,GAAGD,MAAzB;;IACA,IAAIE,QAAQ,GAAG,CAAf,EAAkB;MAChB,MAAM,IAAIC,KAAJ,CAAU,iBAAiBC,mCAAkB,uCAA7C,CAAN;IACD;;IACD,IAAIF,QAAQ,KAAK,CAAjB,EAAoB;MAClB,OAAO,IAAIT,QAAJ,CAAaE,uBAAoBN,OAApB,OAAKK,OAAL,CAAb,CAAP;IACD;;IACD,OAAO,IAAID,QAAJ,CAAaE,oBAAiBN,OAAjB,EAA0Ba,QAA1B,OAAKR,OAAL,CAAb,CAAP;EACD;;AA1BkB","names":["TReentrantLock","constructor","data","WriteLock","writeLocks","readLocks","fiberId","readLocksHeld","tsplus_module_1","writeLocksHeld","ReadLock","readers","tsplus_module_2","tsplus_module_4","_fiberId","noOtherHolder","size","adjust","total","newTotal","Error","tsplus_module_5"],"sourceRoot":"","sources":["../../_src/TReentrantLock/definition.ts"],"sourcesContent":[null]}