@fncts/io 0.0.45 → 0.0.46

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 (558) hide show
  1. package/Cached.d.ts +2 -2
  2. package/Channel/ChildExecutorDecision.d.ts +1 -1
  3. package/Channel/UpstreamPullRequest.d.ts +1 -1
  4. package/Channel.d.ts +2 -2
  5. package/Clock.d.ts +2 -2
  6. package/Console.d.ts +2 -2
  7. package/Fiber.d.ts +19 -19
  8. package/FiberRef.d.ts +5 -5
  9. package/FiberRefs.d.ts +1 -1
  10. package/FiberScope.d.ts +1 -1
  11. package/FiberStatus.d.ts +1 -1
  12. package/Future/api.d.ts +6 -0
  13. package/Future.d.ts +2 -2
  14. package/Hub.d.ts +1 -1
  15. package/IO/runtime.d.ts +3 -3
  16. package/IO.d.ts +63 -63
  17. package/IOEnv.d.ts +2 -2
  18. package/InterruptStatus.d.ts +1 -1
  19. package/Layer.d.ts +1 -1
  20. package/Logger.d.ts +2 -2
  21. package/MVar.d.ts +1 -1
  22. package/Push.d.ts +2 -2
  23. package/Queue/api.d.ts +7 -7
  24. package/Queue.d.ts +4 -4
  25. package/Random.d.ts +2 -2
  26. package/Ref/Synchronized.d.ts +2 -2
  27. package/Ref/api.d.ts +7 -7
  28. package/Ref.d.ts +7 -7
  29. package/RefSubject.d.ts +1 -1
  30. package/Reloadable.d.ts +2 -2
  31. package/RuntimeFlags.d.ts +1 -1
  32. package/STM.d.ts +4 -4
  33. package/Schedule.d.ts +2 -2
  34. package/Scope/ReleaseMap.d.ts +2 -2
  35. package/Scope.d.ts +1 -1
  36. package/ScopedRef.d.ts +1 -1
  37. package/Semaphore.d.ts +18 -8
  38. package/Sink.d.ts +1 -1
  39. package/State.d.ts +1 -1
  40. package/Stream.d.ts +1 -1
  41. package/Subject.d.ts +1 -1
  42. package/Supervisor.d.ts +2 -2
  43. package/TExit.d.ts +1 -1
  44. package/TFuture.d.ts +2 -2
  45. package/TReentrantLock.d.ts +1 -1
  46. package/TRef.d.ts +2 -2
  47. package/TSemaphore.d.ts +2 -2
  48. package/_cjs/Cached/api.cjs +9 -9
  49. package/_cjs/Cached/internal.cjs +1 -1
  50. package/_cjs/Cached.cjs +8 -8
  51. package/_cjs/Cached.cjs.map +1 -1
  52. package/_cjs/Channel/ChildExecutorDecision.cjs +8 -8
  53. package/_cjs/Channel/ChildExecutorDecision.cjs.map +1 -1
  54. package/_cjs/Channel/UpstreamPullRequest.cjs +8 -8
  55. package/_cjs/Channel/UpstreamPullRequest.cjs.map +1 -1
  56. package/_cjs/Channel/api/interruptWhen.cjs +5 -5
  57. package/_cjs/Channel/api/mapOutConcurrentIO.cjs +19 -19
  58. package/_cjs/Channel/api/mergeAll.cjs +1 -1
  59. package/_cjs/Channel/api/mergeAllUnboundedWith.cjs +1 -1
  60. package/_cjs/Channel/api/mergeAllWith.cjs +26 -26
  61. package/_cjs/Channel/api/mergeMap.cjs +2 -2
  62. package/_cjs/Channel/api/mergeWith.cjs +14 -14
  63. package/_cjs/Channel/api/run.cjs +2 -2
  64. package/_cjs/Channel/api/runCollect.cjs +2 -2
  65. package/_cjs/Channel/api/runDrain.cjs +2 -2
  66. package/_cjs/Channel/api/runScoped.cjs +10 -10
  67. package/_cjs/Channel/api/toPull.cjs +4 -4
  68. package/_cjs/Channel/api/zipConcurrent.cjs +5 -5
  69. package/_cjs/Channel/api.cjs +26 -26
  70. package/_cjs/Channel/internal/ChannelExecutor.cjs +25 -25
  71. package/_cjs/Channel/internal/ChannelExecutor.cjs.map +1 -1
  72. package/_cjs/Channel/internal/ChannelState.cjs +1 -1
  73. package/_cjs/Channel/internal/SingleProducerAsyncInput.cjs +13 -13
  74. package/_cjs/Channel.cjs +8 -8
  75. package/_cjs/Channel.cjs.map +1 -1
  76. package/_cjs/Clock/api.cjs +1 -1
  77. package/_cjs/Clock/definition.cjs +1 -1
  78. package/_cjs/Clock/live.cjs +4 -4
  79. package/_cjs/Clock.cjs +8 -8
  80. package/_cjs/Clock.cjs.map +1 -1
  81. package/_cjs/Console/api.cjs +1 -1
  82. package/_cjs/Console/definition.cjs +1 -1
  83. package/_cjs/Console/live.cjs +1 -1
  84. package/_cjs/Console.cjs +8 -8
  85. package/_cjs/Console.cjs.map +1 -1
  86. package/_cjs/CountdownLatch.cjs +6 -6
  87. package/_cjs/Differ/api.cjs +3 -3
  88. package/_cjs/Fiber/FiberRuntime.cjs +30 -30
  89. package/_cjs/Fiber/api/awaitAll.cjs +3 -3
  90. package/_cjs/Fiber/api/collectAll.cjs +18 -18
  91. package/_cjs/Fiber/api/fromIO.cjs +2 -2
  92. package/_cjs/Fiber/api/interrupt.cjs +2 -2
  93. package/_cjs/Fiber/api/interruptAll.cjs +3 -3
  94. package/_cjs/Fiber/api/interruptAs.cjs +2 -2
  95. package/_cjs/Fiber/api/interruptFork.cjs +2 -2
  96. package/_cjs/Fiber/api/join.cjs +2 -2
  97. package/_cjs/Fiber/api/joinAll.cjs +3 -3
  98. package/_cjs/Fiber/api/mapFiber.cjs +4 -4
  99. package/_cjs/Fiber/api/mapIO.cjs +10 -10
  100. package/_cjs/Fiber/api/zipWith.cjs +12 -12
  101. package/_cjs/Fiber/constructors.cjs +5 -5
  102. package/_cjs/Fiber/definition.cjs +1 -1
  103. package/_cjs/Fiber.cjs +83 -83
  104. package/_cjs/Fiber.cjs.map +1 -1
  105. package/_cjs/FiberRef/api/locallyScoped.cjs +3 -3
  106. package/_cjs/FiberRef/api/locallyScopedWith.cjs +2 -2
  107. package/_cjs/FiberRef/constructors.cjs +4 -4
  108. package/_cjs/FiberRef/definition.cjs +4 -4
  109. package/_cjs/FiberRef/operations.cjs +3 -3
  110. package/_cjs/FiberRef/unsafe.cjs +16 -16
  111. package/_cjs/FiberRef/unsafe.cjs.map +1 -1
  112. package/_cjs/FiberRef.cjs +24 -24
  113. package/_cjs/FiberRef.cjs.map +1 -1
  114. package/_cjs/FiberRefs/Patch.cjs +6 -6
  115. package/_cjs/FiberRefs/api.cjs +8 -8
  116. package/_cjs/FiberRefs/definition.cjs +1 -1
  117. package/_cjs/FiberRefs.cjs +8 -8
  118. package/_cjs/FiberRefs.cjs.map +1 -1
  119. package/_cjs/FiberScope/definition.cjs +5 -5
  120. package/_cjs/FiberScope.cjs +8 -8
  121. package/_cjs/FiberScope.cjs.map +1 -1
  122. package/_cjs/FiberSet.cjs +9 -9
  123. package/_cjs/FiberStatus/definition.cjs +1 -1
  124. package/_cjs/FiberStatus.cjs +8 -8
  125. package/_cjs/FiberStatus.cjs.map +1 -1
  126. package/_cjs/Future/api.cjs +18 -9
  127. package/_cjs/Future/api.cjs.map +1 -1
  128. package/_cjs/Future/constructors.cjs +2 -2
  129. package/_cjs/Future.cjs +8 -8
  130. package/_cjs/Future.cjs.map +1 -1
  131. package/_cjs/Hub/api.cjs +10 -10
  132. package/_cjs/Hub/internal.cjs +15 -15
  133. package/_cjs/Hub.cjs +8 -8
  134. package/_cjs/Hub.cjs.map +1 -1
  135. package/_cjs/IO/api/acquireRelease.cjs +1 -1
  136. package/_cjs/IO/api/acquireReleaseExit.cjs +3 -3
  137. package/_cjs/IO/api/acquireReleaseInterruptible.cjs +1 -1
  138. package/_cjs/IO/api/acquireReleaseInterruptibleExit.cjs +3 -3
  139. package/_cjs/IO/api/addFinalizer.cjs +1 -1
  140. package/_cjs/IO/api/addFinalizerExit.cjs +4 -4
  141. package/_cjs/IO/api/all.cjs +4 -4
  142. package/_cjs/IO/api/asyncIO.cjs +7 -7
  143. package/_cjs/IO/api/asyncInterrupt.cjs +6 -6
  144. package/_cjs/IO/api/blocking.cjs +3 -3
  145. package/_cjs/IO/api/bracket.cjs +1 -1
  146. package/_cjs/IO/api/bracketExit.cjs +4 -4
  147. package/_cjs/IO/api/clockWith.cjs +5 -5
  148. package/_cjs/IO/api/concurrency.cjs +6 -6
  149. package/_cjs/IO/api/concurrency.cjs.map +1 -1
  150. package/_cjs/IO/api/concurrentFinalizers.cjs +8 -8
  151. package/_cjs/IO/api/consoleWith.cjs +5 -5
  152. package/_cjs/IO/api/daemonChildren.cjs +4 -4
  153. package/_cjs/IO/api/delay.cjs +2 -2
  154. package/_cjs/IO/api/descriptor.cjs +4 -4
  155. package/_cjs/IO/api/diffFiberRefs.cjs +2 -2
  156. package/_cjs/IO/api/disconnect.cjs +4 -4
  157. package/_cjs/IO/api/ensuringChildren.cjs +4 -4
  158. package/_cjs/IO/api/environment.cjs +4 -4
  159. package/_cjs/IO/api/foreachConcurrent.cjs +21 -21
  160. package/_cjs/IO/api/foreachExec.cjs +4 -4
  161. package/_cjs/IO/api/fork.cjs +7 -7
  162. package/_cjs/IO/api/forkAll.cjs +3 -3
  163. package/_cjs/IO/api/forkDaemon.cjs +2 -2
  164. package/_cjs/IO/api/forkIn.cjs +5 -5
  165. package/_cjs/IO/api/forkScoped.cjs +5 -5
  166. package/_cjs/IO/api/fulfill.cjs +3 -3
  167. package/_cjs/IO/api/interrupt.cjs +6 -6
  168. package/_cjs/IO/api/memoize.cjs +7 -7
  169. package/_cjs/IO/api/onTermination.cjs +4 -4
  170. package/_cjs/IO/api/once.cjs +3 -3
  171. package/_cjs/IO/api/patchFiberRefs.cjs +2 -2
  172. package/_cjs/IO/api/provideLayer.cjs +5 -5
  173. package/_cjs/IO/api/provideScope.cjs +2 -2
  174. package/_cjs/IO/api/provideSomeLayer.cjs +2 -2
  175. package/_cjs/IO/api/provideSomeRuntime.cjs +6 -6
  176. package/_cjs/IO/api/race.cjs +8 -8
  177. package/_cjs/IO/api/raceFirst.cjs +2 -2
  178. package/_cjs/IO/api/raceWith.cjs +3 -3
  179. package/_cjs/IO/api/randomWith.cjs +5 -5
  180. package/_cjs/IO/api/repeat.cjs +5 -5
  181. package/_cjs/IO/api/retry.cjs +4 -4
  182. package/_cjs/IO/api/schedule.cjs +2 -2
  183. package/_cjs/IO/api/scope.cjs +2 -2
  184. package/_cjs/IO/api/scopeWith.cjs +2 -2
  185. package/_cjs/IO/api/scoped.cjs +2 -2
  186. package/_cjs/IO/api/sequenceT.cjs +1 -1
  187. package/_cjs/IO/api/sleep.cjs +1 -1
  188. package/_cjs/IO/api/stateful.cjs +3 -3
  189. package/_cjs/IO/api/supervised.cjs +3 -3
  190. package/_cjs/IO/api/timeout.cjs +8 -8
  191. package/_cjs/IO/api/transplant.cjs +5 -5
  192. package/_cjs/IO/api/whenFiberRef.cjs +2 -2
  193. package/_cjs/IO/api/whenRef.cjs +2 -2
  194. package/_cjs/IO/api/withChildren.cjs +4 -4
  195. package/_cjs/IO/api/withEarlyRelease.cjs +4 -4
  196. package/_cjs/IO/api/withFinalizer.cjs +1 -1
  197. package/_cjs/IO/api/withFinalizerExit.cjs +1 -1
  198. package/_cjs/IO/api/zipConcurrent.cjs +13 -13
  199. package/_cjs/IO/api.cjs +24 -24
  200. package/_cjs/IO/api.cjs.map +1 -1
  201. package/_cjs/IO/definition.cjs +1 -1
  202. package/_cjs/IO/runtime.cjs +15 -15
  203. package/_cjs/IO.cjs +256 -256
  204. package/_cjs/IO.cjs.map +1 -1
  205. package/_cjs/IOEnv/definition.cjs +8 -8
  206. package/_cjs/IOEnv/definition.cjs.map +1 -1
  207. package/_cjs/IOEnv/live.cjs +8 -8
  208. package/_cjs/IOEnv/live.cjs.map +1 -1
  209. package/_cjs/IOEnv/services.cjs +1 -1
  210. package/_cjs/IOEnv.cjs +8 -8
  211. package/_cjs/IOEnv.cjs.map +1 -1
  212. package/_cjs/InterruptStatus.cjs +8 -8
  213. package/_cjs/InterruptStatus.cjs.map +1 -1
  214. package/_cjs/Layer/MemoMap.cjs +21 -21
  215. package/_cjs/Layer/api.cjs +14 -14
  216. package/_cjs/Layer.cjs +8 -8
  217. package/_cjs/Layer.cjs.map +1 -1
  218. package/_cjs/Logger/api.cjs +2 -2
  219. package/_cjs/Logger/constructors.cjs +5 -5
  220. package/_cjs/Logger.cjs +8 -8
  221. package/_cjs/Logger.cjs.map +1 -1
  222. package/_cjs/MVar/api.cjs +11 -11
  223. package/_cjs/MVar.cjs +8 -8
  224. package/_cjs/MVar.cjs.map +1 -1
  225. package/_cjs/Push/api.cjs +33 -33
  226. package/_cjs/Push/internal.cjs +18 -19
  227. package/_cjs/Push/internal.cjs.map +1 -1
  228. package/_cjs/Push.cjs +8 -8
  229. package/_cjs/Push.cjs.map +1 -1
  230. package/_cjs/Queue/api/dimapIO.cjs +1 -1
  231. package/_cjs/Queue/api/filterInputIO.cjs +3 -3
  232. package/_cjs/Queue/api/filterOutputIO.cjs +3 -3
  233. package/_cjs/Queue/api/poll.cjs +2 -2
  234. package/_cjs/Queue/api/takeBetween.cjs +3 -3
  235. package/_cjs/Queue/api/takeN.cjs +1 -1
  236. package/_cjs/Queue/api/zipWithIO.cjs +4 -4
  237. package/_cjs/Queue/api.cjs +32 -32
  238. package/_cjs/Queue/api.cjs.map +1 -1
  239. package/_cjs/Queue/constructors.cjs +1 -1
  240. package/_cjs/Queue/internal.cjs +9 -9
  241. package/_cjs/Queue/strategy.cjs +6 -6
  242. package/_cjs/Queue.cjs +16 -16
  243. package/_cjs/Queue.cjs.map +1 -1
  244. package/_cjs/Random/api.cjs +1 -1
  245. package/_cjs/Random/definition.cjs +1 -1
  246. package/_cjs/Random/live.cjs +2 -2
  247. package/_cjs/Random/live.cjs.map +1 -1
  248. package/_cjs/Random.cjs +8 -8
  249. package/_cjs/Random.cjs.map +1 -1
  250. package/_cjs/Ref/Atomic.cjs +1 -1
  251. package/_cjs/Ref/Derived.cjs +4 -4
  252. package/_cjs/Ref/DerivedAll.cjs +4 -4
  253. package/_cjs/Ref/Synchronized/api.cjs +3 -3
  254. package/_cjs/Ref/Synchronized/constructors.cjs +5 -5
  255. package/_cjs/Ref/Synchronized/definition.cjs +1 -1
  256. package/_cjs/Ref/Synchronized.cjs +8 -8
  257. package/_cjs/Ref/Synchronized.cjs.map +1 -1
  258. package/_cjs/Ref/api/collect.cjs +3 -3
  259. package/_cjs/Ref/api/dimap.cjs +2 -2
  260. package/_cjs/Ref/api/filter.cjs +3 -3
  261. package/_cjs/Ref/api/modify.cjs +1 -1
  262. package/_cjs/Ref/api.cjs +35 -36
  263. package/_cjs/Ref/api.cjs.map +1 -1
  264. package/_cjs/Ref/constructors.cjs +1 -1
  265. package/_cjs/Ref.cjs +35 -35
  266. package/_cjs/Ref.cjs.map +1 -1
  267. package/_cjs/RefSubject/Atomic.cjs +5 -5
  268. package/_cjs/RefSubject/Synchronized/api.cjs +4 -4
  269. package/_cjs/RefSubject/Synchronized/definition.cjs +2 -2
  270. package/_cjs/RefSubject/api.cjs +4 -4
  271. package/_cjs/RefSubject.cjs +11 -11
  272. package/_cjs/RefSubject.cjs.map +1 -1
  273. package/_cjs/Reloadable/api.cjs +4 -4
  274. package/_cjs/Reloadable/api.cjs.map +1 -1
  275. package/_cjs/Reloadable/constructors.cjs +10 -10
  276. package/_cjs/Reloadable/definition.cjs +3 -3
  277. package/_cjs/Reloadable.cjs +8 -8
  278. package/_cjs/Reloadable.cjs.map +1 -1
  279. package/_cjs/RuntimeFlags/Patch.cjs +1 -1
  280. package/_cjs/RuntimeFlags/RuntimeFlags.cjs +1 -1
  281. package/_cjs/RuntimeFlags.cjs +8 -8
  282. package/_cjs/RuntimeFlags.cjs.map +1 -1
  283. package/_cjs/STM/api/atomically.cjs +7 -7
  284. package/_cjs/STM/api/core-api.cjs +3 -3
  285. package/_cjs/STM/api.cjs +10 -10
  286. package/_cjs/STM/definition.cjs +1 -1
  287. package/_cjs/STM/driver.cjs +5 -5
  288. package/_cjs/STM/internal/CommitState.cjs +1 -1
  289. package/_cjs/STM/internal/Journal.cjs +4 -4
  290. package/_cjs/STM.cjs +16 -16
  291. package/_cjs/STM.cjs.map +1 -1
  292. package/_cjs/Schedule/Decision.cjs +2 -2
  293. package/_cjs/Schedule/api/driver.cjs +12 -12
  294. package/_cjs/Schedule/api.cjs +20 -20
  295. package/_cjs/Schedule/api.cjs.map +1 -1
  296. package/_cjs/Schedule.cjs +16 -16
  297. package/_cjs/Schedule.cjs.map +1 -1
  298. package/_cjs/Scope/Finalizer/definition.cjs +2 -2
  299. package/_cjs/Scope/ReleaseMap/api/releaseAll.cjs +8 -8
  300. package/_cjs/Scope/ReleaseMap/api.cjs +6 -6
  301. package/_cjs/Scope/ReleaseMap/constructors.cjs +3 -3
  302. package/_cjs/Scope/ReleaseMap/definition.cjs +1 -1
  303. package/_cjs/Scope/ReleaseMap.cjs +8 -8
  304. package/_cjs/Scope/ReleaseMap.cjs.map +1 -1
  305. package/_cjs/Scope/api.cjs +10 -10
  306. package/_cjs/Scope/definition.cjs +2 -2
  307. package/_cjs/Scope.cjs +8 -8
  308. package/_cjs/Scope.cjs.map +1 -1
  309. package/_cjs/ScopedRef/api.cjs +12 -12
  310. package/_cjs/ScopedRef.cjs +8 -8
  311. package/_cjs/ScopedRef.cjs.map +1 -1
  312. package/_cjs/Semaphore.cjs +101 -44
  313. package/_cjs/Semaphore.cjs.map +1 -1
  314. package/_cjs/Sink/api.cjs +34 -34
  315. package/_cjs/Sink/api.cjs.map +1 -1
  316. package/_cjs/Sink.cjs +8 -8
  317. package/_cjs/Sink.cjs.map +1 -1
  318. package/_cjs/State/api.cjs +4 -4
  319. package/_cjs/State.cjs +8 -8
  320. package/_cjs/State.cjs.map +1 -1
  321. package/_cjs/Stream/api/zipAllWith.cjs +8 -8
  322. package/_cjs/Stream/api/zipWith.cjs +1 -1
  323. package/_cjs/Stream/api/zipWithChunks.cjs +6 -6
  324. package/_cjs/Stream/api.cjs +70 -70
  325. package/_cjs/Stream/api.cjs.map +1 -1
  326. package/_cjs/Stream/internal/Handoff.cjs +6 -6
  327. package/_cjs/Stream/internal/Pull.cjs +7 -7
  328. package/_cjs/Stream/internal/Pull.cjs.map +1 -1
  329. package/_cjs/Stream/internal/Take.cjs +11 -11
  330. package/_cjs/Stream/internal/Take.cjs.map +1 -1
  331. package/_cjs/Stream/internal/util.cjs +3 -3
  332. package/_cjs/Stream.cjs +8 -8
  333. package/_cjs/Stream.cjs.map +1 -1
  334. package/_cjs/Subject/Atomic.cjs +1 -1
  335. package/_cjs/Subject/api.cjs +1 -1
  336. package/_cjs/Subject.cjs +11 -11
  337. package/_cjs/Subject.cjs.map +1 -1
  338. package/_cjs/SubscriptionRef.cjs +7 -7
  339. package/_cjs/Supervisor/api.cjs +2 -2
  340. package/_cjs/Supervisor/constructors.cjs +8 -6
  341. package/_cjs/Supervisor/constructors.cjs.map +1 -1
  342. package/_cjs/Supervisor/definition.cjs +1 -1
  343. package/_cjs/Supervisor.cjs +8 -8
  344. package/_cjs/Supervisor.cjs.map +1 -1
  345. package/_cjs/SupervisorPatch.cjs +4 -4
  346. package/_cjs/TExit/definition.cjs +6 -6
  347. package/_cjs/TExit/definition.cjs.map +1 -1
  348. package/_cjs/TExit.cjs +8 -8
  349. package/_cjs/TExit.cjs.map +1 -1
  350. package/_cjs/TFuture/api.cjs +9 -9
  351. package/_cjs/TFuture/constructors.cjs +5 -5
  352. package/_cjs/TFuture/definition.cjs +1 -1
  353. package/_cjs/TFuture.cjs +8 -8
  354. package/_cjs/TFuture.cjs.map +1 -1
  355. package/_cjs/TReentrantLock/api.cjs +12 -12
  356. package/_cjs/TReentrantLock/api.cjs.map +1 -1
  357. package/_cjs/TReentrantLock/definition.cjs +5 -5
  358. package/_cjs/TReentrantLock.cjs +8 -8
  359. package/_cjs/TReentrantLock.cjs.map +1 -1
  360. package/_cjs/TRef/api.cjs +2 -2
  361. package/_cjs/TRef/constructors.cjs +3 -3
  362. package/_cjs/TRef/definition.cjs +7 -7
  363. package/_cjs/TRef.cjs +8 -8
  364. package/_cjs/TRef.cjs.map +1 -1
  365. package/_cjs/TSemaphore/api.cjs +5 -5
  366. package/_cjs/TSemaphore/constructors.cjs +4 -4
  367. package/_cjs/TSemaphore/definition.cjs +1 -1
  368. package/_cjs/TSemaphore.cjs +8 -8
  369. package/_cjs/TSemaphore.cjs.map +1 -1
  370. package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +3 -3
  371. package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +3 -3
  372. package/_cjs/collection/immutable/Conc/filterIO.cjs +1 -1
  373. package/_cjs/collection/immutable/Conc/findIO.cjs +2 -2
  374. package/_cjs/collection/immutable/Conc/mapIO.cjs +1 -1
  375. package/_cjs/collection/immutable/Conc/takeWhileIO.cjs +3 -3
  376. package/_cjs/collection/immutable/Conc.cjs +24 -24
  377. package/_cjs/collection/immutable/Conc.cjs.map +1 -1
  378. package/_cjs/data/Exit/foreachIO.cjs +3 -3
  379. package/_cjs/internal/HashedPair.cjs +4 -4
  380. package/_cjs/internal/Hub.cjs +4 -4
  381. package/_cjs/internal/MutableQueue.cjs +2 -2
  382. package/_cjs/internal/Scheduler.cjs +1 -1
  383. package/_cjs/internal/StackTraceBuilder.cjs +2 -2
  384. package/_mjs/Cached.mjs +2 -3
  385. package/_mjs/Cached.mjs.map +1 -1
  386. package/_mjs/Channel/ChildExecutorDecision.mjs +1 -2
  387. package/_mjs/Channel/ChildExecutorDecision.mjs.map +1 -1
  388. package/_mjs/Channel/UpstreamPullRequest.mjs +1 -2
  389. package/_mjs/Channel/UpstreamPullRequest.mjs.map +1 -1
  390. package/_mjs/Channel.mjs +2 -3
  391. package/_mjs/Channel.mjs.map +1 -1
  392. package/_mjs/Clock.mjs +2 -3
  393. package/_mjs/Clock.mjs.map +1 -1
  394. package/_mjs/Console.mjs +2 -3
  395. package/_mjs/Console.mjs.map +1 -1
  396. package/_mjs/Fiber.mjs +19 -21
  397. package/_mjs/Fiber.mjs.map +1 -1
  398. package/_mjs/FiberRef/unsafe.mjs +5 -5
  399. package/_mjs/FiberRef/unsafe.mjs.map +1 -1
  400. package/_mjs/FiberRef.mjs +5 -7
  401. package/_mjs/FiberRef.mjs.map +1 -1
  402. package/_mjs/FiberRefs.mjs +1 -2
  403. package/_mjs/FiberRefs.mjs.map +1 -1
  404. package/_mjs/FiberScope.mjs +1 -2
  405. package/_mjs/FiberScope.mjs.map +1 -1
  406. package/_mjs/FiberStatus.mjs +1 -2
  407. package/_mjs/FiberStatus.mjs.map +1 -1
  408. package/_mjs/Future/api.mjs +10 -1
  409. package/_mjs/Future/api.mjs.map +1 -1
  410. package/_mjs/Future.mjs +2 -3
  411. package/_mjs/Future.mjs.map +1 -1
  412. package/_mjs/Hub.mjs +1 -2
  413. package/_mjs/Hub.mjs.map +1 -1
  414. package/_mjs/IO/api/concurrency.mjs +1 -1
  415. package/_mjs/IO/api/concurrency.mjs.map +1 -1
  416. package/_mjs/IO/api.mjs +1 -1
  417. package/_mjs/IO/api.mjs.map +1 -1
  418. package/_mjs/IO.mjs +63 -65
  419. package/_mjs/IO.mjs.map +1 -1
  420. package/_mjs/IOEnv/definition.mjs +1 -1
  421. package/_mjs/IOEnv/definition.mjs.map +1 -1
  422. package/_mjs/IOEnv/live.mjs +1 -1
  423. package/_mjs/IOEnv/live.mjs.map +1 -1
  424. package/_mjs/IOEnv.mjs +2 -3
  425. package/_mjs/IOEnv.mjs.map +1 -1
  426. package/_mjs/InterruptStatus.mjs +1 -2
  427. package/_mjs/InterruptStatus.mjs.map +1 -1
  428. package/_mjs/Layer.mjs +1 -2
  429. package/_mjs/Layer.mjs.map +1 -1
  430. package/_mjs/Logger.mjs +2 -3
  431. package/_mjs/Logger.mjs.map +1 -1
  432. package/_mjs/MVar.mjs +1 -2
  433. package/_mjs/MVar.mjs.map +1 -1
  434. package/_mjs/Push/internal.mjs +5 -6
  435. package/_mjs/Push/internal.mjs.map +1 -1
  436. package/_mjs/Push.mjs +2 -3
  437. package/_mjs/Push.mjs.map +1 -1
  438. package/_mjs/Queue/api.mjs +7 -8
  439. package/_mjs/Queue/api.mjs.map +1 -1
  440. package/_mjs/Queue.mjs +4 -5
  441. package/_mjs/Queue.mjs.map +1 -1
  442. package/_mjs/Random/live.mjs +1 -1
  443. package/_mjs/Random/live.mjs.map +1 -1
  444. package/_mjs/Random.mjs +2 -3
  445. package/_mjs/Random.mjs.map +1 -1
  446. package/_mjs/Ref/Synchronized.mjs +2 -3
  447. package/_mjs/Ref/Synchronized.mjs.map +1 -1
  448. package/_mjs/Ref/api.mjs +8 -9
  449. package/_mjs/Ref/api.mjs.map +1 -1
  450. package/_mjs/Ref.mjs +7 -9
  451. package/_mjs/Ref.mjs.map +1 -1
  452. package/_mjs/RefSubject.mjs +1 -2
  453. package/_mjs/RefSubject.mjs.map +1 -1
  454. package/_mjs/Reloadable/api.mjs +3 -3
  455. package/_mjs/Reloadable/api.mjs.map +1 -1
  456. package/_mjs/Reloadable.mjs +2 -3
  457. package/_mjs/Reloadable.mjs.map +1 -1
  458. package/_mjs/RuntimeFlags.mjs +1 -2
  459. package/_mjs/RuntimeFlags.mjs.map +1 -1
  460. package/_mjs/STM.mjs +4 -6
  461. package/_mjs/STM.mjs.map +1 -1
  462. package/_mjs/Schedule/api.mjs +2 -2
  463. package/_mjs/Schedule/api.mjs.map +1 -1
  464. package/_mjs/Schedule.mjs +2 -3
  465. package/_mjs/Schedule.mjs.map +1 -1
  466. package/_mjs/Scope/ReleaseMap.mjs +2 -3
  467. package/_mjs/Scope/ReleaseMap.mjs.map +1 -1
  468. package/_mjs/Scope.mjs +1 -2
  469. package/_mjs/Scope.mjs.map +1 -1
  470. package/_mjs/ScopedRef.mjs +1 -2
  471. package/_mjs/ScopedRef.mjs.map +1 -1
  472. package/_mjs/Semaphore.mjs +98 -42
  473. package/_mjs/Semaphore.mjs.map +1 -1
  474. package/_mjs/Sink/api.mjs +1 -1
  475. package/_mjs/Sink/api.mjs.map +1 -1
  476. package/_mjs/Sink.mjs +1 -2
  477. package/_mjs/Sink.mjs.map +1 -1
  478. package/_mjs/State.mjs +1 -2
  479. package/_mjs/State.mjs.map +1 -1
  480. package/_mjs/Stream/api.mjs +1 -1
  481. package/_mjs/Stream/api.mjs.map +1 -1
  482. package/_mjs/Stream/internal/Pull.mjs +1 -1
  483. package/_mjs/Stream/internal/Pull.mjs.map +1 -1
  484. package/_mjs/Stream/internal/Take.mjs +1 -1
  485. package/_mjs/Stream/internal/Take.mjs.map +1 -1
  486. package/_mjs/Stream.mjs +1 -2
  487. package/_mjs/Stream.mjs.map +1 -1
  488. package/_mjs/Subject.mjs +1 -2
  489. package/_mjs/Subject.mjs.map +1 -1
  490. package/_mjs/Supervisor/constructors.mjs +4 -2
  491. package/_mjs/Supervisor/constructors.mjs.map +1 -1
  492. package/_mjs/Supervisor.mjs +2 -3
  493. package/_mjs/Supervisor.mjs.map +1 -1
  494. package/_mjs/TExit.mjs +1 -2
  495. package/_mjs/TExit.mjs.map +1 -1
  496. package/_mjs/TFuture.mjs +2 -3
  497. package/_mjs/TFuture.mjs.map +1 -1
  498. package/_mjs/TReentrantLock/api.mjs +1 -1
  499. package/_mjs/TReentrantLock/api.mjs.map +1 -1
  500. package/_mjs/TReentrantLock.mjs +1 -2
  501. package/_mjs/TReentrantLock.mjs.map +1 -1
  502. package/_mjs/TRef.mjs +2 -3
  503. package/_mjs/TRef.mjs.map +1 -1
  504. package/_mjs/TSemaphore.mjs +2 -3
  505. package/_mjs/TSemaphore.mjs.map +1 -1
  506. package/_mjs/collection/immutable/Conc.mjs +5 -6
  507. package/_mjs/collection/immutable/Conc.mjs.map +1 -1
  508. package/_src/Cached.ts +2 -3
  509. package/_src/Channel/ChildExecutorDecision.ts +1 -2
  510. package/_src/Channel/UpstreamPullRequest.ts +1 -2
  511. package/_src/Channel.ts +2 -3
  512. package/_src/Clock.ts +2 -3
  513. package/_src/Console.ts +2 -3
  514. package/_src/Fiber.ts +20 -21
  515. package/_src/FiberRef.ts +6 -7
  516. package/_src/FiberRefs.ts +1 -2
  517. package/_src/FiberScope.ts +1 -2
  518. package/_src/FiberStatus.ts +1 -2
  519. package/_src/Future/api.ts +9 -0
  520. package/_src/Future.ts +2 -3
  521. package/_src/Hub.ts +1 -2
  522. package/_src/IO.ts +63 -65
  523. package/_src/IOEnv.ts +2 -3
  524. package/_src/InterruptStatus.ts +1 -2
  525. package/_src/Layer.ts +1 -2
  526. package/_src/Logger.ts +2 -3
  527. package/_src/MVar.ts +1 -2
  528. package/_src/Push/internal.ts +2 -3
  529. package/_src/Push.ts +2 -3
  530. package/_src/Queue/api.ts +7 -8
  531. package/_src/Queue.ts +4 -5
  532. package/_src/Random.ts +2 -3
  533. package/_src/Ref/Synchronized.ts +2 -3
  534. package/_src/Ref/api.ts +7 -8
  535. package/_src/Ref.ts +7 -9
  536. package/_src/RefSubject.ts +1 -2
  537. package/_src/Reloadable.ts +2 -3
  538. package/_src/RuntimeFlags.ts +1 -2
  539. package/_src/STM.ts +5 -6
  540. package/_src/Schedule.ts +2 -3
  541. package/_src/Scope/ReleaseMap.ts +2 -3
  542. package/_src/Scope.ts +1 -2
  543. package/_src/ScopedRef.ts +1 -2
  544. package/_src/Semaphore.ts +116 -38
  545. package/_src/Sink.ts +1 -2
  546. package/_src/State.ts +1 -2
  547. package/_src/Stream.ts +1 -2
  548. package/_src/Subject.ts +1 -2
  549. package/_src/Supervisor/constructors.ts +2 -0
  550. package/_src/Supervisor.ts +2 -3
  551. package/_src/TExit.ts +1 -2
  552. package/_src/TFuture.ts +2 -3
  553. package/_src/TReentrantLock.ts +1 -2
  554. package/_src/TRef.ts +2 -3
  555. package/_src/TSemaphore.ts +2 -3
  556. package/_src/collection/immutable/Conc.ts +5 -6
  557. package/collection/immutable/Conc.d.ts +5 -5
  558. package/package.json +2 -2
package/Cached.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Cached/internal.js";
2
- export * from "./Cached/definition.js";
3
1
  export * from "./Cached/api.js";
2
+ export * from "./Cached/definition.js";
3
+ export * from "./Cached/internal.js";
@@ -1,2 +1,2 @@
1
- export * from "./ChildExecutorDecision/definition.js";
2
1
  export * from "./ChildExecutorDecision/api.js";
2
+ export * from "./ChildExecutorDecision/definition.js";
@@ -1,2 +1,2 @@
1
- export * from "./UpstreamPullRequest/definition.js";
2
1
  export * from "./UpstreamPullRequest/api.js";
2
+ export * from "./UpstreamPullRequest/definition.js";
package/Channel.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Channel/definition.js";
2
- export * from "./Channel/core-api.js";
3
1
  export * from "./Channel/api.js";
2
+ export * from "./Channel/core-api.js";
3
+ export * from "./Channel/definition.js";
package/Clock.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Clock/live.js";
2
- export * from "./Clock/definition.js";
3
1
  export * from "./Clock/api.js";
2
+ export * from "./Clock/definition.js";
3
+ export * from "./Clock/live.js";
package/Console.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Console/live.js";
2
- export * from "./Console/definition.js";
3
1
  export * from "./Console/api.js";
2
+ export * from "./Console/definition.js";
3
+ export * from "./Console/live.js";
package/Fiber.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- export * from "./Fiber/definition.js";
2
1
  export * from "./Fiber/constructors.js";
3
- export * from "./Fiber/FiberRuntime.js";
2
+ export * from "./Fiber/definition.js";
4
3
  export * from "./Fiber/FiberMessage.js";
5
- export * from "./Fiber/api/zipWith.js";
6
- export * from "./Fiber/api/poll.js";
7
- export * from "./Fiber/api/mapIO.js";
8
- export * from "./Fiber/api/mapFiber.js";
9
- export * from "./Fiber/api/location.js";
10
- export * from "./Fiber/api/joinAll.js";
11
- export * from "./Fiber/api/join.js";
12
- export * from "./Fiber/api/interruptFork.js";
13
- export * from "./Fiber/api/interruptAs.js";
14
- export * from "./Fiber/api/interruptAll.js";
15
- export * from "./Fiber/api/interrupt.js";
16
- export * from "./Fiber/api/inheritRefs.js";
17
- export * from "./Fiber/api/id.js";
18
- export * from "./Fiber/api/fromIO.js";
19
- export * from "./Fiber/api/collectAll.js";
20
- export * from "./Fiber/api/children.js";
21
- export * from "./Fiber/api/awaitAll.js";
4
+ export * from "./Fiber/FiberRuntime.js";
22
5
  export * from "./Fiber/api/await.js";
6
+ export * from "./Fiber/api/awaitAll.js";
7
+ export * from "./Fiber/api/children.js";
8
+ export * from "./Fiber/api/collectAll.js";
9
+ export * from "./Fiber/api/fromIO.js";
10
+ export * from "./Fiber/api/id.js";
11
+ export * from "./Fiber/api/inheritRefs.js";
12
+ export * from "./Fiber/api/interrupt.js";
13
+ export * from "./Fiber/api/interruptAll.js";
14
+ export * from "./Fiber/api/interruptAs.js";
15
+ export * from "./Fiber/api/interruptFork.js";
16
+ export * from "./Fiber/api/join.js";
17
+ export * from "./Fiber/api/joinAll.js";
18
+ export * from "./Fiber/api/location.js";
19
+ export * from "./Fiber/api/mapFiber.js";
20
+ export * from "./Fiber/api/mapIO.js";
21
+ export * from "./Fiber/api/poll.js";
22
+ export * from "./Fiber/api/zipWith.js";
package/FiberRef.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./FiberRef/unsafe.js";
2
- export * from "./FiberRef/operations.js";
3
- export * from "./FiberRef/definition.js";
4
- export * from "./FiberRef/constructors.js";
5
1
  export * from "./FiberRef/api.js";
6
- export * from "./FiberRef/api/locallyScopedWith.js";
2
+ export * from "./FiberRef/constructors.js";
3
+ export * from "./FiberRef/definition.js";
4
+ export * from "./FiberRef/operations.js";
5
+ export * from "./FiberRef/unsafe.js";
7
6
  export * from "./FiberRef/api/locallyScoped.js";
7
+ export * from "./FiberRef/api/locallyScopedWith.js";
package/FiberRefs.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./FiberRefs/definition.js";
2
1
  export * from "./FiberRefs/api.js";
2
+ export * from "./FiberRefs/definition.js";
3
3
  export * from "./FiberRefs/Patch.js";
package/FiberScope.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./FiberScope/definition.js";
2
1
  export * from "./FiberScope/constructors.js";
2
+ export * from "./FiberScope/definition.js";
package/FiberStatus.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./FiberStatus/definition.js";
2
1
  export * from "./FiberStatus/constructors.js";
2
+ export * from "./FiberStatus/definition.js";
package/Future/api.d.ts CHANGED
@@ -92,6 +92,12 @@ export declare function poll<E, A>(future: Future<E, A>, __tsplusTrace?: string)
92
92
  * @tsplus location "@fncts/io/Future/api"
93
93
  */
94
94
  export declare function succeed_<A>(a: A, __tsplusTrace?: string): <E>(future: Future<E, A>) => UIO<boolean>;
95
+ /**
96
+ * Completes the future with the specified value.
97
+ * @tsplus pipeable fncts.io.Future succeed
98
+ * @tsplus location "@fncts/io/Future/api"
99
+ */
100
+ export declare function succeedVoid_(a: void, __tsplusTrace?: string): <E>(future: Future<E, void>) => UIO<boolean>;
95
101
  /**
96
102
  * Retrieves the value of the future, suspending the fiber running the action
97
103
  * until the result is available.
package/Future.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Future/definition.js";
2
- export * from "./Future/constructors.js";
3
1
  export * from "./Future/api.js";
2
+ export * from "./Future/constructors.js";
3
+ export * from "./Future/definition.js";
package/Hub.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Hub/definition.js";
2
1
  export * from "./Hub/api.js";
2
+ export * from "./Hub/definition.js";
package/IO/runtime.d.ts CHANGED
@@ -38,7 +38,7 @@ export declare const unsafeRunFiber: <E, A>(io: import("./definition.js").IO<nev
38
38
  * @tsplus fluent fncts.io.IO unsafeRunPromiseExit
39
39
  * @tsplus location "@fncts/io/IO/runtime"
40
40
  */
41
- export declare const unsafeRunPromiseExit: <E, A>(io: import("./definition.js").IO<never, E, A>, __tsplusTrace?: string) => Promise<Exit<E, A>>;
41
+ export declare const unsafeRunPromiseExit: <E, A>(io: import("./definition.js").IO<never, E, A>, __tsplusTrace?: string) => Promise<import("@fncts/base/data/Exit.js").Exit<E, A>>;
42
42
  /**
43
43
  * @tsplus fluent fncts.io.IO unsafeRunPromise
44
44
  * @tsplus location "@fncts/io/IO/runtime"
@@ -48,9 +48,9 @@ export declare const unsafeRunPromise: <E, A>(io: import("./definition.js").IO<n
48
48
  * @tsplus getter fncts.io.IO unsafeRunOrFork
49
49
  * @tsplus location "@fncts/io/IO/runtime"
50
50
  */
51
- export declare const unsafeRunOrFork: <E, A>(io: import("./definition.js").IO<never, E, A>, __tsplusTrace?: string) => Either<Fiber.Runtime<E, A>, Exit<E, A>>;
51
+ export declare const unsafeRunOrFork: <E, A>(io: import("./definition.js").IO<never, E, A>, __tsplusTrace?: string) => import("@fncts/base/data/Either.js").Either<import("@fncts/io/Fiber").Fiber.Runtime<E, A>, import("@fncts/base/data/Exit.js").Exit<E, A>>;
52
52
  /**
53
53
  * @tsplus getter fncts.io.IO unsafeRun
54
54
  * @tsplus location "@fncts/io/IO/runtime"
55
55
  */
56
- export declare const unsafeRun: <E, A>(io: import("./definition.js").IO<never, E, A>, __tsplusTrace?: string) => Exit<E, A>;
56
+ export declare const unsafeRun: <E, A>(io: import("./definition.js").IO<never, E, A>, __tsplusTrace?: string) => import("@fncts/base/data/Exit.js").Exit<E, A>;
package/IO.d.ts CHANGED
@@ -1,66 +1,66 @@
1
- export * from "./IO/runtime.js";
2
- export * from "./IO/definition.js";
3
1
  export * from "./IO/api.js";
4
- export * from "./IO/api/zipConcurrent.js";
5
- export * from "./IO/api/withFinalizerExit.js";
6
- export * from "./IO/api/withFinalizer.js";
7
- export * from "./IO/api/withEarlyRelease.js";
8
- export * from "./IO/api/withChildren.js";
9
- export * from "./IO/api/whenRef.js";
10
- export * from "./IO/api/whenFiberRef.js";
11
- export * from "./IO/api/transplant.js";
12
- export * from "./IO/api/timeout.js";
13
- export * from "./IO/api/supervised.js";
14
- export * from "./IO/api/stateful.js";
15
- export * from "./IO/api/sleep.js";
16
- export * from "./IO/api/sequenceT.js";
17
- export * from "./IO/api/scoped.js";
18
- export * from "./IO/api/scopeWith.js";
19
- export * from "./IO/api/scope.js";
20
- export * from "./IO/api/schedule.js";
21
- export * from "./IO/api/retry.js";
22
- export * from "./IO/api/repeat.js";
23
- export * from "./IO/api/randomWith.js";
24
- export * from "./IO/api/raceWith.js";
25
- export * from "./IO/api/raceFirst.js";
26
- export * from "./IO/api/race.js";
27
- export * from "./IO/api/provideSomeRuntime.js";
28
- export * from "./IO/api/provideSomeLayer.js";
29
- export * from "./IO/api/provideScope.js";
30
- export * from "./IO/api/provideLayer.js";
31
- export * from "./IO/api/patchFiberRefs.js";
32
- export * from "./IO/api/once.js";
33
- export * from "./IO/api/onTermination.js";
34
- export * from "./IO/api/memoize.js";
35
- export * from "./IO/api/interrupt.js";
36
- export * from "./IO/api/fulfill.js";
37
- export * from "./IO/api/forkScoped.js";
38
- export * from "./IO/api/forkIn.js";
39
- export * from "./IO/api/forkDaemon.js";
40
- export * from "./IO/api/forkAll.js";
41
- export * from "./IO/api/fork.js";
42
- export * from "./IO/api/foreachExec.js";
43
- export * from "./IO/api/foreachConcurrent.js";
44
- export * from "./IO/api/environment.js";
45
- export * from "./IO/api/ensuringChildren.js";
46
- export * from "./IO/api/disconnect.js";
47
- export * from "./IO/api/diffFiberRefs.js";
48
- export * from "./IO/api/descriptor.js";
49
- export * from "./IO/api/delay.js";
50
- export * from "./IO/api/daemonChildren.js";
51
- export * from "./IO/api/consoleWith.js";
52
- export * from "./IO/api/concurrentFinalizers.js";
53
- export * from "./IO/api/concurrency.js";
54
- export * from "./IO/api/clockWith.js";
55
- export * from "./IO/api/bracketExit.js";
56
- export * from "./IO/api/bracket.js";
57
- export * from "./IO/api/blocking.js";
2
+ export * from "./IO/definition.js";
3
+ export * from "./IO/runtime.js";
4
+ export * from "./IO/api/acquireRelease.js";
5
+ export * from "./IO/api/acquireReleaseExit.js";
6
+ export * from "./IO/api/acquireReleaseInterruptible.js";
7
+ export * from "./IO/api/acquireReleaseInterruptibleExit.js";
8
+ export * from "./IO/api/addFinalizer.js";
9
+ export * from "./IO/api/addFinalizerExit.js";
10
+ export * from "./IO/api/all.js";
58
11
  export * from "./IO/api/asyncInterrupt.js";
59
12
  export * from "./IO/api/asyncIO.js";
60
- export * from "./IO/api/all.js";
61
- export * from "./IO/api/addFinalizerExit.js";
62
- export * from "./IO/api/addFinalizer.js";
63
- export * from "./IO/api/acquireReleaseInterruptibleExit.js";
64
- export * from "./IO/api/acquireReleaseInterruptible.js";
65
- export * from "./IO/api/acquireReleaseExit.js";
66
- export * from "./IO/api/acquireRelease.js";
13
+ export * from "./IO/api/blocking.js";
14
+ export * from "./IO/api/bracket.js";
15
+ export * from "./IO/api/bracketExit.js";
16
+ export * from "./IO/api/clockWith.js";
17
+ export * from "./IO/api/concurrency.js";
18
+ export * from "./IO/api/concurrentFinalizers.js";
19
+ export * from "./IO/api/consoleWith.js";
20
+ export * from "./IO/api/daemonChildren.js";
21
+ export * from "./IO/api/delay.js";
22
+ export * from "./IO/api/descriptor.js";
23
+ export * from "./IO/api/diffFiberRefs.js";
24
+ export * from "./IO/api/disconnect.js";
25
+ export * from "./IO/api/ensuringChildren.js";
26
+ export * from "./IO/api/environment.js";
27
+ export * from "./IO/api/foreachConcurrent.js";
28
+ export * from "./IO/api/foreachExec.js";
29
+ export * from "./IO/api/fork.js";
30
+ export * from "./IO/api/forkAll.js";
31
+ export * from "./IO/api/forkDaemon.js";
32
+ export * from "./IO/api/forkIn.js";
33
+ export * from "./IO/api/forkScoped.js";
34
+ export * from "./IO/api/fulfill.js";
35
+ export * from "./IO/api/interrupt.js";
36
+ export * from "./IO/api/memoize.js";
37
+ export * from "./IO/api/once.js";
38
+ export * from "./IO/api/onTermination.js";
39
+ export * from "./IO/api/patchFiberRefs.js";
40
+ export * from "./IO/api/provideLayer.js";
41
+ export * from "./IO/api/provideScope.js";
42
+ export * from "./IO/api/provideSomeLayer.js";
43
+ export * from "./IO/api/provideSomeRuntime.js";
44
+ export * from "./IO/api/race.js";
45
+ export * from "./IO/api/raceFirst.js";
46
+ export * from "./IO/api/raceWith.js";
47
+ export * from "./IO/api/randomWith.js";
48
+ export * from "./IO/api/repeat.js";
49
+ export * from "./IO/api/retry.js";
50
+ export * from "./IO/api/schedule.js";
51
+ export * from "./IO/api/scope.js";
52
+ export * from "./IO/api/scoped.js";
53
+ export * from "./IO/api/scopeWith.js";
54
+ export * from "./IO/api/sequenceT.js";
55
+ export * from "./IO/api/sleep.js";
56
+ export * from "./IO/api/stateful.js";
57
+ export * from "./IO/api/supervised.js";
58
+ export * from "./IO/api/timeout.js";
59
+ export * from "./IO/api/transplant.js";
60
+ export * from "./IO/api/whenFiberRef.js";
61
+ export * from "./IO/api/whenRef.js";
62
+ export * from "./IO/api/withChildren.js";
63
+ export * from "./IO/api/withEarlyRelease.js";
64
+ export * from "./IO/api/withFinalizer.js";
65
+ export * from "./IO/api/withFinalizerExit.js";
66
+ export * from "./IO/api/zipConcurrent.js";
package/IOEnv.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./IOEnv/services.js";
2
- export * from "./IOEnv/live.js";
3
1
  export * from "./IOEnv/definition.js";
2
+ export * from "./IOEnv/live.js";
3
+ export * from "./IOEnv/services.js";
@@ -1,2 +1,2 @@
1
- export * from "./InterruptStatus/definition.js";
2
1
  export * from "./InterruptStatus/constructors.js";
2
+ export * from "./InterruptStatus/definition.js";
package/Layer.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Layer/definition.js";
2
1
  export * from "./Layer/api.js";
2
+ export * from "./Layer/definition.js";
3
3
  export * from "./Layer/MemoMap.js";
package/Logger.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Logger/definition.js";
2
- export * from "./Logger/constructors.js";
3
1
  export * from "./Logger/api.js";
2
+ export * from "./Logger/constructors.js";
3
+ export * from "./Logger/definition.js";
package/MVar.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./MVar/definition.js";
2
1
  export * from "./MVar/api.js";
2
+ export * from "./MVar/definition.js";
package/Push.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Push/internal.js";
2
- export * from "./Push/definition.js";
3
1
  export * from "./Push/api.js";
2
+ export * from "./Push/definition.js";
3
+ export * from "./Push/internal.js";
package/Queue/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./api/zipWithIO.js";
2
- export * from "./api/takeN.js";
3
- export * from "./api/takeBetween.js";
4
- export * from "./api/poll.js";
5
- export * from "./api/operations.js";
6
- export * from "./api/filterOutputIO.js";
7
- export * from "./api/filterInputIO.js";
8
1
  export * from "./api/dimapIO.js";
2
+ export * from "./api/filterInputIO.js";
3
+ export * from "./api/filterOutputIO.js";
4
+ export * from "./api/operations.js";
5
+ export * from "./api/poll.js";
6
+ export * from "./api/takeBetween.js";
7
+ export * from "./api/takeN.js";
8
+ export * from "./api/zipWithIO.js";
package/Queue.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./Queue/strategy.js";
2
- export * from "./Queue/internal.js";
3
- export * from "./Queue/definition.js";
4
- export * from "./Queue/constructors.js";
5
1
  export * from "./Queue/api.js";
2
+ export * from "./Queue/constructors.js";
3
+ export * from "./Queue/definition.js";
4
+ export * from "./Queue/internal.js";
5
+ export * from "./Queue/strategy.js";
package/Random.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Random/live.js";
2
- export * from "./Random/definition.js";
3
1
  export * from "./Random/api.js";
2
+ export * from "./Random/definition.js";
3
+ export * from "./Random/live.js";
@@ -1,3 +1,3 @@
1
- export * from "./Synchronized/definition.js";
2
- export * from "./Synchronized/constructors.js";
3
1
  export * from "./Synchronized/api.js";
2
+ export * from "./Synchronized/constructors.js";
3
+ export * from "./Synchronized/definition.js";
package/Ref/api.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import type { PRef } from "./definition.js";
2
- export * from "./api/set.js";
3
- export * from "./api/modify.js";
4
- export * from "./api/matchAll.js";
5
- export * from "./api/match.js";
6
- export * from "./api/get.js";
7
- export * from "./api/filter.js";
8
- export * from "./api/dimap.js";
9
2
  export * from "./api/collect.js";
3
+ export * from "./api/dimap.js";
4
+ export * from "./api/filter.js";
5
+ export * from "./api/get.js";
6
+ export * from "./api/match.js";
7
+ export * from "./api/matchAll.js";
8
+ export * from "./api/modify.js";
9
+ export * from "./api/set.js";
10
10
  /**
11
11
  * Returns a read only view of the `Ref`.
12
12
  * @tsplus getter fncts.io.Ref readOnly
package/Ref.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./Ref/definition.js";
2
- export * from "./Ref/constructors.js";
3
1
  export * from "./Ref/api.js";
4
- export * from "./Ref/Synchronized.js";
5
- export * from "./Ref/DerivedAll.js";
6
- export * from "./Ref/Derived.js";
7
2
  export * from "./Ref/Atomic.js";
8
- export * from "./Ref/Synchronized/definition.js";
9
- export * from "./Ref/Synchronized/constructors.js";
3
+ export * from "./Ref/constructors.js";
4
+ export * from "./Ref/definition.js";
5
+ export * from "./Ref/Derived.js";
6
+ export * from "./Ref/DerivedAll.js";
7
+ export * from "./Ref/Synchronized.js";
10
8
  export * from "./Ref/Synchronized/api.js";
9
+ export * from "./Ref/Synchronized/constructors.js";
10
+ export * from "./Ref/Synchronized/definition.js";
package/RefSubject.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./RefSubject/definition.js";
2
1
  export * from "./RefSubject/api.js";
3
2
  export * from "./RefSubject/Atomic.js";
3
+ export * from "./RefSubject/definition.js";
package/Reloadable.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Reloadable/definition.js";
2
- export * from "./Reloadable/constructors.js";
3
1
  export * from "./Reloadable/api.js";
2
+ export * from "./Reloadable/constructors.js";
3
+ export * from "./Reloadable/definition.js";
package/RuntimeFlags.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./RuntimeFlags/RuntimeFlags.js";
2
1
  export * from "./RuntimeFlags/Patch.js";
2
+ export * from "./RuntimeFlags/RuntimeFlags.js";
package/STM.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./STM/driver.js";
2
- export * from "./STM/definition.js";
3
1
  export * from "./STM/api.js";
4
- export * from "./STM/api/core-constructors.js";
5
- export * from "./STM/api/core-api.js";
2
+ export * from "./STM/definition.js";
3
+ export * from "./STM/driver.js";
6
4
  export * from "./STM/api/atomically.js";
5
+ export * from "./STM/api/core-api.js";
6
+ export * from "./STM/api/core-constructors.js";
package/Schedule.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./Schedule/definition.js";
2
1
  export * from "./Schedule/api.js";
3
- export * from "./Schedule/Driver.js";
4
2
  export * from "./Schedule/Decision.js";
3
+ export * from "./Schedule/definition.js";
4
+ export * from "./Schedule/Driver.js";
@@ -1,3 +1,3 @@
1
- export * from "./ReleaseMap/definition.js";
2
- export * from "./ReleaseMap/constructors.js";
3
1
  export * from "./ReleaseMap/api.js";
2
+ export * from "./ReleaseMap/constructors.js";
3
+ export * from "./ReleaseMap/definition.js";
package/Scope.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Scope/definition.js";
2
1
  export * from "./Scope/api.js";
2
+ export * from "./Scope/definition.js";
package/ScopedRef.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./ScopedRef/definition.js";
2
1
  export * from "./ScopedRef/api.js";
2
+ export * from "./ScopedRef/definition.js";
package/Semaphore.d.ts CHANGED
@@ -1,6 +1,10 @@
1
- import { IO, UIO } from "@fncts/io/IO/definition";
1
+ import { Ref } from "@fncts/io/Ref/definition";
2
2
  import { Either } from "@fncts/base/data/Either/definition";
3
- import { FiberRef } from "@fncts/io/FiberRef/definition";
3
+ import { ImmutableQueue } from "@fncts/base/collection/immutable/Queue/definition";
4
+ import { Future } from "@fncts/io/Future";
5
+ import { UIO, IO } from "@fncts/io/IO/definition";
6
+ import { Maybe, MaybeTag } from "@fncts/base/data/Maybe/definition";
7
+ import { Scope } from "@fncts/io/Scope/definition";
4
8
  /**
5
9
  * @tsplus type fncts.io.Semaphore
6
10
  * @tsplus companion fncts.io.SemaphoreOps
@@ -8,14 +12,20 @@ import { FiberRef } from "@fncts/io/FiberRef/definition";
8
12
  export declare class Semaphore {
9
13
  readonly permits: number;
10
14
  constructor(permits: number);
11
- taken: number;
12
- waiters: Set<() => void>;
13
- get free(): number;
14
- runNext(): void;
15
- take(n: number): import("./IO").IO<never, never, number>;
16
- release(n: number): import("./IO").IO<never, never, void>;
15
+ ref: import("./Ref").Ref.Atomic<import("@fncts/base/data/Either").Either<import("@fncts/base/collection/immutable/Queue").Queue<[import("./Future").Future<never, void>, number]>, number>>;
16
+ available(__tsplusTrace?: string): UIO<number>;
17
+ reserve(n: number, __tsplusTrace?: string): UIO<Reservation>;
18
+ restore(future: Future<never, void>, n: number, __tsplusTrace?: string): UIO<void>;
19
+ releaseN(n: number, __tsplusTrace?: string): UIO<void>;
17
20
  withPermits(permits: number): <R, E, A>(io: IO<R, E, A>) => IO<R, E, A>;
18
21
  withPermit<R, E, A>(io: IO<R, E, A>): IO<R, E, A>;
22
+ withPermitsScoped(permits: number): <R, E, A>(io: IO<R, E, A>) => IO<Scope | R, E, A>;
23
+ withPermitScoped<R, E, A>(io: IO<R, E, A>): IO<Scope | R, E, A>;
24
+ }
25
+ export declare class Reservation {
26
+ readonly acquire: UIO<void>;
27
+ readonly release: UIO<void>;
28
+ constructor(acquire: UIO<void>, release: UIO<void>);
19
29
  }
20
30
  /**
21
31
  * @tsplus static fncts.io.SemaphoreOps unsafeMake
package/Sink.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Sink/definition.js";
2
1
  export * from "./Sink/api.js";
2
+ export * from "./Sink/definition.js";
package/State.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./State/definition.js";
2
1
  export * from "./State/api.js";
2
+ export * from "./State/definition.js";
package/Stream.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Stream/definition.js";
2
1
  export * from "./Stream/api.js";
2
+ export * from "./Stream/definition.js";
package/Subject.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Subject/definition.js";
2
1
  export * from "./Subject/api.js";
3
2
  export * from "./Subject/Atomic.js";
3
+ export * from "./Subject/definition.js";
package/Supervisor.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Supervisor/definition.js";
2
- export * from "./Supervisor/constructors.js";
3
1
  export * from "./Supervisor/api.js";
2
+ export * from "./Supervisor/constructors.js";
3
+ export * from "./Supervisor/definition.js";
package/TExit.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./TExit/definition.js";
2
1
  export * from "./TExit/constructors.js";
2
+ export * from "./TExit/definition.js";
package/TFuture.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./TFuture/definition.js";
2
- export * from "./TFuture/constructors.js";
3
1
  export * from "./TFuture/api.js";
2
+ export * from "./TFuture/constructors.js";
3
+ export * from "./TFuture/definition.js";
@@ -1,2 +1,2 @@
1
- export * from "./TReentrantLock/definition.js";
2
1
  export * from "./TReentrantLock/api.js";
2
+ export * from "./TReentrantLock/definition.js";
package/TRef.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./TRef/definition.js";
2
- export * from "./TRef/constructors.js";
3
1
  export * from "./TRef/api.js";
2
+ export * from "./TRef/constructors.js";
3
+ export * from "./TRef/definition.js";
package/TSemaphore.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./TSemaphore/definition.js";
2
- export * from "./TSemaphore/constructors.js";
3
1
  export * from "./TSemaphore/api.js";
2
+ export * from "./TSemaphore/constructors.js";
3
+ export * from "./TSemaphore/definition.js";
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.auto = auto;
7
7
  exports.get = get;
8
8
  exports.refresh = exports.manual = void 0;
9
- var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/schedule"));
10
- var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/interrupt"));
11
- var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/forkDaemon"));
12
- var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Fiber/api/interrupt"));
13
- var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/acquireRelease"));
14
- var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
15
- var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/environment"));
16
- var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/ScopedRef/api"));
17
- var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/constructors"));
9
+ var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api/schedule"));
10
+ var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api/interrupt"));
11
+ var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api/forkDaemon"));
12
+ var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/Fiber/api/interrupt"));
13
+ var tsplus_module_5 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api/acquireRelease"));
14
+ var tsplus_module_6 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api"));
15
+ var tsplus_module_7 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/IO/api/environment"));
16
+ var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/ScopedRef/api"));
17
+ var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/base/data/Exit/constructors"));
18
18
  var _definition = /*#__PURE__*/require("@fncts/io/Cached/definition");
19
19
  var _internal = /*#__PURE__*/require("@fncts/io/Cached/internal");
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CachedVariance = exports.CachedTypeId = exports.CachedInternal = void 0;
7
- var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Cached/definition"));
7
+ var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("@fncts/io/Cached/definition"));
8
8
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
9
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
10
  const CachedVariance = exports.CachedVariance = /*#__PURE__*/Symbol.for("fncts.io.Cached.Variance");