@fncts/io 0.0.10 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (439) hide show
  1. package/Cached/api.d.ts +2 -3
  2. package/Channel/api/interruptWhen.d.ts +1 -1
  3. package/Channel/api/mapOutIOC.d.ts +1 -1
  4. package/Channel/api/mergeAll.d.ts +1 -1
  5. package/Channel/api/mergeAllUnboundedWith.d.ts +1 -1
  6. package/Channel/api/mergeAllWith.d.ts +1 -1
  7. package/Channel/api/mergeMap.d.ts +1 -1
  8. package/Channel/api/mergeWith.d.ts +1 -1
  9. package/Channel/api/runScoped.d.ts +1 -2
  10. package/Channel/api/toPull.d.ts +1 -2
  11. package/Channel/api/zipC.d.ts +3 -3
  12. package/Channel/api.d.ts +48 -49
  13. package/Channel/core-api.d.ts +10 -10
  14. package/Channel/definition.d.ts +12 -12
  15. package/Channel/internal/MergeDecision.d.ts +1 -1
  16. package/Channel/internal/SingleProducerAsyncInput.d.ts +1 -1
  17. package/Clock/api.d.ts +1 -1
  18. package/Fiber/FiberContext.d.ts +3 -3
  19. package/Fiber/api/awaitAll.d.ts +1 -1
  20. package/Fiber/api/evalOnIO.d.ts +1 -1
  21. package/Fiber/api/joinAll.d.ts +1 -1
  22. package/Fiber/definition.d.ts +1 -1
  23. package/FiberRef/api/locallyScoped.d.ts +1 -2
  24. package/FiberRef/api/locallyScopedWith.d.ts +1 -2
  25. package/FiberRef/constructors.d.ts +1 -2
  26. package/FiberRef/unsafe.d.ts +6 -0
  27. package/Future/api.d.ts +1 -1
  28. package/Future/constructors.d.ts +1 -1
  29. package/Hub/api.d.ts +6 -7
  30. package/Hub/definition.d.ts +6 -7
  31. package/Hub/internal.d.ts +0 -1
  32. package/IO/api/acquireRelease.d.ts +1 -2
  33. package/IO/api/acquireReleaseExit.d.ts +1 -2
  34. package/IO/api/acquireReleaseInterruptible.d.ts +1 -2
  35. package/IO/api/acquireReleaseInterruptibleExit.d.ts +1 -2
  36. package/IO/api/addFinalizer.d.ts +1 -2
  37. package/IO/api/addFinalizerExit.d.ts +1 -2
  38. package/IO/api/bracket.d.ts +1 -1
  39. package/IO/api/bracketExit.d.ts +1 -1
  40. package/IO/api/clockWith.d.ts +1 -1
  41. package/IO/api/concurrentFinalizers.d.ts +1 -2
  42. package/IO/api/consoleWith.d.ts +1 -1
  43. package/IO/api/core-scope.d.ts +1 -1
  44. package/IO/api/ensuringChildren.d.ts +1 -1
  45. package/IO/api/environment.d.ts +8 -10
  46. package/IO/api/forkScoped.d.ts +1 -2
  47. package/IO/api/interrupt.d.ts +3 -3
  48. package/IO/api/onExit.d.ts +1 -1
  49. package/IO/api/onTermination.d.ts +1 -1
  50. package/IO/api/provideSomeLayer.d.ts +1 -1
  51. package/IO/api/race.d.ts +1 -1
  52. package/IO/api/raceFirst.d.ts +1 -1
  53. package/IO/api/randomWith.d.ts +1 -1
  54. package/IO/api/repeat.d.ts +3 -3
  55. package/IO/api/retry.d.ts +3 -3
  56. package/IO/api/schedule.d.ts +2 -2
  57. package/IO/api/scope.d.ts +1 -2
  58. package/IO/api/scopeWith.d.ts +1 -2
  59. package/IO/api/scoped.d.ts +2 -3
  60. package/IO/api/sequenceT.d.ts +3 -3
  61. package/IO/api/stateful.d.ts +1 -2
  62. package/IO/api/withEarlyRelease.d.ts +1 -2
  63. package/IO/api/withFinalizer.d.ts +1 -2
  64. package/IO/api/withFinalizerExit.d.ts +1 -2
  65. package/IO/api/zipC.d.ts +2 -2
  66. package/IO/api.d.ts +50 -50
  67. package/IO/definition.d.ts +28 -24
  68. package/IO/runtime.d.ts +23 -10
  69. package/IOEnv/definition.d.ts +2 -3
  70. package/IOEnv/live.d.ts +1 -1
  71. package/IOSpec.d.ts +1 -2
  72. package/Layer/MemoMap.d.ts +2 -3
  73. package/Layer/api.d.ts +30 -32
  74. package/Layer/definition.d.ts +7 -8
  75. package/Queue/api/dimapIO.d.ts +3 -3
  76. package/Queue/api/filterInputIO.d.ts +4 -4
  77. package/Queue/api/filterOutputIO.d.ts +6 -6
  78. package/Queue/api/zipWithIO.d.ts +9 -9
  79. package/Queue/definition.d.ts +7 -7
  80. package/Queue/internal.d.ts +1 -1
  81. package/Random/api.d.ts +4 -4
  82. package/Random/live.d.ts +1 -1
  83. package/Ref/Atomic/Atomic.d.ts +3 -3
  84. package/Ref/Derived.d.ts +3 -3
  85. package/Ref/DerivedAll.d.ts +3 -3
  86. package/Ref/Synchronized/api.d.ts +15 -15
  87. package/Ref/Synchronized/definition.d.ts +2 -2
  88. package/Ref/api/get.d.ts +1 -1
  89. package/Ref/api/modify.d.ts +9 -9
  90. package/Ref/api/set.d.ts +1 -1
  91. package/Ref/definition.d.ts +13 -13
  92. package/STM/api/core-api.d.ts +4 -4
  93. package/STM/api/core-constructors.d.ts +7 -7
  94. package/STM/api.d.ts +27 -39
  95. package/STM/definition.d.ts +9 -8
  96. package/STM/driver.d.ts +1 -1
  97. package/STM/internal/Journal.d.ts +4 -3
  98. package/Schedule/Decision.d.ts +10 -4
  99. package/Schedule/Driver.d.ts +3 -3
  100. package/Schedule/api.d.ts +55 -43
  101. package/Schedule/definition.d.ts +1 -1
  102. package/Scope/Finalizer/definition.d.ts +2 -2
  103. package/Scope/ReleaseMap/api.d.ts +1 -1
  104. package/Scope/ReleaseMap/definition.d.ts +1 -1
  105. package/Scope/api.d.ts +3 -4
  106. package/ScopedRef/api.d.ts +1 -2
  107. package/ScopedRef/definition.d.ts +1 -2
  108. package/Sink/api.d.ts +255 -75
  109. package/State/api.d.ts +1 -2
  110. package/Stream/api/zipAllWith.d.ts +1 -1
  111. package/Stream/api/zipWith.d.ts +1 -1
  112. package/Stream/api/zipWithChunks.d.ts +1 -1
  113. package/Stream/api.d.ts +91 -93
  114. package/Stream/definition.d.ts +3 -3
  115. package/Stream/internal/Take.d.ts +1 -1
  116. package/Supervisor/constructors.d.ts +2 -2
  117. package/TFuture/api.d.ts +1 -1
  118. package/TFuture/definition.d.ts +1 -1
  119. package/TReentrantLock/api.d.ts +2 -3
  120. package/TRef/api.d.ts +11 -11
  121. package/TRef/constructors.d.ts +2 -2
  122. package/TSemaphore/api.d.ts +2 -2
  123. package/TSemaphore/definition.d.ts +1 -1
  124. package/_cjs/Cached/api.cjs.map +1 -1
  125. package/_cjs/Channel/api/mapOutIOC.cjs +1 -1
  126. package/_cjs/Channel/api/mapOutIOC.cjs.map +1 -1
  127. package/_cjs/Channel/api/mergeAllWith.cjs +3 -3
  128. package/_cjs/Channel/api/mergeAllWith.cjs.map +1 -1
  129. package/_cjs/Channel/api.cjs.map +1 -1
  130. package/_cjs/Channel/definition.cjs.map +1 -1
  131. package/_cjs/Clock/live.cjs.map +1 -1
  132. package/_cjs/Fiber/FiberContext.cjs +5 -7
  133. package/_cjs/Fiber/FiberContext.cjs.map +1 -1
  134. package/_cjs/FiberRef/unsafe.cjs +9 -1
  135. package/_cjs/FiberRef/unsafe.cjs.map +1 -1
  136. package/_cjs/Future/api.cjs.map +1 -1
  137. package/_cjs/Hub/api.cjs +1 -1
  138. package/_cjs/Hub/api.cjs.map +1 -1
  139. package/_cjs/Hub/internal.cjs +4 -12
  140. package/_cjs/Hub/internal.cjs.map +1 -1
  141. package/_cjs/IO/api/addFinalizerExit.cjs +4 -8
  142. package/_cjs/IO/api/addFinalizerExit.cjs.map +1 -1
  143. package/_cjs/IO/api/ensuringChildren.cjs +1 -1
  144. package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
  145. package/_cjs/IO/api/environment.cjs +2 -3
  146. package/_cjs/IO/api/environment.cjs.map +1 -1
  147. package/_cjs/IO/api/interrupt.cjs +1 -1
  148. package/_cjs/IO/api/interrupt.cjs.map +1 -1
  149. package/_cjs/IO/api/memoize.cjs +4 -8
  150. package/_cjs/IO/api/memoize.cjs.map +1 -1
  151. package/_cjs/IO/api/provideSomeLayer.cjs +1 -2
  152. package/_cjs/IO/api/provideSomeLayer.cjs.map +1 -1
  153. package/_cjs/IO/api/scope.cjs +1 -1
  154. package/_cjs/IO/api/scope.cjs.map +1 -1
  155. package/_cjs/IO/api/scoped.cjs.map +1 -1
  156. package/_cjs/IO/api/withChildren.cjs +1 -1
  157. package/_cjs/IO/api/withChildren.cjs.map +1 -1
  158. package/_cjs/IO/api.cjs +1 -1
  159. package/_cjs/IO/api.cjs.map +1 -1
  160. package/_cjs/IO/definition.cjs +5 -8
  161. package/_cjs/IO/definition.cjs.map +1 -1
  162. package/_cjs/IO/runtime.cjs +69 -21
  163. package/_cjs/IO/runtime.cjs.map +1 -1
  164. package/_cjs/Layer/MemoMap.cjs +22 -38
  165. package/_cjs/Layer/MemoMap.cjs.map +1 -1
  166. package/_cjs/Layer/api.cjs +6 -4
  167. package/_cjs/Layer/api.cjs.map +1 -1
  168. package/_cjs/Layer/definition.cjs.map +1 -1
  169. package/_cjs/Queue/internal.cjs +2 -2
  170. package/_cjs/Queue/internal.cjs.map +1 -1
  171. package/_cjs/Queue/strategy.cjs +1 -5
  172. package/_cjs/Queue/strategy.cjs.map +1 -1
  173. package/_cjs/Ref/Atomic/Atomic.cjs.map +1 -1
  174. package/_cjs/Ref/Derived.cjs.map +1 -1
  175. package/_cjs/Ref/DerivedAll.cjs.map +1 -1
  176. package/_cjs/Ref/Synchronized/constructors.cjs +7 -11
  177. package/_cjs/Ref/Synchronized/constructors.cjs.map +1 -1
  178. package/_cjs/STM/api/core-constructors.cjs.map +1 -1
  179. package/_cjs/STM/api.cjs +59 -78
  180. package/_cjs/STM/api.cjs.map +1 -1
  181. package/_cjs/STM/definition.cjs.map +1 -1
  182. package/_cjs/STM/driver.cjs +7 -5
  183. package/_cjs/STM/driver.cjs.map +1 -1
  184. package/_cjs/STM/internal/Journal.cjs +20 -22
  185. package/_cjs/STM/internal/Journal.cjs.map +1 -1
  186. package/_cjs/Schedule/Decision.cjs +17 -0
  187. package/_cjs/Schedule/Decision.cjs.map +1 -1
  188. package/_cjs/Schedule/api/driver.cjs +22 -21
  189. package/_cjs/Schedule/api/driver.cjs.map +1 -1
  190. package/_cjs/Schedule/api.cjs +91 -66
  191. package/_cjs/Schedule/api.cjs.map +1 -1
  192. package/_cjs/Scope/Finalizer/definition.cjs +4 -6
  193. package/_cjs/Scope/Finalizer/definition.cjs.map +1 -1
  194. package/_cjs/Scope/ReleaseMap/definition.cjs +2 -4
  195. package/_cjs/Scope/ReleaseMap/definition.cjs.map +1 -1
  196. package/_cjs/Scope/api.cjs +2 -12
  197. package/_cjs/Scope/api.cjs.map +1 -1
  198. package/_cjs/ScopedRef/api.cjs +14 -22
  199. package/_cjs/ScopedRef/api.cjs.map +1 -1
  200. package/_cjs/Sink/api.cjs +424 -131
  201. package/_cjs/Sink/api.cjs.map +1 -1
  202. package/_cjs/Stream/api.cjs +94 -94
  203. package/_cjs/Stream/api.cjs.map +1 -1
  204. package/_cjs/Supervisor/constructors.cjs +14 -8
  205. package/_cjs/Supervisor/constructors.cjs.map +1 -1
  206. package/_cjs/TFuture/definition.cjs +2 -4
  207. package/_cjs/TFuture/definition.cjs.map +1 -1
  208. package/_cjs/TSemaphore/api.cjs +7 -7
  209. package/_cjs/TSemaphore/api.cjs.map +1 -1
  210. package/_cjs/TSemaphore/definition.cjs +2 -4
  211. package/_cjs/TSemaphore/definition.cjs.map +1 -1
  212. package/_cjs/collection/immutable/Conc/dropUntilIO.cjs +38 -0
  213. package/_cjs/collection/immutable/Conc/dropUntilIO.cjs.map +1 -0
  214. package/_cjs/collection/immutable/Conc/dropWhileIO.cjs +38 -0
  215. package/_cjs/collection/immutable/Conc/dropWhileIO.cjs.map +1 -0
  216. package/_cjs/internal/Scheduler.cjs +64 -14
  217. package/_cjs/internal/Scheduler.cjs.map +1 -1
  218. package/_mjs/Cached/api.mjs.map +1 -1
  219. package/_mjs/Channel/api/mapOutIOC.mjs +1 -1
  220. package/_mjs/Channel/api/mapOutIOC.mjs.map +1 -1
  221. package/_mjs/Channel/api/mergeAllWith.mjs +3 -3
  222. package/_mjs/Channel/api/mergeAllWith.mjs.map +1 -1
  223. package/_mjs/Channel/api.mjs.map +1 -1
  224. package/_mjs/Channel/definition.mjs.map +1 -1
  225. package/_mjs/Clock/live.mjs.map +1 -1
  226. package/_mjs/Fiber/FiberContext.mjs +5 -6
  227. package/_mjs/Fiber/FiberContext.mjs.map +1 -1
  228. package/_mjs/FiberRef/unsafe.mjs +6 -0
  229. package/_mjs/FiberRef/unsafe.mjs.map +1 -1
  230. package/_mjs/Future/api.mjs.map +1 -1
  231. package/_mjs/Hub/api.mjs +1 -1
  232. package/_mjs/Hub/api.mjs.map +1 -1
  233. package/_mjs/Hub/internal.mjs +4 -12
  234. package/_mjs/Hub/internal.mjs.map +1 -1
  235. package/_mjs/IO/api/addFinalizerExit.mjs +4 -8
  236. package/_mjs/IO/api/addFinalizerExit.mjs.map +1 -1
  237. package/_mjs/IO/api/ensuringChildren.mjs +1 -1
  238. package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
  239. package/_mjs/IO/api/environment.mjs +2 -3
  240. package/_mjs/IO/api/environment.mjs.map +1 -1
  241. package/_mjs/IO/api/interrupt.mjs +1 -1
  242. package/_mjs/IO/api/interrupt.mjs.map +1 -1
  243. package/_mjs/IO/api/memoize.mjs +4 -8
  244. package/_mjs/IO/api/memoize.mjs.map +1 -1
  245. package/_mjs/IO/api/provideSomeLayer.mjs +1 -2
  246. package/_mjs/IO/api/provideSomeLayer.mjs.map +1 -1
  247. package/_mjs/IO/api/scope.mjs +1 -1
  248. package/_mjs/IO/api/scope.mjs.map +1 -1
  249. package/_mjs/IO/api/scoped.mjs.map +1 -1
  250. package/_mjs/IO/api/withChildren.mjs +1 -1
  251. package/_mjs/IO/api/withChildren.mjs.map +1 -1
  252. package/_mjs/IO/api.mjs +1 -1
  253. package/_mjs/IO/api.mjs.map +1 -1
  254. package/_mjs/IO/definition.mjs +3 -5
  255. package/_mjs/IO/definition.mjs.map +1 -1
  256. package/_mjs/IO/runtime.mjs +61 -18
  257. package/_mjs/IO/runtime.mjs.map +1 -1
  258. package/_mjs/Layer/MemoMap.mjs +22 -38
  259. package/_mjs/Layer/MemoMap.mjs.map +1 -1
  260. package/_mjs/Layer/api.mjs +5 -4
  261. package/_mjs/Layer/api.mjs.map +1 -1
  262. package/_mjs/Layer/definition.mjs.map +1 -1
  263. package/_mjs/Queue/internal.mjs +2 -2
  264. package/_mjs/Queue/internal.mjs.map +1 -1
  265. package/_mjs/Queue/strategy.mjs +1 -5
  266. package/_mjs/Queue/strategy.mjs.map +1 -1
  267. package/_mjs/Ref/Atomic/Atomic.mjs.map +1 -1
  268. package/_mjs/Ref/Derived.mjs.map +1 -1
  269. package/_mjs/Ref/DerivedAll.mjs.map +1 -1
  270. package/_mjs/Ref/Synchronized/constructors.mjs +7 -11
  271. package/_mjs/Ref/Synchronized/constructors.mjs.map +1 -1
  272. package/_mjs/STM/api/core-constructors.mjs.map +1 -1
  273. package/_mjs/STM/api.mjs +52 -72
  274. package/_mjs/STM/api.mjs.map +1 -1
  275. package/_mjs/STM/definition.mjs.map +1 -1
  276. package/_mjs/STM/driver.mjs +6 -5
  277. package/_mjs/STM/driver.mjs.map +1 -1
  278. package/_mjs/STM/internal/Journal.mjs +20 -21
  279. package/_mjs/STM/internal/Journal.mjs.map +1 -1
  280. package/_mjs/Schedule/Decision.mjs +9 -0
  281. package/_mjs/Schedule/Decision.mjs.map +1 -1
  282. package/_mjs/Schedule/api/driver.mjs +20 -20
  283. package/_mjs/Schedule/api/driver.mjs.map +1 -1
  284. package/_mjs/Schedule/api.mjs +84 -63
  285. package/_mjs/Schedule/api.mjs.map +1 -1
  286. package/_mjs/Scope/Finalizer/definition.mjs +4 -5
  287. package/_mjs/Scope/Finalizer/definition.mjs.map +1 -1
  288. package/_mjs/Scope/ReleaseMap/definition.mjs +2 -3
  289. package/_mjs/Scope/ReleaseMap/definition.mjs.map +1 -1
  290. package/_mjs/Scope/api.mjs +2 -12
  291. package/_mjs/Scope/api.mjs.map +1 -1
  292. package/_mjs/ScopedRef/api.mjs +14 -22
  293. package/_mjs/ScopedRef/api.mjs.map +1 -1
  294. package/_mjs/Sink/api.mjs +414 -129
  295. package/_mjs/Sink/api.mjs.map +1 -1
  296. package/_mjs/Stream/api.mjs +94 -94
  297. package/_mjs/Stream/api.mjs.map +1 -1
  298. package/_mjs/Supervisor/constructors.mjs +9 -6
  299. package/_mjs/Supervisor/constructors.mjs.map +1 -1
  300. package/_mjs/TFuture/definition.mjs +2 -3
  301. package/_mjs/TFuture/definition.mjs.map +1 -1
  302. package/_mjs/TSemaphore/api.mjs +4 -4
  303. package/_mjs/TSemaphore/api.mjs.map +1 -1
  304. package/_mjs/TSemaphore/definition.mjs +2 -3
  305. package/_mjs/TSemaphore/definition.mjs.map +1 -1
  306. package/_mjs/collection/immutable/Conc/dropUntilIO.mjs +26 -0
  307. package/_mjs/collection/immutable/Conc/dropUntilIO.mjs.map +1 -0
  308. package/_mjs/collection/immutable/Conc/dropWhileIO.mjs +26 -0
  309. package/_mjs/collection/immutable/Conc/dropWhileIO.mjs.map +1 -0
  310. package/_mjs/internal/Scheduler.mjs +62 -15
  311. package/_mjs/internal/Scheduler.mjs.map +1 -1
  312. package/_src/Cached/api.ts +3 -3
  313. package/_src/Channel/api/interruptWhen.ts +1 -1
  314. package/_src/Channel/api/mapOutIOC.ts +2 -2
  315. package/_src/Channel/api/mergeAll.ts +1 -1
  316. package/_src/Channel/api/mergeAllUnboundedWith.ts +1 -1
  317. package/_src/Channel/api/mergeAllWith.ts +3 -3
  318. package/_src/Channel/api/mergeMap.ts +1 -1
  319. package/_src/Channel/api/mergeWith.ts +9 -9
  320. package/_src/Channel/api/runScoped.ts +1 -1
  321. package/_src/Channel/api/toPull.ts +1 -1
  322. package/_src/Channel/api/zipC.ts +3 -3
  323. package/_src/Channel/api.ts +69 -69
  324. package/_src/Channel/core-api.ts +11 -11
  325. package/_src/Channel/definition.ts +12 -12
  326. package/_src/Channel/internal/MergeDecision.ts +1 -1
  327. package/_src/Clock/live.ts +1 -1
  328. package/_src/Fiber/FiberContext.ts +10 -8
  329. package/_src/Fiber/api/awaitAll.ts +1 -1
  330. package/_src/Fiber/api/evalOnIO.ts +1 -1
  331. package/_src/Fiber/api/joinAll.ts +1 -1
  332. package/_src/Fiber/definition.ts +1 -1
  333. package/_src/FiberRef/api/locallyScoped.ts +1 -1
  334. package/_src/FiberRef/api/locallyScopedWith.ts +1 -1
  335. package/_src/FiberRef/constructors.ts +2 -2
  336. package/_src/FiberRef/unsafe.ts +7 -0
  337. package/_src/Future/api.ts +3 -3
  338. package/_src/Future/constructors.ts +1 -1
  339. package/_src/Hub/api.ts +11 -11
  340. package/_src/Hub/definition.ts +6 -6
  341. package/_src/Hub/internal.ts +15 -15
  342. package/_src/IO/api/acquireRelease.ts +1 -1
  343. package/_src/IO/api/acquireReleaseExit.ts +1 -1
  344. package/_src/IO/api/acquireReleaseInterruptible.ts +1 -1
  345. package/_src/IO/api/acquireReleaseInterruptibleExit.ts +1 -1
  346. package/_src/IO/api/addFinalizer.ts +1 -1
  347. package/_src/IO/api/addFinalizerExit.ts +5 -7
  348. package/_src/IO/api/bracket.ts +1 -1
  349. package/_src/IO/api/bracketExit.ts +1 -1
  350. package/_src/IO/api/concurrentFinalizers.ts +1 -1
  351. package/_src/IO/api/core-scope.ts +1 -1
  352. package/_src/IO/api/ensuringChildren.ts +2 -2
  353. package/_src/IO/api/environment.ts +9 -11
  354. package/_src/IO/api/forkScoped.ts +1 -1
  355. package/_src/IO/api/interrupt.ts +3 -3
  356. package/_src/IO/api/memoize.ts +3 -3
  357. package/_src/IO/api/onExit.ts +1 -1
  358. package/_src/IO/api/onTermination.ts +1 -1
  359. package/_src/IO/api/provideSomeLayer.ts +1 -2
  360. package/_src/IO/api/race.ts +1 -1
  361. package/_src/IO/api/raceFirst.ts +1 -1
  362. package/_src/IO/api/repeat.ts +4 -4
  363. package/_src/IO/api/retry.ts +4 -4
  364. package/_src/IO/api/schedule.ts +3 -3
  365. package/_src/IO/api/scope.ts +1 -1
  366. package/_src/IO/api/scopeWith.ts +1 -1
  367. package/_src/IO/api/scoped.ts +2 -2
  368. package/_src/IO/api/sequenceT.ts +1 -1
  369. package/_src/IO/api/stateful.ts +1 -1
  370. package/_src/IO/api/withChildren.ts +1 -1
  371. package/_src/IO/api/withEarlyRelease.ts +1 -1
  372. package/_src/IO/api/withFinalizer.ts +1 -1
  373. package/_src/IO/api/withFinalizerExit.ts +1 -1
  374. package/_src/IO/api/zipC.ts +2 -2
  375. package/_src/IO/api.ts +48 -48
  376. package/_src/IO/definition.ts +29 -24
  377. package/_src/IO/runtime.ts +66 -12
  378. package/_src/IOEnv/definition.ts +1 -1
  379. package/_src/Layer/MemoMap.ts +19 -19
  380. package/_src/Layer/api.ts +38 -38
  381. package/_src/Layer/definition.ts +5 -5
  382. package/_src/Queue/api/dimapIO.ts +10 -10
  383. package/_src/Queue/api/filterInputIO.ts +4 -4
  384. package/_src/Queue/api/filterOutputIO.ts +6 -6
  385. package/_src/Queue/api/zipWithIO.ts +10 -10
  386. package/_src/Queue/definition.ts +7 -7
  387. package/_src/Queue/internal.ts +7 -7
  388. package/_src/Queue/strategy.ts +4 -4
  389. package/_src/Random/api.ts +1 -1
  390. package/_src/Ref/Atomic/Atomic.ts +3 -3
  391. package/_src/Ref/Derived.ts +3 -3
  392. package/_src/Ref/DerivedAll.ts +3 -3
  393. package/_src/Ref/Synchronized/api.ts +15 -15
  394. package/_src/Ref/Synchronized/constructors.ts +4 -4
  395. package/_src/Ref/Synchronized/definition.ts +2 -2
  396. package/_src/Ref/api/get.ts +2 -2
  397. package/_src/Ref/api/modify.ts +9 -9
  398. package/_src/Ref/api/set.ts +1 -1
  399. package/_src/Ref/definition.ts +13 -13
  400. package/_src/STM/api/core-api.ts +6 -6
  401. package/_src/STM/api/core-constructors.ts +7 -7
  402. package/_src/STM/api.ts +58 -89
  403. package/_src/STM/definition.ts +6 -6
  404. package/_src/STM/driver.ts +3 -3
  405. package/_src/STM/internal/Journal.ts +25 -16
  406. package/_src/Schedule/Decision.ts +10 -3
  407. package/_src/Schedule/Driver.ts +2 -2
  408. package/_src/Schedule/api/driver.ts +6 -6
  409. package/_src/Schedule/api.ts +97 -77
  410. package/_src/Schedule/definition.ts +1 -1
  411. package/_src/Scope/Finalizer/definition.ts +2 -2
  412. package/_src/Scope/ReleaseMap/api.ts +1 -1
  413. package/_src/Scope/ReleaseMap/definition.ts +1 -1
  414. package/_src/Scope/api.ts +11 -11
  415. package/_src/ScopedRef/api.ts +12 -17
  416. package/_src/ScopedRef/definition.ts +1 -1
  417. package/_src/Sink/api.ts +441 -86
  418. package/_src/State/api.ts +1 -1
  419. package/_src/Stream/api/zipAllWith.ts +2 -2
  420. package/_src/Stream/api/zipWith.ts +1 -1
  421. package/_src/Stream/api/zipWithChunks.ts +2 -2
  422. package/_src/Stream/api.ts +150 -149
  423. package/_src/Stream/definition.ts +3 -3
  424. package/_src/Stream/internal/Take.ts +1 -1
  425. package/_src/Supervisor/constructors.ts +7 -3
  426. package/_src/TFuture/api.ts +1 -1
  427. package/_src/TFuture/definition.ts +1 -1
  428. package/_src/TReentrantLock/api.ts +2 -2
  429. package/_src/TRef/api.ts +11 -11
  430. package/_src/TRef/constructors.ts +2 -2
  431. package/_src/TSemaphore/api.ts +2 -2
  432. package/_src/TSemaphore/definition.ts +1 -1
  433. package/_src/collection/immutable/Conc/dropUntilIO.ts +24 -0
  434. package/_src/collection/immutable/Conc/dropWhileIO.ts +26 -0
  435. package/_src/internal/Scheduler.ts +59 -15
  436. package/collection/immutable/Conc/dropUntilIO.d.ts +7 -0
  437. package/collection/immutable/Conc/dropWhileIO.d.ts +7 -0
  438. package/internal/Scheduler.d.ts +18 -1
  439. package/package.json +3 -3
@@ -28,13 +28,13 @@ export declare const enum ChannelTag {
28
28
  * @tsplus companion fncts.io.ChannelOps
29
29
  */
30
30
  export declare abstract class Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone> {
31
- readonly _Env: (_: Env) => void;
32
- readonly _InErr: (_: InErr) => void;
33
- readonly _InElem: (_: InElem) => void;
34
- readonly _InDone: (_: InDone) => void;
35
- readonly _OutErr: () => OutErr;
36
- readonly _OutElem: () => OutElem;
37
- readonly _OutDone: () => OutDone;
31
+ _Env: () => Env;
32
+ _InErr: (_: InErr) => void;
33
+ _InElem: (_: InElem) => void;
34
+ _InDone: (_: InDone) => void;
35
+ _OutErr: () => OutErr;
36
+ _OutElem: () => OutElem;
37
+ _OutDone: () => OutDone;
38
38
  }
39
39
  /**
40
40
  * @tsplus unify fncts.io.Channel
@@ -55,7 +55,7 @@ export declare function unifyChannel<X extends Channel<any, any, any, any, any,
55
55
  X
56
56
  ] extends [Channel<any, any, any, any, any, any, infer OutDone>] ? OutDone : never>;
57
57
  export declare abstract class Continuation<Env, InErr, InElem, InDone, OutErr, OutErr2, OutElem, OutDone, OutDone2> {
58
- readonly _Env: (_: Env) => void;
58
+ readonly _Env: () => Env;
59
59
  readonly _InErr: (_: InErr) => void;
60
60
  readonly _InElem: (_: InElem) => void;
61
61
  readonly _InDone: (_: InDone) => void;
@@ -99,12 +99,12 @@ export declare class Read<Env, InErr, InElem, InDone, OutErr, OutErr2, OutElem,
99
99
  readonly _tag = ChannelTag.Read;
100
100
  constructor(more: (_: InElem) => Channel<Env, InErr, InElem, InDone, OutErr2, OutElem, OutDone2>, done: ContinuationK<Env, InErr, InElem, InDone, OutErr, OutErr2, OutElem, OutDone, OutDone2>);
101
101
  }
102
- export declare class Done<OutDone> extends Channel<unknown, unknown, unknown, unknown, never, never, OutDone> {
102
+ export declare class Done<OutDone> extends Channel<never, unknown, unknown, unknown, never, never, OutDone> {
103
103
  readonly terminal: () => OutDone;
104
104
  readonly _tag = ChannelTag.Done;
105
105
  constructor(terminal: () => OutDone);
106
106
  }
107
- export declare class Fail<OutErr> extends Channel<unknown, unknown, unknown, unknown, OutErr, never, never> {
107
+ export declare class Fail<OutErr> extends Channel<never, unknown, unknown, unknown, OutErr, never, never> {
108
108
  readonly cause: () => Cause<OutErr>;
109
109
  readonly _tag = ChannelTag.Halt;
110
110
  constructor(cause: () => Cause<OutErr>);
@@ -141,13 +141,13 @@ export declare class BracketOut<R, E, Z, OutDone> extends Channel<R, unknown, un
141
141
  readonly _tag = ChannelTag.BracketOut;
142
142
  constructor(acquire: IO<R, E, Z>, finalizer: (_: Z, exit: Exit<any, any>) => URIO<R, any>);
143
143
  }
144
- export declare class Provide<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone> extends Channel<unknown, InErr, InElem, InDone, OutErr, OutElem, OutDone> {
144
+ export declare class Provide<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone> extends Channel<never, InErr, InElem, InDone, OutErr, OutElem, OutDone> {
145
145
  readonly environment: Environment<Env>;
146
146
  readonly inner: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>;
147
147
  readonly _tag = ChannelTag.Provide;
148
148
  constructor(environment: Environment<Env>, inner: Channel<Env, InErr, InElem, InDone, OutErr, OutElem, OutDone>);
149
149
  }
150
- export declare class Emit<OutElem, OutDone> extends Channel<unknown, unknown, unknown, unknown, never, OutElem, OutDone> {
150
+ export declare class Emit<OutElem, OutDone> extends Channel<never, unknown, unknown, unknown, never, OutElem, OutDone> {
151
151
  readonly out: () => OutElem;
152
152
  readonly _tag = ChannelTag.Emit;
153
153
  constructor(out: () => OutElem);
@@ -12,7 +12,7 @@ export declare type MergeDecisionTypeId = typeof MergeDecisionTypeId;
12
12
  */
13
13
  export declare abstract class MergeDecision<R, E0, Z0, E, Z> {
14
14
  readonly _typeId: MergeDecisionTypeId;
15
- readonly _R: (_: R) => void;
15
+ readonly _R: () => R;
16
16
  readonly _E0: (_: E0) => void;
17
17
  readonly _Z0: (_: Z0) => void;
18
18
  readonly _E: () => E;
@@ -61,7 +61,7 @@ export declare class SingleProducerAsyncInput<Err, Elem, Done> implements AsyncI
61
61
  error(cause: Cause<Err>): UIO<unknown>;
62
62
  takeWith<X>(onError: (cause: Cause<Err>) => X, onElement: (element: Elem) => X, onDone: (done: Done) => X): UIO<X>;
63
63
  take: import("../../IO").UIO<import("@fncts/base/data/Exit").Exit<import("@fncts/base/data/Either").Either<Err, Done>, Elem>>;
64
- close: import("../../IO").IO<unknown, never, unknown>;
64
+ close: import("../../IO").IO<never, never, unknown>;
65
65
  awaitRead: UIO<void>;
66
66
  }
67
67
  /**
package/Clock/api.d.ts CHANGED
@@ -5,7 +5,7 @@ import { UIO } from "@fncts/io/IO/definition";
5
5
  * @tsplus static fncts.io.ClockOps currentTime
6
6
  * @tsplus location "@fncts/io/Clock/api"
7
7
  */
8
- export declare const currentTime: import("../IO").IO<unknown, never, number>;
8
+ export declare const currentTime: import("../IO").IO<never, never, number>;
9
9
  /**
10
10
  * @tsplus static fncts.io.ClockOps sleep
11
11
  * @tsplus location "@fncts/io/Clock/api"
@@ -50,11 +50,11 @@ export declare class TracedCont {
50
50
  constructor(apply: ErasedCont, trace?: string | undefined);
51
51
  }
52
52
  export declare class Finalizer {
53
- readonly finalizer: UIO<any>;
53
+ readonly finalizer: IO<any, never, any>;
54
54
  readonly apply: ErasedCont;
55
55
  readonly trace?: string | undefined;
56
56
  readonly _tag = "Finalizer";
57
- constructor(finalizer: UIO<any>, apply: ErasedCont, trace?: string | undefined);
57
+ constructor(finalizer: IO<any, never, any>, apply: ErasedCont, trace?: string | undefined);
58
58
  }
59
59
  export declare type Frame = InterruptExit | Match<any, any, any, any, any, any, any, any, any> | HandlerFrame | TracedCont | Finalizer;
60
60
  export declare const currentFiber: AtomicReference<FiberContext<any, any> | null>;
@@ -107,7 +107,7 @@ export declare class FiberContext<E, A> implements Fiber.Runtime<E, A>, Hashable
107
107
  private unsafeGetRefs;
108
108
  private unsafeSetRef;
109
109
  private unsafeDeleteRef;
110
- private unsafePoll;
110
+ unsafePoll(): import("@fncts/base/data/Maybe").Maybe<import("@fncts/base/data/Exit").Success<A> | import("@fncts/base/data/Exit").Failure<E>>;
111
111
  private interruptExit;
112
112
  private unsafeAddFinalizer;
113
113
  private get unsafeIsInterruptible();
@@ -7,4 +7,4 @@ import { Conc } from "@fncts/base/collection/immutable/Conc";
7
7
  * @tsplus static fncts.io.FiberOps awaitAll
8
8
  * @tsplus location "@fncts/io/Fiber/api/awaitAll"
9
9
  */
10
- export declare function awaitAll<E, A>(as: Iterable<Fiber<E, A>>): IO<unknown, never, Exit<E, Conc<A>>>;
10
+ export declare function awaitAll<E, A>(as: Iterable<Fiber<E, A>>): IO<never, never, Exit<E, Conc<A>>>;
@@ -6,4 +6,4 @@ import { IO } from "@fncts/io/IO/definition";
6
6
  * @tsplus fluent fncts.io.Fiber evalOnIO
7
7
  * @tsplus location "@fncts/io/Fiber/api/evalOnIO"
8
8
  */
9
- export declare function evalOnIO_<E, A, R1, E1, B, R2, E2, C>(fiber: Fiber<E, A>, effect: IO<R1, E1, B>, orElse: IO<R2, E2, C>): IO<R1 & R2, E1 | E2, B | C>;
9
+ export declare function evalOnIO_<E, A, R1, E1, B, R2, E2, C>(fiber: Fiber<E, A>, effect: IO<R1, E1, B>, orElse: IO<R2, E2, C>): IO<R1 | R2, E1 | E2, B | C>;
@@ -8,4 +8,4 @@ import { Conc } from "@fncts/base/collection/immutable/Conc";
8
8
  * @tsplus static fncts.io.FiberOps joinAll
9
9
  * @tsplus location "@fncts/io/Fiber/api/joinAll"
10
10
  */
11
- export declare function joinAll<E, A>(as: Iterable<Fiber<E, A>>): IO<unknown, E, Conc<A>>;
11
+ export declare function joinAll<E, A>(as: Iterable<Fiber<E, A>>): IO<never, E, Conc<A>>;
@@ -69,7 +69,7 @@ export interface RuntimeFiber<E, A> extends FiberCommon<E, A> {
69
69
  * effect will be executed instead.
70
70
  */
71
71
  readonly evalOn: (effect: UIO<any>, orElse: UIO<any>) => UIO<void>;
72
- readonly evalOnIO: <R1, E1, B, R2, E2, C>(effect: IO<R1, E1, B>, orElse: IO<R2, E2, C>) => IO<R1 & R2, E1 | E2, B | C>;
72
+ readonly evalOnIO: <R1, E1, B, R2, E2, C>(effect: IO<R1, E1, B>, orElse: IO<R2, E2, C>) => IO<R1 | R2, E1 | E2, B | C>;
73
73
  /**
74
74
  * The status of the fiber.
75
75
  */
@@ -1,9 +1,8 @@
1
1
  import { FiberRef } from "@fncts/io/FiberRef/definition";
2
2
  import { IO } from "@fncts/io/IO/definition";
3
- import { Has } from "@fncts/base/typeclass/Has";
4
3
  import { Scope } from "@fncts/io/Scope/definition";
5
4
  /**
6
5
  * @tsplus fluent fncts.io.FiberRef locallyScoped
7
6
  * @tsplus location "@fncts/io/FiberRef/api/locallyScoped"
8
7
  */
9
- export declare function locallyScoped_<A>(ref: FiberRef<A>, a: A): IO<Has<Scope>, never, void>;
8
+ export declare function locallyScoped_<A>(ref: FiberRef<A>, a: A): IO<Scope, never, void>;
@@ -1,9 +1,8 @@
1
1
  import { FiberRef } from "@fncts/io/FiberRef/definition";
2
2
  import { IO } from "@fncts/io/IO/definition";
3
- import { Has } from "@fncts/base/typeclass/Has";
4
3
  import { Scope } from "@fncts/io/Scope/definition";
5
4
  /**
6
5
  * @tsplus fluent fncts.io.FiberRef locallyScopedWith
7
6
  * @tsplus location "@fncts/io/FiberRef/api/locallyScopedWith"
8
7
  */
9
- export declare function locallyScopedWith<A>(self: FiberRef<A>, f: (a: A) => A): IO<Has<Scope>, never, void>;
8
+ export declare function locallyScopedWith<A>(self: FiberRef<A>, f: (a: A) => A): IO<Scope, never, void>;
@@ -1,10 +1,9 @@
1
1
  import { Lazy } from "@fncts/base/data/function";
2
2
  import { FiberRef } from "@fncts/io/FiberRef/definition";
3
3
  import { IO } from "@fncts/io/IO/definition";
4
- import { Has } from "@fncts/base/typeclass/Has";
5
4
  import { Scope } from "@fncts/io/Scope/definition";
6
5
  /**
7
6
  * @tsplus static fncts.io.FiberRefOps make
8
7
  * @tsplus location "@fncts/io/FiberRef/constructors"
9
8
  */
10
- export declare function make<A>(initial: A, fork?: (a: A) => A, join?: (a: A, a1: A) => A): IO<Has<Scope>, never, FiberRef<A>>;
9
+ export declare function make<A>(initial: A, fork?: (a: A) => A, join?: (a: A, a1: A) => A): IO<Scope, never, FiberRef<A>>;
@@ -6,6 +6,7 @@ import { LogLevel } from "@fncts/io/LogLevel";
6
6
  import { List } from "@fncts/base/collection/immutable/List";
7
7
  import { HashMap } from "@fncts/base/collection/immutable/HashMap";
8
8
  import type { LogSpan } from "../LogSpan.js";
9
+ import type { Scheduler } from "@fncts/io/internal/Scheduler.js";
9
10
  import { Patch } from "@fncts/base/data/Patch";
10
11
  /**
11
12
  * @tsplus static fncts.io.FiberRefOps unsafeMakePatch
@@ -52,3 +53,8 @@ export declare const currentLogSpan: import("./definition.js").FiberRef.WithPatc
52
53
  * @tsplus location "@fncts/io/FiberRef/unsafe"
53
54
  */
54
55
  export declare const currentLogAnnotations: import("./definition.js").FiberRef.WithPatch<import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>, (_: import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>) => import("@fncts/base/collection/immutable/HashMap.js").HashMap<string, string>>;
56
+ /**
57
+ * @tsplus static fncts.io.FiberRefOps currentScheduler
58
+ * @tsplus location "@fncts/io/FiberRef/unsafe"
59
+ */
60
+ export declare const currentScheduler: import("./definition.js").FiberRef.WithPatch<Scheduler, (_: Scheduler) => Scheduler>;
package/Future/api.d.ts CHANGED
@@ -110,4 +110,4 @@ export declare function unsafeSucceed_<A>(future: Future<never, A>, a: A): void;
110
110
  * @tsplus getter fncts.io.Future await
111
111
  * @tsplus location "@fncts/io/Future/api"
112
112
  */
113
- export declare function wait<E, A>(future: Future<E, A>): IO<unknown, E, A>;
113
+ export declare function wait<E, A>(future: Future<E, A>): IO<never, E, A>;
@@ -6,7 +6,7 @@ import { Future } from "@fncts/io/Future/definition";
6
6
  * @tsplus static fncts.io.FutureOps make
7
7
  * @tsplus location "@fncts/io/Future/constructors"
8
8
  */
9
- export declare function make<E, A>(): IO<unknown, never, Future<E, A>>;
9
+ export declare function make<E, A>(): IO<never, never, Future<E, A>>;
10
10
  /**
11
11
  * Makes a new future to be completed by the fiber with the specified id.
12
12
  * @tsplus static fncts.io.FutureOps makeAs
package/Hub/api.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { PHub, Hub } from "@fncts/io/Hub/definition";
2
2
  import { UIO, IO } from "@fncts/io/IO/definition";
3
3
  import { Conc } from "@fncts/base/collection/immutable/Conc";
4
- import { Has } from "@fncts/base/typeclass/Has";
5
4
  import { Scope } from "@fncts/io/Scope/definition";
6
5
  /**
7
6
  * Waits for the hub to be shut down.
@@ -21,7 +20,7 @@ export declare function capacity<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA, EB
21
20
  * @tsplus fluent fncts.io.Hub contramapIO
22
21
  * @tsplus location "@fncts/io/Hub/api"
23
22
  */
24
- export declare function contramapIO_<RA, RB, RC, EA, EB, EC, A, B, C>(self: PHub<RA, RB, EA, EB, A, B>, f: (c: C) => IO<RC, EC, A>): PHub<RC & RA, RB, EA | EC, EB, C, B>;
23
+ export declare function contramapIO_<RA, RB, RC, EA, EB, EC, A, B, C>(self: PHub<RA, RB, EA, EB, A, B>, f: (c: C) => IO<RC, EC, A>): PHub<RC | RA, RB, EA | EC, EB, C, B>;
25
24
  /**
26
25
  * Transforms messages published to and taken from the hub using the
27
26
  * specified functions.
@@ -35,14 +34,14 @@ export declare function dimap_<RA, RB, EA, EB, A, B, C, D>(self: PHub<RA, RB, EA
35
34
  * @tsplus fluent fncts.io.Hub dimapIO
36
35
  * @tsplus location "@fncts/io/Hub/api"
37
36
  */
38
- export declare function dimapIO_<RA, RB, RC, RD, EA, EB, EC, ED, A, B, C, D>(source: PHub<RA, RB, EA, EB, A, B>, f: (c: C) => IO<RC, EC, A>, g: (b: B) => IO<RD, ED, D>): PHub<RC & RA, RD & RB, EA | EC, EB | ED, C, D>;
37
+ export declare function dimapIO_<RA, RB, RC, RD, EA, EB, EC, ED, A, B, C, D>(source: PHub<RA, RB, EA, EB, A, B>, f: (c: C) => IO<RC, EC, A>, g: (b: B) => IO<RD, ED, D>): PHub<RC | RA, RD | RB, EA | EC, EB | ED, C, D>;
39
38
  /**
40
39
  * Filters messages published to the hub using the specified effectual
41
40
  * function.
42
41
  * @tsplus fluent fncts.io.Hub filterInputIO
43
42
  * @tsplus location "@fncts/io/Hub/api"
44
43
  */
45
- export declare function filterInputIO_<RA, RA1, RB, EA, EA1, EB, A, B>(source: PHub<RA, RB, EA, EB, A, B>, f: (a: A) => IO<RA1, EA1, boolean>): PHub<RA & RA1, RB, EA | EA1, EB, A, B>;
44
+ export declare function filterInputIO_<RA, RA1, RB, EA, EA1, EB, A, B>(source: PHub<RA, RB, EA, EB, A, B>, f: (a: A) => IO<RA1, EA1, boolean>): PHub<RA | RA1, RB, EA | EA1, EB, A, B>;
46
45
  /**
47
46
  * Filters messages published to the hub using the specified function.
48
47
  * @tsplus fluent fncts.io.Hub filterInput
@@ -55,7 +54,7 @@ export declare function filterInput_<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA
55
54
  * @tsplus fluent fncts.io.Hub filterOutputIO
56
55
  * @tsplus location "@fncts/io/Hub/api"
57
56
  */
58
- export declare function filterOutputIO_<RA, RB, RB1, EA, EB, EB1, A, B>(source: PHub<RA, RB, EA, EB, A, B>, f: (a: B) => IO<RB1, EB1, boolean>): PHub<RA, RB & RB1, EA, EB | EB1, A, B>;
57
+ export declare function filterOutputIO_<RA, RB, RB1, EA, EB, EB1, A, B>(source: PHub<RA, RB, EA, EB, A, B>, f: (a: B) => IO<RB1, EB1, boolean>): PHub<RA, RB | RB1, EA, EB | EB1, A, B>;
59
58
  /**
60
59
  * Filters messages taken from the hub using the specified function.
61
60
  * @tsplus fluent fncts.io.Hub filterOutput
@@ -114,7 +113,7 @@ export declare function map_<RA, RB, EA, EB, A, B, C>(self: PHub<RA, RB, EA, EB,
114
113
  * @tsplus fluent fncts.io.Hub mapIO
115
114
  * @tsplus location "@fncts/io/Hub/api"
116
115
  */
117
- export declare function mapIO_<RA, RB, RC, EA, EB, EC, A, B, C>(self: PHub<RA, RB, EA, EB, A, B>, f: (b: B) => IO<RC, EC, C>): PHub<RA, RC & RB, EA, EB | EC, A, C>;
116
+ export declare function mapIO_<RA, RB, RC, EA, EB, EC, A, B, C>(self: PHub<RA, RB, EA, EB, A, B>, f: (b: B) => IO<RC, EC, C>): PHub<RA, RC | RB, EA, EB | EC, A, C>;
118
117
  /**
119
118
  * Publishes a message to the hub, returning whether the message was
120
119
  * published to the hub.
@@ -142,7 +141,7 @@ export declare function shutdown<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA, EB
142
141
  * @tsplus getter fncts.io.Hub subscribe
143
142
  * @tsplus location "@fncts/io/Hub/api"
144
143
  */
145
- export declare function subscribe<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA, EB, A, B>): IO<Has<Scope>, never, Hub.Dequeue<RB, EB, B>>;
144
+ export declare function subscribe<RA, RB, EA, EB, A, B>(self: PHub<RA, RB, EA, EB, A, B>): IO<Scope, never, Hub.Dequeue<RB, EB, B>>;
146
145
  /**
147
146
  * The current number of messages in the hub.
148
147
  * @tsplus getter fncts.io.Hub size
@@ -1,6 +1,5 @@
1
1
  import { PQueue } from "@fncts/io/Queue/definition";
2
2
  import { UIO, IO } from "@fncts/io/IO/definition";
3
- import { Has } from "@fncts/base/typeclass/Has";
4
3
  import { Scope } from "@fncts/io/Scope/definition";
5
4
  export declare const HubTypeId: unique symbol;
6
5
  export declare type HubTypeId = typeof HubTypeId;
@@ -16,8 +15,8 @@ export declare type HubTypeId = typeof HubTypeId;
16
15
  */
17
16
  export interface PHub<RA, RB, EA, EB, A, B> {
18
17
  readonly _typeId: HubTypeId;
19
- readonly _RA: (_: RA) => void;
20
- readonly _RB: (_: RB) => void;
18
+ readonly _RA: () => RA;
19
+ readonly _RB: () => RB;
21
20
  readonly _EA: () => EA;
22
21
  readonly _EB: () => EB;
23
22
  readonly _A: (_: A) => void;
@@ -26,7 +25,7 @@ export interface PHub<RA, RB, EA, EB, A, B> {
26
25
  /**
27
26
  * @tsplus type fncts.io.Hub
28
27
  */
29
- export interface Hub<A> extends PHub<unknown, unknown, never, never, A, A> {
28
+ export interface Hub<A> extends PHub<never, never, never, never, A, A> {
30
29
  }
31
30
  /**
32
31
  * @tsplus type fncts.io.HubOps
@@ -40,8 +39,8 @@ export declare namespace Hub {
40
39
  }
41
40
  export declare abstract class PHubInternal<RA, RB, EA, EB, A, B> implements PHub<RA, RB, EA, EB, A, B> {
42
41
  _typeId: HubTypeId;
43
- readonly _RA: (_: RA) => void;
44
- readonly _RB: (_: RB) => void;
42
+ readonly _RA: () => RA;
43
+ readonly _RB: () => RB;
45
44
  readonly _EA: () => EA;
46
45
  readonly _EB: () => EB;
47
46
  readonly _A: (_: A) => void;
@@ -81,7 +80,7 @@ export declare abstract class PHubInternal<RA, RB, EA, EB, A, B> implements PHub
81
80
  * can be evaluated multiple times within the scope of the managed to take a
82
81
  * message from the hub each time.
83
82
  */
84
- abstract subscribe: IO<Has<Scope>, never, Hub.Dequeue<RB, EB, B>>;
83
+ abstract subscribe: IO<Scope, never, Hub.Dequeue<RB, EB, B>>;
85
84
  }
86
85
  /**
87
86
  * @tsplus macro remove
package/Hub/internal.d.ts CHANGED
@@ -4,7 +4,6 @@ import { Conc } from "@fncts/base/collection/immutable/Conc";
4
4
  import { Queue } from "@fncts/io/Queue/definition";
5
5
  import { Scope } from "@fncts/io/Scope/definition";
6
6
  import { Exit } from "@fncts/base/data/Exit";
7
- import { Has } from "@fncts/base/typeclass/Has";
8
7
  import { Hub } from "@fncts/io/Hub/definition";
9
8
  import type { Hub as HubInternal } from "@fncts/io/internal/Hub";
10
9
  import { HashSet } from "@fncts/base/collection/mutable/HashSet";
@@ -1,10 +1,9 @@
1
1
  import { Lazy } from "@fncts/base/data/function";
2
2
  import { IO } from "@fncts/io/IO/definition";
3
- import { Has } from "@fncts/base/typeclass/Has";
4
3
  import { Scope } from "@fncts/io/Scope/definition";
5
4
  /**
6
5
  * @tsplus static fncts.io.IOOps acquireRelease
7
6
  * @tsplus fluent fncts.io.IO acquireRelease
8
7
  * @tsplus location "@fncts/io/IO/api/acquireRelease"
9
8
  */
10
- export declare function acquireRelease<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (a: A) => IO<R1, never, any>): IO<R & R1 & Has<Scope>, E, A>;
9
+ export declare function acquireRelease<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (a: A) => IO<R1, never, any>): IO<R | R1 | Scope, E, A>;
@@ -1,11 +1,10 @@
1
1
  import { Lazy } from "@fncts/base/data/function";
2
2
  import { IO } from "@fncts/io/IO/definition";
3
3
  import { Exit } from "@fncts/base/data/Exit";
4
- import { Has } from "@fncts/base/typeclass/Has";
5
4
  import { Scope } from "@fncts/io/Scope/definition";
6
5
  /**
7
6
  * @tsplus static fncts.io.IOOps acquireReleaseExit
8
7
  * @tsplus fluent fncts.io.IO acquireReleaseExit
9
8
  * @tsplus location "@fncts/io/IO/api/acquireReleaseExit"
10
9
  */
11
- export declare function acquireReleaseExit<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (a: A, exit: Exit<any, any>) => IO<R1, never, any>, __tsplusTrace?: string): IO<R & R1 & Has<Scope>, E, A>;
10
+ export declare function acquireReleaseExit<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (a: A, exit: Exit<any, any>) => IO<R1, never, any>, __tsplusTrace?: string): IO<R | R1 | Scope, E, A>;
@@ -1,9 +1,8 @@
1
1
  import { Lazy } from "@fncts/base/data/function";
2
2
  import { IO } from "@fncts/io/IO/definition";
3
- import { Has } from "@fncts/base/typeclass/Has";
4
3
  import { Scope } from "@fncts/io/Scope/definition";
5
4
  /**
6
5
  * @tsplus static fncts.io.IOOps acquireReleaseInterruptible
7
6
  * @tsplus location "@fncts/io/IO/api/acquireReleaseInterruptible"
8
7
  */
9
- export declare function acquireReleaseInterruptible<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: IO<R1, never, any>, __tsplusTrace?: string): IO<R & R1 & Has<Scope>, E, A>;
8
+ export declare function acquireReleaseInterruptible<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: IO<R1, never, any>, __tsplusTrace?: string): IO<R | R1 | Scope, E, A>;
@@ -1,10 +1,9 @@
1
1
  import { Lazy } from "@fncts/base/data/function";
2
2
  import { IO } from "@fncts/io/IO/definition";
3
3
  import { Exit } from "@fncts/base/data/Exit";
4
- import { Has } from "@fncts/base/typeclass/Has";
5
4
  import { Scope } from "@fncts/io/Scope/definition";
6
5
  /**
7
6
  * @tsplus static fncts.io.IOOps acquireReleaseInterruptibleExit
8
7
  * @tsplus location "@fncts/io/IO/api/acquireReleaseInterruptibleExit"
9
8
  */
10
- export declare function acquireReleaseInterruptibleExit<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (exit: Exit<any, any>) => IO<R1, never, any>, __tsplusTrace?: string): IO<R & R1 & Has<Scope>, E, A>;
9
+ export declare function acquireReleaseInterruptibleExit<R, E, A, R1>(acquire: Lazy<IO<R, E, A>>, release: (exit: Exit<any, any>) => IO<R1, never, any>, __tsplusTrace?: string): IO<R | R1 | Scope, E, A>;
@@ -1,9 +1,8 @@
1
1
  import { Lazy } from "@fncts/base/data/function";
2
2
  import { URIO, IO } from "@fncts/io/IO/definition";
3
- import { Has } from "@fncts/base/typeclass/Has";
4
3
  import { Scope } from "@fncts/io/Scope/definition";
5
4
  /**
6
5
  * @tsplus static fncts.io.IOOps addFinalizer
7
6
  * @tsplus location "@fncts/io/IO/api/addFinalizer"
8
7
  */
9
- export declare function addFinalizer<R>(finalizer: Lazy<URIO<R, any>>, __tsplusTrace?: string): IO<R & Has<Scope>, never, void>;
8
+ export declare function addFinalizer<R>(finalizer: Lazy<URIO<R, any>>, __tsplusTrace?: string): IO<R | Scope, never, void>;
@@ -1,9 +1,8 @@
1
1
  import { Exit } from "@fncts/base/data/Exit";
2
2
  import { URIO, IO } from "@fncts/io/IO/definition";
3
- import { Has } from "@fncts/base/typeclass/Has";
4
3
  import { Scope } from "@fncts/io/Scope/definition";
5
4
  /**
6
5
  * @tsplus static fncts.io.IOOps addFinalizerExit
7
6
  * @tsplus location "@fncts/io/IO/api/addFinalizerExit"
8
7
  */
9
- export declare function addFinalizerExit<R>(finalizer: (exit: Exit<any, any>) => URIO<R, any>): IO<R & Has<Scope>, never, void>;
8
+ export declare function addFinalizerExit<R>(finalizer: (exit: Exit<any, any>) => URIO<R, any>): IO<R | Scope, never, void>;
@@ -23,4 +23,4 @@ import { IO } from "@fncts/io/IO/definition";
23
23
  * @tsplus static fncts.io.IOOps bracket
24
24
  * @tsplus location "@fncts/io/IO/api/bracket"
25
25
  */
26
- export declare function bracket_<R, E, A, R1, E1, A1, R2, E2, A2>(acquire: Lazy<IO<R, E, A>>, use: (a: A) => IO<R1, E1, A1>, release: (a: A) => IO<R2, E2, A2>): IO<R & R1 & R2, E | E1 | E2, A1>;
26
+ export declare function bracket_<R, E, A, R1, E1, A1, R2, E2, A2>(acquire: Lazy<IO<R, E, A>>, use: (a: A) => IO<R1, E1, A1>, release: (a: A) => IO<R2, E2, A2>): IO<R | R1 | R2, E | E1 | E2, A1>;
@@ -11,4 +11,4 @@ import { Exit } from "@fncts/base/data/Exit";
11
11
  * @tsplus static fncts.io.IOOps bracketExit
12
12
  * @tsplus location "@fncts/io/IO/api/bracketExit"
13
13
  */
14
- export declare function bracketExit_<R, E, A, E1, R1, A1, R2, E2>(acquire: Lazy<IO<R, E, A>>, use: (a: A) => IO<R1, E1, A1>, release: (a: A, e: Exit<E1, A1>) => IO<R2, E2, any>): IO<R & R1 & R2, E | E1 | E2, A1>;
14
+ export declare function bracketExit_<R, E, A, E1, R1, A1, R2, E2>(acquire: Lazy<IO<R, E, A>>, use: (a: A) => IO<R1, E1, A1>, release: (a: A, e: Exit<E1, A1>) => IO<R2, E2, any>): IO<R | R1 | R2, E | E1 | E2, A1>;
@@ -9,4 +9,4 @@ export declare function clockWith<R, E, A>(f: (clock: Clock) => IO<R, E, A>, __t
9
9
  * @tsplus static fncts.io.IOOps clock
10
10
  * @tsplus location "@fncts/io/IO/api/clockWith"
11
11
  */
12
- export declare const clock: import("../definition").IO<unknown, never, import("../../Clock").Clock>;
12
+ export declare const clock: import("../definition").IO<never, never, import("../../Clock").Clock>;
@@ -1,8 +1,7 @@
1
1
  import { IO } from "@fncts/io/IO/definition";
2
- import { Has } from "@fncts/base/typeclass/Has";
3
2
  import { Scope } from "@fncts/io/Scope/definition";
4
3
  /**
5
4
  * @tsplus getter fncts.io.IO concurrentFinalizers
6
5
  * @tsplus location "@fncts/io/IO/api/concurrentFinalizers"
7
6
  */
8
- export declare function concurrentFinalizers<R, E, A>(io: IO<R, E, A>): IO<R & Has<Scope>, E, A>;
7
+ export declare function concurrentFinalizers<R, E, A>(io: IO<R, E, A>): IO<R | Scope, E, A>;
@@ -9,4 +9,4 @@ export declare function consoleWith<R, E, A>(f: (console: Console) => IO<R, E, A
9
9
  * @tsplus static fncts.io.IOOps console
10
10
  * @tsplus location "@fncts/io/IO/api/consoleWith"
11
11
  */
12
- export declare const console: import("../definition").IO<unknown, never, Console>;
12
+ export declare const console: import("../definition").IO<never, never, Console>;
@@ -41,7 +41,7 @@ export declare function forkScopeMask_<R, E, A>(newScope: FiberScope, f: (restor
41
41
  * @tsplus fluent fncts.io.IO raceWith
42
42
  * @tsplus location "@fncts/io/IO/api/core-scope"
43
43
  */
44
- export declare function raceWith_<R, E, A, R1, E1, A1, R2, E2, A2, R3, E3, A3>(left: IO<R, E, A>, right: Lazy<IO<R1, E1, A1>>, leftWins: (exit: Exit<E, A>, fiber: Fiber<E1, A1>) => IO<R2, E2, A2>, rightWins: (exit: Exit<E1, A1>, fiber: Fiber<E, A>) => IO<R3, E3, A3>, __tsplusTrace?: string): IO<R & R1 & R2 & R3, E2 | E3, A2 | A3>;
44
+ export declare function raceWith_<R, E, A, R1, E1, A1, R2, E2, A2, R3, E3, A3>(left: IO<R, E, A>, right: Lazy<IO<R1, E1, A1>>, leftWins: (exit: Exit<E, A>, fiber: Fiber<E1, A1>) => IO<R2, E2, A2>, rightWins: (exit: Exit<E1, A1>, fiber: Fiber<E, A>) => IO<R3, E3, A3>, __tsplusTrace?: string): IO<R | R1 | R2 | R3, E2 | E3, A2 | A3>;
45
45
  export declare type Grafter = <R, E, A>(effect: IO<R, E, A>) => IO<R, E, A>;
46
46
  /**
47
47
  * Transplants specified effects so that when those effects fork other
@@ -5,4 +5,4 @@ import { Fiber } from "@fncts/io/Fiber/definition";
5
5
  * @tsplus fluent fncts.io.IO ensuringChildren
6
6
  * @tsplus location "@fncts/io/IO/api/ensuringChildren"
7
7
  */
8
- export declare function ensuringChildren<R, E, A, R1>(self: IO<R, E, A>, children: (_: Conc<Fiber.Runtime<any, any>>) => IO<R1, never, void>): IO<R & R1, E, A>;
8
+ export declare function ensuringChildren<R, E, A, R1>(self: IO<R, E, A>, children: (_: Conc<Fiber.Runtime<any, any>>) => IO<R1, never, void>): IO<R | R1, E, A>;
@@ -1,8 +1,6 @@
1
1
  import { IO, URIO, FIO } from "@fncts/io/IO/definition";
2
2
  import { Environment } from "@fncts/base/data/Environment";
3
- import { Has } from "@fncts/base/typeclass/Has";
4
3
  import { Tag } from "@fncts/base/data/Tag";
5
- import type * as Intersection from "@fncts/typelevel/Intersection";
6
4
  /**
7
5
  * Provides some of the environment required to run this `IO`,
8
6
  * leaving the remainder `R0`.
@@ -27,7 +25,7 @@ export declare function environmentWith<R, A>(f: (_: Environment<R>) => A, __tsp
27
25
  * @tsplus static fncts.io.IOOps environmentWithIO
28
26
  * @tsplus location "@fncts/io/IO/api/environment"
29
27
  */
30
- export declare function environmentWithIO<R0, R, E, A>(f: (r: Environment<R0>) => IO<R, E, A>, __tsplusTrace?: string): IO<R & R0, E, A>;
28
+ export declare function environmentWithIO<R0, R, E, A>(f: (r: Environment<R0>) => IO<R, E, A>, __tsplusTrace?: string): IO<R | R0, E, A>;
31
29
  /**
32
30
  * Provides all of the environment required to compute a MonadEnv
33
31
  *
@@ -41,34 +39,34 @@ export declare function provideEnvironment_<R, E, A>(self: IO<R, E, A>, r: Envir
41
39
  * @tsplus fluent fncts.io.IO provideSomeEnvironment
42
40
  * @tsplus location "@fncts/io/IO/api/environment"
43
41
  */
44
- export declare function provideSomeEnvironment_<R, E, A, R0>(self: IO<R, E, A>, environment: Environment<R0>, __tsplusTrace?: string): IO<Intersection.Erase<R, R0>, E, A>;
42
+ export declare function provideSomeEnvironment_<R, E, A, R0>(self: IO<R, E, A>, environment: Environment<R0>, __tsplusTrace?: string): IO<Exclude<R, R0>, E, A>;
45
43
  /**
46
44
  * @tsplus fluent fncts.io.IO provideService
47
45
  * @tsplus location "@fncts/io/IO/api/environment"
48
46
  */
49
- export declare function provideService_<E, A, T>(self: IO<Has<T>, E, A>, service: T, tag: Tag<T>, __tsplusTrace?: string): FIO<E, A>;
47
+ export declare function provideService_<E, A, T>(self: IO<T, E, A>, service: T, tag: Tag<T>, __tsplusTrace?: string): FIO<E, A>;
50
48
  /**
51
49
  * @tsplus fluent fncts.io.IO provideSomeService
52
50
  * @tsplus location "@fncts/io/IO/api/environment"
53
51
  */
54
- export declare function provideSomeService_<R, E, A, T>(self: IO<R, E, A>, service: T, tag: Tag<T>, __tsplusTrace?: string): IO<Intersection.Erase<R, Has<T>>, E, A>;
52
+ export declare function provideSomeService_<R, E, A, T>(self: IO<R, E, A>, service: T, tag: Tag<T>, __tsplusTrace?: string): IO<Exclude<R, T>, E, A>;
55
53
  /**
56
54
  * @tsplus static fncts.io.IOAspects provideSomeService
57
55
  * @tsplus location "@fncts/io/IO/api/environment"
58
56
  */
59
- export declare function provideSomeService<T>(service: T, tag: Tag<T>, __tsplusTrace?: string): <R, E, A>(io: import("../definition").IO<R & import("@fncts/base/typeclass").Has<T>, E, A>) => import("../definition").IO<R, E, A>;
57
+ export declare function provideSomeService<T>(service: T, tag: Tag<T>, __tsplusTrace?: string): <R, E, A>(io: import("../definition").IO<T | R, E, A>) => import("../definition").IO<R, E, A>;
60
58
  /**
61
59
  * @tsplus static fncts.io.IOOps service
62
60
  * @tsplus location "@fncts/io/IO/api/environment"
63
61
  */
64
- export declare function service<T>(tag: Tag<T>, __tsplusTrace?: string): IO<Has<T>, never, T>;
62
+ export declare function service<T>(tag: Tag<T>, __tsplusTrace?: string): IO<T, never, T>;
65
63
  /**
66
64
  * @tsplus static fncts.io.IOOps serviceWith
67
65
  * @tsplus location "@fncts/io/IO/api/environment"
68
66
  */
69
- export declare function serviceWith<S, A>(f: (service: S) => A, tag: Tag<S>): IO<Has<S>, never, A>;
67
+ export declare function serviceWith<S, A>(f: (service: S) => A, tag: Tag<S>): IO<S, never, A>;
70
68
  /**
71
69
  * @tsplus static fncts.io.IOOps serviceWithIO
72
70
  * @tsplus location "@fncts/io/IO/api/environment"
73
71
  */
74
- export declare function serviceWithIO<T, R, E, A>(f: (service: T) => IO<R, E, A>, tag: Tag<T>, __tsplusTrace?: string): IO<R & Has<T>, E, A>;
72
+ export declare function serviceWithIO<T, R, E, A>(f: (service: T) => IO<R, E, A>, tag: Tag<T>, __tsplusTrace?: string): IO<R | T, E, A>;
@@ -1,9 +1,8 @@
1
1
  import { IO } from "@fncts/io/IO/definition";
2
- import { Has } from "@fncts/base/typeclass/Has";
3
2
  import { Scope } from "@fncts/io/Scope/definition";
4
3
  import { Fiber } from "@fncts/io/Fiber/definition";
5
4
  /**
6
5
  * @tsplus getter fncts.io.IO forkScoped
7
6
  * @tsplus location "@fncts/io/IO/api/forkScoped"
8
7
  */
9
- export declare function forkScoped<R, E, A>(self: IO<R, E, A>, __tsplusTrace?: string): IO<R & Has<Scope>, never, Fiber.Runtime<E, A>>;
8
+ export declare function forkScoped<R, E, A>(self: IO<R, E, A>, __tsplusTrace?: string): IO<R | Scope, never, Fiber.Runtime<E, A>>;
@@ -15,7 +15,7 @@ export declare function interruptAs(fiberId: FiberId, __tsplusTrace?: string): F
15
15
  * @tsplus static fncts.io.IOOps interrupt
16
16
  * @tsplus location "@fncts/io/IO/api/interrupt"
17
17
  */
18
- export declare const interrupt: IO<unknown, never, never>;
18
+ export declare const interrupt: IO<never, never, never>;
19
19
  /**
20
20
  * Switches the interrupt status for this effect. If `true` is used, then the
21
21
  * effect becomes interruptible (the default), while if `false` is used, then
@@ -74,14 +74,14 @@ export declare function interruptibleMask<R, E, A>(k: (restore: InterruptStatusR
74
74
  * @tsplus fluent fncts.io.IO onInterrupt
75
75
  * @tsplus location "@fncts/io/IO/api/interrupt"
76
76
  */
77
- export declare function onInterrupt_<R, E, A, R1>(ma: IO<R, E, A>, cleanup: (interruptors: HashSet<FiberId>) => IO<R1, never, any>): IO<R & R1, E, A>;
77
+ export declare function onInterrupt_<R, E, A, R1>(ma: IO<R, E, A>, cleanup: (interruptors: HashSet<FiberId>) => IO<R1, never, any>): IO<R | R1, E, A>;
78
78
  /**
79
79
  * Calls the specified function, and runs the effect it returns, if this
80
80
  * effect is interrupted (allows for expanding error).
81
81
  * @tsplus fluent fncts.io.IO onInterruptExtended
82
82
  * @tsplus location "@fncts/io/IO/api/interrupt"
83
83
  */
84
- export declare function onInterruptExtended_<R, E, A, R2, E2>(self: IO<R, E, A>, cleanup: Lazy<IO<R2, E2, any>>): IO<R & R2, E | E2, A>;
84
+ export declare function onInterruptExtended_<R, E, A, R2, E2>(self: IO<R, E, A>, cleanup: Lazy<IO<R2, E2, any>>): IO<R | R2, E | E2, A>;
85
85
  /**
86
86
  * Returns an IO whose interruption will be disconnected from the
87
87
  * fiber's own interruption, being performed in the background without
@@ -4,4 +4,4 @@ import { Exit } from "@fncts/base/data/Exit";
4
4
  * @tsplus fluent fncts.io.IO onExit
5
5
  * @tsplus location "@fncts/io/IO/api/onExit"
6
6
  */
7
- export declare function onExit_<R, E, A, R1, E1>(self: IO<R, E, A>, cleanup: (exit: Exit<E, A>) => IO<R1, E1, any>): IO<R & R1, E | E1, A>;
7
+ export declare function onExit_<R, E, A, R1, E1>(self: IO<R, E, A>, cleanup: (exit: Exit<E, A>) => IO<R1, E1, any>): IO<R | R1, E | E1, A>;
@@ -6,4 +6,4 @@ import { Exit } from "@fncts/base/data/Exit";
6
6
  * @tsplus fluent fncts.io.IO onTermination
7
7
  * @tsplus location "@fncts/io/IO/api/onTermination"
8
8
  */
9
- export declare function onTermination<R, E, A, R1>(self: Lazy<IO<R, E, A>>, cleanup: (cause: Cause<never>) => URIO<R1, any>, __tsPlusTrace?: string): IO<R & R1, E, A>;
9
+ export declare function onTermination<R, E, A, R1>(self: Lazy<IO<R, E, A>>, cleanup: (cause: Cause<never>) => URIO<R1, any>, __tsPlusTrace?: string): IO<R | R1, E, A>;
@@ -10,4 +10,4 @@ export declare function provideSomeLayer_<R, E, A, RIn, E1, ROut>(self: IO<R, E,
10
10
  * @tsplus static fncts.io.IOAspects provideSomeLayer
11
11
  * @tsplus location "@fncts/io/IO/api/provideSomeLayer"
12
12
  */
13
- export declare function provideSomeLayer<RIn, E1, ROut>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <R, E, A>(self: import("../definition").IO<R & ROut, E, A>) => import("../definition").IO<R & RIn, E1 | E, A>;
13
+ export declare function provideSomeLayer<RIn, E1, ROut>(layer: Layer<RIn, E1, ROut>, __tsplusTrace?: string): <R, E, A>(self: import("../definition").IO<ROut | R, E, A>) => import("../definition").IO<RIn | R, E1 | E, A>;
package/IO/api/race.d.ts CHANGED
@@ -10,4 +10,4 @@ import { IO } from "@fncts/io/IO/definition";
10
10
  * @tsplus fluent fncts.io.IO race
11
11
  * @tsplus location "@fncts/io/IO/api/race"
12
12
  */
13
- export declare function race_<R, E, A, R1, E1, A1>(io: IO<R, E, A>, that: IO<R1, E1, A1>): IO<R & R1, E | E1, A | A1>;
13
+ export declare function race_<R, E, A, R1, E1, A1>(io: IO<R, E, A>, that: IO<R1, E1, A1>): IO<R | R1, E | E1, A | A1>;