effect 4.0.1 → 4.0.2

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 (917) hide show
  1. package/ai-docs/package.json +2 -2
  2. package/ai-docs/tsconfig.json +2 -1
  3. package/dist/Array.d.ts +339 -0
  4. package/dist/Array.d.ts.map +1 -1
  5. package/dist/Array.js +143 -3
  6. package/dist/Array.js.map +1 -1
  7. package/dist/BigDecimal.d.ts +88 -0
  8. package/dist/BigDecimal.d.ts.map +1 -1
  9. package/dist/BigDecimal.js +44 -0
  10. package/dist/BigDecimal.js.map +1 -1
  11. package/dist/BigInt.d.ts +68 -0
  12. package/dist/BigInt.d.ts.map +1 -1
  13. package/dist/BigInt.js +36 -0
  14. package/dist/BigInt.js.map +1 -1
  15. package/dist/Boolean.d.ts +34 -0
  16. package/dist/Boolean.d.ts.map +1 -1
  17. package/dist/Boolean.js +18 -0
  18. package/dist/Boolean.js.map +1 -1
  19. package/dist/Brand.d.ts +9 -0
  20. package/dist/Brand.d.ts.map +1 -1
  21. package/dist/Brand.js +6 -0
  22. package/dist/Brand.js.map +1 -1
  23. package/dist/ByteSize.d.ts +86 -0
  24. package/dist/ByteSize.d.ts.map +1 -1
  25. package/dist/ByteSize.js +51 -0
  26. package/dist/ByteSize.js.map +1 -1
  27. package/dist/Cache.d.ts +38 -1
  28. package/dist/Cache.d.ts.map +1 -1
  29. package/dist/Cache.js +27 -7
  30. package/dist/Cache.js.map +1 -1
  31. package/dist/Cause.d.ts +82 -0
  32. package/dist/Cause.d.ts.map +1 -1
  33. package/dist/Cause.js +60 -0
  34. package/dist/Cause.js.map +1 -1
  35. package/dist/Channel.d.ts +327 -4
  36. package/dist/Channel.d.ts.map +1 -1
  37. package/dist/Channel.js +168 -8
  38. package/dist/Channel.js.map +1 -1
  39. package/dist/ChannelSchema.d.ts +11 -0
  40. package/dist/ChannelSchema.d.ts.map +1 -1
  41. package/dist/ChannelSchema.js +6 -0
  42. package/dist/ChannelSchema.js.map +1 -1
  43. package/dist/Chunk.d.ts +192 -0
  44. package/dist/Chunk.d.ts.map +1 -1
  45. package/dist/Chunk.js +78 -0
  46. package/dist/Chunk.js.map +1 -1
  47. package/dist/Clock.d.ts +7 -0
  48. package/dist/Clock.d.ts.map +1 -1
  49. package/dist/Clock.js +5 -0
  50. package/dist/Clock.js.map +1 -1
  51. package/dist/Combiner.d.ts +10 -0
  52. package/dist/Combiner.d.ts.map +1 -1
  53. package/dist/Combiner.js +8 -0
  54. package/dist/Combiner.js.map +1 -1
  55. package/dist/Config.d.ts +52 -12
  56. package/dist/Config.d.ts.map +1 -1
  57. package/dist/Config.js +55 -5
  58. package/dist/Config.js.map +1 -1
  59. package/dist/ConfigProvider.d.ts +28 -0
  60. package/dist/ConfigProvider.d.ts.map +1 -1
  61. package/dist/ConfigProvider.js +19 -0
  62. package/dist/ConfigProvider.js.map +1 -1
  63. package/dist/Console.d.ts +22 -0
  64. package/dist/Console.d.ts.map +1 -1
  65. package/dist/Console.js +20 -0
  66. package/dist/Console.js.map +1 -1
  67. package/dist/Context.d.ts +50 -0
  68. package/dist/Context.d.ts.map +1 -1
  69. package/dist/Context.js +21 -0
  70. package/dist/Context.js.map +1 -1
  71. package/dist/Cron.d.ts +16 -0
  72. package/dist/Cron.d.ts.map +1 -1
  73. package/dist/Cron.js +26 -1
  74. package/dist/Cron.js.map +1 -1
  75. package/dist/Crypto.d.ts +5 -0
  76. package/dist/Crypto.d.ts.map +1 -1
  77. package/dist/Crypto.js +3 -0
  78. package/dist/Crypto.js.map +1 -1
  79. package/dist/Data.d.ts +13 -0
  80. package/dist/Data.d.ts.map +1 -1
  81. package/dist/Data.js +5 -0
  82. package/dist/Data.js.map +1 -1
  83. package/dist/DateTime.d.ts +171 -0
  84. package/dist/DateTime.d.ts.map +1 -1
  85. package/dist/DateTime.js +89 -0
  86. package/dist/DateTime.js.map +1 -1
  87. package/dist/Deferred.d.ts +51 -0
  88. package/dist/Deferred.d.ts.map +1 -1
  89. package/dist/Deferred.js +22 -0
  90. package/dist/Deferred.js.map +1 -1
  91. package/dist/Differ.d.ts +2 -0
  92. package/dist/Differ.d.ts.map +1 -1
  93. package/dist/Differ.js +1 -0
  94. package/dist/Duration.d.ts +90 -0
  95. package/dist/Duration.d.ts.map +1 -1
  96. package/dist/Duration.js +53 -0
  97. package/dist/Duration.js.map +1 -1
  98. package/dist/Effect.d.ts +527 -0
  99. package/dist/Effect.d.ts.map +1 -1
  100. package/dist/Effect.js +240 -5
  101. package/dist/Effect.js.map +1 -1
  102. package/dist/Effectable.d.ts +4 -0
  103. package/dist/Effectable.d.ts.map +1 -1
  104. package/dist/Effectable.js +3 -0
  105. package/dist/Effectable.js.map +1 -1
  106. package/dist/Equal.d.ts +8 -0
  107. package/dist/Equal.d.ts.map +1 -1
  108. package/dist/Equal.js +9 -1
  109. package/dist/Equal.js.map +1 -1
  110. package/dist/Equivalence.d.ts +21 -0
  111. package/dist/Equivalence.d.ts.map +1 -1
  112. package/dist/Equivalence.js +16 -0
  113. package/dist/Equivalence.js.map +1 -1
  114. package/dist/ErrorReporter.d.ts +36 -0
  115. package/dist/ErrorReporter.d.ts.map +1 -1
  116. package/dist/ErrorReporter.js +11 -0
  117. package/dist/ErrorReporter.js.map +1 -1
  118. package/dist/ExecutionPlan.d.ts +49 -8
  119. package/dist/ExecutionPlan.d.ts.map +1 -1
  120. package/dist/ExecutionPlan.js +7 -0
  121. package/dist/ExecutionPlan.js.map +1 -1
  122. package/dist/Exit.d.ts +40 -0
  123. package/dist/Exit.d.ts.map +1 -1
  124. package/dist/Exit.js +27 -0
  125. package/dist/Exit.js.map +1 -1
  126. package/dist/Fiber.d.ts +20 -0
  127. package/dist/Fiber.d.ts.map +1 -1
  128. package/dist/Fiber.js +11 -0
  129. package/dist/Fiber.js.map +1 -1
  130. package/dist/FiberHandle.d.ts +21 -0
  131. package/dist/FiberHandle.d.ts.map +1 -1
  132. package/dist/FiberHandle.js +21 -4
  133. package/dist/FiberHandle.js.map +1 -1
  134. package/dist/FiberMap.d.ts +35 -0
  135. package/dist/FiberMap.d.ts.map +1 -1
  136. package/dist/FiberMap.js +19 -0
  137. package/dist/FiberMap.js.map +1 -1
  138. package/dist/FiberSet.d.ts +20 -0
  139. package/dist/FiberSet.d.ts.map +1 -1
  140. package/dist/FiberSet.js +14 -0
  141. package/dist/FiberSet.js.map +1 -1
  142. package/dist/FileSystem.d.ts +15 -0
  143. package/dist/FileSystem.d.ts.map +1 -1
  144. package/dist/FileSystem.js +8 -0
  145. package/dist/FileSystem.js.map +1 -1
  146. package/dist/Filter.d.ts +55 -0
  147. package/dist/Filter.d.ts.map +1 -1
  148. package/dist/Filter.js +28 -0
  149. package/dist/Filter.js.map +1 -1
  150. package/dist/Formatter.d.ts +3 -0
  151. package/dist/Formatter.d.ts.map +1 -1
  152. package/dist/Formatter.js +39 -1
  153. package/dist/Formatter.js.map +1 -1
  154. package/dist/Function.d.ts +30 -0
  155. package/dist/Function.d.ts.map +1 -1
  156. package/dist/Function.js +20 -0
  157. package/dist/Function.js.map +1 -1
  158. package/dist/Graph.d.ts +247 -12
  159. package/dist/Graph.d.ts.map +1 -1
  160. package/dist/Graph.js +149 -28
  161. package/dist/Graph.js.map +1 -1
  162. package/dist/HKT.d.ts +5 -0
  163. package/dist/HKT.d.ts.map +1 -1
  164. package/dist/Hash.d.ts +14 -0
  165. package/dist/Hash.d.ts.map +1 -1
  166. package/dist/Hash.js +12 -0
  167. package/dist/Hash.js.map +1 -1
  168. package/dist/HashMap.d.ts +91 -0
  169. package/dist/HashMap.d.ts.map +1 -1
  170. package/dist/HashMap.js +39 -0
  171. package/dist/HashMap.js.map +1 -1
  172. package/dist/HashRing.d.ts +17 -0
  173. package/dist/HashRing.d.ts.map +1 -1
  174. package/dist/HashRing.js +9 -0
  175. package/dist/HashRing.js.map +1 -1
  176. package/dist/HashSet.d.ts +49 -0
  177. package/dist/HashSet.d.ts.map +1 -1
  178. package/dist/HashSet.js +19 -0
  179. package/dist/HashSet.js.map +1 -1
  180. package/dist/Inspectable.d.ts +7 -0
  181. package/dist/Inspectable.d.ts.map +1 -1
  182. package/dist/Inspectable.js +6 -0
  183. package/dist/Inspectable.js.map +1 -1
  184. package/dist/Iterable.d.ts +127 -0
  185. package/dist/Iterable.d.ts.map +1 -1
  186. package/dist/Iterable.js +51 -0
  187. package/dist/Iterable.js.map +1 -1
  188. package/dist/JsonPatch.d.ts +4 -0
  189. package/dist/JsonPatch.d.ts.map +1 -1
  190. package/dist/JsonPatch.js +3 -0
  191. package/dist/JsonPatch.js.map +1 -1
  192. package/dist/JsonPointer.d.ts +5 -0
  193. package/dist/JsonPointer.d.ts.map +1 -1
  194. package/dist/JsonPointer.js +5 -0
  195. package/dist/JsonPointer.js.map +1 -1
  196. package/dist/JsonSchema.d.ts +16 -0
  197. package/dist/JsonSchema.d.ts.map +1 -1
  198. package/dist/JsonSchema.js +11 -0
  199. package/dist/JsonSchema.js.map +1 -1
  200. package/dist/Latch.d.ts +14 -0
  201. package/dist/Latch.d.ts.map +1 -1
  202. package/dist/Latch.js +10 -0
  203. package/dist/Latch.js.map +1 -1
  204. package/dist/Layer.d.ts +100 -0
  205. package/dist/Layer.d.ts.map +1 -1
  206. package/dist/Layer.js +45 -1
  207. package/dist/Layer.js.map +1 -1
  208. package/dist/LayerMap.d.ts +7 -0
  209. package/dist/LayerMap.d.ts.map +1 -1
  210. package/dist/LayerMap.js +4 -0
  211. package/dist/LayerMap.js.map +1 -1
  212. package/dist/LayerRef.d.ts +5 -0
  213. package/dist/LayerRef.d.ts.map +1 -1
  214. package/dist/LayerRef.js +3 -0
  215. package/dist/LayerRef.js.map +1 -1
  216. package/dist/LogLevel.d.ts +20 -0
  217. package/dist/LogLevel.d.ts.map +1 -1
  218. package/dist/LogLevel.js +9 -0
  219. package/dist/LogLevel.js.map +1 -1
  220. package/dist/Logger.d.ts +25 -0
  221. package/dist/Logger.d.ts.map +1 -1
  222. package/dist/Logger.js +30 -4
  223. package/dist/Logger.js.map +1 -1
  224. package/dist/ManagedRuntime.d.ts +5 -0
  225. package/dist/ManagedRuntime.d.ts.map +1 -1
  226. package/dist/ManagedRuntime.js +9 -1
  227. package/dist/ManagedRuntime.js.map +1 -1
  228. package/dist/Match.d.ts +51 -0
  229. package/dist/Match.d.ts.map +1 -1
  230. package/dist/Match.js +39 -0
  231. package/dist/Match.js.map +1 -1
  232. package/dist/Metric.d.ts +59 -0
  233. package/dist/Metric.d.ts.map +1 -1
  234. package/dist/Metric.js +31 -0
  235. package/dist/Metric.js.map +1 -1
  236. package/dist/MutableHashMap.d.ts +32 -0
  237. package/dist/MutableHashMap.d.ts.map +1 -1
  238. package/dist/MutableHashMap.js +16 -0
  239. package/dist/MutableHashMap.js.map +1 -1
  240. package/dist/MutableHashSet.d.ts +16 -0
  241. package/dist/MutableHashSet.d.ts.map +1 -1
  242. package/dist/MutableHashSet.js +10 -0
  243. package/dist/MutableHashSet.js.map +1 -1
  244. package/dist/MutableList.d.ts +20 -0
  245. package/dist/MutableList.d.ts.map +1 -1
  246. package/dist/MutableList.js +18 -0
  247. package/dist/MutableList.js.map +1 -1
  248. package/dist/MutableRef.d.ts +31 -0
  249. package/dist/MutableRef.d.ts.map +1 -1
  250. package/dist/MutableRef.js +17 -0
  251. package/dist/MutableRef.js.map +1 -1
  252. package/dist/Newtype.d.ts +9 -0
  253. package/dist/Newtype.d.ts.map +1 -1
  254. package/dist/Newtype.js +6 -0
  255. package/dist/Newtype.js.map +1 -1
  256. package/dist/NonEmptyIterable.d.ts +4 -0
  257. package/dist/NonEmptyIterable.d.ts.map +1 -1
  258. package/dist/NonEmptyIterable.js +2 -0
  259. package/dist/NonEmptyIterable.js.map +1 -1
  260. package/dist/Number.d.ts +61 -0
  261. package/dist/Number.d.ts.map +1 -1
  262. package/dist/Number.js +31 -0
  263. package/dist/Number.js.map +1 -1
  264. package/dist/Optic.d.ts +41 -0
  265. package/dist/Optic.d.ts.map +1 -1
  266. package/dist/Optic.js +20 -0
  267. package/dist/Optic.js.map +1 -1
  268. package/dist/Option.d.ts +134 -0
  269. package/dist/Option.d.ts.map +1 -1
  270. package/dist/Option.js +61 -0
  271. package/dist/Option.js.map +1 -1
  272. package/dist/Order.d.ts +29 -0
  273. package/dist/Order.d.ts.map +1 -1
  274. package/dist/Order.js +24 -0
  275. package/dist/Order.js.map +1 -1
  276. package/dist/Ordering.d.ts +7 -0
  277. package/dist/Ordering.d.ts.map +1 -1
  278. package/dist/Ordering.js +3 -0
  279. package/dist/Ordering.js.map +1 -1
  280. package/dist/PartitionedSemaphore.d.ts +24 -0
  281. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  282. package/dist/PartitionedSemaphore.js +47 -21
  283. package/dist/PartitionedSemaphore.js.map +1 -1
  284. package/dist/Path.d.ts +6 -0
  285. package/dist/Path.d.ts.map +1 -1
  286. package/dist/Path.js +4 -0
  287. package/dist/Path.js.map +1 -1
  288. package/dist/Pipeable.d.ts +7 -0
  289. package/dist/Pipeable.d.ts.map +1 -1
  290. package/dist/Pipeable.js +5 -0
  291. package/dist/Pipeable.js.map +1 -1
  292. package/dist/PlatformError.d.ts +8 -0
  293. package/dist/PlatformError.d.ts.map +1 -1
  294. package/dist/PlatformError.js +7 -0
  295. package/dist/PlatformError.js.map +1 -1
  296. package/dist/Pool.d.ts +19 -0
  297. package/dist/Pool.d.ts.map +1 -1
  298. package/dist/Pool.js +8 -1
  299. package/dist/Pool.js.map +1 -1
  300. package/dist/Predicate.d.ts +84 -0
  301. package/dist/Predicate.d.ts.map +1 -1
  302. package/dist/Predicate.js +48 -0
  303. package/dist/Predicate.js.map +1 -1
  304. package/dist/PrimaryKey.d.ts +5 -0
  305. package/dist/PrimaryKey.d.ts.map +1 -1
  306. package/dist/PrimaryKey.js +4 -0
  307. package/dist/PrimaryKey.js.map +1 -1
  308. package/dist/PubSub.d.ts +67 -5
  309. package/dist/PubSub.d.ts.map +1 -1
  310. package/dist/PubSub.js +60 -8
  311. package/dist/PubSub.js.map +1 -1
  312. package/dist/Pull.d.ts +20 -0
  313. package/dist/Pull.d.ts.map +1 -1
  314. package/dist/Pull.js +10 -0
  315. package/dist/Pull.js.map +1 -1
  316. package/dist/Queue.d.ts +60 -0
  317. package/dist/Queue.d.ts.map +1 -1
  318. package/dist/Queue.js +58 -8
  319. package/dist/Queue.js.map +1 -1
  320. package/dist/Random.d.ts +13 -0
  321. package/dist/Random.d.ts.map +1 -1
  322. package/dist/Random.js +9 -0
  323. package/dist/Random.js.map +1 -1
  324. package/dist/RcMap.d.ts +23 -0
  325. package/dist/RcMap.d.ts.map +1 -1
  326. package/dist/RcMap.js +8 -0
  327. package/dist/RcMap.js.map +1 -1
  328. package/dist/RcRef.d.ts +6 -0
  329. package/dist/RcRef.d.ts.map +1 -1
  330. package/dist/RcRef.js +3 -0
  331. package/dist/RcRef.js.map +1 -1
  332. package/dist/Record.d.ts +100 -0
  333. package/dist/Record.d.ts.map +1 -1
  334. package/dist/Record.js +43 -0
  335. package/dist/Record.js.map +1 -1
  336. package/dist/Redactable.d.ts +6 -0
  337. package/dist/Redactable.d.ts.map +1 -1
  338. package/dist/Redactable.js +4 -0
  339. package/dist/Redactable.js.map +1 -1
  340. package/dist/Redacted.d.ts +8 -0
  341. package/dist/Redacted.d.ts.map +1 -1
  342. package/dist/Redacted.js +6 -0
  343. package/dist/Redacted.js.map +1 -1
  344. package/dist/Reducer.d.ts +4 -0
  345. package/dist/Reducer.d.ts.map +1 -1
  346. package/dist/Reducer.js +3 -0
  347. package/dist/Reducer.js.map +1 -1
  348. package/dist/Ref.d.ts +20 -0
  349. package/dist/Ref.d.ts.map +1 -1
  350. package/dist/Ref.js +16 -0
  351. package/dist/Ref.js.map +1 -1
  352. package/dist/References.d.ts +21 -0
  353. package/dist/References.d.ts.map +1 -1
  354. package/dist/References.js +19 -0
  355. package/dist/References.js.map +1 -1
  356. package/dist/RegExp.d.ts +3 -0
  357. package/dist/RegExp.d.ts.map +1 -1
  358. package/dist/RegExp.js +4 -0
  359. package/dist/RegExp.js.map +1 -1
  360. package/dist/Request.d.ts +32 -0
  361. package/dist/Request.d.ts.map +1 -1
  362. package/dist/Request.js +12 -0
  363. package/dist/Request.js.map +1 -1
  364. package/dist/RequestResolver.d.ts +42 -0
  365. package/dist/RequestResolver.d.ts.map +1 -1
  366. package/dist/RequestResolver.js +27 -6
  367. package/dist/RequestResolver.js.map +1 -1
  368. package/dist/Resource.d.ts +6 -0
  369. package/dist/Resource.d.ts.map +1 -1
  370. package/dist/Resource.js +6 -0
  371. package/dist/Resource.js.map +1 -1
  372. package/dist/Result.d.ts +91 -0
  373. package/dist/Result.d.ts.map +1 -1
  374. package/dist/Result.js +41 -0
  375. package/dist/Result.js.map +1 -1
  376. package/dist/Runtime.d.ts +9 -0
  377. package/dist/Runtime.d.ts.map +1 -1
  378. package/dist/Runtime.js +7 -0
  379. package/dist/Runtime.js.map +1 -1
  380. package/dist/Schedule.d.ts +57 -0
  381. package/dist/Schedule.d.ts.map +1 -1
  382. package/dist/Schedule.js +32 -0
  383. package/dist/Schedule.js.map +1 -1
  384. package/dist/Scheduler.d.ts +7 -0
  385. package/dist/Scheduler.d.ts.map +1 -1
  386. package/dist/Scheduler.js +5 -0
  387. package/dist/Scheduler.js.map +1 -1
  388. package/dist/Schema.d.ts +496 -1
  389. package/dist/Schema.d.ts.map +1 -1
  390. package/dist/Schema.js +280 -1
  391. package/dist/Schema.js.map +1 -1
  392. package/dist/SchemaAST.d.ts +107 -0
  393. package/dist/SchemaAST.d.ts.map +1 -1
  394. package/dist/SchemaAST.js +81 -1
  395. package/dist/SchemaAST.js.map +1 -1
  396. package/dist/SchemaGetter.d.ts +69 -2
  397. package/dist/SchemaGetter.d.ts.map +1 -1
  398. package/dist/SchemaGetter.js +63 -4
  399. package/dist/SchemaGetter.js.map +1 -1
  400. package/dist/SchemaIssue.d.ts +33 -0
  401. package/dist/SchemaIssue.d.ts.map +1 -1
  402. package/dist/SchemaIssue.js +18 -0
  403. package/dist/SchemaIssue.js.map +1 -1
  404. package/dist/SchemaParser.d.ts +25 -0
  405. package/dist/SchemaParser.d.ts.map +1 -1
  406. package/dist/SchemaParser.js +26 -0
  407. package/dist/SchemaParser.js.map +1 -1
  408. package/dist/SchemaRepresentation.d.ts +147 -0
  409. package/dist/SchemaRepresentation.d.ts.map +1 -1
  410. package/dist/SchemaRepresentation.js +99 -0
  411. package/dist/SchemaRepresentation.js.map +1 -1
  412. package/dist/SchemaTransformation.d.ts +53 -0
  413. package/dist/SchemaTransformation.d.ts.map +1 -1
  414. package/dist/SchemaTransformation.js +46 -0
  415. package/dist/SchemaTransformation.js.map +1 -1
  416. package/dist/Scope.d.ts +19 -0
  417. package/dist/Scope.d.ts.map +1 -1
  418. package/dist/Scope.js +12 -0
  419. package/dist/Scope.js.map +1 -1
  420. package/dist/ScopedCache.d.ts +34 -0
  421. package/dist/ScopedCache.d.ts.map +1 -1
  422. package/dist/ScopedCache.js +26 -3
  423. package/dist/ScopedCache.js.map +1 -1
  424. package/dist/ScopedRef.d.ts +9 -0
  425. package/dist/ScopedRef.d.ts.map +1 -1
  426. package/dist/ScopedRef.js +6 -0
  427. package/dist/ScopedRef.js.map +1 -1
  428. package/dist/Semaphore.d.ts +26 -0
  429. package/dist/Semaphore.d.ts.map +1 -1
  430. package/dist/Semaphore.js +10 -0
  431. package/dist/Semaphore.js.map +1 -1
  432. package/dist/Sink.d.ts +125 -1
  433. package/dist/Sink.d.ts.map +1 -1
  434. package/dist/Sink.js +75 -1
  435. package/dist/Sink.js.map +1 -1
  436. package/dist/StandardSchema.d.ts +1 -0
  437. package/dist/StandardSchema.d.ts.map +1 -1
  438. package/dist/StandardSchema.js +1 -0
  439. package/dist/Stdio.d.ts +7 -0
  440. package/dist/Stdio.d.ts.map +1 -1
  441. package/dist/Stdio.js +5 -0
  442. package/dist/Stdio.js.map +1 -1
  443. package/dist/Stream.d.ts +558 -0
  444. package/dist/Stream.d.ts.map +1 -1
  445. package/dist/Stream.js +261 -13
  446. package/dist/Stream.js.map +1 -1
  447. package/dist/String.d.ts +87 -0
  448. package/dist/String.d.ts.map +1 -1
  449. package/dist/String.js +61 -0
  450. package/dist/String.js.map +1 -1
  451. package/dist/Struct.d.ts +46 -0
  452. package/dist/Struct.d.ts.map +1 -1
  453. package/dist/Struct.js +19 -0
  454. package/dist/Struct.js.map +1 -1
  455. package/dist/SubscriptionRef.d.ts +65 -0
  456. package/dist/SubscriptionRef.d.ts.map +1 -1
  457. package/dist/SubscriptionRef.js +25 -0
  458. package/dist/SubscriptionRef.js.map +1 -1
  459. package/dist/Symbol.d.ts +2 -0
  460. package/dist/Symbol.d.ts.map +1 -1
  461. package/dist/Symbol.js +2 -0
  462. package/dist/Symbol.js.map +1 -1
  463. package/dist/SynchronizedRef.d.ts +63 -0
  464. package/dist/SynchronizedRef.d.ts.map +1 -1
  465. package/dist/SynchronizedRef.js +24 -0
  466. package/dist/SynchronizedRef.js.map +1 -1
  467. package/dist/Take.d.ts +3 -0
  468. package/dist/Take.d.ts.map +1 -1
  469. package/dist/Take.js +1 -0
  470. package/dist/Take.js.map +1 -1
  471. package/dist/Terminal.d.ts +8 -0
  472. package/dist/Terminal.d.ts.map +1 -1
  473. package/dist/Terminal.js +4 -0
  474. package/dist/Terminal.js.map +1 -1
  475. package/dist/Tracer.d.ts +23 -0
  476. package/dist/Tracer.d.ts.map +1 -1
  477. package/dist/Tracer.js +12 -0
  478. package/dist/Tracer.js.map +1 -1
  479. package/dist/Trie.d.ts +68 -0
  480. package/dist/Trie.d.ts.map +1 -1
  481. package/dist/Trie.js +28 -0
  482. package/dist/Trie.js.map +1 -1
  483. package/dist/Tuple.d.ts +38 -0
  484. package/dist/Tuple.d.ts.map +1 -1
  485. package/dist/Tuple.js +18 -0
  486. package/dist/Tuple.js.map +1 -1
  487. package/dist/TxChunk.d.ts +52 -0
  488. package/dist/TxChunk.d.ts.map +1 -1
  489. package/dist/TxChunk.js +23 -0
  490. package/dist/TxChunk.js.map +1 -1
  491. package/dist/TxDeferred.d.ts +15 -0
  492. package/dist/TxDeferred.d.ts.map +1 -1
  493. package/dist/TxDeferred.js +8 -0
  494. package/dist/TxDeferred.js.map +1 -1
  495. package/dist/TxHashMap.d.ts +83 -0
  496. package/dist/TxHashMap.d.ts.map +1 -1
  497. package/dist/TxHashMap.js +52 -7
  498. package/dist/TxHashMap.js.map +1 -1
  499. package/dist/TxHashSet.d.ts +51 -0
  500. package/dist/TxHashSet.d.ts.map +1 -1
  501. package/dist/TxHashSet.js +29 -4
  502. package/dist/TxHashSet.js.map +1 -1
  503. package/dist/TxPriorityQueue.d.ts +30 -0
  504. package/dist/TxPriorityQueue.d.ts.map +1 -1
  505. package/dist/TxPriorityQueue.js +22 -1
  506. package/dist/TxPriorityQueue.js.map +1 -1
  507. package/dist/TxPubSub.d.ts +25 -0
  508. package/dist/TxPubSub.d.ts.map +1 -1
  509. package/dist/TxPubSub.js +19 -0
  510. package/dist/TxPubSub.js.map +1 -1
  511. package/dist/TxQueue.d.ts +51 -0
  512. package/dist/TxQueue.d.ts.map +1 -1
  513. package/dist/TxQueue.js +30 -0
  514. package/dist/TxQueue.js.map +1 -1
  515. package/dist/TxReentrantLock.d.ts +24 -0
  516. package/dist/TxReentrantLock.d.ts.map +1 -1
  517. package/dist/TxReentrantLock.js +32 -18
  518. package/dist/TxReentrantLock.js.map +1 -1
  519. package/dist/TxRef.d.ts +14 -0
  520. package/dist/TxRef.d.ts.map +1 -1
  521. package/dist/TxRef.js +7 -0
  522. package/dist/TxRef.js.map +1 -1
  523. package/dist/TxSemaphore.d.ts +25 -0
  524. package/dist/TxSemaphore.d.ts.map +1 -1
  525. package/dist/TxSemaphore.js +29 -13
  526. package/dist/TxSemaphore.js.map +1 -1
  527. package/dist/TxSubscriptionRef.d.ts +25 -0
  528. package/dist/TxSubscriptionRef.d.ts.map +1 -1
  529. package/dist/TxSubscriptionRef.js +12 -0
  530. package/dist/TxSubscriptionRef.js.map +1 -1
  531. package/dist/Types.d.ts +36 -0
  532. package/dist/Types.d.ts.map +1 -1
  533. package/dist/Types.js +1 -0
  534. package/dist/UndefinedOr.d.ts +15 -0
  535. package/dist/UndefinedOr.d.ts.map +1 -1
  536. package/dist/UndefinedOr.js +9 -0
  537. package/dist/UndefinedOr.js.map +1 -1
  538. package/dist/Unify.d.ts +15 -0
  539. package/dist/Unify.d.ts.map +1 -1
  540. package/dist/Unify.js +2 -0
  541. package/dist/Unify.js.map +1 -1
  542. package/dist/Utils.d.ts +4 -0
  543. package/dist/Utils.d.ts.map +1 -1
  544. package/dist/Utils.js +1 -0
  545. package/dist/Utils.js.map +1 -1
  546. package/dist/Version.d.ts +26 -0
  547. package/dist/Version.d.ts.map +1 -0
  548. package/dist/Version.js +36 -0
  549. package/dist/Version.js.map +1 -0
  550. package/dist/ai/Chat.js +1 -1
  551. package/dist/ai/Chat.js.map +1 -1
  552. package/dist/ai/DecisionModel.d.ts +22 -0
  553. package/dist/ai/DecisionModel.d.ts.map +1 -1
  554. package/dist/ai/DecisionModel.js +22 -4
  555. package/dist/ai/DecisionModel.js.map +1 -1
  556. package/dist/ai/LanguageModel.d.ts.map +1 -1
  557. package/dist/ai/LanguageModel.js +14 -13
  558. package/dist/ai/LanguageModel.js.map +1 -1
  559. package/dist/ai/McpServer.d.ts +32 -11
  560. package/dist/ai/McpServer.d.ts.map +1 -1
  561. package/dist/ai/McpServer.js +213 -169
  562. package/dist/ai/McpServer.js.map +1 -1
  563. package/dist/ai/Telemetry.d.ts +49 -41
  564. package/dist/ai/Telemetry.d.ts.map +1 -1
  565. package/dist/ai/Telemetry.js +6 -8
  566. package/dist/ai/Telemetry.js.map +1 -1
  567. package/dist/ai/internal/mcpRuntime.js +79 -46
  568. package/dist/ai/internal/mcpRuntime.js.map +1 -1
  569. package/dist/ai/internal/mcpStatefulRuntime.js +1 -0
  570. package/dist/ai/internal/mcpStatefulRuntime.js.map +1 -1
  571. package/dist/cluster/K8sHttpClient.d.ts.map +1 -1
  572. package/dist/cluster/K8sHttpClient.js +5 -2
  573. package/dist/cluster/K8sHttpClient.js.map +1 -1
  574. package/dist/encoding/Base64.d.ts +4 -0
  575. package/dist/encoding/Base64.d.ts.map +1 -1
  576. package/dist/encoding/Base64.js +4 -0
  577. package/dist/encoding/Base64.js.map +1 -1
  578. package/dist/encoding/Base64Url.d.ts +4 -0
  579. package/dist/encoding/Base64Url.d.ts.map +1 -1
  580. package/dist/encoding/Base64Url.js +4 -0
  581. package/dist/encoding/Base64Url.js.map +1 -1
  582. package/dist/encoding/EncodingError.d.ts +4 -0
  583. package/dist/encoding/EncodingError.d.ts.map +1 -1
  584. package/dist/encoding/EncodingError.js +4 -0
  585. package/dist/encoding/EncodingError.js.map +1 -1
  586. package/dist/encoding/Hex.d.ts +5 -0
  587. package/dist/encoding/Hex.d.ts.map +1 -1
  588. package/dist/encoding/Hex.js +5 -0
  589. package/dist/encoding/Hex.js.map +1 -1
  590. package/dist/encoding/Toml.js +2 -2
  591. package/dist/encoding/Toml.js.map +1 -1
  592. package/dist/encoding/Yaml.d.ts.map +1 -1
  593. package/dist/encoding/Yaml.js +6 -4
  594. package/dist/encoding/Yaml.js.map +1 -1
  595. package/dist/encoding/index.d.ts +4 -0
  596. package/dist/encoding/index.d.ts.map +1 -1
  597. package/dist/encoding/index.js +4 -0
  598. package/dist/encoding/index.js.map +1 -1
  599. package/dist/eventlog/SqlEventJournal.js +8 -4
  600. package/dist/eventlog/SqlEventJournal.js.map +1 -1
  601. package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts +27 -10
  602. package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  603. package/dist/eventlog/SqlEventLogServerUnencrypted.js +49 -7
  604. package/dist/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  605. package/dist/http/Headers.d.ts +3 -1
  606. package/dist/http/Headers.d.ts.map +1 -1
  607. package/dist/http/Headers.js +4 -2
  608. package/dist/http/Headers.js.map +1 -1
  609. package/dist/http/HttpClient.d.ts +9 -0
  610. package/dist/http/HttpClient.d.ts.map +1 -1
  611. package/dist/http/HttpClient.js +40 -21
  612. package/dist/http/HttpClient.js.map +1 -1
  613. package/dist/http/HttpClientResponse.js +3 -1
  614. package/dist/http/HttpClientResponse.js.map +1 -1
  615. package/dist/http/HttpEffect.d.ts +3 -0
  616. package/dist/http/HttpEffect.d.ts.map +1 -1
  617. package/dist/http/HttpEffect.js +5 -2
  618. package/dist/http/HttpEffect.js.map +1 -1
  619. package/dist/http/HttpMiddleware.d.ts +17 -0
  620. package/dist/http/HttpMiddleware.d.ts.map +1 -1
  621. package/dist/http/HttpMiddleware.js +56 -39
  622. package/dist/http/HttpMiddleware.js.map +1 -1
  623. package/dist/http/HttpServer.d.ts +1 -1
  624. package/dist/http/HttpServer.d.ts.map +1 -1
  625. package/dist/http/internal/tracing.d.ts +2 -0
  626. package/dist/http/internal/tracing.d.ts.map +1 -0
  627. package/dist/http/internal/tracing.js +37 -0
  628. package/dist/http/internal/tracing.js.map +1 -0
  629. package/dist/http-api/HttpApiBuilder.js +2 -1
  630. package/dist/http-api/HttpApiBuilder.js.map +1 -1
  631. package/dist/http-api/HttpApiClient.d.ts +12 -3
  632. package/dist/http-api/HttpApiClient.d.ts.map +1 -1
  633. package/dist/http-api/HttpApiClient.js.map +1 -1
  634. package/dist/http-api/HttpApiError.d.ts +4 -3
  635. package/dist/http-api/HttpApiError.d.ts.map +1 -1
  636. package/dist/http-api/HttpApiError.js +7 -4
  637. package/dist/http-api/HttpApiError.js.map +1 -1
  638. package/dist/http-api/HttpApiSecurity.d.ts +8 -8
  639. package/dist/http-api/HttpApiSecurity.js +8 -8
  640. package/dist/index.d.ts +155 -0
  641. package/dist/index.d.ts.map +1 -1
  642. package/dist/index.js +155 -0
  643. package/dist/index.js.map +1 -1
  644. package/dist/internal/arbitrary/array.js +3 -3
  645. package/dist/internal/arbitrary/array.js.map +1 -1
  646. package/dist/internal/arbitrary/model.js +26 -11
  647. package/dist/internal/arbitrary/model.js.map +1 -1
  648. package/dist/internal/arbitrary/runner.js +8 -8
  649. package/dist/internal/arbitrary/runner.js.map +1 -1
  650. package/dist/internal/arbitrary/schema.js +4 -5
  651. package/dist/internal/arbitrary/schema.js.map +1 -1
  652. package/dist/internal/effect.js +41 -39
  653. package/dist/internal/effect.js.map +1 -1
  654. package/dist/internal/schedule.js +7 -5
  655. package/dist/internal/schedule.js.map +1 -1
  656. package/dist/internal/schema/standardSchema.js +2 -2
  657. package/dist/internal/schema/standardSchema.js.map +1 -1
  658. package/dist/internal/version.d.ts +2 -0
  659. package/dist/internal/version.d.ts.map +1 -0
  660. package/dist/internal/version.js +3 -0
  661. package/dist/internal/version.js.map +1 -0
  662. package/dist/observability/OtlpExporter.d.ts.map +1 -1
  663. package/dist/observability/OtlpExporter.js +5 -6
  664. package/dist/observability/OtlpExporter.js.map +1 -1
  665. package/dist/observability/OtlpLogger.d.ts.map +1 -1
  666. package/dist/observability/OtlpLogger.js +23 -27
  667. package/dist/observability/OtlpLogger.js.map +1 -1
  668. package/dist/observability/OtlpMetrics.d.ts +5 -3
  669. package/dist/observability/OtlpMetrics.d.ts.map +1 -1
  670. package/dist/observability/OtlpMetrics.js +21 -94
  671. package/dist/observability/OtlpMetrics.js.map +1 -1
  672. package/dist/observability/OtlpResource.d.ts +4 -3
  673. package/dist/observability/OtlpResource.d.ts.map +1 -1
  674. package/dist/observability/OtlpResource.js +20 -23
  675. package/dist/observability/OtlpResource.js.map +1 -1
  676. package/dist/observability/OtlpTracer.d.ts +1 -0
  677. package/dist/observability/OtlpTracer.d.ts.map +1 -1
  678. package/dist/observability/OtlpTracer.js +32 -36
  679. package/dist/observability/OtlpTracer.js.map +1 -1
  680. package/dist/observability/internal/otlpProtobuf.js +32 -1
  681. package/dist/observability/internal/otlpProtobuf.js.map +1 -1
  682. package/dist/reactivity/AsyncResult.d.ts +1 -1
  683. package/dist/reactivity/Atom.d.ts +5 -5
  684. package/dist/reactivity/Atom.d.ts.map +1 -1
  685. package/dist/reactivity/Atom.js +9 -5
  686. package/dist/reactivity/Atom.js.map +1 -1
  687. package/dist/reactivity/AtomHttpApi.d.ts +2 -2
  688. package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
  689. package/dist/reactivity/AtomRegistry.d.ts +8 -0
  690. package/dist/reactivity/AtomRegistry.d.ts.map +1 -1
  691. package/dist/reactivity/AtomRegistry.js.map +1 -1
  692. package/dist/rpc/RpcClient.d.ts +21 -3
  693. package/dist/rpc/RpcClient.d.ts.map +1 -1
  694. package/dist/rpc/RpcClient.js +38 -20
  695. package/dist/rpc/RpcClient.js.map +1 -1
  696. package/dist/rpc/RpcServer.d.ts.map +1 -1
  697. package/dist/rpc/RpcServer.js +18 -21
  698. package/dist/rpc/RpcServer.js.map +1 -1
  699. package/dist/rpc/internal/tracing.d.ts +2 -0
  700. package/dist/rpc/internal/tracing.d.ts.map +1 -0
  701. package/dist/rpc/internal/tracing.js +18 -0
  702. package/dist/rpc/internal/tracing.js.map +1 -0
  703. package/dist/schema/SchemaCompiler/runtime.js +9 -1
  704. package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
  705. package/dist/sql/SqlClient.js +4 -4
  706. package/dist/sql/SqlClient.js.map +1 -1
  707. package/dist/sql/Statement.d.ts +21 -1
  708. package/dist/sql/Statement.d.ts.map +1 -1
  709. package/dist/sql/Statement.js +55 -7
  710. package/dist/sql/Statement.js.map +1 -1
  711. package/dist/testing/TestClock.d.ts +8 -0
  712. package/dist/testing/TestClock.d.ts.map +1 -1
  713. package/dist/testing/TestClock.js +7 -0
  714. package/dist/testing/TestClock.js.map +1 -1
  715. package/dist/testing/TestConsole.d.ts +7 -0
  716. package/dist/testing/TestConsole.d.ts.map +1 -1
  717. package/dist/testing/TestConsole.js +6 -0
  718. package/dist/testing/TestConsole.js.map +1 -1
  719. package/dist/testing/index.d.ts +3 -0
  720. package/dist/testing/index.d.ts.map +1 -1
  721. package/dist/testing/index.js +3 -0
  722. package/dist/testing/index.js.map +1 -1
  723. package/package.json +3 -3
  724. package/src/Array.ts +351 -3
  725. package/src/BigDecimal.ts +88 -0
  726. package/src/BigInt.ts +68 -0
  727. package/src/Boolean.ts +34 -0
  728. package/src/Brand.ts +10 -0
  729. package/src/ByteSize.ts +87 -0
  730. package/src/Cache.ts +50 -8
  731. package/src/Cause.ts +82 -0
  732. package/src/Channel.ts +368 -18
  733. package/src/ChannelSchema.ts +13 -0
  734. package/src/Chunk.ts +193 -0
  735. package/src/Clock.ts +7 -0
  736. package/src/Combiner.ts +10 -0
  737. package/src/Config.ts +82 -8
  738. package/src/ConfigProvider.ts +28 -0
  739. package/src/Console.ts +26 -0
  740. package/src/Context.ts +50 -0
  741. package/src/Cron.ts +32 -1
  742. package/src/Crypto.ts +5 -0
  743. package/src/Data.ts +13 -0
  744. package/src/DateTime.ts +171 -0
  745. package/src/Deferred.ts +51 -0
  746. package/src/Differ.ts +2 -0
  747. package/src/Duration.ts +90 -0
  748. package/src/Effect.ts +539 -5
  749. package/src/Effectable.ts +4 -0
  750. package/src/Equal.ts +12 -1
  751. package/src/Equivalence.ts +22 -0
  752. package/src/ErrorReporter.ts +36 -0
  753. package/src/ExecutionPlan.ts +58 -14
  754. package/src/Exit.ts +40 -0
  755. package/src/Fiber.ts +20 -0
  756. package/src/FiberHandle.ts +29 -4
  757. package/src/FiberMap.ts +38 -0
  758. package/src/FiberSet.ts +21 -0
  759. package/src/FileSystem.ts +16 -0
  760. package/src/Filter.ts +55 -0
  761. package/src/Formatter.ts +42 -1
  762. package/src/Function.ts +30 -0
  763. package/src/Graph.ts +317 -36
  764. package/src/HKT.ts +5 -0
  765. package/src/Hash.ts +15 -0
  766. package/src/HashMap.ts +91 -0
  767. package/src/HashRing.ts +18 -0
  768. package/src/HashSet.ts +53 -0
  769. package/src/Inspectable.ts +8 -0
  770. package/src/Iterable.ts +127 -0
  771. package/src/JsonPatch.ts +5 -0
  772. package/src/JsonPointer.ts +5 -0
  773. package/src/JsonSchema.ts +17 -0
  774. package/src/Latch.ts +14 -0
  775. package/src/Layer.ts +101 -1
  776. package/src/LayerMap.ts +7 -0
  777. package/src/LayerRef.ts +5 -0
  778. package/src/LogLevel.ts +20 -0
  779. package/src/Logger.ts +41 -5
  780. package/src/ManagedRuntime.ts +12 -1
  781. package/src/Match.ts +52 -0
  782. package/src/Metric.ts +69 -0
  783. package/src/MutableHashMap.ts +44 -0
  784. package/src/MutableHashSet.ts +17 -0
  785. package/src/MutableList.ts +21 -0
  786. package/src/MutableRef.ts +32 -0
  787. package/src/Newtype.ts +9 -0
  788. package/src/NonEmptyIterable.ts +4 -0
  789. package/src/Number.ts +61 -0
  790. package/src/Optic.ts +57 -0
  791. package/src/Option.ts +134 -0
  792. package/src/Order.ts +30 -0
  793. package/src/Ordering.ts +7 -0
  794. package/src/PartitionedSemaphore.ts +61 -22
  795. package/src/Path.ts +6 -0
  796. package/src/Pipeable.ts +7 -0
  797. package/src/PlatformError.ts +8 -0
  798. package/src/Pool.ts +20 -1
  799. package/src/Predicate.ts +85 -0
  800. package/src/PrimaryKey.ts +5 -0
  801. package/src/PubSub.ts +90 -9
  802. package/src/Pull.ts +20 -0
  803. package/src/Queue.ts +80 -10
  804. package/src/Random.ts +13 -0
  805. package/src/RcMap.ts +23 -0
  806. package/src/RcRef.ts +6 -0
  807. package/src/Record.ts +100 -0
  808. package/src/Redactable.ts +6 -0
  809. package/src/Redacted.ts +8 -0
  810. package/src/Reducer.ts +4 -0
  811. package/src/Ref.ts +42 -0
  812. package/src/References.ts +21 -0
  813. package/src/RegExp.ts +4 -0
  814. package/src/Request.ts +32 -0
  815. package/src/RequestResolver.ts +59 -10
  816. package/src/Resource.ts +7 -0
  817. package/src/Result.ts +93 -0
  818. package/src/Runtime.ts +10 -0
  819. package/src/Schedule.ts +61 -0
  820. package/src/Scheduler.ts +7 -0
  821. package/src/Schema.ts +499 -4
  822. package/src/SchemaAST.ts +115 -1
  823. package/src/SchemaGetter.ts +80 -4
  824. package/src/SchemaIssue.ts +34 -0
  825. package/src/SchemaParser.ts +26 -0
  826. package/src/SchemaRepresentation.ts +148 -0
  827. package/src/SchemaTransformation.ts +53 -0
  828. package/src/Scope.ts +19 -0
  829. package/src/ScopedCache.ts +55 -3
  830. package/src/ScopedRef.ts +9 -0
  831. package/src/Semaphore.ts +26 -0
  832. package/src/Sink.ts +126 -2
  833. package/src/StandardSchema.ts +1 -0
  834. package/src/Stdio.ts +7 -0
  835. package/src/Stream.ts +622 -15
  836. package/src/String.ts +87 -0
  837. package/src/Struct.ts +46 -0
  838. package/src/SubscriptionRef.ts +65 -0
  839. package/src/Symbol.ts +2 -0
  840. package/src/SynchronizedRef.ts +63 -0
  841. package/src/Take.ts +3 -0
  842. package/src/Terminal.ts +8 -0
  843. package/src/Tracer.ts +23 -0
  844. package/src/Trie.ts +68 -0
  845. package/src/Tuple.ts +38 -0
  846. package/src/TxChunk.ts +52 -0
  847. package/src/TxDeferred.ts +15 -0
  848. package/src/TxHashMap.ts +97 -6
  849. package/src/TxHashSet.ts +83 -3
  850. package/src/TxPriorityQueue.ts +34 -2
  851. package/src/TxPubSub.ts +26 -0
  852. package/src/TxQueue.ts +51 -0
  853. package/src/TxReentrantLock.ts +53 -36
  854. package/src/TxRef.ts +14 -0
  855. package/src/TxSemaphore.ts +47 -31
  856. package/src/TxSubscriptionRef.ts +25 -0
  857. package/src/Types.ts +36 -0
  858. package/src/UndefinedOr.ts +15 -0
  859. package/src/Unify.ts +15 -0
  860. package/src/Utils.ts +4 -0
  861. package/src/Version.ts +38 -0
  862. package/src/ai/Chat.ts +1 -1
  863. package/src/ai/DecisionModel.ts +42 -1
  864. package/src/ai/LanguageModel.ts +16 -19
  865. package/src/ai/McpServer.ts +107 -36
  866. package/src/ai/Telemetry.ts +62 -58
  867. package/src/ai/internal/mcpRuntime.ts +84 -43
  868. package/src/ai/internal/mcpStatefulRuntime.ts +2 -0
  869. package/src/cluster/K8sHttpClient.ts +12 -2
  870. package/src/encoding/Base64.ts +4 -0
  871. package/src/encoding/Base64Url.ts +4 -0
  872. package/src/encoding/EncodingError.ts +5 -0
  873. package/src/encoding/Hex.ts +5 -0
  874. package/src/encoding/Toml.ts +2 -2
  875. package/src/encoding/Yaml.ts +8 -4
  876. package/src/encoding/index.ts +4 -0
  877. package/src/eventlog/SqlEventJournal.ts +18 -4
  878. package/src/eventlog/SqlEventLogServerUnencrypted.ts +282 -235
  879. package/src/http/Headers.ts +8 -2
  880. package/src/http/HttpClient.ts +44 -27
  881. package/src/http/HttpClientResponse.ts +3 -1
  882. package/src/http/HttpEffect.ts +11 -2
  883. package/src/http/HttpMiddleware.ts +60 -45
  884. package/src/http/HttpServer.ts +1 -1
  885. package/src/http/internal/tracing.ts +52 -0
  886. package/src/http-api/HttpApiBuilder.ts +5 -1
  887. package/src/http-api/HttpApiClient.ts +13 -4
  888. package/src/http-api/HttpApiError.ts +8 -4
  889. package/src/http-api/HttpApiSecurity.ts +8 -8
  890. package/src/index.ts +156 -0
  891. package/src/internal/arbitrary/array.ts +3 -3
  892. package/src/internal/arbitrary/model.ts +37 -14
  893. package/src/internal/arbitrary/runner.ts +7 -7
  894. package/src/internal/arbitrary/schema.ts +4 -3
  895. package/src/internal/effect.ts +47 -45
  896. package/src/internal/schedule.ts +23 -17
  897. package/src/internal/schema/standardSchema.ts +2 -2
  898. package/src/internal/version.ts +2 -0
  899. package/src/observability/OtlpExporter.ts +9 -6
  900. package/src/observability/OtlpLogger.ts +20 -21
  901. package/src/observability/OtlpMetrics.ts +34 -93
  902. package/src/observability/OtlpResource.ts +18 -27
  903. package/src/observability/OtlpTracer.ts +34 -40
  904. package/src/observability/internal/otlpProtobuf.ts +60 -0
  905. package/src/reactivity/AsyncResult.ts +1 -1
  906. package/src/reactivity/Atom.ts +10 -6
  907. package/src/reactivity/AtomHttpApi.ts +2 -4
  908. package/src/reactivity/AtomRegistry.ts +7 -0
  909. package/src/rpc/RpcClient.ts +48 -24
  910. package/src/rpc/RpcServer.ts +26 -24
  911. package/src/rpc/internal/tracing.ts +22 -0
  912. package/src/schema/SchemaCompiler/runtime.ts +4 -1
  913. package/src/sql/SqlClient.ts +4 -4
  914. package/src/sql/Statement.ts +59 -7
  915. package/src/testing/TestClock.ts +9 -0
  916. package/src/testing/TestConsole.ts +8 -0
  917. package/src/testing/index.ts +3 -0
package/src/Channel.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  * higher-level modules instead. This module is useful when implementing stream
8
8
  * operators or specialized streaming workflows.
9
9
  *
10
+ * @stability stable
10
11
  * @since 2.0.0
11
12
  */
12
13
  // @effect-diagnostics returnEffectInGen:off
@@ -50,6 +51,7 @@ import type * as Unify from "./Unify.ts"
50
51
  /**
51
52
  * String literal type used as the unique brand for `Channel` values.
52
53
  *
54
+ * @stability stable
53
55
  * @category type IDs
54
56
  * @since 4.0.0
55
57
  */
@@ -59,6 +61,7 @@ export type TypeId = "~effect/Channel"
59
61
  * Runtime identifier stored on `Channel` values and used by `isChannel` to
60
62
  * recognize them.
61
63
  *
64
+ * @stability stable
62
65
  * @category type IDs
63
66
  * @since 4.0.0
64
67
  */
@@ -77,6 +80,7 @@ export const TypeId: TypeId = "~effect/Channel"
77
80
  * Channel.isChannel("not a channel") // => false
78
81
  * ```
79
82
  *
83
+ * @stability stable
80
84
  * @category guards
81
85
  * @since 3.5.4
82
86
  */
@@ -135,6 +139,7 @@ export const isChannel = (
135
139
  * Effect.runSync(Channel.runCollect(channel)) // => [1]
136
140
  * ```
137
141
  *
142
+ * @stability stable
138
143
  * @category models
139
144
  * @since 2.0.0
140
145
  */
@@ -161,6 +166,7 @@ export interface Channel<
161
166
  * or generic return types that include channels. Users normally do not need to
162
167
  * reference this interface directly.
163
168
  *
169
+ * @stability stable
164
170
  * @category models
165
171
  * @since 2.0.0
166
172
  */
@@ -181,6 +187,7 @@ export interface ChannelUnify<A extends { [Unify.typeSymbol]?: any }> extends Ef
181
187
  * environment type parameters. Users normally do not need to reference this
182
188
  * interface directly.
183
189
  *
190
+ * @stability stable
184
191
  * @category models
185
192
  * @since 2.0.0
186
193
  */
@@ -202,6 +209,7 @@ type TagsWithReason<E> = {
202
209
  * contravariant. This is type-level machinery and is not used directly at
203
210
  * runtime.
204
211
  *
212
+ * @stability stable
205
213
  * @category models
206
214
  * @since 2.0.0
207
215
  */
@@ -226,6 +234,7 @@ export interface Variance<
226
234
  * `_InElem`, `_InErr`, and `_InDone` fields are contravariant. Users normally
227
235
  * do not need to reference this interface directly.
228
236
  *
237
+ * @stability stable
229
238
  * @category models
230
239
  * @since 2.0.0
231
240
  */
@@ -278,6 +287,7 @@ const ChannelProto = {
278
287
  * await Effect.runPromise(Channel.runCollect(channel)) // => []
279
288
  * ```
280
289
  *
290
+ * @stability stable
281
291
  * @category constructors
282
292
  * @since 4.0.0
283
293
  */
@@ -322,6 +332,7 @@ export const fromTransform = <OutElem, OutErr, OutDone, InElem, InErr, InDone, E
322
332
  * await Effect.runPromise(Channel.runCollect(transformedChannel)) // => [2, 4, 6]
323
333
  * ```
324
334
  *
335
+ * @stability stable
325
336
  * @category constructors
326
337
  * @since 4.0.0
327
338
  */
@@ -374,6 +385,7 @@ export const transformPull = <
374
385
  * await Effect.runPromise(Channel.runCollect(channel)) // => [42]
375
386
  * ```
376
387
  *
388
+ * @stability stable
377
389
  * @category constructors
378
390
  * @since 4.0.0
379
391
  */
@@ -394,6 +406,7 @@ export const fromPull = <OutElem, OutErr, OutDone, EX, EnvX, Env>(
394
406
  * when the channel completes.
395
407
  *
396
408
  * @see {@link fromTransform} for a simpler transformation without a forked scope
409
+ * @stability stable
397
410
  * @category constructors
398
411
  * @since 4.0.0
399
412
  */
@@ -431,6 +444,7 @@ export const fromTransformBracket = <OutElem, OutErr, OutDone, InElem, InErr, In
431
444
  * Effect.runSync(Channel.runCollect(channel)) // => [42]
432
445
  * ```
433
446
  *
447
+ * @stability stable
434
448
  * @category destructors
435
449
  * @since 4.0.0
436
450
  */
@@ -452,6 +466,7 @@ export const toTransform = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env
452
466
  * Channel.DefaultChunkSize // => 4096
453
467
  * ```
454
468
  *
469
+ * @stability stable
455
470
  * @category constants
456
471
  * @since 4.0.0
457
472
  */
@@ -470,7 +485,12 @@ const asyncQueue = <A, E = never, R = never>(
470
485
  strategy: options?.strategy
471
486
  }).pipe(
472
487
  Effect.tap((queue) => Scope.addFinalizer(scope, Queue.shutdown(queue))),
473
- Effect.tap((queue) => Effect.forkIn(Scope.provide(f(queue), scope), scope))
488
+ Effect.tap((queue) =>
489
+ Scope.provide(f(queue), scope).pipe(
490
+ Effect.catchCause((cause) => Queue.failCause(queue, cause)),
491
+ Effect.forkIn(scope)
492
+ )
493
+ )
474
494
  )
475
495
 
476
496
  /**
@@ -492,6 +512,7 @@ const asyncQueue = <A, E = never, R = never>(
492
512
  * await Effect.runPromise(Channel.runCollect(channel)) // => [1, 2, 3]
493
513
  * ```
494
514
  *
515
+ * @stability stable
495
516
  * @category constructors
496
517
  * @since 4.0.0
497
518
  */
@@ -520,6 +541,7 @@ export const callback = <A, E = never, R = never>(
520
541
  * await Effect.runPromise(Channel.runCollect(channel)) // => [[1, 2]]
521
542
  * ```
522
543
  *
544
+ * @stability stable
523
545
  * @category constructors
524
546
  * @since 4.0.0
525
547
  */
@@ -544,6 +566,7 @@ export const callbackArray = <A, E = never, R = never>(
544
566
  * Effect.runSync(Channel.runCollect(channel)) // => [42]
545
567
  * ```
546
568
  *
569
+ * @stability stable
547
570
  * @category constructors
548
571
  * @since 2.0.0
549
572
  */
@@ -576,6 +599,7 @@ export const suspend = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
576
599
  * const observed = [await Effect.runPromise(Channel.runCollect(channel)), released] // => [["RESOURCE"], ["resource"]]
577
600
  * ```
578
601
  *
602
+ * @stability stable
579
603
  * @category constructors
580
604
  * @since 2.0.0
581
605
  */
@@ -591,8 +615,10 @@ export const acquireUseRelease = <A, E, R, OutElem, OutErr, OutDone, InElem, InE
591
615
  Option.isSome(option)
592
616
  ? release(option.value, exit as any)
593
617
  : Effect.void)
594
- const value = yield* Effect.uninterruptible(acquire)
595
- option = Option.some(value)
618
+ const value = yield* Effect.uninterruptible(Effect.map(acquire, (value) => {
619
+ option = Option.some(value)
620
+ return value
621
+ }))
596
622
  return yield* toTransform(use(value))(upstream, scope)
597
623
  })
598
624
  )
@@ -620,6 +646,7 @@ export const acquireUseRelease = <A, E, R, OutElem, OutErr, OutDone, InElem, InE
620
646
  * const observed = [await Effect.runPromise(Channel.runCollect(channel)), released] // => [["resource"], ["resource"]]
621
647
  * ```
622
648
  *
649
+ * @stability stable
623
650
  * @category constructors
624
651
  * @since 4.0.0
625
652
  */
@@ -647,6 +674,7 @@ export const acquireRelease: {
647
674
  * const observed = [await Effect.runPromise(Channel.runCollect(channel)), released] // => [["resource"], ["resource"]]
648
675
  * ```
649
676
  *
677
+ * @stability stable
650
678
  * @category constructors
651
679
  * @since 4.0.0
652
680
  */
@@ -674,6 +702,7 @@ export const acquireRelease: {
674
702
  * const observed = [await Effect.runPromise(Channel.runCollect(channel)), released] // => [["resource"], ["resource"]]
675
703
  * ```
676
704
  *
705
+ * @stability stable
677
706
  * @category constructors
678
707
  * @since 4.0.0
679
708
  */
@@ -703,6 +732,7 @@ export const acquireRelease: {
703
732
  * Effect.runSync(Channel.runCollect(channel)) // => [1, 2, 3, 4, 5]
704
733
  * ```
705
734
  *
735
+ * @stability stable
706
736
  * @category constructors
707
737
  * @since 4.0.0
708
738
  */
@@ -729,6 +759,7 @@ export const fromIterator = <A, L>(iterator: LazyArg<Iterator<A, L>>): Channel<A
729
759
  * Effect.runSync(Channel.runCollect(channel)) // => [1, 2, 3, 4, 5]
730
760
  * ```
731
761
  *
762
+ * @stability stable
732
763
  * @category constructors
733
764
  * @since 4.0.0
734
765
  */
@@ -751,6 +782,7 @@ export const fromArray = <A>(array: ReadonlyArray<A>): Channel<A> =>
751
782
  * Effect.runSync(Channel.runCollect(channel)) // => [1, 2, 3]
752
783
  * ```
753
784
  *
785
+ * @stability stable
754
786
  * @category constructors
755
787
  * @since 4.0.0
756
788
  */
@@ -804,6 +836,7 @@ export const fromChunk = <A>(chunk: Chunk.Chunk<A>): Channel<A> => fromArray(Chu
804
836
  * Effect.runSync(Channel.runCollect(fibChannel)) // => [[0, 1, 1], [2, 3]]
805
837
  * ```
806
838
  *
839
+ * @stability stable
807
840
  * @category constructors
808
841
  * @since 4.0.0
809
842
  */
@@ -849,6 +882,7 @@ export const fromIteratorArray = <A, L>(
849
882
  * Effect.runSync(Channel.runCollect(channel)) // => [1, 2, 3]
850
883
  * ```
851
884
  *
885
+ * @stability stable
852
886
  * @category constructors
853
887
  * @since 4.0.0
854
888
  */
@@ -873,6 +907,7 @@ export const fromIterable = <A, L>(iterable: Iterable<A, L>): Channel<A, never,
873
907
  * Effect.runSync(Channel.runCollect(channel)) // => [[1, 2, 3, 4], [5]]
874
908
  * ```
875
909
  *
910
+ * @stability stable
876
911
  * @category constructors
877
912
  * @since 4.0.0
878
913
  */
@@ -893,6 +928,7 @@ export const fromIterableArray = <A, L>(
893
928
  * Effect.runSync(Channel.runCollect(channel)) // => [42]
894
929
  * ```
895
930
  *
931
+ * @stability stable
896
932
  * @category constructors
897
933
  * @since 2.0.0
898
934
  */
@@ -910,6 +946,7 @@ export const succeed = <A>(value: A): Channel<A> => fromEffect(Effect.succeed(va
910
946
  * Effect.runSync(Channel.runCollect(channel)) // => []
911
947
  * ```
912
948
  *
949
+ * @stability stable
913
950
  * @category constructors
914
951
  * @since 4.0.0
915
952
  */
@@ -918,6 +955,7 @@ export const end = <A>(value: A): Channel<never, never, A> => fromPull(Effect.su
918
955
  /**
919
956
  * Creates a `Channel` that immediately ends with the lazily evaluated value.
920
957
  *
958
+ * @stability stable
921
959
  * @category constructors
922
960
  * @since 4.0.0
923
961
  */
@@ -941,6 +979,7 @@ export const endSync = <A>(evaluate: LazyArg<A>): Channel<never, never, A> =>
941
979
  * Effect.runSync(Channel.runCollect(channel)) // => ["request-1"]
942
980
  * ```
943
981
  *
982
+ * @stability stable
944
983
  * @category constructors
945
984
  * @since 2.0.0
946
985
  */
@@ -968,6 +1007,7 @@ export const sync = <A>(evaluate: LazyArg<A>): Channel<A> => fromEffect(Effect.s
968
1007
  * Effect.runSync(Channel.runCollect(conditionalChannel(true))) // => ["data"]
969
1008
  * ```
970
1009
  *
1010
+ * @stability stable
971
1011
  * @category constructors
972
1012
  * @since 4.0.0
973
1013
  */
@@ -997,6 +1037,7 @@ export const empty: Channel<never> = fromPull(Effect.succeed(Cause.done()))
997
1037
  * Channel.isChannel(conditionalChannel(false)) // => true
998
1038
  * ```
999
1039
  *
1040
+ * @stability stable
1000
1041
  * @category constructors
1001
1042
  * @since 2.0.0
1002
1043
  */
@@ -1014,6 +1055,7 @@ export const never: Channel<never, never, never> = fromPull(Effect.succeed(Effec
1014
1055
  * Effect.runSync(Effect.exit(Channel.runCollect(failedChannel))) // => Exit.fail("Something went wrong")
1015
1056
  * ```
1016
1057
  *
1058
+ * @stability stable
1017
1059
  * @category constructors
1018
1060
  * @since 2.0.0
1019
1061
  */
@@ -1044,6 +1086,7 @@ export const fail = <E>(error: E): Channel<never, E, never> => fromPull(Effect.s
1044
1086
  * ] // => [Exit.fail("Error after attempt 1"), 1]
1045
1087
  * ```
1046
1088
  *
1089
+ * @stability stable
1047
1090
  * @category constructors
1048
1091
  * @since 2.0.0
1049
1092
  */
@@ -1067,6 +1110,7 @@ export const failSync = <E>(evaluate: LazyArg<E>): Channel<never, E, never> => f
1067
1110
  * Effect.runSync(Effect.exit(Channel.runCollect(failedChannel))) // => Exit.failCause(simpleCause)
1068
1111
  * ```
1069
1112
  *
1113
+ * @stability stable
1070
1114
  * @category constructors
1071
1115
  * @since 2.0.0
1072
1116
  */
@@ -1094,6 +1138,7 @@ export const failCause = <E>(cause: Cause.Cause<E>): Channel<never, E, never> =>
1094
1138
  * ] // => [Exit.fail("Runtime error after attempt 1"), 1]
1095
1139
  * ```
1096
1140
  *
1141
+ * @stability stable
1097
1142
  * @category constructors
1098
1143
  * @since 2.0.0
1099
1144
  */
@@ -1114,6 +1159,7 @@ export const failCauseSync = <E>(
1114
1159
  * Effect.runSync(Effect.exit(Channel.runCollect(diedChannel))) // => Exit.failCause(Cause.die(defect))
1115
1160
  * ```
1116
1161
  *
1162
+ * @stability stable
1117
1163
  * @category constructors
1118
1164
  * @since 4.0.0
1119
1165
  */
@@ -1133,6 +1179,7 @@ export const die = (defect: unknown): Channel<never, never, never> => failCause(
1133
1179
  * Effect.runSync(Channel.runCollect(successChannel)) // => ["Hello from effect!"]
1134
1180
  * ```
1135
1181
  *
1182
+ * @stability stable
1136
1183
  * @category constructors
1137
1184
  * @since 2.0.0
1138
1185
  */
@@ -1158,6 +1205,7 @@ export const fromEffect = <A, E, R>(
1158
1205
  *
1159
1206
  * If the effect fails, the channel fails with the effect's error.
1160
1207
  *
1208
+ * @stability stable
1161
1209
  * @category constructors
1162
1210
  * @since 4.0.0
1163
1211
  */
@@ -1169,6 +1217,7 @@ export const fromEffectDone = <A, E, R>(
1169
1217
  /**
1170
1218
  * Uses an effect and discards its result.
1171
1219
  *
1220
+ * @stability stable
1172
1221
  * @category constructors
1173
1222
  * @since 4.0.0
1174
1223
  */
@@ -1185,6 +1234,7 @@ export const fromEffectDrain = <A, E, R>(
1185
1234
  * `Take` fails the channel. A done `Take` completes the channel with its done
1186
1235
  * value.
1187
1236
  *
1237
+ * @stability stable
1188
1238
  * @category constructors
1189
1239
  * @since 4.0.0
1190
1240
  */
@@ -1211,6 +1261,7 @@ export const fromEffectTake = <A, E, Done, E2, R>(
1211
1261
  * await Effect.runPromise(program) // => ["item1", "item2", "item3"]
1212
1262
  * ```
1213
1263
  *
1264
+ * @stability stable
1214
1265
  * @category constructors
1215
1266
  * @since 2.0.0
1216
1267
  */
@@ -1236,6 +1287,7 @@ export const fromQueue = <A, E>(
1236
1287
  * await Effect.runPromise(program) // => [[1, 2, 3, 4]]
1237
1288
  * ```
1238
1289
  *
1290
+ * @stability stable
1239
1291
  * @category constructors
1240
1292
  * @since 4.0.0
1241
1293
  */
@@ -1247,6 +1299,7 @@ export const fromQueueArray = <A, E>(
1247
1299
  * Creates a channel that forwards upstream input elements, input errors, and
1248
1300
  * the upstream done value unchanged.
1249
1301
  *
1302
+ * @stability stable
1250
1303
  * @category constructors
1251
1304
  * @since 2.0.0
1252
1305
  */
@@ -1296,6 +1349,7 @@ export const identity = <Elem, Err, Done>(): Channel<Elem, Err, Done, Elem, Err,
1296
1349
  * })
1297
1350
  * ```
1298
1351
  *
1352
+ * @stability stable
1299
1353
  * @category constructors
1300
1354
  * @since 4.0.0
1301
1355
  */
@@ -1410,6 +1464,7 @@ export const fromSubscription = <A>(
1410
1464
  * Option.map(result, ({ count, sum, average, min, max }) => ({ count, sum, average, min, max })) // => Option.some({ count: 1, sum: 10, average: 10, min: 10, max: 10 })
1411
1465
  * ```
1412
1466
  *
1467
+ * @stability stable
1413
1468
  * @category constructors
1414
1469
  * @since 4.0.0
1415
1470
  */
@@ -1516,6 +1571,7 @@ export const fromSubscriptionArray = <A>(
1516
1571
  * const result = await Effect.runPromise(event) // => Option.some({ type: "user.created", payload: {}, timestamp: 1, processed: true, processedAt: 2 })
1517
1572
  * ```
1518
1573
  *
1574
+ * @stability stable
1519
1575
  * @category constructors
1520
1576
  * @since 2.0.0
1521
1577
  */
@@ -1658,6 +1714,7 @@ export const fromPubSub = <A>(
1658
1714
  * Option.map(result, (batch) => [batch.batchId, batch.totalEntries, batch.infoCount]) // => Option.some(["1-1", 1, 1])
1659
1715
  * ```
1660
1716
  *
1717
+ * @stability stable
1661
1718
  * @category constructors
1662
1719
  * @since 4.0.0
1663
1720
  */
@@ -1672,6 +1729,7 @@ export const fromPubSubArray = <A>(pubsub: PubSub.PubSub<A>): Channel<Arr.NonEmp
1672
1729
  * Output `Take` values are emitted as non-empty arrays. Failed `Take` values
1673
1730
  * fail the channel. Done `Take` values complete the channel.
1674
1731
  *
1732
+ * @stability stable
1675
1733
  * @category constructors
1676
1734
  * @since 4.0.0
1677
1735
  */
@@ -1683,6 +1741,7 @@ export const fromPubSubTake = <A, E, Done>(
1683
1741
  /**
1684
1742
  * Creates a Channel from a Schedule.
1685
1743
  *
1744
+ * @stability stable
1686
1745
  * @category constructors
1687
1746
  * @since 4.0.0
1688
1747
  */
@@ -1712,6 +1771,7 @@ export const fromSchedule = <O, E, R>(
1712
1771
  * await Effect.runPromise(Channel.runCollect(channel)) // => [[1]]
1713
1772
  * ```
1714
1773
  *
1774
+ * @stability stable
1715
1775
  * @category constructors
1716
1776
  * @since 4.0.0
1717
1777
  */
@@ -1802,6 +1862,7 @@ export const pullIntoWritableStream = <A, IE, E>(options: {
1802
1862
  * written // => [1, 2]
1803
1863
  * ```
1804
1864
  *
1865
+ * @stability stable
1805
1866
  * @category constructors
1806
1867
  * @since 4.0.0
1807
1868
  */
@@ -1841,6 +1902,7 @@ export const fromWritableStream = <IE, E, A>(options: {
1841
1902
  * await Effect.runPromise(program) // => [[2], [4]]
1842
1903
  * ```
1843
1904
  *
1905
+ * @stability stable
1844
1906
  * @category constructors
1845
1907
  * @since 4.0.0
1846
1908
  */
@@ -1924,6 +1986,7 @@ const readableStreamToPullUnsafe = <A, E, E2 = never>(options: {
1924
1986
  * are converted with `onError`. If the channel scope closes early and the
1925
1987
  * iterator has a `return` method, that method is called.
1926
1988
  *
1989
+ * @stability stable
1927
1990
  * @category constructors
1928
1991
  * @since 4.0.0
1929
1992
  */
@@ -1955,6 +2018,7 @@ export const fromAsyncIterable = <A, D, E>(
1955
2018
  * rejected iterator errors are converted with `onError`. If the channel scope
1956
2019
  * closes early and the iterator has a `return` method, that method is called.
1957
2020
  *
2021
+ * @stability stable
1958
2022
  * @category constructors
1959
2023
  * @since 4.0.0
1960
2024
  */
@@ -2000,6 +2064,7 @@ export const fromAsyncIterableArray = <A, D, E>(
2000
2064
  * Effect.runSync(Channel.runCollect(displayChannel)) // => [{ displayName: "User: Alice", isActive: true }, { displayName: "User: Bob", isActive: true }]
2001
2065
  * ```
2002
2066
  *
2067
+ * @stability stable
2003
2068
  * @category sequencing
2004
2069
  * @since 2.0.0
2005
2070
  */
@@ -2041,6 +2106,7 @@ export const map: {
2041
2106
  * Effect.runSync(Channel.runCollect(displayChannel)) // => [{ displayName: "User: Alice", isActive: true }, { displayName: "User: Bob", isActive: true }]
2042
2107
  * ```
2043
2108
  *
2109
+ * @stability stable
2044
2110
  * @category sequencing
2045
2111
  * @since 2.0.0
2046
2112
  */
@@ -2084,6 +2150,7 @@ export const map: {
2084
2150
  * Effect.runSync(Channel.runCollect(displayChannel)) // => [{ displayName: "User: Alice", isActive: true }, { displayName: "User: Bob", isActive: true }]
2085
2151
  * ```
2086
2152
  *
2153
+ * @stability stable
2087
2154
  * @category sequencing
2088
2155
  * @since 2.0.0
2089
2156
  */
@@ -2107,6 +2174,7 @@ export const map: {
2107
2174
  /**
2108
2175
  * Maps the done value of this channel using the specified function.
2109
2176
  *
2177
+ * @stability stable
2110
2178
  * @category sequencing
2111
2179
  * @since 4.0.0
2112
2180
  */
@@ -2114,6 +2182,7 @@ export const mapDone: {
2114
2182
  /**
2115
2183
  * Maps the done value of this channel using the specified function.
2116
2184
  *
2185
+ * @stability stable
2117
2186
  * @category sequencing
2118
2187
  * @since 4.0.0
2119
2188
  */
@@ -2123,6 +2192,7 @@ export const mapDone: {
2123
2192
  /**
2124
2193
  * Maps the done value of this channel using the specified function.
2125
2194
  *
2195
+ * @stability stable
2126
2196
  * @category sequencing
2127
2197
  * @since 4.0.0
2128
2198
  */
@@ -2146,6 +2216,7 @@ export const mapDone: {
2146
2216
  * Use when the terminal done value transformation needs services or can fail,
2147
2217
  * while emitted elements should pass through unchanged.
2148
2218
  *
2219
+ * @stability stable
2149
2220
  * @category sequencing
2150
2221
  * @since 4.0.0
2151
2222
  */
@@ -2158,6 +2229,7 @@ export const mapDoneEffect: {
2158
2229
  * Use when the terminal done value transformation needs services or can fail,
2159
2230
  * while emitted elements should pass through unchanged.
2160
2231
  *
2232
+ * @stability stable
2161
2233
  * @category sequencing
2162
2234
  * @since 4.0.0
2163
2235
  */
@@ -2172,6 +2244,7 @@ export const mapDoneEffect: {
2172
2244
  * Use when the terminal done value transformation needs services or can fail,
2173
2245
  * while emitted elements should pass through unchanged.
2174
2246
  *
2247
+ * @stability stable
2175
2248
  * @category sequencing
2176
2249
  * @since 4.0.0
2177
2250
  */
@@ -2225,6 +2298,7 @@ const concurrencyIsSequential = (
2225
2298
  * await Effect.runPromise(Channel.runCollect(processedChannel)) // => [1, 4, 9, 16, 25]
2226
2299
  * ```
2227
2300
  *
2301
+ * @stability stable
2228
2302
  * @category sequencing
2229
2303
  * @since 2.0.0
2230
2304
  */
@@ -2258,6 +2332,7 @@ export const mapEffect: {
2258
2332
  * await Effect.runPromise(Channel.runCollect(processedChannel)) // => [1, 4, 9, 16, 25]
2259
2333
  * ```
2260
2334
  *
2335
+ * @stability stable
2261
2336
  * @category sequencing
2262
2337
  * @since 2.0.0
2263
2338
  */
@@ -2299,6 +2374,7 @@ export const mapEffect: {
2299
2374
  * await Effect.runPromise(Channel.runCollect(processedChannel)) // => [1, 4, 9, 16, 25]
2300
2375
  * ```
2301
2376
  *
2377
+ * @stability stable
2302
2378
  * @category sequencing
2303
2379
  * @since 2.0.0
2304
2380
  */
@@ -2450,6 +2526,7 @@ const mapEffectConcurrent = <
2450
2526
  * Returns a new channel which is the same as this one but applies the given
2451
2527
  * function to the input channel’s input elements.
2452
2528
  *
2529
+ * @stability stable
2453
2530
  * @category sequencing
2454
2531
  * @since 2.0.0
2455
2532
  */
@@ -2458,16 +2535,18 @@ export const mapInput: {
2458
2535
  * Returns a new channel which is the same as this one but applies the given
2459
2536
  * function to the input channel’s input elements.
2460
2537
  *
2538
+ * @stability stable
2461
2539
  * @category sequencing
2462
2540
  * @since 2.0.0
2463
2541
  */
2464
2542
  <InElem, InElem2, InErr, R = never>(f: (i: InElem2) => Effect.Effect<InElem, InErr, R>): <OutElem, OutErr, OutDone, InErr, InDone, Env>(
2465
- self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env | R>
2466
- ) => Channel<OutElem, OutErr, OutDone, InElem2, InErr, InDone, Env>
2543
+ self: Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>
2544
+ ) => Channel<OutElem, OutErr, OutDone, InElem2, InErr, InDone, Env | R>
2467
2545
  /**
2468
2546
  * Returns a new channel which is the same as this one but applies the given
2469
2547
  * function to the input channel’s input elements.
2470
2548
  *
2549
+ * @stability stable
2471
2550
  * @category sequencing
2472
2551
  * @since 2.0.0
2473
2552
  */
@@ -2490,6 +2569,7 @@ export const mapInput: {
2490
2569
  * Returns a new channel which is the same as this one but applies the given
2491
2570
  * function to the input errors.
2492
2571
  *
2572
+ * @stability stable
2493
2573
  * @category sequencing
2494
2574
  * @since 2.0.0
2495
2575
  */
@@ -2498,6 +2578,7 @@ export const mapInputError: {
2498
2578
  * Returns a new channel which is the same as this one but applies the given
2499
2579
  * function to the input errors.
2500
2580
  *
2581
+ * @stability stable
2501
2582
  * @category sequencing
2502
2583
  * @since 2.0.0
2503
2584
  */
@@ -2508,6 +2589,7 @@ export const mapInputError: {
2508
2589
  * Returns a new channel which is the same as this one but applies the given
2509
2590
  * function to the input errors.
2510
2591
  *
2592
+ * @stability stable
2511
2593
  * @category sequencing
2512
2594
  * @since 2.0.0
2513
2595
  */
@@ -2561,6 +2643,7 @@ export const mapInputError: {
2561
2643
  * const observed = [await Effect.runPromise(Channel.runCollect(tappedChannel)), processed] // => [[1, 2, 3], [1, 2, 3]]
2562
2644
  * ```
2563
2645
  *
2646
+ * @stability stable
2564
2647
  * @category sequencing
2565
2648
  * @since 4.0.0
2566
2649
  */
@@ -2597,6 +2680,7 @@ export const tap: {
2597
2680
  * const observed = [await Effect.runPromise(Channel.runCollect(tappedChannel)), processed] // => [[1, 2, 3], [1, 2, 3]]
2598
2681
  * ```
2599
2682
  *
2683
+ * @stability stable
2600
2684
  * @category sequencing
2601
2685
  * @since 4.0.0
2602
2686
  */
@@ -2640,6 +2724,7 @@ export const tap: {
2640
2724
  * const observed = [await Effect.runPromise(Channel.runCollect(tappedChannel)), processed] // => [[1, 2, 3], [1, 2, 3]]
2641
2725
  * ```
2642
2726
  *
2727
+ * @stability stable
2643
2728
  * @category sequencing
2644
2729
  * @since 4.0.0
2645
2730
  */
@@ -2695,6 +2780,7 @@ export const tap: {
2695
2780
  * Effect.runSync(Channel.runCollect(flatMappedChannel)) // => ["item-1-0", "item-2-0", "item-2-1", "item-3-0", "item-3-1", "item-3-2"]
2696
2781
  * ```
2697
2782
  *
2783
+ * @stability stable
2698
2784
  * @category sequencing
2699
2785
  * @since 2.0.0
2700
2786
  */
@@ -2732,6 +2818,7 @@ export const flatMap: {
2732
2818
  * Effect.runSync(Channel.runCollect(flatMappedChannel)) // => ["item-1-0", "item-2-0", "item-2-1", "item-3-0", "item-3-1", "item-3-2"]
2733
2819
  * ```
2734
2820
  *
2821
+ * @stability stable
2735
2822
  * @category sequencing
2736
2823
  * @since 2.0.0
2737
2824
  */
@@ -2785,6 +2872,7 @@ export const flatMap: {
2785
2872
  * Effect.runSync(Channel.runCollect(flatMappedChannel)) // => ["item-1-0", "item-2-0", "item-2-1", "item-3-0", "item-3-1", "item-3-2"]
2786
2873
  * ```
2787
2874
  *
2875
+ * @stability stable
2788
2876
  * @category sequencing
2789
2877
  * @since 2.0.0
2790
2878
  */
@@ -2967,6 +3055,7 @@ const flatMapConcurrent = <
2967
3055
  * Effect.runSync(Channel.runCollect(numberChannel)) // => [1, 2, 3, "Completed processing"]
2968
3056
  * ```
2969
3057
  *
3058
+ * @stability stable
2970
3059
  * @category sequencing
2971
3060
  * @since 4.0.0
2972
3061
  */
@@ -2992,6 +3081,7 @@ export const concatWith: {
2992
3081
  * Effect.runSync(Channel.runCollect(numberChannel)) // => [1, 2, 3, "Completed processing"]
2993
3082
  * ```
2994
3083
  *
3084
+ * @stability stable
2995
3085
  * @category sequencing
2996
3086
  * @since 4.0.0
2997
3087
  */
@@ -3029,6 +3119,7 @@ export const concatWith: {
3029
3119
  * Effect.runSync(Channel.runCollect(numberChannel)) // => [1, 2, 3, "Completed processing"]
3030
3120
  * ```
3031
3121
  *
3122
+ * @stability stable
3032
3123
  * @category sequencing
3033
3124
  * @since 4.0.0
3034
3125
  */
@@ -3129,6 +3220,7 @@ export const concatWith: {
3129
3220
  * Effect.runSync(Channel.runCollect(concatenatedChannel)) // => [1, 2, 3, "a", "b", "c"]
3130
3221
  * ```
3131
3222
  *
3223
+ * @stability stable
3132
3224
  * @category sequencing
3133
3225
  * @since 4.0.0
3134
3226
  */
@@ -3156,6 +3248,7 @@ export const concat: {
3156
3248
  * Effect.runSync(Channel.runCollect(concatenatedChannel)) // => [1, 2, 3, "a", "b", "c"]
3157
3249
  * ```
3158
3250
  *
3251
+ * @stability stable
3159
3252
  * @category sequencing
3160
3253
  * @since 4.0.0
3161
3254
  */
@@ -3193,6 +3286,7 @@ export const concat: {
3193
3286
  * Effect.runSync(Channel.runCollect(concatenatedChannel)) // => [1, 2, 3, "a", "b", "c"]
3194
3287
  * ```
3195
3288
  *
3289
+ * @stability stable
3196
3290
  * @category sequencing
3197
3291
  * @since 4.0.0
3198
3292
  */
@@ -3265,6 +3359,7 @@ export const concat: {
3265
3359
  * left and right channels. It returns the next output element together with the
3266
3360
  * next state.
3267
3361
  *
3362
+ * @stability stable
3268
3363
  * @category sequencing
3269
3364
  * @since 4.0.0
3270
3365
  */
@@ -3283,6 +3378,7 @@ export const combine: {
3283
3378
  * left and right channels. It returns the next output element together with the
3284
3379
  * next state.
3285
3380
  *
3381
+ * @stability stable
3286
3382
  * @category sequencing
3287
3383
  * @since 4.0.0
3288
3384
  */
@@ -3317,6 +3413,7 @@ export const combine: {
3317
3413
  * left and right channels. It returns the next output element together with the
3318
3414
  * next state.
3319
3415
  *
3416
+ * @stability stable
3320
3417
  * @category sequencing
3321
3418
  * @since 4.0.0
3322
3419
  */
@@ -3417,6 +3514,7 @@ export const combine: {
3417
3514
  * the source completes before emitting an element, the fallback function
3418
3515
  * receives the source done value and returns the replacement channel.
3419
3516
  *
3517
+ * @stability stable
3420
3518
  * @category sequencing
3421
3519
  * @since 4.0.0
3422
3520
  */
@@ -3431,6 +3529,7 @@ export const orElseIfEmpty: {
3431
3529
  * the source completes before emitting an element, the fallback function
3432
3530
  * receives the source done value and returns the replacement channel.
3433
3531
  *
3532
+ * @stability stable
3434
3533
  * @category sequencing
3435
3534
  * @since 4.0.0
3436
3535
  */
@@ -3457,6 +3556,7 @@ export const orElseIfEmpty: {
3457
3556
  * the source completes before emitting an element, the fallback function
3458
3557
  * receives the source done value and returns the replacement channel.
3459
3558
  *
3559
+ * @stability stable
3460
3560
  * @category sequencing
3461
3561
  * @since 4.0.0
3462
3562
  */
@@ -3566,6 +3666,7 @@ export const orElseIfEmpty: {
3566
3666
  * Effect.runSync(Channel.runCollect(flattenedChannel)) // => [1, 2, 3, 4, 5, 6]
3567
3667
  * ```
3568
3668
  *
3669
+ * @stability stable
3569
3670
  * @category constructors
3570
3671
  * @since 2.0.0
3571
3672
  */
@@ -3621,6 +3722,7 @@ export const flatten = <
3621
3722
  * Effect.runSync(Channel.runCollect(flattenedChannel)) // => [1, 2, 3, 4, 5, 6, 7, 8, 9]
3622
3723
  * ```
3623
3724
  *
3725
+ * @stability stable
3624
3726
  * @category transforming
3625
3727
  * @since 4.0.0
3626
3728
  */
@@ -3672,6 +3774,7 @@ export const flattenArray = <
3672
3774
  * Output `Take` values are emitted as non-empty arrays. Failed `Take` values
3673
3775
  * fail the returned channel. Done `Take` values complete the returned channel.
3674
3776
  *
3777
+ * @stability stable
3675
3778
  * @category transforming
3676
3779
  * @since 4.0.0
3677
3780
  */
@@ -3708,6 +3811,7 @@ export const flattenTake = <
3708
3811
  * Effect.runSync(Channel.runCollect(drainedChannel)) // => []
3709
3812
  * ```
3710
3813
  *
3814
+ * @stability stable
3711
3815
  * @category constructors
3712
3816
  * @since 2.0.0
3713
3817
  */
@@ -3735,6 +3839,7 @@ export const drain = <
3735
3839
  /**
3736
3840
  * Repeats this channel according to the provided schedule.
3737
3841
  *
3842
+ * @stability stable
3738
3843
  * @category repetition
3739
3844
  * @since 4.0.0
3740
3845
  */
@@ -3742,6 +3847,7 @@ export const repeat: {
3742
3847
  /**
3743
3848
  * Repeats this channel according to the provided schedule.
3744
3849
  *
3850
+ * @stability stable
3745
3851
  * @category repetition
3746
3852
  * @since 4.0.0
3747
3853
  */
@@ -3757,6 +3863,7 @@ export const repeat: {
3757
3863
  /**
3758
3864
  * Repeats this channel according to the provided schedule.
3759
3865
  *
3866
+ * @stability stable
3760
3867
  * @category repetition
3761
3868
  * @since 4.0.0
3762
3869
  */
@@ -3818,6 +3925,7 @@ const repeatLoop = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, E, Out
3818
3925
  /**
3819
3926
  * Repeats this channel forever.
3820
3927
  *
3928
+ * @stability stable
3821
3929
  * @category repetition
3822
3930
  * @since 4.0.0
3823
3931
  */
@@ -3836,6 +3944,7 @@ export const forever = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
3836
3944
  * fails. If the schedule finishes, the returned channel completes with the
3837
3945
  * schedule output.
3838
3946
  *
3947
+ * @stability stable
3839
3948
  * @category sequencing
3840
3949
  * @since 4.0.0
3841
3950
  */
@@ -3851,6 +3960,7 @@ export const schedule: {
3851
3960
  * fails. If the schedule finishes, the returned channel completes with the
3852
3961
  * schedule output.
3853
3962
  *
3963
+ * @stability stable
3854
3964
  * @category sequencing
3855
3965
  * @since 4.0.0
3856
3966
  */
@@ -3868,6 +3978,7 @@ export const schedule: {
3868
3978
  * fails. If the schedule finishes, the returned channel completes with the
3869
3979
  * schedule output.
3870
3980
  *
3981
+ * @stability stable
3871
3982
  * @category sequencing
3872
3983
  * @since 4.0.0
3873
3984
  */
@@ -3921,6 +4032,7 @@ export const schedule: {
3921
4032
  * Effect.runSync(Channel.runCollect(numbersOnlyChannel)) // => [1, 2, 3]
3922
4033
  * ```
3923
4034
  *
4035
+ * @stability stable
3924
4036
  * @category filtering
3925
4037
  * @since 4.0.0
3926
4038
  */
@@ -3950,6 +4062,7 @@ export const filter: {
3950
4062
  * Effect.runSync(Channel.runCollect(numbersOnlyChannel)) // => [1, 2, 3]
3951
4063
  * ```
3952
4064
  *
4065
+ * @stability stable
3953
4066
  * @category filtering
3954
4067
  * @since 4.0.0
3955
4068
  */
@@ -3981,6 +4094,7 @@ export const filter: {
3981
4094
  * Effect.runSync(Channel.runCollect(numbersOnlyChannel)) // => [1, 2, 3]
3982
4095
  * ```
3983
4096
  *
4097
+ * @stability stable
3984
4098
  * @category filtering
3985
4099
  * @since 4.0.0
3986
4100
  */
@@ -4012,6 +4126,7 @@ export const filter: {
4012
4126
  * Effect.runSync(Channel.runCollect(numbersOnlyChannel)) // => [1, 2, 3]
4013
4127
  * ```
4014
4128
  *
4129
+ * @stability stable
4015
4130
  * @category filtering
4016
4131
  * @since 4.0.0
4017
4132
  */
@@ -4044,6 +4159,7 @@ export const filter: {
4044
4159
  * Effect.runSync(Channel.runCollect(numbersOnlyChannel)) // => [1, 2, 3]
4045
4160
  * ```
4046
4161
  *
4162
+ * @stability stable
4047
4163
  * @category filtering
4048
4164
  * @since 4.0.0
4049
4165
  */
@@ -4085,6 +4201,7 @@ export const filter: {
4085
4201
  * @see {@link filterMapEffect} for using an effectful `Filter`
4086
4202
  * @see {@link filterMapArray} for filtering arrays of output elements
4087
4203
  *
4204
+ * @stability stable
4088
4205
  * @category filtering
4089
4206
  * @since 4.0.0
4090
4207
  */
@@ -4107,6 +4224,7 @@ export const filterMap: {
4107
4224
  * @see {@link filterMapEffect} for using an effectful `Filter`
4108
4225
  * @see {@link filterMapArray} for filtering arrays of output elements
4109
4226
  *
4227
+ * @stability stable
4110
4228
  * @category filtering
4111
4229
  * @since 4.0.0
4112
4230
  */
@@ -4131,6 +4249,7 @@ export const filterMap: {
4131
4249
  * @see {@link filterMapEffect} for using an effectful `Filter`
4132
4250
  * @see {@link filterMapArray} for filtering arrays of output elements
4133
4251
  *
4252
+ * @stability stable
4134
4253
  * @category filtering
4135
4254
  * @since 4.0.0
4136
4255
  */
@@ -4169,6 +4288,7 @@ export const filterMap: {
4169
4288
  * for which the predicate succeeds with `false` are discarded. Predicate
4170
4289
  * failures fail the returned channel.
4171
4290
  *
4291
+ * @stability stable
4172
4292
  * @category filtering
4173
4293
  * @since 4.0.0
4174
4294
  */
@@ -4187,6 +4307,7 @@ export const filterEffect: {
4187
4307
  * for which the predicate succeeds with `false` are discarded. Predicate
4188
4308
  * failures fail the returned channel.
4189
4309
  *
4310
+ * @stability stable
4190
4311
  * @category filtering
4191
4312
  * @since 4.0.0
4192
4313
  */
@@ -4207,6 +4328,7 @@ export const filterEffect: {
4207
4328
  * for which the predicate succeeds with `false` are discarded. Predicate
4208
4329
  * failures fail the returned channel.
4209
4330
  *
4331
+ * @stability stable
4210
4332
  * @category filtering
4211
4333
  * @since 4.0.0
4212
4334
  */
@@ -4253,6 +4375,7 @@ export const filterEffect: {
4253
4375
  * @see {@link mapEffect} for effectfully transforming every output element
4254
4376
  * @see {@link filterMapArrayEffect} for effectful filtering of array outputs
4255
4377
  *
4378
+ * @stability stable
4256
4379
  * @category filtering
4257
4380
  * @since 4.0.0
4258
4381
  */
@@ -4276,6 +4399,7 @@ export const filterMapEffect: {
4276
4399
  * @see {@link mapEffect} for effectfully transforming every output element
4277
4400
  * @see {@link filterMapArrayEffect} for effectful filtering of array outputs
4278
4401
  *
4402
+ * @stability stable
4279
4403
  * @category filtering
4280
4404
  * @since 4.0.0
4281
4405
  */
@@ -4301,6 +4425,7 @@ export const filterMapEffect: {
4301
4425
  * @see {@link mapEffect} for effectfully transforming every output element
4302
4426
  * @see {@link filterMapArrayEffect} for effectful filtering of array outputs
4303
4427
  *
4428
+ * @stability stable
4304
4429
  * @category filtering
4305
4430
  * @since 4.0.0
4306
4431
  */
@@ -4361,6 +4486,7 @@ export const filterMapEffect: {
4361
4486
  * Effect.runSync(Channel.runCollect(filteredOddChannel)) // => [[2, 4]]
4362
4487
  * ```
4363
4488
  *
4489
+ * @stability stable
4364
4490
  * @category filtering
4365
4491
  * @since 4.0.0
4366
4492
  */
@@ -4398,6 +4524,7 @@ export const filterArray: {
4398
4524
  * Effect.runSync(Channel.runCollect(filteredOddChannel)) // => [[2, 4]]
4399
4525
  * ```
4400
4526
  *
4527
+ * @stability stable
4401
4528
  * @category filtering
4402
4529
  * @since 4.0.0
4403
4530
  */
@@ -4437,6 +4564,7 @@ export const filterArray: {
4437
4564
  * Effect.runSync(Channel.runCollect(filteredOddChannel)) // => [[2, 4]]
4438
4565
  * ```
4439
4566
  *
4567
+ * @stability stable
4440
4568
  * @category filtering
4441
4569
  * @since 4.0.0
4442
4570
  */
@@ -4476,6 +4604,7 @@ export const filterArray: {
4476
4604
  * Effect.runSync(Channel.runCollect(filteredOddChannel)) // => [[2, 4]]
4477
4605
  * ```
4478
4606
  *
4607
+ * @stability stable
4479
4608
  * @category filtering
4480
4609
  * @since 4.0.0
4481
4610
  */
@@ -4516,6 +4645,7 @@ export const filterArray: {
4516
4645
  * Effect.runSync(Channel.runCollect(filteredOddChannel)) // => [[2, 4]]
4517
4646
  * ```
4518
4647
  *
4648
+ * @stability stable
4519
4649
  * @category filtering
4520
4650
  * @since 4.0.0
4521
4651
  */
@@ -4552,6 +4682,7 @@ export const filterArray: {
4552
4682
  * Successful filter results are kept as mapped values. Failed filter results
4553
4683
  * are removed from the array. Arrays that become empty are discarded.
4554
4684
  *
4685
+ * @stability stable
4555
4686
  * @category filtering
4556
4687
  * @since 4.0.0
4557
4688
  */
@@ -4565,6 +4696,7 @@ export const filterMapArray: {
4565
4696
  * Successful filter results are kept as mapped values. Failed filter results
4566
4697
  * are removed from the array. Arrays that become empty are discarded.
4567
4698
  *
4699
+ * @stability stable
4568
4700
  * @category filtering
4569
4701
  * @since 4.0.0
4570
4702
  */
@@ -4580,6 +4712,7 @@ export const filterMapArray: {
4580
4712
  * Successful filter results are kept as mapped values. Failed filter results
4581
4713
  * are removed from the array. Arrays that become empty are discarded.
4582
4714
  *
4715
+ * @stability stable
4583
4716
  * @category filtering
4584
4717
  * @since 4.0.0
4585
4718
  */
@@ -4623,6 +4756,7 @@ export const filterMapArray: {
4623
4756
  * for which the predicate succeeds with `true` are kept. Arrays that become
4624
4757
  * empty are discarded. Predicate failures fail the returned channel.
4625
4758
  *
4759
+ * @stability stable
4626
4760
  * @category filtering
4627
4761
  * @since 4.0.0
4628
4762
  */
@@ -4642,6 +4776,7 @@ export const filterArrayEffect: {
4642
4776
  * for which the predicate succeeds with `true` are kept. Arrays that become
4643
4777
  * empty are discarded. Predicate failures fail the returned channel.
4644
4778
  *
4779
+ * @stability stable
4645
4780
  * @category filtering
4646
4781
  * @since 4.0.0
4647
4782
  */
@@ -4665,6 +4800,7 @@ export const filterArrayEffect: {
4665
4800
  * for which the predicate succeeds with `true` are kept. Arrays that become
4666
4801
  * empty are discarded. Predicate failures fail the returned channel.
4667
4802
  *
4803
+ * @stability stable
4668
4804
  * @category filtering
4669
4805
  * @since 4.0.0
4670
4806
  */
@@ -4701,6 +4837,7 @@ export const filterArrayEffect: {
4701
4837
  * are removed from the array. Arrays that become empty are discarded. Failures
4702
4838
  * from the effectful filter fail the returned channel.
4703
4839
  *
4840
+ * @stability stable
4704
4841
  * @category filtering
4705
4842
  * @since 4.0.0
4706
4843
  */
@@ -4720,6 +4857,7 @@ export const filterMapArrayEffect: {
4720
4857
  * are removed from the array. Arrays that become empty are discarded. Failures
4721
4858
  * from the effectful filter fail the returned channel.
4722
4859
  *
4860
+ * @stability stable
4723
4861
  * @category filtering
4724
4862
  * @since 4.0.0
4725
4863
  */
@@ -4741,6 +4879,7 @@ export const filterMapArrayEffect: {
4741
4879
  * are removed from the array. Arrays that become empty are discarded. Failures
4742
4880
  * from the effectful filter fail the returned channel.
4743
4881
  *
4882
+ * @stability stable
4744
4883
  * @category filtering
4745
4884
  * @since 4.0.0
4746
4885
  */
@@ -4801,6 +4940,7 @@ export const filterMapArrayEffect: {
4801
4940
  * Effect.runSync(Channel.runCollect(asyncMapAccum)) // => ["1-processed", "1", "2-processed", "12", "3-processed", "123", "4-processed", "1234"]
4802
4941
  * ```
4803
4942
  *
4943
+ * @stability stable
4804
4944
  * @category sequencing
4805
4945
  * @since 4.0.0
4806
4946
  */
@@ -4840,6 +4980,7 @@ export const mapAccum: {
4840
4980
  * Effect.runSync(Channel.runCollect(asyncMapAccum)) // => ["1-processed", "1", "2-processed", "12", "3-processed", "123", "4-processed", "1234"]
4841
4981
  * ```
4842
4982
  *
4983
+ * @stability stable
4843
4984
  * @category sequencing
4844
4985
  * @since 4.0.0
4845
4986
  */
@@ -4905,6 +5046,7 @@ export const mapAccum: {
4905
5046
  * Effect.runSync(Channel.runCollect(asyncMapAccum)) // => ["1-processed", "1", "2-processed", "12", "3-processed", "123", "4-processed", "1234"]
4906
5047
  * ```
4907
5048
  *
5049
+ * @stability stable
4908
5050
  * @category sequencing
4909
5051
  * @since 4.0.0
4910
5052
  */
@@ -5010,6 +5152,7 @@ export const mapAccum: {
5010
5152
  * Effect.runSync(Channel.runCollect(sentenceChannel)) // => ["", "hello", "hello world", "hello world from", "hello world from effect"]
5011
5153
  * ```
5012
5154
  *
5155
+ * @stability stable
5013
5156
  * @category sequencing
5014
5157
  * @since 4.0.0
5015
5158
  */
@@ -5041,6 +5184,7 @@ export const scan: {
5041
5184
  * Effect.runSync(Channel.runCollect(sentenceChannel)) // => ["", "hello", "hello world", "hello world from", "hello world from effect"]
5042
5185
  * ```
5043
5186
  *
5187
+ * @stability stable
5044
5188
  * @category sequencing
5045
5189
  * @since 4.0.0
5046
5190
  */
@@ -5087,6 +5231,7 @@ export const scan: {
5087
5231
  * Effect.runSync(Channel.runCollect(sentenceChannel)) // => ["", "hello", "hello world", "hello world from", "hello world from effect"]
5088
5232
  * ```
5089
5233
  *
5234
+ * @stability stable
5090
5235
  * @category sequencing
5091
5236
  * @since 4.0.0
5092
5237
  */
@@ -5148,6 +5293,7 @@ export const scan: {
5148
5293
  * await Effect.runPromise(Channel.runCollect(errorHandlingScan)) // => [0, 1, 3, 6, 10]
5149
5294
  * ```
5150
5295
  *
5296
+ * @stability stable
5151
5297
  * @category sequencing
5152
5298
  * @since 4.0.0
5153
5299
  */
@@ -5198,6 +5344,7 @@ export const scanEffect: {
5198
5344
  * await Effect.runPromise(Channel.runCollect(errorHandlingScan)) // => [0, 1, 3, 6, 10]
5199
5345
  * ```
5200
5346
  *
5347
+ * @stability stable
5201
5348
  * @category sequencing
5202
5349
  * @since 4.0.0
5203
5350
  */
@@ -5263,6 +5410,7 @@ export const scanEffect: {
5263
5410
  * await Effect.runPromise(Channel.runCollect(errorHandlingScan)) // => [0, 1, 3, 6, 10]
5264
5411
  * ```
5265
5412
  *
5413
+ * @stability stable
5266
5414
  * @category sequencing
5267
5415
  * @since 4.0.0
5268
5416
  */
@@ -5329,6 +5477,7 @@ export const scanEffect: {
5329
5477
  * Effect.runSync(Channel.runCollect(recoveredChannel)) // => ["Recovered from failure"]
5330
5478
  * ```
5331
5479
  *
5480
+ * @stability stable
5332
5481
  * @category error handling
5333
5482
  * @since 2.0.0
5334
5483
  */
@@ -5366,6 +5515,7 @@ export const catchCause: {
5366
5515
  * Effect.runSync(Channel.runCollect(recoveredChannel)) // => ["Recovered from failure"]
5367
5516
  * ```
5368
5517
  *
5518
+ * @stability stable
5369
5519
  * @category error handling
5370
5520
  * @since 2.0.0
5371
5521
  */
@@ -5420,6 +5570,7 @@ export const catchCause: {
5420
5570
  * Effect.runSync(Channel.runCollect(recoveredChannel)) // => ["Recovered from failure"]
5421
5571
  * ```
5422
5572
  *
5573
+ * @stability stable
5423
5574
  * @category error handling
5424
5575
  * @since 2.0.0
5425
5576
  */
@@ -5519,6 +5670,7 @@ export const catchCause: {
5519
5670
  * Effect.runSync(Channel.runCollect(channel)) // => ["recovered: boom"]
5520
5671
  * ```
5521
5672
  *
5673
+ * @stability stable
5522
5674
  * @category error handling
5523
5675
  * @since 4.0.0
5524
5676
  */
@@ -5542,6 +5694,7 @@ export const catchDefect: {
5542
5694
  * Effect.runSync(Channel.runCollect(channel)) // => ["recovered: boom"]
5543
5695
  * ```
5544
5696
  *
5697
+ * @stability stable
5545
5698
  * @category error handling
5546
5699
  * @since 4.0.0
5547
5700
  */
@@ -5577,6 +5730,7 @@ export const catchDefect: {
5577
5730
  * Effect.runSync(Channel.runCollect(channel)) // => ["recovered: boom"]
5578
5731
  * ```
5579
5732
  *
5733
+ * @stability stable
5580
5734
  * @category error handling
5581
5735
  * @since 4.0.0
5582
5736
  */
@@ -5649,6 +5803,7 @@ export const catchDefect: {
5649
5803
  * Use this for observing failures, such as logging or metrics. If the observer
5650
5804
  * effect fails, that failure can fail the returned channel.
5651
5805
  *
5806
+ * @stability stable
5652
5807
  * @category error handling
5653
5808
  * @since 4.0.0
5654
5809
  */
@@ -5667,6 +5822,7 @@ export const tapCause: {
5667
5822
  * Use this for observing failures, such as logging or metrics. If the observer
5668
5823
  * effect fails, that failure can fail the returned channel.
5669
5824
  *
5825
+ * @stability stable
5670
5826
  * @category error handling
5671
5827
  * @since 4.0.0
5672
5828
  */
@@ -5700,6 +5856,7 @@ export const tapCause: {
5700
5856
  * Use this for observing failures, such as logging or metrics. If the observer
5701
5857
  * effect fails, that failure can fail the returned channel.
5702
5858
  *
5859
+ * @stability stable
5703
5860
  * @category error handling
5704
5861
  * @since 4.0.0
5705
5862
  */
@@ -5769,6 +5926,7 @@ export const tapCause: {
5769
5926
  * @see {@link catchCause} for recovering from every cause
5770
5927
  * @see {@link catchIf} for recovering from typed channel errors
5771
5928
  *
5929
+ * @stability stable
5772
5930
  * @category error handling
5773
5931
  * @since 4.0.0
5774
5932
  */
@@ -5792,6 +5950,7 @@ export const catchCauseIf: {
5792
5950
  * @see {@link catchCause} for recovering from every cause
5793
5951
  * @see {@link catchIf} for recovering from typed channel errors
5794
5952
  *
5953
+ * @stability stable
5795
5954
  * @category error handling
5796
5955
  * @since 4.0.0
5797
5956
  */
@@ -5842,6 +6001,7 @@ export const catchCauseIf: {
5842
6001
  * @see {@link catchCause} for recovering from every cause
5843
6002
  * @see {@link catchIf} for recovering from typed channel errors
5844
6003
  *
6004
+ * @stability stable
5845
6005
  * @category error handling
5846
6006
  * @since 4.0.0
5847
6007
  */
@@ -5939,6 +6099,7 @@ export const catchCauseIf: {
5939
6099
  * @see {@link catchFilter} for selecting typed errors with a `Filter`
5940
6100
  * @see {@link catchCause} for recovering from every cause
5941
6101
  *
6102
+ * @stability stable
5942
6103
  * @category error handling
5943
6104
  * @since 4.0.0
5944
6105
  */
@@ -5962,6 +6123,7 @@ export const catchCauseFilter: {
5962
6123
  * @see {@link catchFilter} for selecting typed errors with a `Filter`
5963
6124
  * @see {@link catchCause} for recovering from every cause
5964
6125
  *
6126
+ * @stability stable
5965
6127
  * @category error handling
5966
6128
  * @since 4.0.0
5967
6129
  */
@@ -6017,6 +6179,7 @@ export const catchCauseFilter: {
6017
6179
  * @see {@link catchFilter} for selecting typed errors with a `Filter`
6018
6180
  * @see {@link catchCause} for recovering from every cause
6019
6181
  *
6182
+ * @stability stable
6020
6183
  * @category error handling
6021
6184
  * @since 4.0.0
6022
6185
  */
@@ -6184,6 +6347,7 @@ export {
6184
6347
  /**
6185
6348
  * Recovers from typed channel errors by running a fallback channel.
6186
6349
  *
6350
+ * @stability stable
6187
6351
  * @category error handling
6188
6352
  * @since 4.0.0
6189
6353
  */
@@ -6199,6 +6363,7 @@ export {
6199
6363
  * The effect is not run for normal channel completion. If the observer effect
6200
6364
  * fails, that failure can fail the returned channel.
6201
6365
  *
6366
+ * @stability stable
6202
6367
  * @category error handling
6203
6368
  * @since 4.0.0
6204
6369
  */
@@ -6212,6 +6377,7 @@ export const tapError: {
6212
6377
  * The effect is not run for normal channel completion. If the observer effect
6213
6378
  * fails, that failure can fail the returned channel.
6214
6379
  *
6380
+ * @stability stable
6215
6381
  * @category error handling
6216
6382
  * @since 4.0.0
6217
6383
  */
@@ -6240,6 +6406,7 @@ export const tapError: {
6240
6406
  * The effect is not run for normal channel completion. If the observer effect
6241
6407
  * fails, that failure can fail the returned channel.
6242
6408
  *
6409
+ * @stability stable
6243
6410
  * @category error handling
6244
6411
  * @since 4.0.0
6245
6412
  */
@@ -6317,6 +6484,7 @@ export const tapError: {
6317
6484
  * @see {@link catchTag} for selecting tagged typed errors
6318
6485
  * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
6319
6486
  *
6487
+ * @stability stable
6320
6488
  * @category error handling
6321
6489
  * @since 4.0.0
6322
6490
  */
@@ -6340,6 +6508,7 @@ export const catchIf: {
6340
6508
  * @see {@link catchTag} for selecting tagged typed errors
6341
6509
  * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
6342
6510
  *
6511
+ * @stability stable
6343
6512
  * @category error handling
6344
6513
  * @since 4.0.0
6345
6514
  */
@@ -6403,6 +6572,7 @@ export const catchIf: {
6403
6572
  * @see {@link catchTag} for selecting tagged typed errors
6404
6573
  * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
6405
6574
  *
6575
+ * @stability stable
6406
6576
  * @category error handling
6407
6577
  * @since 4.0.0
6408
6578
  */
@@ -6465,6 +6635,7 @@ export const catchIf: {
6465
6635
  * @see {@link catchTag} for selecting tagged typed errors
6466
6636
  * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
6467
6637
  *
6638
+ * @stability stable
6468
6639
  * @category error handling
6469
6640
  * @since 4.0.0
6470
6641
  */
@@ -6528,6 +6699,7 @@ export const catchIf: {
6528
6699
  * @see {@link catchTag} for selecting tagged typed errors
6529
6700
  * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
6530
6701
  *
6702
+ * @stability stable
6531
6703
  * @category error handling
6532
6704
  * @since 4.0.0
6533
6705
  */
@@ -6648,6 +6820,7 @@ export const catchIf: {
6648
6820
  * @see {@link catchTag} for selecting tagged typed errors
6649
6821
  * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
6650
6822
  *
6823
+ * @stability stable
6651
6824
  * @category error handling
6652
6825
  * @since 4.0.0
6653
6826
  */
@@ -6670,6 +6843,7 @@ export const catchFilter: {
6670
6843
  * @see {@link catchTag} for selecting tagged typed errors
6671
6844
  * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
6672
6845
  *
6846
+ * @stability stable
6673
6847
  * @category error handling
6674
6848
  * @since 4.0.0
6675
6849
  */
@@ -6733,6 +6907,7 @@ export const catchFilter: {
6733
6907
  * @see {@link catchTag} for selecting tagged typed errors
6734
6908
  * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
6735
6909
  *
6910
+ * @stability stable
6736
6911
  * @category error handling
6737
6912
  * @since 4.0.0
6738
6913
  */
@@ -6849,6 +7024,7 @@ export const catchFilter: {
6849
7024
  * errors are handled by `orElse` when provided. Without `orElse`,
6850
7025
  * non-matching errors are re-failed.
6851
7026
  *
7027
+ * @stability stable
6852
7028
  * @category error handling
6853
7029
  * @since 4.0.0
6854
7030
  */
@@ -6862,6 +7038,7 @@ export const catchTag: {
6862
7038
  * errors are handled by `orElse` when provided. Without `orElse`,
6863
7039
  * non-matching errors are re-failed.
6864
7040
  *
7041
+ * @stability stable
6865
7042
  * @category error handling
6866
7043
  * @since 4.0.0
6867
7044
  */
@@ -6921,6 +7098,7 @@ export const catchTag: {
6921
7098
  * errors are handled by `orElse` when provided. Without `orElse`,
6922
7099
  * non-matching errors are re-failed.
6923
7100
  *
7101
+ * @stability stable
6924
7102
  * @category error handling
6925
7103
  * @since 4.0.0
6926
7104
  */
@@ -7051,6 +7229,7 @@ export const catchTag: {
7051
7229
  * Effect.runSync(Channel.runCollect(recovered)) // => ["retry: 60"]
7052
7230
  * ```
7053
7231
  *
7232
+ * @stability stable
7054
7233
  * @category error handling
7055
7234
  * @since 4.0.0
7056
7235
  */
@@ -7086,6 +7265,7 @@ export const catchReason: {
7086
7265
  * Effect.runSync(Channel.runCollect(recovered)) // => ["retry: 60"]
7087
7266
  * ```
7088
7267
  *
7268
+ * @stability stable
7089
7269
  * @category error handling
7090
7270
  * @since 4.0.0
7091
7271
  */
@@ -7172,6 +7352,7 @@ export const catchReason: {
7172
7352
  * Effect.runSync(Channel.runCollect(recovered)) // => ["retry: 60"]
7173
7353
  * ```
7174
7354
  *
7355
+ * @stability stable
7175
7356
  * @category error handling
7176
7357
  * @since 4.0.0
7177
7358
  */
@@ -7300,6 +7481,7 @@ export const catchReason: {
7300
7481
  /**
7301
7482
  * Catches multiple reasons within a tagged error using an object of handlers.
7302
7483
  *
7484
+ * @stability stable
7303
7485
  * @category error handling
7304
7486
  * @since 4.0.0
7305
7487
  */
@@ -7307,6 +7489,7 @@ export const catchReasons: {
7307
7489
  /**
7308
7490
  * Catches multiple reasons within a tagged error using an object of handlers.
7309
7491
  *
7492
+ * @stability stable
7310
7493
  * @category error handling
7311
7494
  * @since 4.0.0
7312
7495
  */
@@ -7385,6 +7568,7 @@ export const catchReasons: {
7385
7568
  /**
7386
7569
  * Catches multiple reasons within a tagged error using an object of handlers.
7387
7570
  *
7571
+ * @stability stable
7388
7572
  * @category error handling
7389
7573
  * @since 4.0.0
7390
7574
  */
@@ -7512,6 +7696,7 @@ export const catchReasons: {
7512
7696
  * Effect.runSync(Effect.exit(Channel.runCollect(unwrapped))) // => Exit.fail(reason)
7513
7697
  * ```
7514
7698
  *
7699
+ * @stability stable
7515
7700
  * @category error handling
7516
7701
  * @since 4.0.0
7517
7702
  */
@@ -7543,6 +7728,7 @@ export const unwrapReason: {
7543
7728
  * Effect.runSync(Effect.exit(Channel.runCollect(unwrapped))) // => Exit.fail(reason)
7544
7729
  * ```
7545
7730
  *
7731
+ * @stability stable
7546
7732
  * @category error handling
7547
7733
  * @since 4.0.0
7548
7734
  */
@@ -7587,6 +7773,7 @@ export const unwrapReason: {
7587
7773
  * Effect.runSync(Effect.exit(Channel.runCollect(unwrapped))) // => Exit.fail(reason)
7588
7774
  * ```
7589
7775
  *
7776
+ * @stability stable
7590
7777
  * @category error handling
7591
7778
  * @since 4.0.0
7592
7779
  */
@@ -7644,6 +7831,7 @@ export const unwrapReason: {
7644
7831
  * value of the returned channel is created by applying the specified function
7645
7832
  * to the failure value of this channel.
7646
7833
  *
7834
+ * @stability stable
7647
7835
  * @category error handling
7648
7836
  * @since 2.0.0
7649
7837
  */
@@ -7653,6 +7841,7 @@ export const mapError: {
7653
7841
  * value of the returned channel is created by applying the specified function
7654
7842
  * to the failure value of this channel.
7655
7843
  *
7844
+ * @stability stable
7656
7845
  * @category error handling
7657
7846
  * @since 2.0.0
7658
7847
  */
@@ -7664,6 +7853,7 @@ export const mapError: {
7664
7853
  * value of the returned channel is created by applying the specified function
7665
7854
  * to the failure value of this channel.
7666
7855
  *
7856
+ * @stability stable
7667
7857
  * @category error handling
7668
7858
  * @since 2.0.0
7669
7859
  */
@@ -7699,6 +7889,7 @@ export const mapError: {
7699
7889
  * Effect.runSync(Effect.exit(Channel.runCollect(fatalChannel))) // => Exit.failCause(Cause.die(error))
7700
7890
  * ```
7701
7891
  *
7892
+ * @stability stable
7702
7893
  * @category error handling
7703
7894
  * @since 2.0.0
7704
7895
  */
@@ -7721,6 +7912,7 @@ export const orDie = <
7721
7912
  *
7722
7913
  * Use the `log` option to emit the full {@link Cause} when the channel fails.
7723
7914
  *
7915
+ * @stability stable
7724
7916
  * @category error handling
7725
7917
  * @since 4.0.0
7726
7918
  */
@@ -7783,6 +7975,7 @@ const ignoreCause_ = <
7783
7975
  *
7784
7976
  * Use the `log` option to emit the full {@link Cause} when the channel fails.
7785
7977
  *
7978
+ * @stability stable
7786
7979
  * @category error handling
7787
7980
  * @since 4.0.0
7788
7981
  */
@@ -7818,6 +8011,7 @@ export const ignoreCause: <
7818
8011
  * Returns a new channel that retries this channel according to the specified
7819
8012
  * schedule whenever it fails.
7820
8013
  *
8014
+ * @stability stable
7821
8015
  * @category error handling
7822
8016
  * @since 4.0.0
7823
8017
  */
@@ -7826,6 +8020,7 @@ export const retry: {
7826
8020
  * Returns a new channel that retries this channel according to the specified
7827
8021
  * schedule whenever it fails.
7828
8022
  *
8023
+ * @stability stable
7829
8024
  * @category error handling
7830
8025
  * @since 4.0.0
7831
8026
  */
@@ -7844,6 +8039,7 @@ export const retry: {
7844
8039
  * Returns a new channel that retries this channel according to the specified
7845
8040
  * schedule whenever it fails.
7846
8041
  *
8042
+ * @stability stable
7847
8043
  * @category error handling
7848
8044
  * @since 4.0.0
7849
8045
  */
@@ -7930,6 +8126,7 @@ export const retry: {
7930
8126
  * await Effect.runPromise(Channel.runCollect(switchedChannel)) // => ["value-3"]
7931
8127
  * ```
7932
8128
  *
8129
+ * @stability stable
7933
8130
  * @category sequencing
7934
8131
  * @since 4.0.0
7935
8132
  */
@@ -7965,6 +8162,7 @@ export const switchMap: {
7965
8162
  * await Effect.runPromise(Channel.runCollect(switchedChannel)) // => ["value-3"]
7966
8163
  * ```
7967
8164
  *
8165
+ * @stability stable
7968
8166
  * @category sequencing
7969
8167
  * @since 4.0.0
7970
8168
  */
@@ -8016,6 +8214,7 @@ export const switchMap: {
8016
8214
  * await Effect.runPromise(Channel.runCollect(switchedChannel)) // => ["value-3"]
8017
8215
  * ```
8018
8216
  *
8217
+ * @stability stable
8019
8218
  * @category sequencing
8020
8219
  * @since 4.0.0
8021
8220
  */
@@ -8126,6 +8325,7 @@ export const switchMap: {
8126
8325
  * await Effect.runPromise(Channel.runCollect(mergedChannel)) // => [1, 2, 3, 4, 5, 6]
8127
8326
  * ```
8128
8327
  *
8328
+ * @stability stable
8129
8329
  * @category combining
8130
8330
  * @since 2.0.0
8131
8331
  */
@@ -8163,6 +8363,7 @@ export const mergeAll: {
8163
8363
  * await Effect.runPromise(Channel.runCollect(mergedChannel)) // => [1, 2, 3, 4, 5, 6]
8164
8364
  * ```
8165
8365
  *
8366
+ * @stability stable
8166
8367
  * @category combining
8167
8368
  * @since 2.0.0
8168
8369
  */
@@ -8224,6 +8425,7 @@ export const mergeAll: {
8224
8425
  * await Effect.runPromise(Channel.runCollect(mergedChannel)) // => [1, 2, 3, 4, 5, 6]
8225
8426
  * ```
8226
8427
  *
8428
+ * @stability stable
8227
8429
  * @category combining
8228
8430
  * @since 2.0.0
8229
8431
  */
@@ -8319,6 +8521,7 @@ export const mergeAll: {
8319
8521
  * await Effect.runPromise(Channel.runCollect(mergedChannel)) // => [1, 2, 3, 4, 5, 6]
8320
8522
  * ```
8321
8523
  *
8524
+ * @stability stable
8322
8525
  * @category combining
8323
8526
  * @since 2.0.0
8324
8527
  */
@@ -8355,6 +8558,7 @@ export const mergeAll: {
8355
8558
  * await Effect.runPromise(Channel.runCollect(mergedChannel)) // => [1, 2, 3, 4, 5, 6]
8356
8559
  * ```
8357
8560
  *
8561
+ * @stability stable
8358
8562
  * @category combining
8359
8563
  * @since 2.0.0
8360
8564
  */
@@ -8397,17 +8601,17 @@ export const mergeAll: {
8397
8601
  Effect.flatMap((value) => Queue.offer(queue, value)),
8398
8602
  Effect.forever({ disableYield: true }),
8399
8603
  Effect.onError(Effect.fnUntraced(function*(cause) {
8400
- const halt = Pull.filterDone(cause)
8401
- yield* Effect.exit(Scope.close(
8402
- childScope,
8403
- !Result.isFailure(halt) ? Exit.succeed(halt.success.value) : Exit.failCause(halt.failure)
8404
- ))
8604
+ const exit = Pull.doneExitFromCause(cause)
8605
+ const closeExit = yield* Effect.exit(Scope.close(childScope, exit))
8405
8606
  if (!fibers.has(fiber)) return
8607
+ // Publish usage and finalizer failures before releasing the
8608
+ // permit or opening the latch, so the outer channel cannot
8609
+ // complete ahead of them.
8610
+ const failure = Exit.asVoidAll([exit, closeExit])
8611
+ if (Exit.isFailure(failure)) yield* Queue.failCause(queue, failure.cause)
8406
8612
  fibers.delete(fiber)
8407
8613
  if (semaphore) yield* semaphore.release(1)
8408
8614
  if (fibers.size === 0) yield* doneLatch.open
8409
- if (Result.isSuccess(halt)) return
8410
- return yield* Queue.failCause(queue, cause as any)
8411
8615
  })),
8412
8616
  Effect.forkChild
8413
8617
  )
@@ -8443,6 +8647,7 @@ export const mergeAll: {
8443
8647
  * const strategies: Array<Channel.HaltStrategy> = ["left", "right", "both", "either"] // => ["left", "right", "both", "either"]
8444
8648
  * ```
8445
8649
  *
8650
+ * @stability stable
8446
8651
  * @category models
8447
8652
  * @since 4.0.0
8448
8653
  */
@@ -8468,6 +8673,7 @@ export type HaltStrategy = "left" | "right" | "both" | "either"
8468
8673
  * values.map(String).sort() // => ["1", "2", "3", "a", "b", "c"]
8469
8674
  * ```
8470
8675
  *
8676
+ * @stability stable
8471
8677
  * @category combining
8472
8678
  * @since 4.0.0
8473
8679
  */
@@ -8492,6 +8698,7 @@ export const merge: {
8492
8698
  * values.map(String).sort() // => ["1", "2", "3", "a", "b", "c"]
8493
8699
  * ```
8494
8700
  *
8701
+ * @stability stable
8495
8702
  * @category combining
8496
8703
  * @since 4.0.0
8497
8704
  */
@@ -8531,6 +8738,7 @@ export const merge: {
8531
8738
  * values.map(String).sort() // => ["1", "2", "3", "a", "b", "c"]
8532
8739
  * ```
8533
8740
  *
8741
+ * @stability stable
8534
8742
  * @category combining
8535
8743
  * @since 4.0.0
8536
8744
  */
@@ -8616,6 +8824,7 @@ export const merge: {
8616
8824
  * values.map(String).sort() // => ["1", "2", "3", "a", "b", "c"]
8617
8825
  * ```
8618
8826
  *
8827
+ * @stability stable
8619
8828
  * @category combining
8620
8829
  * @since 4.0.0
8621
8830
  */
@@ -8639,6 +8848,7 @@ export const merge: {
8639
8848
  * values.map(String).sort() // => ["1", "2", "3", "a", "b", "c"]
8640
8849
  * ```
8641
8850
  *
8851
+ * @stability stable
8642
8852
  * @category combining
8643
8853
  * @since 4.0.0
8644
8854
  */
@@ -8687,9 +8897,11 @@ export const merge: {
8687
8897
  )
8688
8898
  ),
8689
8899
  Effect.onError((cause) =>
8690
- Effect.andThen(
8691
- Scope.close(scope, Pull.doneExitFromCause(cause)),
8692
- onExit(side, cause)
8900
+ Effect.onExitPrimitive(Pull.doneExitFromCause(cause), (exit) => Scope.close(scope, exit)).pipe(
8901
+ Effect.matchCauseEffect({
8902
+ onFailure: (cause) => onExit(side, cause),
8903
+ onSuccess: () => onExit(side, cause)
8904
+ })
8693
8905
  )
8694
8906
  ),
8695
8907
  Effect.forkIn(forkedScope)
@@ -8713,6 +8925,7 @@ export const merge: {
8713
8925
  * The effect's successful value is ignored. If the effect fails while the
8714
8926
  * channel is running, the returned channel fails with that error.
8715
8927
  *
8928
+ * @stability stable
8716
8929
  * @category combining
8717
8930
  * @since 4.0.0
8718
8931
  */
@@ -8731,6 +8944,7 @@ export const mergeEffect: {
8731
8944
  * The effect's successful value is ignored. If the effect fails while the
8732
8945
  * channel is running, the returned channel fails with that error.
8733
8946
  *
8947
+ * @stability stable
8734
8948
  * @category combining
8735
8949
  * @since 4.0.0
8736
8950
  */
@@ -8751,6 +8965,7 @@ export const mergeEffect: {
8751
8965
  * The effect's successful value is ignored. If the effect fails while the
8752
8966
  * channel is running, the returned channel fails with that error.
8753
8967
  *
8968
+ * @stability stable
8754
8969
  * @category combining
8755
8970
  * @since 4.0.0
8756
8971
  */
@@ -8791,6 +9006,7 @@ export const mergeEffect: {
8791
9006
  * result // => ["hello", "world"]
8792
9007
  * ```
8793
9008
  *
9009
+ * @stability stable
8794
9010
  * @category splitting
8795
9011
  * @since 2.0.0
8796
9012
  */
@@ -8902,10 +9118,14 @@ export const splitLines = <Err, Done>(): Channel<
8902
9118
  * span `Uint8Array` boundaries. The optional `encoding` and `options` are
8903
9119
  * passed to `TextDecoder`.
8904
9120
  *
9121
+ * @stability stable
8905
9122
  * @category decoding
8906
9123
  * @since 4.0.0
8907
9124
  */
8908
- export const decodeText = <Err, Done>(encoding?: string, options?: TextDecoderOptions): Channel<
9125
+ export const decodeText = <Err, Done>(
9126
+ encoding?: string,
9127
+ options?: ConstructorParameters<typeof TextDecoder>[1]
9128
+ ): Channel<
8909
9129
  Arr.NonEmptyReadonlyArray<string>,
8910
9130
  Err,
8911
9131
  Done,
@@ -8928,6 +9148,7 @@ export const decodeText = <Err, Done>(encoding?: string, options?: TextDecoderOp
8928
9148
  *
8929
9149
  * Each string inside an emitted array is encoded independently.
8930
9150
  *
9151
+ * @stability stable
8931
9152
  * @category encoding
8932
9153
  * @since 4.0.0
8933
9154
  */
@@ -8971,6 +9192,7 @@ export const encodeText = <Err, Done>(): Channel<
8971
9192
  * Effect.runSync(Channel.runCollect(pipedChannel)) // => [2, 4, 6]
8972
9193
  * ```
8973
9194
  *
9195
+ * @stability stable
8974
9196
  * @category sequencing
8975
9197
  * @since 2.0.0
8976
9198
  */
@@ -9000,6 +9222,7 @@ export const pipeTo: {
9000
9222
  * Effect.runSync(Channel.runCollect(pipedChannel)) // => [2, 4, 6]
9001
9223
  * ```
9002
9224
  *
9225
+ * @stability stable
9003
9226
  * @category sequencing
9004
9227
  * @since 2.0.0
9005
9228
  */
@@ -9031,6 +9254,7 @@ export const pipeTo: {
9031
9254
  * Effect.runSync(Channel.runCollect(pipedChannel)) // => [2, 4, 6]
9032
9255
  * ```
9033
9256
  *
9257
+ * @stability stable
9034
9258
  * @category sequencing
9035
9259
  * @since 2.0.0
9036
9260
  */
@@ -9074,6 +9298,7 @@ export const pipeTo: {
9074
9298
  * Effect.runSync(Effect.exit(Channel.runCollect(safePipedChannel))) // => Exit.fail(error)
9075
9299
  * ```
9076
9300
  *
9301
+ * @stability stable
9077
9302
  * @category sequencing
9078
9303
  * @since 2.0.0
9079
9304
  */
@@ -9103,6 +9328,7 @@ export const pipeToOrFail: {
9103
9328
  * Effect.runSync(Effect.exit(Channel.runCollect(safePipedChannel))) // => Exit.fail(error)
9104
9329
  * ```
9105
9330
  *
9331
+ * @stability stable
9106
9332
  * @category sequencing
9107
9333
  * @since 2.0.0
9108
9334
  */
@@ -9134,6 +9360,7 @@ export const pipeToOrFail: {
9134
9360
  * Effect.runSync(Effect.exit(Channel.runCollect(safePipedChannel))) // => Exit.fail(error)
9135
9361
  * ```
9136
9362
  *
9363
+ * @stability stable
9137
9364
  * @category sequencing
9138
9365
  * @since 2.0.0
9139
9366
  */
@@ -9191,6 +9418,7 @@ export const pipeToOrFail: {
9191
9418
  * Effect.runSync(Channel.runCollect(unwrappedChannel)) // => [1, 2, 3]
9192
9419
  * ```
9193
9420
  *
9421
+ * @stability stable
9194
9422
  * @category constructors
9195
9423
  * @since 2.0.0
9196
9424
  */
@@ -9213,6 +9441,7 @@ export const unwrap = <OutElem, OutErr, OutDone, InElem, InErr, InDone, R2, E, R
9213
9441
  * Runs a channel with a scope provided for the duration of the channel
9214
9442
  * execution, removing the channel's `Scope` requirement.
9215
9443
  *
9444
+ * @stability stable
9216
9445
  * @category resource management
9217
9446
  * @since 2.0.0
9218
9447
  */
@@ -9255,6 +9484,7 @@ export const scoped = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
9255
9484
  * await Effect.runPromise(Channel.runCollect(embeddedChannel)) // => [1, 2, 3]
9256
9485
  * ```
9257
9486
  *
9487
+ * @stability stable
9258
9488
  * @category sequencing
9259
9489
  * @since 2.0.0
9260
9490
  */
@@ -9288,6 +9518,7 @@ export const embedInput: {
9288
9518
  * await Effect.runPromise(Channel.runCollect(embeddedChannel)) // => [1, 2, 3]
9289
9519
  * ```
9290
9520
  *
9521
+ * @stability stable
9291
9522
  * @category sequencing
9292
9523
  * @since 2.0.0
9293
9524
  */
@@ -9327,6 +9558,7 @@ export const embedInput: {
9327
9558
  * await Effect.runPromise(Channel.runCollect(embeddedChannel)) // => [1, 2, 3]
9328
9559
  * ```
9329
9560
  *
9561
+ * @stability stable
9330
9562
  * @category sequencing
9331
9563
  * @since 2.0.0
9332
9564
  */
@@ -9374,6 +9606,7 @@ export const embedInput: {
9374
9606
  *
9375
9607
  * @see {@link bufferArray} for buffering elements from array outputs
9376
9608
  *
9609
+ * @stability stable
9377
9610
  * @category buffering
9378
9611
  * @since 2.0.0
9379
9612
  */
@@ -9400,6 +9633,7 @@ export const buffer: {
9400
9633
  *
9401
9634
  * @see {@link bufferArray} for buffering elements from array outputs
9402
9635
  *
9636
+ * @stability stable
9403
9637
  * @category buffering
9404
9638
  * @since 2.0.0
9405
9639
  */
@@ -9433,6 +9667,7 @@ export const buffer: {
9433
9667
  *
9434
9668
  * @see {@link bufferArray} for buffering elements from array outputs
9435
9669
  *
9670
+ * @stability stable
9436
9671
  * @category buffering
9437
9672
  * @since 2.0.0
9438
9673
  */
@@ -9474,6 +9709,7 @@ export const buffer: {
9474
9709
  *
9475
9710
  * @see {@link bufferArray} for buffering elements from array outputs
9476
9711
  *
9712
+ * @stability stable
9477
9713
  * @category buffering
9478
9714
  * @since 2.0.0
9479
9715
  */
@@ -9499,6 +9735,7 @@ export const buffer: {
9499
9735
  *
9500
9736
  * @see {@link bufferArray} for buffering elements from array outputs
9501
9737
  *
9738
+ * @stability stable
9502
9739
  * @category buffering
9503
9740
  * @since 2.0.0
9504
9741
  */
@@ -9540,6 +9777,7 @@ export const buffer: {
9540
9777
  *
9541
9778
  * @see {@link buffer} for buffering output elements without flattening arrays
9542
9779
  *
9780
+ * @stability stable
9543
9781
  * @category buffering
9544
9782
  * @since 4.0.0
9545
9783
  */
@@ -9568,6 +9806,7 @@ export const bufferArray: {
9568
9806
  *
9569
9807
  * @see {@link buffer} for buffering output elements without flattening arrays
9570
9808
  *
9809
+ * @stability stable
9571
9810
  * @category buffering
9572
9811
  * @since 4.0.0
9573
9812
  */
@@ -9603,6 +9842,7 @@ export const bufferArray: {
9603
9842
  *
9604
9843
  * @see {@link buffer} for buffering output elements without flattening arrays
9605
9844
  *
9845
+ * @stability stable
9606
9846
  * @category buffering
9607
9847
  * @since 4.0.0
9608
9848
  */
@@ -9646,6 +9886,7 @@ export const bufferArray: {
9646
9886
  *
9647
9887
  * @see {@link buffer} for buffering output elements without flattening arrays
9648
9888
  *
9889
+ * @stability stable
9649
9890
  * @category buffering
9650
9891
  * @since 4.0.0
9651
9892
  */
@@ -9673,6 +9914,7 @@ export const bufferArray: {
9673
9914
  *
9674
9915
  * @see {@link buffer} for buffering output elements without flattening arrays
9675
9916
  *
9917
+ * @stability stable
9676
9918
  * @category buffering
9677
9919
  * @since 4.0.0
9678
9920
  */
@@ -9704,6 +9946,7 @@ export const bufferArray: {
9704
9946
  * channel's done value. If the channel completes first, the original channel's
9705
9947
  * done value is preserved.
9706
9948
  *
9949
+ * @stability stable
9707
9950
  * @category interruption
9708
9951
  * @since 2.0.0
9709
9952
  */
@@ -9722,6 +9965,7 @@ export const interruptWhen: {
9722
9965
  * channel's done value. If the channel completes first, the original channel's
9723
9966
  * done value is preserved.
9724
9967
  *
9968
+ * @stability stable
9725
9969
  * @category interruption
9726
9970
  * @since 2.0.0
9727
9971
  */
@@ -9742,6 +9986,7 @@ export const interruptWhen: {
9742
9986
  * channel's done value. If the channel completes first, the original channel's
9743
9987
  * done value is preserved.
9744
9988
  *
9989
+ * @stability stable
9745
9990
  * @category interruption
9746
9991
  * @since 2.0.0
9747
9992
  */
@@ -9769,6 +10014,7 @@ export const interruptWhen: {
9769
10014
  * fails with that error. If the channel completes first, the channel's done
9770
10015
  * value is preserved.
9771
10016
  *
10017
+ * @stability stable
9772
10018
  * @category interruption
9773
10019
  * @since 4.0.0
9774
10020
  */
@@ -9783,6 +10029,7 @@ export const haltWhen: {
9783
10029
  * fails with that error. If the channel completes first, the channel's done
9784
10030
  * value is preserved.
9785
10031
  *
10032
+ * @stability stable
9786
10033
  * @category interruption
9787
10034
  * @since 4.0.0
9788
10035
  */
@@ -9799,6 +10046,7 @@ export const haltWhen: {
9799
10046
  * fails with that error. If the channel completes first, the channel's done
9800
10047
  * value is preserved.
9801
10048
  *
10049
+ * @stability stable
9802
10050
  * @category interruption
9803
10051
  * @since 4.0.0
9804
10052
  */
@@ -9832,6 +10080,7 @@ export const haltWhen: {
9832
10080
  * The finalizer receives the failure `Cause`. The original channel failure is
9833
10081
  * preserved. The finalizer itself must not fail.
9834
10082
  *
10083
+ * @stability stable
9835
10084
  * @category error handling
9836
10085
  * @since 4.0.0
9837
10086
  */
@@ -9844,6 +10093,7 @@ export const onError: {
9844
10093
  * The finalizer receives the failure `Cause`. The original channel failure is
9845
10094
  * preserved. The finalizer itself must not fail.
9846
10095
  *
10096
+ * @stability stable
9847
10097
  * @category error handling
9848
10098
  * @since 4.0.0
9849
10099
  */
@@ -9860,6 +10110,7 @@ export const onError: {
9860
10110
  * The finalizer receives the failure `Cause`. The original channel failure is
9861
10111
  * preserved. The finalizer itself must not fail.
9862
10112
  *
10113
+ * @stability stable
9863
10114
  * @category error handling
9864
10115
  * @since 4.0.0
9865
10116
  */
@@ -9898,6 +10149,7 @@ export const onError: {
9898
10149
  * const observed = [await Effect.runPromise(Channel.runCollect(channelWithExit)), exits] // => [[1, 2, 3], [Exit.void]]
9899
10150
  * ```
9900
10151
  *
10152
+ * @stability stable
9901
10153
  * @category resource management
9902
10154
  * @since 4.0.0
9903
10155
  */
@@ -9927,6 +10179,7 @@ export const onExit: {
9927
10179
  * const observed = [await Effect.runPromise(Channel.runCollect(channelWithExit)), exits] // => [[1, 2, 3], [Exit.void]]
9928
10180
  * ```
9929
10181
  *
10182
+ * @stability stable
9930
10183
  * @category resource management
9931
10184
  * @since 4.0.0
9932
10185
  */
@@ -9960,6 +10213,7 @@ export const onExit: {
9960
10213
  * const observed = [await Effect.runPromise(Channel.runCollect(channelWithExit)), exits] // => [[1, 2, 3], [Exit.void]]
9961
10214
  * ```
9962
10215
  *
10216
+ * @stability stable
9963
10217
  * @category resource management
9964
10218
  * @since 4.0.0
9965
10219
  */
@@ -9985,6 +10239,7 @@ export const onExit: {
9985
10239
  * The effect's successful value is ignored. If the effect fails, the returned
9986
10240
  * channel fails before running the source channel.
9987
10241
  *
10242
+ * @stability stable
9988
10243
  * @category hooks
9989
10244
  * @since 4.0.0
9990
10245
  */
@@ -9997,6 +10252,7 @@ export const onStart: {
9997
10252
  * The effect's successful value is ignored. If the effect fails, the returned
9998
10253
  * channel fails before running the source channel.
9999
10254
  *
10255
+ * @stability stable
10000
10256
  * @category hooks
10001
10257
  * @since 4.0.0
10002
10258
  */
@@ -10011,6 +10267,7 @@ export const onStart: {
10011
10267
  * The effect's successful value is ignored. If the effect fails, the returned
10012
10268
  * channel fails before running the source channel.
10013
10269
  *
10270
+ * @stability stable
10014
10271
  * @category hooks
10015
10272
  * @since 4.0.0
10016
10273
  */
@@ -10037,6 +10294,7 @@ export const onStart: {
10037
10294
  * emitted unchanged. The effect is not run if the channel completes without
10038
10295
  * emitting an element.
10039
10296
  *
10297
+ * @stability stable
10040
10298
  * @category hooks
10041
10299
  * @since 4.0.0
10042
10300
  */
@@ -10055,6 +10313,7 @@ export const onFirst: {
10055
10313
  * emitted unchanged. The effect is not run if the channel completes without
10056
10314
  * emitting an element.
10057
10315
  *
10316
+ * @stability stable
10058
10317
  * @category hooks
10059
10318
  * @since 4.0.0
10060
10319
  */
@@ -10075,6 +10334,7 @@ export const onFirst: {
10075
10334
  * emitted unchanged. The effect is not run if the channel completes without
10076
10335
  * emitting an element.
10077
10336
  *
10337
+ * @stability stable
10078
10338
  * @category hooks
10079
10339
  * @since 4.0.0
10080
10340
  */
@@ -10105,6 +10365,7 @@ export const onFirst: {
10105
10365
  * not run when the channel fails. If the effect fails, the returned channel
10106
10366
  * fails with that error.
10107
10367
  *
10368
+ * @stability stable
10108
10369
  * @category hooks
10109
10370
  * @since 4.0.0
10110
10371
  */
@@ -10118,6 +10379,7 @@ export const onEnd: {
10118
10379
  * not run when the channel fails. If the effect fails, the returned channel
10119
10380
  * fails with that error.
10120
10381
  *
10382
+ * @stability stable
10121
10383
  * @category hooks
10122
10384
  * @since 4.0.0
10123
10385
  */
@@ -10133,6 +10395,7 @@ export const onEnd: {
10133
10395
  * not run when the channel fails. If the effect fails, the returned channel
10134
10396
  * fails with that error.
10135
10397
  *
10398
+ * @stability stable
10136
10399
  * @category hooks
10137
10400
  * @since 4.0.0
10138
10401
  */
@@ -10175,6 +10438,7 @@ export const onEnd: {
10175
10438
  * const observed = [await Effect.runPromise(Channel.runCollect(channelWithCleanup)), events] // => [[1, 2, 3], ["cleanup"]]
10176
10439
  * ```
10177
10440
  *
10441
+ * @stability stable
10178
10442
  * @category resource management
10179
10443
  * @since 2.0.0
10180
10444
  */
@@ -10204,6 +10468,7 @@ export const ensuring: {
10204
10468
  * const observed = [await Effect.runPromise(Channel.runCollect(channelWithCleanup)), events] // => [[1, 2, 3], ["cleanup"]]
10205
10469
  * ```
10206
10470
  *
10471
+ * @stability stable
10207
10472
  * @category resource management
10208
10473
  * @since 2.0.0
10209
10474
  */
@@ -10235,6 +10500,7 @@ export const ensuring: {
10235
10500
  * const observed = [await Effect.runPromise(Channel.runCollect(channelWithCleanup)), events] // => [[1, 2, 3], ["cleanup"]]
10236
10501
  * ```
10237
10502
  *
10503
+ * @stability stable
10238
10504
  * @category resource management
10239
10505
  * @since 2.0.0
10240
10506
  */
@@ -10273,6 +10539,7 @@ const runWith = <
10273
10539
  /**
10274
10540
  * Creates a channel from the specified services.
10275
10541
  *
10542
+ * @stability stable
10276
10543
  * @category accessors
10277
10544
  * @since 2.0.0
10278
10545
  */
@@ -10287,6 +10554,7 @@ export const contextWith = <Env, OutElem, OutErr, OutDone, InElem, InErr, InDone
10287
10554
  * Provides a `Context` to the channel, removing the corresponding service
10288
10555
  * requirements from the returned channel.
10289
10556
  *
10557
+ * @stability stable
10290
10558
  * @category providing services
10291
10559
  * @since 2.0.0
10292
10560
  */
@@ -10295,6 +10563,7 @@ export const provideContext: {
10295
10563
  * Provides a `Context` to the channel, removing the corresponding service
10296
10564
  * requirements from the returned channel.
10297
10565
  *
10566
+ * @stability stable
10298
10567
  * @category providing services
10299
10568
  * @since 2.0.0
10300
10569
  */
@@ -10305,6 +10574,7 @@ export const provideContext: {
10305
10574
  * Provides a `Context` to the channel, removing the corresponding service
10306
10575
  * requirements from the returned channel.
10307
10576
  *
10577
+ * @stability stable
10308
10578
  * @category providing services
10309
10579
  * @since 2.0.0
10310
10580
  */
@@ -10327,6 +10597,7 @@ export const provideContext: {
10327
10597
  * Provides a concrete service for a context key, removing that service
10328
10598
  * requirement from the returned channel.
10329
10599
  *
10600
+ * @stability stable
10330
10601
  * @category providing services
10331
10602
  * @since 2.0.0
10332
10603
  */
@@ -10335,6 +10606,7 @@ export const provideService: {
10335
10606
  * Provides a concrete service for a context key, removing that service
10336
10607
  * requirement from the returned channel.
10337
10608
  *
10609
+ * @stability stable
10338
10610
  * @category providing services
10339
10611
  * @since 2.0.0
10340
10612
  */
@@ -10345,6 +10617,7 @@ export const provideService: {
10345
10617
  * Provides a concrete service for a context key, removing that service
10346
10618
  * requirement from the returned channel.
10347
10619
  *
10620
+ * @stability stable
10348
10621
  * @category providing services
10349
10622
  * @since 2.0.0
10350
10623
  */
@@ -10378,6 +10651,7 @@ export const provideService: {
10378
10651
  * If the service effect fails, the returned channel fails. The provided service
10379
10652
  * removes the corresponding service requirement from the returned channel.
10380
10653
  *
10654
+ * @stability stable
10381
10655
  * @category providing services
10382
10656
  * @since 4.0.0
10383
10657
  */
@@ -10395,6 +10669,7 @@ export const provideServiceEffect: {
10395
10669
  * If the service effect fails, the returned channel fails. The provided service
10396
10670
  * removes the corresponding service requirement from the returned channel.
10397
10671
  *
10672
+ * @stability stable
10398
10673
  * @category providing services
10399
10674
  * @since 4.0.0
10400
10675
  */
@@ -10414,6 +10689,7 @@ export const provideServiceEffect: {
10414
10689
  * If the service effect fails, the returned channel fails. The provided service
10415
10690
  * removes the corresponding service requirement from the returned channel.
10416
10691
  *
10692
+ * @stability stable
10417
10693
  * @category providing services
10418
10694
  * @since 4.0.0
10419
10695
  */
@@ -10444,6 +10720,7 @@ export const provideServiceEffect: {
10444
10720
  * builds the layer in the channel scope. Use `options.local` to build a fresh
10445
10721
  * layer instance for this provision.
10446
10722
  *
10723
+ * @stability stable
10447
10724
  * @category providing services
10448
10725
  * @since 4.0.0
10449
10726
  */
@@ -10458,6 +10735,7 @@ export const provide: {
10458
10735
  * builds the layer in the channel scope. Use `options.local` to build a fresh
10459
10736
  * layer instance for this provision.
10460
10737
  *
10738
+ * @stability stable
10461
10739
  * @category providing services
10462
10740
  * @since 4.0.0
10463
10741
  */
@@ -10479,6 +10757,7 @@ export const provide: {
10479
10757
  * builds the layer in the channel scope. Use `options.local` to build a fresh
10480
10758
  * layer instance for this provision.
10481
10759
  *
10760
+ * @stability stable
10482
10761
  * @category providing services
10483
10762
  * @since 4.0.0
10484
10763
  */
@@ -10518,6 +10797,7 @@ export const provide: {
10518
10797
  * provide to the channel. The returned channel requires the services needed to
10519
10798
  * build that context.
10520
10799
  *
10800
+ * @stability stable
10521
10801
  * @category providing services
10522
10802
  * @since 4.0.0
10523
10803
  */
@@ -10531,6 +10811,7 @@ export const updateContext: {
10531
10811
  * provide to the channel. The returned channel requires the services needed to
10532
10812
  * build that context.
10533
10813
  *
10814
+ * @stability stable
10534
10815
  * @category providing services
10535
10816
  * @since 4.0.0
10536
10817
  */
@@ -10546,6 +10827,7 @@ export const updateContext: {
10546
10827
  * provide to the channel. The returned channel requires the services needed to
10547
10828
  * build that context.
10548
10829
  *
10830
+ * @stability stable
10549
10831
  * @category providing services
10550
10832
  * @since 4.0.0
10551
10833
  */
@@ -10572,6 +10854,7 @@ export const updateContext: {
10572
10854
  * The existing service is read from the context. The updated service is
10573
10855
  * provided to the channel under the same key.
10574
10856
  *
10857
+ * @stability stable
10575
10858
  * @category providing services
10576
10859
  * @since 2.0.0
10577
10860
  */
@@ -10584,6 +10867,7 @@ export const updateService: {
10584
10867
  * The existing service is read from the context. The updated service is
10585
10868
  * provided to the channel under the same key.
10586
10869
  *
10870
+ * @stability stable
10587
10871
  * @category providing services
10588
10872
  * @since 2.0.0
10589
10873
  */
@@ -10598,6 +10882,7 @@ export const updateService: {
10598
10882
  * The existing service is read from the context. The updated service is
10599
10883
  * provided to the channel under the same key.
10600
10884
  *
10885
+ * @stability stable
10601
10886
  * @category providing services
10602
10887
  * @since 2.0.0
10603
10888
  */
@@ -10626,6 +10911,7 @@ export const updateService: {
10626
10911
  * The created span is provided as the current parent span while the channel
10627
10912
  * runs. The span is ended with the channel's exit value.
10628
10913
  *
10914
+ * @stability stable
10629
10915
  * @category tracing
10630
10916
  * @since 2.0.0
10631
10917
  */
@@ -10638,6 +10924,7 @@ export const withSpan: {
10638
10924
  * The created span is provided as the current parent span while the channel
10639
10925
  * runs. The span is ended with the channel's exit value.
10640
10926
  *
10927
+ * @stability stable
10641
10928
  * @category tracing
10642
10929
  * @since 2.0.0
10643
10930
  */
@@ -10652,6 +10939,7 @@ export const withSpan: {
10652
10939
  * The created span is provided as the current parent span while the channel
10653
10940
  * runs. The span is ended with the channel's exit value.
10654
10941
  *
10942
+ * @stability stable
10655
10943
  * @category tracing
10656
10944
  * @since 2.0.0
10657
10945
  */
@@ -10690,6 +10978,7 @@ const withSpanImpl = <OutElem, OutErr, OutDone, InElem, InErr, InDone, R>(
10690
10978
  /**
10691
10979
  * The starting channel for Do notation, emitting an empty object.
10692
10980
  *
10981
+ * @stability stable
10693
10982
  * @category constructors
10694
10983
  * @since 4.0.0
10695
10984
  */
@@ -10744,6 +11033,7 @@ export {
10744
11033
  /**
10745
11034
  * Adds a computed field to each object emitted by a channel.
10746
11035
  *
11036
+ * @stability stable
10747
11037
  * @category mapping
10748
11038
  * @since 4.0.0
10749
11039
  */
@@ -10760,6 +11050,7 @@ export {
10760
11050
  * channel's output becomes the value of the new field. `options.concurrency`
10761
11051
  * and `options.bufferSize` control how derived channels are flattened.
10762
11052
  *
11053
+ * @stability stable
10763
11054
  * @category sequencing
10764
11055
  * @since 4.0.0
10765
11056
  */
@@ -10774,6 +11065,7 @@ export const bind: {
10774
11065
  * channel's output becomes the value of the new field. `options.concurrency`
10775
11066
  * and `options.bufferSize` control how derived channels are flattened.
10776
11067
  *
11068
+ * @stability stable
10777
11069
  * @category sequencing
10778
11070
  * @since 4.0.0
10779
11071
  */
@@ -10805,6 +11097,7 @@ export const bind: {
10805
11097
  * channel's output becomes the value of the new field. `options.concurrency`
10806
11098
  * and `options.bufferSize` control how derived channels are flattened.
10807
11099
  *
11100
+ * @stability stable
10808
11101
  * @category sequencing
10809
11102
  * @since 4.0.0
10810
11103
  */
@@ -10892,6 +11185,7 @@ export const bind: {
10892
11185
  * @see {@link bind} for adding a field produced by another channel
10893
11186
  * @see {@link let_ let} for adding a computed field
10894
11187
  *
11188
+ * @stability stable
10895
11189
  * @category mapping
10896
11190
  * @since 4.0.0
10897
11191
  */
@@ -10908,6 +11202,7 @@ export const bindTo: {
10908
11202
  * @see {@link bind} for adding a field produced by another channel
10909
11203
  * @see {@link let_ let} for adding a computed field
10910
11204
  *
11205
+ * @stability stable
10911
11206
  * @category mapping
10912
11207
  * @since 4.0.0
10913
11208
  */
@@ -10934,6 +11229,7 @@ export const bindTo: {
10934
11229
  * @see {@link bind} for adding a field produced by another channel
10935
11230
  * @see {@link let_ let} for adding a computed field
10936
11231
  *
11232
+ * @stability stable
10937
11233
  * @category mapping
10938
11234
  * @since 4.0.0
10939
11235
  */
@@ -10983,6 +11279,7 @@ export const bindTo: {
10983
11279
  * Effect.runSync(countEffect) // => 5
10984
11280
  * ```
10985
11281
  *
11282
+ * @stability stable
10986
11283
  * @category running
10987
11284
  * @since 4.0.0
10988
11285
  */
@@ -11012,6 +11309,7 @@ export const runCount = <OutElem, OutErr, OutDone, Env>(
11012
11309
  * Effect.runSync(drainEffect) // => "completed"
11013
11310
  * ```
11014
11311
  *
11312
+ * @stability stable
11015
11313
  * @category running
11016
11314
  * @since 2.0.0
11017
11315
  */
@@ -11045,6 +11343,7 @@ export const runDrain = <OutElem, OutErr, OutDone, Env>(
11045
11343
  * processed // => [1, 2, 3]
11046
11344
  * ```
11047
11345
  *
11346
+ * @stability stable
11048
11347
  * @category running
11049
11348
  * @since 4.0.0
11050
11349
  */
@@ -11075,6 +11374,7 @@ export const runForEach: {
11075
11374
  * processed // => [1, 2, 3]
11076
11375
  * ```
11077
11376
  *
11377
+ * @stability stable
11078
11378
  * @category running
11079
11379
  * @since 4.0.0
11080
11380
  */
@@ -11107,6 +11407,7 @@ export const runForEach: {
11107
11407
  * processed // => [1, 2, 3]
11108
11408
  * ```
11109
11409
  *
11410
+ * @stability stable
11110
11411
  * @category running
11111
11412
  * @since 4.0.0
11112
11413
  */
@@ -11132,6 +11433,7 @@ export const runForEach: {
11132
11433
  * Returning `true` continues consuming the channel. Returning `false` stops
11133
11434
  * consumption early. The returned effect completes with `void`.
11134
11435
  *
11436
+ * @stability stable
11135
11437
  * @category running
11136
11438
  * @since 4.0.0
11137
11439
  */
@@ -11145,6 +11447,7 @@ export const runForEachWhile: {
11145
11447
  * Returning `true` continues consuming the channel. Returning `false` stops
11146
11448
  * consumption early. The returned effect completes with `void`.
11147
11449
  *
11450
+ * @stability stable
11148
11451
  * @category running
11149
11452
  * @since 4.0.0
11150
11453
  */
@@ -11160,6 +11463,7 @@ export const runForEachWhile: {
11160
11463
  * Returning `true` continues consuming the channel. Returning `false` stops
11161
11464
  * consumption early. The returned effect completes with `void`.
11162
11465
  *
11466
+ * @stability stable
11163
11467
  * @category running
11164
11468
  * @since 4.0.0
11165
11469
  */
@@ -11203,6 +11507,7 @@ export const runForEachWhile: {
11203
11507
  * Array.from(bytes) // => [1, 2, 3, 4]
11204
11508
  * ```
11205
11509
  *
11510
+ * @stability stable
11206
11511
  * @category running
11207
11512
  * @since 4.0.0
11208
11513
  */
@@ -11260,6 +11565,7 @@ export const mkUint8Array = <OutErr, OutDone, Env>(
11260
11565
  * Effect.runSync(collectEffect) // => [1, 2, 3, 4, 5]
11261
11566
  * ```
11262
11567
  *
11568
+ * @stability stable
11263
11569
  * @category running
11264
11570
  * @since 2.0.0
11265
11571
  */
@@ -11280,6 +11586,7 @@ export const runCollect = <OutElem, OutErr, OutDone, Env>(
11280
11586
  * Returns `Option.some` with the first output element, or `Option.none` if the
11281
11587
  * channel completes without emitting output.
11282
11588
  *
11589
+ * @stability stable
11283
11590
  * @category running
11284
11591
  * @since 4.0.0
11285
11592
  */
@@ -11307,6 +11614,7 @@ export const runHead = <OutElem, OutErr, OutDone, Env>(
11307
11614
  * Returns `Option.some` with the last emitted element, or `Option.none` if the
11308
11615
  * channel completes without emitting output.
11309
11616
  *
11617
+ * @stability stable
11310
11618
  * @category running
11311
11619
  * @since 4.0.0
11312
11620
  */
@@ -11351,6 +11659,7 @@ export const runLast = <OutElem, OutErr, OutDone, Env>(
11351
11659
  * Effect.runSync(sumEffect) // => 15
11352
11660
  * ```
11353
11661
  *
11662
+ * @stability stable
11354
11663
  * @category running
11355
11664
  * @since 4.0.0
11356
11665
  */
@@ -11376,6 +11685,7 @@ export const runFold: {
11376
11685
  * Effect.runSync(sumEffect) // => 15
11377
11686
  * ```
11378
11687
  *
11688
+ * @stability stable
11379
11689
  * @category running
11380
11690
  * @since 4.0.0
11381
11691
  */
@@ -11403,6 +11713,7 @@ export const runFold: {
11403
11713
  * Effect.runSync(sumEffect) // => 15
11404
11714
  * ```
11405
11715
  *
11716
+ * @stability stable
11406
11717
  * @category running
11407
11718
  * @since 4.0.0
11408
11719
  */
@@ -11446,6 +11757,7 @@ export const runFold: {
11446
11757
  * the effectful accumulator function. The returned effect succeeds with the
11447
11758
  * final accumulator value.
11448
11759
  *
11760
+ * @stability stable
11449
11761
  * @category running
11450
11762
  * @since 4.0.0
11451
11763
  */
@@ -11464,6 +11776,7 @@ export const runFoldEffect: {
11464
11776
  * the effectful accumulator function. The returned effect succeeds with the
11465
11777
  * final accumulator value.
11466
11778
  *
11779
+ * @stability stable
11467
11780
  * @category running
11468
11781
  * @since 4.0.0
11469
11782
  */
@@ -11484,6 +11797,7 @@ export const runFoldEffect: {
11484
11797
  * the effectful accumulator function. The returned effect succeeds with the
11485
11798
  * final accumulator value.
11486
11799
  *
11800
+ * @stability stable
11487
11801
  * @category running
11488
11802
  * @since 4.0.0
11489
11803
  */
@@ -11544,6 +11858,7 @@ export const runFoldEffect: {
11544
11858
  * await Effect.runPromise(program) // => [1, 2, 3]
11545
11859
  * ```
11546
11860
  *
11861
+ * @stability stable
11547
11862
  * @category destructors
11548
11863
  * @since 2.0.0
11549
11864
  */
@@ -11594,6 +11909,7 @@ export const toPull: <OutElem, OutErr, OutDone, Env>(
11594
11909
  * await Effect.runPromise(Effect.scoped(scopedPullEffect)) // => [1, 2, 3]
11595
11910
  * ```
11596
11911
  *
11912
+ * @stability stable
11597
11913
  * @category destructors
11598
11914
  * @since 4.0.0
11599
11915
  */
@@ -11611,6 +11927,7 @@ export const toPullScoped = <OutElem, OutErr, OutDone, Env>(
11611
11927
  * queue is failed with the channel's cause. The returned effect itself
11612
11928
  * completes with `void`.
11613
11929
  *
11930
+ * @stability stable
11614
11931
  * @category destructors
11615
11932
  * @since 4.0.0
11616
11933
  */
@@ -11624,6 +11941,7 @@ export const runIntoQueue: {
11624
11941
  * queue is failed with the channel's cause. The returned effect itself
11625
11942
  * completes with `void`.
11626
11943
  *
11944
+ * @stability stable
11627
11945
  * @category destructors
11628
11946
  * @since 4.0.0
11629
11947
  */
@@ -11639,6 +11957,7 @@ export const runIntoQueue: {
11639
11957
  * queue is failed with the channel's cause. The returned effect itself
11640
11958
  * completes with `void`.
11641
11959
  *
11960
+ * @stability stable
11642
11961
  * @category destructors
11643
11962
  * @since 4.0.0
11644
11963
  */
@@ -11678,6 +11997,7 @@ export const runIntoQueue: {
11678
11997
  * queue is failed with the channel's cause. The returned effect itself
11679
11998
  * completes with `void`.
11680
11999
  *
12000
+ * @stability stable
11681
12001
  * @category destructors
11682
12002
  * @since 4.0.0
11683
12003
  */
@@ -11692,6 +12012,7 @@ export const runIntoQueueArray: {
11692
12012
  * queue is failed with the channel's cause. The returned effect itself
11693
12013
  * completes with `void`.
11694
12014
  *
12015
+ * @stability stable
11695
12016
  * @category destructors
11696
12017
  * @since 4.0.0
11697
12018
  */
@@ -11708,6 +12029,7 @@ export const runIntoQueueArray: {
11708
12029
  * queue is failed with the channel's cause. The returned effect itself
11709
12030
  * completes with `void`.
11710
12031
  *
12032
+ * @stability stable
11711
12033
  * @category destructors
11712
12034
  * @since 4.0.0
11713
12035
  */
@@ -11767,6 +12089,7 @@ export const runIntoQueueArray: {
11767
12089
  * await Effect.runPromise(program) // => [1, 2, 3, 4, 5]
11768
12090
  * ```
11769
12091
  *
12092
+ * @stability stable
11770
12093
  * @category destructors
11771
12094
  * @since 2.0.0
11772
12095
  */
@@ -11801,6 +12124,7 @@ export const toQueue: {
11801
12124
  * await Effect.runPromise(program) // => [1, 2, 3, 4, 5]
11802
12125
  * ```
11803
12126
  *
12127
+ * @stability stable
11804
12128
  * @category destructors
11805
12129
  * @since 2.0.0
11806
12130
  */
@@ -11844,6 +12168,7 @@ export const toQueue: {
11844
12168
  * await Effect.runPromise(program) // => [1, 2, 3, 4, 5]
11845
12169
  * ```
11846
12170
  *
12171
+ * @stability stable
11847
12172
  * @category destructors
11848
12173
  * @since 2.0.0
11849
12174
  */
@@ -11898,6 +12223,7 @@ export const toQueue: {
11898
12223
  * await Effect.runPromise(program) // => [1, 2, 3, 4, 5]
11899
12224
  * ```
11900
12225
  *
12226
+ * @stability stable
11901
12227
  * @category destructors
11902
12228
  * @since 2.0.0
11903
12229
  */
@@ -11931,6 +12257,7 @@ export const toQueue: {
11931
12257
  * await Effect.runPromise(program) // => [1, 2, 3, 4, 5]
11932
12258
  * ```
11933
12259
  *
12260
+ * @stability stable
11934
12261
  * @category destructors
11935
12262
  * @since 2.0.0
11936
12263
  */
@@ -11953,6 +12280,7 @@ export const toQueue: {
11953
12280
  * completion and failure are signaled through the queue. The queue is shut down
11954
12281
  * when the surrounding scope closes.
11955
12282
  *
12283
+ * @stability stable
11956
12284
  * @category destructors
11957
12285
  * @since 4.0.0
11958
12286
  */
@@ -11966,6 +12294,7 @@ export const toQueueArray: {
11966
12294
  * completion and failure are signaled through the queue. The queue is shut down
11967
12295
  * when the surrounding scope closes.
11968
12296
  *
12297
+ * @stability stable
11969
12298
  * @category destructors
11970
12299
  * @since 4.0.0
11971
12300
  */
@@ -11988,6 +12317,7 @@ export const toQueueArray: {
11988
12317
  * completion and failure are signaled through the queue. The queue is shut down
11989
12318
  * when the surrounding scope closes.
11990
12319
  *
12320
+ * @stability stable
11991
12321
  * @category destructors
11992
12322
  * @since 4.0.0
11993
12323
  */
@@ -12021,6 +12351,7 @@ export const toQueueArray: {
12021
12351
  * completion and failure are signaled through the queue. The queue is shut down
12022
12352
  * when the surrounding scope closes.
12023
12353
  *
12354
+ * @stability stable
12024
12355
  * @category destructors
12025
12356
  * @since 4.0.0
12026
12357
  */
@@ -12033,6 +12364,7 @@ export const toQueueArray: {
12033
12364
  * completion and failure are signaled through the queue. The queue is shut down
12034
12365
  * when the surrounding scope closes.
12035
12366
  *
12367
+ * @stability stable
12036
12368
  * @category destructors
12037
12369
  * @since 4.0.0
12038
12370
  */
@@ -12054,6 +12386,7 @@ export const toQueueArray: {
12054
12386
  * `shutdownOnEnd` indicates whether the PubSub should be shut down when the
12055
12387
  * channel ends. By default this is `true`.
12056
12388
  *
12389
+ * @stability stable
12057
12390
  * @category destructors
12058
12391
  * @since 2.0.0
12059
12392
  */
@@ -12066,6 +12399,7 @@ export const toPubSub: {
12066
12399
  * `shutdownOnEnd` indicates whether the PubSub should be shut down when the
12067
12400
  * channel ends. By default this is `true`.
12068
12401
  *
12402
+ * @stability stable
12069
12403
  * @category destructors
12070
12404
  * @since 2.0.0
12071
12405
  */
@@ -12091,6 +12425,7 @@ export const toPubSub: {
12091
12425
  * `shutdownOnEnd` indicates whether the PubSub should be shut down when the
12092
12426
  * channel ends. By default this is `true`.
12093
12427
  *
12428
+ * @stability stable
12094
12429
  * @category destructors
12095
12430
  * @since 2.0.0
12096
12431
  */
@@ -12130,6 +12465,7 @@ export const toPubSub: {
12130
12465
  * `shutdownOnEnd` indicates whether the PubSub should be shut down when the
12131
12466
  * channel ends. By default this is `true`.
12132
12467
  *
12468
+ * @stability stable
12133
12469
  * @category destructors
12134
12470
  * @since 2.0.0
12135
12471
  */
@@ -12149,6 +12485,7 @@ export const toPubSub: {
12149
12485
  * The channel's output values are published as individual PubSub messages. Use
12150
12486
  * `options.shutdownOnEnd` to shut down the PubSub when channel execution ends.
12151
12487
  *
12488
+ * @stability stable
12152
12489
  * @category destructors
12153
12490
  * @since 4.0.0
12154
12491
  */
@@ -12161,6 +12498,7 @@ export const runIntoPubSub: {
12161
12498
  * The channel's output values are published as individual PubSub messages. Use
12162
12499
  * `options.shutdownOnEnd` to shut down the PubSub when channel execution ends.
12163
12500
  *
12501
+ * @stability stable
12164
12502
  * @category destructors
12165
12503
  * @since 4.0.0
12166
12504
  */
@@ -12171,7 +12509,7 @@ export const runIntoPubSub: {
12171
12509
  } | undefined
12172
12510
  ): <OutErr, OutDone, Env>(
12173
12511
  self: Channel<OutElem, OutErr, OutDone, unknown, unknown, unknown, Env>
12174
- ) => Effect.Effect<void, never, Env>
12512
+ ) => Effect.Effect<void, OutErr, Env>
12175
12513
  /**
12176
12514
  * Runs a channel and publishes each output element to a `PubSub`.
12177
12515
  *
@@ -12180,6 +12518,7 @@ export const runIntoPubSub: {
12180
12518
  * The channel's output values are published as individual PubSub messages. Use
12181
12519
  * `options.shutdownOnEnd` to shut down the PubSub when channel execution ends.
12182
12520
  *
12521
+ * @stability stable
12183
12522
  * @category destructors
12184
12523
  * @since 4.0.0
12185
12524
  */
@@ -12189,7 +12528,7 @@ export const runIntoPubSub: {
12189
12528
  options?: {
12190
12529
  readonly shutdownOnEnd?: boolean | undefined
12191
12530
  } | undefined
12192
- ): Effect.Effect<void, never, Env>
12531
+ ): Effect.Effect<void, OutErr, Env>
12193
12532
  } = dual(
12194
12533
  (args) => isChannel(args[0]),
12195
12534
  <OutElem, OutErr, OutDone, Env>(
@@ -12235,6 +12574,7 @@ const makePubSub = <A>(
12235
12574
  * PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut
12236
12575
  * down when the channel ends. By default this is `true`.
12237
12576
  *
12577
+ * @stability stable
12238
12578
  * @category destructors
12239
12579
  * @since 4.0.0
12240
12580
  */
@@ -12249,6 +12589,7 @@ export const toPubSubArray: {
12249
12589
  * PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut
12250
12590
  * down when the channel ends. By default this is `true`.
12251
12591
  *
12592
+ * @stability stable
12252
12593
  * @category destructors
12253
12594
  * @since 4.0.0
12254
12595
  */
@@ -12276,6 +12617,7 @@ export const toPubSubArray: {
12276
12617
  * PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut
12277
12618
  * down when the channel ends. By default this is `true`.
12278
12619
  *
12620
+ * @stability stable
12279
12621
  * @category destructors
12280
12622
  * @since 4.0.0
12281
12623
  */
@@ -12317,6 +12659,7 @@ export const toPubSubArray: {
12317
12659
  * PubSub message. `shutdownOnEnd` indicates whether the PubSub should be shut
12318
12660
  * down when the channel ends. By default this is `true`.
12319
12661
  *
12662
+ * @stability stable
12320
12663
  * @category destructors
12321
12664
  * @since 4.0.0
12322
12665
  */
@@ -12338,6 +12681,7 @@ export const toPubSubArray: {
12338
12681
  * PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when
12339
12682
  * channel execution ends.
12340
12683
  *
12684
+ * @stability stable
12341
12685
  * @category destructors
12342
12686
  * @since 4.0.0
12343
12687
  */
@@ -12352,6 +12696,7 @@ export const runIntoPubSubArray: {
12352
12696
  * PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when
12353
12697
  * channel execution ends.
12354
12698
  *
12699
+ * @stability stable
12355
12700
  * @category destructors
12356
12701
  * @since 4.0.0
12357
12702
  */
@@ -12373,6 +12718,7 @@ export const runIntoPubSubArray: {
12373
12718
  * PubSub message. Use `options.shutdownOnEnd` to shut down the PubSub when
12374
12719
  * channel execution ends.
12375
12720
  *
12721
+ * @stability stable
12376
12722
  * @category destructors
12377
12723
  * @since 4.0.0
12378
12724
  */
@@ -12407,6 +12753,7 @@ export const runIntoPubSubArray: {
12407
12753
  * subscriber, including one that subscribes later, observes completion or
12408
12754
  * failure once it has consumed its buffered values.
12409
12755
  *
12756
+ * @stability stable
12410
12757
  * @category destructors
12411
12758
  * @since 4.0.0
12412
12759
  */
@@ -12421,6 +12768,7 @@ export const toPubSubTake: {
12421
12768
  * subscriber, including one that subscribes later, observes completion or
12422
12769
  * failure once it has consumed its buffered values.
12423
12770
  *
12771
+ * @stability stable
12424
12772
  * @category destructors
12425
12773
  * @since 4.0.0
12426
12774
  */
@@ -12450,6 +12798,7 @@ export const toPubSubTake: {
12450
12798
  * subscriber, including one that subscribes later, observes completion or
12451
12799
  * failure once it has consumed its buffered values.
12452
12800
  *
12801
+ * @stability stable
12453
12802
  * @category destructors
12454
12803
  * @since 4.0.0
12455
12804
  */
@@ -12491,6 +12840,7 @@ export const toPubSubTake: {
12491
12840
  * subscriber, including one that subscribes later, observes completion or
12492
12841
  * failure once it has consumed its buffered values.
12493
12842
  *
12843
+ * @stability stable
12494
12844
  * @category destructors
12495
12845
  * @since 4.0.0
12496
12846
  */