effect 4.0.0-beta.73 → 4.0.0-beta.74

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 (345) hide show
  1. package/dist/Array.d.ts +16 -16
  2. package/dist/Array.js +4 -4
  3. package/dist/Boolean.d.ts +2 -2
  4. package/dist/Boolean.js +2 -2
  5. package/dist/Channel.d.ts +63 -63
  6. package/dist/Channel.js +25 -25
  7. package/dist/Chunk.d.ts +17 -17
  8. package/dist/Chunk.js +5 -5
  9. package/dist/Context.d.ts +3 -3
  10. package/dist/Context.js +1 -1
  11. package/dist/Cron.d.ts +4 -4
  12. package/dist/Cron.js +4 -4
  13. package/dist/Deferred.d.ts +37 -37
  14. package/dist/Deferred.js +13 -13
  15. package/dist/Duration.d.ts +6 -6
  16. package/dist/Duration.js +2 -2
  17. package/dist/Effect.d.ts +58 -58
  18. package/dist/Effect.js +39 -39
  19. package/dist/Equal.d.ts +2 -2
  20. package/dist/Equal.js +2 -2
  21. package/dist/Equivalence.d.ts +1 -1
  22. package/dist/Equivalence.js +1 -1
  23. package/dist/ExecutionPlan.d.ts +2 -2
  24. package/dist/ExecutionPlan.js +1 -1
  25. package/dist/FileSystem.d.ts +6 -6
  26. package/dist/FileSystem.js +2 -2
  27. package/dist/Function.d.ts +5 -5
  28. package/dist/Function.js +5 -5
  29. package/dist/Graph.d.ts +11 -11
  30. package/dist/Graph.js +5 -5
  31. package/dist/HKT.d.ts +1 -1
  32. package/dist/HashMap.d.ts +3 -3
  33. package/dist/HashSet.d.ts +1 -1
  34. package/dist/Iterable.d.ts +15 -15
  35. package/dist/Iterable.js +5 -5
  36. package/dist/Layer.d.ts +16 -16
  37. package/dist/Layer.js +5 -5
  38. package/dist/Logger.d.ts +5 -5
  39. package/dist/Logger.js +4 -4
  40. package/dist/ManagedRuntime.d.ts +2 -2
  41. package/dist/Match.d.ts +20 -20
  42. package/dist/Match.js +16 -16
  43. package/dist/Metric.d.ts +16 -16
  44. package/dist/Metric.js +3 -3
  45. package/dist/Option.d.ts +36 -36
  46. package/dist/Option.js +17 -17
  47. package/dist/Order.d.ts +1 -1
  48. package/dist/Order.js +1 -1
  49. package/dist/Path.d.ts +1 -1
  50. package/dist/Path.js +1 -1
  51. package/dist/Pipeable.d.ts +1 -1
  52. package/dist/Pipeable.js +1 -1
  53. package/dist/Predicate.d.ts +5 -5
  54. package/dist/PubSub.d.ts +9 -9
  55. package/dist/PubSub.js +5 -5
  56. package/dist/Queue.d.ts +24 -24
  57. package/dist/Queue.js +20 -20
  58. package/dist/Record.d.ts +15 -15
  59. package/dist/Record.js +5 -5
  60. package/dist/Redacted.d.ts +2 -2
  61. package/dist/Redacted.js +1 -1
  62. package/dist/Ref.d.ts +6 -6
  63. package/dist/Ref.js +6 -6
  64. package/dist/RegExp.d.ts +1 -1
  65. package/dist/RegExp.js +1 -1
  66. package/dist/Request.d.ts +4 -4
  67. package/dist/RequestResolver.d.ts +6 -6
  68. package/dist/RequestResolver.js +2 -2
  69. package/dist/Resource.d.ts +1 -1
  70. package/dist/Resource.js +1 -1
  71. package/dist/Result.d.ts +18 -18
  72. package/dist/Result.js +11 -11
  73. package/dist/Schedule.d.ts +44 -44
  74. package/dist/Schedule.js +18 -18
  75. package/dist/Schema.d.ts +177 -459
  76. package/dist/Schema.d.ts.map +1 -1
  77. package/dist/Schema.js +25 -25
  78. package/dist/Schema.js.map +1 -1
  79. package/dist/SchemaAST.d.ts +1 -1
  80. package/dist/SchemaGetter.d.ts +13 -13
  81. package/dist/SchemaGetter.js +12 -12
  82. package/dist/SchemaParser.d.ts +3 -3
  83. package/dist/SchemaParser.js +3 -3
  84. package/dist/Scope.d.ts +1 -1
  85. package/dist/Scope.js +1 -1
  86. package/dist/Sink.d.ts +5 -5
  87. package/dist/Sink.js +3 -3
  88. package/dist/Stream.d.ts +55 -55
  89. package/dist/Stream.js +21 -21
  90. package/dist/String.d.ts +5 -5
  91. package/dist/String.js +3 -3
  92. package/dist/Struct.d.ts +8 -8
  93. package/dist/Struct.js +3 -3
  94. package/dist/SynchronizedRef.d.ts +57 -57
  95. package/dist/SynchronizedRef.js +19 -19
  96. package/dist/Terminal.d.ts +1 -1
  97. package/dist/Terminal.js +1 -1
  98. package/dist/Tracer.d.ts +5 -5
  99. package/dist/Tracer.js +2 -2
  100. package/dist/Tuple.d.ts +14 -14
  101. package/dist/Tuple.js +6 -6
  102. package/dist/TxHashMap.d.ts +3 -3
  103. package/dist/TxHashSet.d.ts +1 -1
  104. package/dist/Unify.d.ts +7 -7
  105. package/dist/Unify.js +1 -1
  106. package/dist/testing/TestClock.d.ts +5 -5
  107. package/dist/testing/TestClock.js +4 -4
  108. package/dist/testing/TestConsole.d.ts +3 -3
  109. package/dist/testing/TestConsole.js +3 -3
  110. package/dist/unstable/ai/Chat.d.ts +2 -2
  111. package/dist/unstable/ai/Chat.js +2 -2
  112. package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
  113. package/dist/unstable/ai/IdGenerator.d.ts +2 -2
  114. package/dist/unstable/ai/IdGenerator.js +1 -1
  115. package/dist/unstable/ai/LanguageModel.d.ts +4 -4
  116. package/dist/unstable/ai/LanguageModel.js +1 -1
  117. package/dist/unstable/ai/Prompt.d.ts +15 -15
  118. package/dist/unstable/ai/Prompt.js +1 -1
  119. package/dist/unstable/ai/Telemetry.d.ts +5 -5
  120. package/dist/unstable/ai/Telemetry.js +2 -2
  121. package/dist/unstable/ai/Tokenizer.d.ts +1 -1
  122. package/dist/unstable/ai/Tokenizer.js +1 -1
  123. package/dist/unstable/ai/Tool.d.ts +6 -6
  124. package/dist/unstable/ai/Tool.js +6 -6
  125. package/dist/unstable/cli/Command.d.ts.map +1 -1
  126. package/dist/unstable/cli/Command.js +1 -1
  127. package/dist/unstable/cli/Command.js.map +1 -1
  128. package/dist/unstable/cli/Param.d.ts +1 -1
  129. package/dist/unstable/cli/Primitive.d.ts +3 -3
  130. package/dist/unstable/cli/Primitive.js +1 -1
  131. package/dist/unstable/cli/Prompt.d.ts +11 -11
  132. package/dist/unstable/cli/internal/parser.js +145 -10
  133. package/dist/unstable/cli/internal/parser.js.map +1 -1
  134. package/dist/unstable/cluster/Entity.d.ts +1 -1
  135. package/dist/unstable/cluster/Entity.js +1 -1
  136. package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
  137. package/dist/unstable/cluster/HttpRunner.js +2 -2
  138. package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
  139. package/dist/unstable/cluster/K8sHttpClient.js +1 -1
  140. package/dist/unstable/cluster/Runners.d.ts +1 -1
  141. package/dist/unstable/cluster/Runners.js +1 -1
  142. package/dist/unstable/cluster/Sharding.d.ts +1 -1
  143. package/dist/unstable/cluster/Sharding.js +1 -1
  144. package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
  145. package/dist/unstable/cluster/SingletonAddress.js +1 -1
  146. package/dist/unstable/cluster/Snowflake.d.ts +5 -5
  147. package/dist/unstable/cluster/Snowflake.js +5 -5
  148. package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
  149. package/dist/unstable/devtools/DevToolsClient.js +1 -1
  150. package/dist/unstable/eventlog/EventLog.d.ts +1 -1
  151. package/dist/unstable/eventlog/EventLog.js +1 -1
  152. package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
  153. package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
  154. package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
  155. package/dist/unstable/eventlog/EventLogRemote.js +1 -1
  156. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
  157. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
  158. package/dist/unstable/http/Cookies.d.ts +1 -1
  159. package/dist/unstable/http/Etag.d.ts +1 -1
  160. package/dist/unstable/http/Etag.js +1 -1
  161. package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
  162. package/dist/unstable/http/FetchHttpClient.js +2 -2
  163. package/dist/unstable/http/HttpClient.d.ts +1 -1
  164. package/dist/unstable/http/HttpClient.js +1 -1
  165. package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
  166. package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
  167. package/dist/unstable/http/HttpMiddleware.js +1 -1
  168. package/dist/unstable/http/HttpPlatform.d.ts +1 -1
  169. package/dist/unstable/http/HttpPlatform.js +1 -1
  170. package/dist/unstable/http/HttpRouter.d.ts +4 -4
  171. package/dist/unstable/http/HttpRouter.js +4 -4
  172. package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
  173. package/dist/unstable/http/Url.d.ts +33 -33
  174. package/dist/unstable/http/Url.js +11 -11
  175. package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
  176. package/dist/unstable/httpapi/HttpApi.js +1 -1
  177. package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
  178. package/dist/unstable/httpapi/HttpApiError.js +13 -13
  179. package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
  180. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  181. package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
  182. package/dist/unstable/persistence/KeyValueStore.js +1 -1
  183. package/dist/unstable/persistence/Persistable.d.ts +2 -2
  184. package/dist/unstable/persistence/Persistable.js +2 -2
  185. package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
  186. package/dist/unstable/persistence/PersistedQueue.js +8 -8
  187. package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
  188. package/dist/unstable/persistence/RateLimiter.js +1 -1
  189. package/dist/unstable/process/ChildProcess.d.ts +5 -5
  190. package/dist/unstable/process/ChildProcess.js +2 -2
  191. package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
  192. package/dist/unstable/reactivity/AsyncResult.js +1 -1
  193. package/dist/unstable/reactivity/Atom.d.ts +1 -1
  194. package/dist/unstable/reactivity/Atom.js +1 -1
  195. package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
  196. package/dist/unstable/reactivity/AtomRegistry.js +1 -1
  197. package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
  198. package/dist/unstable/reactivity/Reactivity.js +1 -1
  199. package/dist/unstable/rpc/Rpc.d.ts +5 -5
  200. package/dist/unstable/rpc/Rpc.js +1 -1
  201. package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
  202. package/dist/unstable/rpc/RpcMiddleware.js +1 -1
  203. package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
  204. package/dist/unstable/rpc/RpcSchema.js +2 -2
  205. package/dist/unstable/schema/Model.d.ts +2 -2
  206. package/dist/unstable/schema/Model.js +1 -1
  207. package/dist/unstable/socket/Socket.d.ts +3 -3
  208. package/dist/unstable/socket/Socket.js +3 -3
  209. package/dist/unstable/socket/SocketServer.d.ts +1 -1
  210. package/dist/unstable/socket/SocketServer.js +1 -1
  211. package/dist/unstable/sql/Migrator.d.ts +1 -1
  212. package/dist/unstable/sql/SqlClient.d.ts +3 -3
  213. package/dist/unstable/sql/SqlClient.js +2 -2
  214. package/dist/unstable/sql/SqlConnection.d.ts +1 -1
  215. package/dist/unstable/sql/SqlConnection.js +1 -1
  216. package/dist/unstable/sql/Statement.d.ts +2 -2
  217. package/dist/unstable/sql/Statement.js +2 -2
  218. package/dist/unstable/workers/Transferable.d.ts +1 -1
  219. package/dist/unstable/workers/Transferable.js +1 -1
  220. package/dist/unstable/workers/Worker.d.ts +1 -1
  221. package/dist/unstable/workers/Worker.js +1 -1
  222. package/dist/unstable/workflow/Activity.d.ts +1 -1
  223. package/dist/unstable/workflow/Activity.js +1 -1
  224. package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
  225. package/dist/unstable/workflow/DurableDeferred.js +1 -1
  226. package/package.json +1 -1
  227. package/src/Array.ts +16 -16
  228. package/src/Boolean.ts +2 -2
  229. package/src/Channel.ts +67 -67
  230. package/src/Chunk.ts +18 -18
  231. package/src/Context.ts +4 -4
  232. package/src/Cron.ts +4 -4
  233. package/src/Deferred.ts +37 -37
  234. package/src/Duration.ts +6 -6
  235. package/src/Effect.ts +58 -58
  236. package/src/Equal.ts +2 -2
  237. package/src/Equivalence.ts +1 -1
  238. package/src/ExecutionPlan.ts +2 -2
  239. package/src/FileSystem.ts +6 -6
  240. package/src/Function.ts +5 -5
  241. package/src/Graph.ts +11 -11
  242. package/src/HKT.ts +1 -1
  243. package/src/HashMap.ts +3 -3
  244. package/src/HashSet.ts +1 -1
  245. package/src/Iterable.ts +15 -15
  246. package/src/Layer.ts +16 -16
  247. package/src/Logger.ts +7 -7
  248. package/src/ManagedRuntime.ts +2 -2
  249. package/src/Match.ts +20 -20
  250. package/src/Metric.ts +20 -20
  251. package/src/Option.ts +36 -36
  252. package/src/Order.ts +1 -1
  253. package/src/Path.ts +1 -1
  254. package/src/Pipeable.ts +1 -1
  255. package/src/Predicate.ts +5 -5
  256. package/src/PubSub.ts +9 -9
  257. package/src/Queue.ts +24 -24
  258. package/src/Record.ts +15 -15
  259. package/src/Redacted.ts +2 -2
  260. package/src/Ref.ts +18 -18
  261. package/src/RegExp.ts +1 -1
  262. package/src/Request.ts +4 -4
  263. package/src/RequestResolver.ts +8 -8
  264. package/src/Resource.ts +1 -1
  265. package/src/Result.ts +18 -18
  266. package/src/Schedule.ts +45 -45
  267. package/src/Schema.ts +177 -459
  268. package/src/SchemaAST.ts +1 -1
  269. package/src/SchemaGetter.ts +13 -13
  270. package/src/SchemaParser.ts +3 -3
  271. package/src/Scope.ts +1 -1
  272. package/src/Sink.ts +5 -5
  273. package/src/Stream.ts +57 -57
  274. package/src/String.ts +5 -5
  275. package/src/Struct.ts +8 -8
  276. package/src/SynchronizedRef.ts +57 -57
  277. package/src/Terminal.ts +1 -1
  278. package/src/Tracer.ts +5 -5
  279. package/src/Tuple.ts +14 -14
  280. package/src/TxHashMap.ts +3 -3
  281. package/src/TxHashSet.ts +1 -1
  282. package/src/Unify.ts +7 -7
  283. package/src/testing/TestClock.ts +5 -5
  284. package/src/testing/TestConsole.ts +3 -3
  285. package/src/unstable/ai/Chat.ts +2 -2
  286. package/src/unstable/ai/EmbeddingModel.ts +1 -1
  287. package/src/unstable/ai/IdGenerator.ts +2 -2
  288. package/src/unstable/ai/LanguageModel.ts +4 -4
  289. package/src/unstable/ai/Prompt.ts +15 -15
  290. package/src/unstable/ai/Telemetry.ts +5 -5
  291. package/src/unstable/ai/Tokenizer.ts +1 -1
  292. package/src/unstable/ai/Tool.ts +6 -6
  293. package/src/unstable/cli/Command.ts +5 -1
  294. package/src/unstable/cli/Param.ts +1 -1
  295. package/src/unstable/cli/Primitive.ts +3 -3
  296. package/src/unstable/cli/Prompt.ts +11 -11
  297. package/src/unstable/cli/internal/parser.ts +204 -10
  298. package/src/unstable/cluster/Entity.ts +1 -1
  299. package/src/unstable/cluster/HttpRunner.ts +2 -2
  300. package/src/unstable/cluster/K8sHttpClient.ts +1 -1
  301. package/src/unstable/cluster/Runners.ts +1 -1
  302. package/src/unstable/cluster/Sharding.ts +1 -1
  303. package/src/unstable/cluster/SingletonAddress.ts +1 -1
  304. package/src/unstable/cluster/Snowflake.ts +5 -5
  305. package/src/unstable/devtools/DevToolsClient.ts +1 -1
  306. package/src/unstable/eventlog/EventLog.ts +1 -1
  307. package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
  308. package/src/unstable/eventlog/EventLogRemote.ts +1 -1
  309. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
  310. package/src/unstable/http/Cookies.ts +1 -1
  311. package/src/unstable/http/Etag.ts +1 -1
  312. package/src/unstable/http/FetchHttpClient.ts +2 -2
  313. package/src/unstable/http/HttpClient.ts +1 -1
  314. package/src/unstable/http/HttpClientRequest.ts +2 -2
  315. package/src/unstable/http/HttpMiddleware.ts +1 -1
  316. package/src/unstable/http/HttpPlatform.ts +1 -1
  317. package/src/unstable/http/HttpRouter.ts +4 -4
  318. package/src/unstable/http/HttpServerResponse.ts +3 -3
  319. package/src/unstable/http/Url.ts +33 -33
  320. package/src/unstable/httpapi/HttpApi.ts +1 -1
  321. package/src/unstable/httpapi/HttpApiError.ts +13 -13
  322. package/src/unstable/observability/PrometheusMetrics.ts +4 -4
  323. package/src/unstable/persistence/KeyValueStore.ts +3 -3
  324. package/src/unstable/persistence/Persistable.ts +2 -2
  325. package/src/unstable/persistence/PersistedQueue.ts +8 -8
  326. package/src/unstable/persistence/RateLimiter.ts +1 -1
  327. package/src/unstable/process/ChildProcess.ts +5 -5
  328. package/src/unstable/reactivity/AsyncResult.ts +4 -4
  329. package/src/unstable/reactivity/Atom.ts +1 -1
  330. package/src/unstable/reactivity/AtomRegistry.ts +1 -1
  331. package/src/unstable/reactivity/Reactivity.ts +1 -1
  332. package/src/unstable/rpc/Rpc.ts +5 -5
  333. package/src/unstable/rpc/RpcMiddleware.ts +1 -1
  334. package/src/unstable/rpc/RpcSchema.ts +3 -3
  335. package/src/unstable/schema/Model.ts +2 -2
  336. package/src/unstable/socket/Socket.ts +3 -3
  337. package/src/unstable/socket/SocketServer.ts +1 -1
  338. package/src/unstable/sql/Migrator.ts +1 -1
  339. package/src/unstable/sql/SqlClient.ts +3 -3
  340. package/src/unstable/sql/SqlConnection.ts +1 -1
  341. package/src/unstable/sql/Statement.ts +2 -2
  342. package/src/unstable/workers/Transferable.ts +1 -1
  343. package/src/unstable/workers/Worker.ts +1 -1
  344. package/src/unstable/workflow/Activity.ts +1 -1
  345. package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/src/Channel.ts CHANGED
@@ -3521,7 +3521,7 @@ export const flatten = <
3521
3521
  * // Outputs: 1, 2, 3, 4, 5, 6, 7, 8, 9
3522
3522
  * ```
3523
3523
  *
3524
- * @category utils
3524
+ * @category transforming
3525
3525
  * @since 4.0.0
3526
3526
  */
3527
3527
  export const flattenArray = <
@@ -3572,7 +3572,7 @@ export const flattenArray = <
3572
3572
  * Output `Take` values are emitted as non-empty arrays. Failed `Take` values
3573
3573
  * fail the returned channel. Done `Take` values complete the returned channel.
3574
3574
  *
3575
- * @category utils
3575
+ * @category transforming
3576
3576
  * @since 4.0.0
3577
3577
  */
3578
3578
  export const flattenTake = <
@@ -3636,14 +3636,14 @@ export const drain = <
3636
3636
  /**
3637
3637
  * Repeats this channel according to the provided schedule.
3638
3638
  *
3639
- * @category utils
3639
+ * @category repetition
3640
3640
  * @since 4.0.0
3641
3641
  */
3642
3642
  export const repeat: {
3643
3643
  /**
3644
3644
  * Repeats this channel according to the provided schedule.
3645
3645
  *
3646
- * @category utils
3646
+ * @category repetition
3647
3647
  * @since 4.0.0
3648
3648
  */
3649
3649
  <SO, OutDone, SE, SR>(
@@ -3658,7 +3658,7 @@ export const repeat: {
3658
3658
  /**
3659
3659
  * Repeats this channel according to the provided schedule.
3660
3660
  *
3661
- * @category utils
3661
+ * @category repetition
3662
3662
  * @since 4.0.0
3663
3663
  */
3664
3664
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, SO, SE, SR>(
@@ -3708,7 +3708,7 @@ export const repeat: {
3708
3708
  /**
3709
3709
  * Repeats this channel forever.
3710
3710
  *
3711
- * @category utils
3711
+ * @category repetition
3712
3712
  * @since 4.0.0
3713
3713
  */
3714
3714
  export const forever = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -3726,7 +3726,7 @@ export const forever = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
3726
3726
  * fails. If the schedule finishes, the returned channel completes with the
3727
3727
  * schedule output.
3728
3728
  *
3729
- * @category utils
3729
+ * @category sequencing
3730
3730
  * @since 4.0.0
3731
3731
  */
3732
3732
  export const schedule: {
@@ -3741,7 +3741,7 @@ export const schedule: {
3741
3741
  * fails. If the schedule finishes, the returned channel completes with the
3742
3742
  * schedule output.
3743
3743
  *
3744
- * @category utils
3744
+ * @category sequencing
3745
3745
  * @since 4.0.0
3746
3746
  */
3747
3747
  <SO, OutElem, SE, SR>(schedule: Schedule.Schedule<SO, Types.NoInfer<OutElem>, SE, SR>): <OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -3758,7 +3758,7 @@ export const schedule: {
3758
3758
  * fails. If the schedule finishes, the returned channel completes with the
3759
3759
  * schedule output.
3760
3760
  *
3761
- * @category utils
3761
+ * @category sequencing
3762
3762
  * @since 4.0.0
3763
3763
  */
3764
3764
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, SO, SE, SR>(
@@ -7495,7 +7495,7 @@ export const ignoreCause: <
7495
7495
  * Returns a new channel that retries this channel according to the specified
7496
7496
  * schedule whenever it fails.
7497
7497
  *
7498
- * @category utils
7498
+ * @category error handling
7499
7499
  * @since 4.0.0
7500
7500
  */
7501
7501
  export const retry: {
@@ -7503,7 +7503,7 @@ export const retry: {
7503
7503
  * Returns a new channel that retries this channel according to the specified
7504
7504
  * schedule whenever it fails.
7505
7505
  *
7506
- * @category utils
7506
+ * @category error handling
7507
7507
  * @since 4.0.0
7508
7508
  */
7509
7509
  <SO, OutErr, SE, SR>(
@@ -7521,7 +7521,7 @@ export const retry: {
7521
7521
  * Returns a new channel that retries this channel according to the specified
7522
7522
  * schedule whenever it fails.
7523
7523
  *
7524
- * @category utils
7524
+ * @category error handling
7525
7525
  * @since 4.0.0
7526
7526
  */
7527
7527
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, SO, SE, SR>(
@@ -7798,7 +7798,7 @@ export const switchMap: {
7798
7798
  * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
7799
7799
  * ```
7800
7800
  *
7801
- * @category utils
7801
+ * @category combining
7802
7802
  * @since 2.0.0
7803
7803
  */
7804
7804
  export const mergeAll: {
@@ -7830,7 +7830,7 @@ export const mergeAll: {
7830
7830
  * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
7831
7831
  * ```
7832
7832
  *
7833
- * @category utils
7833
+ * @category combining
7834
7834
  * @since 2.0.0
7835
7835
  */
7836
7836
  (
@@ -7886,7 +7886,7 @@ export const mergeAll: {
7886
7886
  * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
7887
7887
  * ```
7888
7888
  *
7889
- * @category utils
7889
+ * @category combining
7890
7890
  * @since 2.0.0
7891
7891
  */
7892
7892
  <OutElem, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1, OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -7976,7 +7976,7 @@ export const mergeAll: {
7976
7976
  * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
7977
7977
  * ```
7978
7978
  *
7979
- * @category utils
7979
+ * @category combining
7980
7980
  * @since 2.0.0
7981
7981
  */
7982
7982
  OutElem, /**
@@ -8007,7 +8007,7 @@ export const mergeAll: {
8007
8007
  * // Outputs: 1, 2, 3, 4, 5, 6 (order may vary due to concurrency)
8008
8008
  * ```
8009
8009
  *
8010
- * @category utils
8010
+ * @category combining
8011
8011
  * @since 2.0.0
8012
8012
  */
8013
8013
  OutErr | OutErr1 | Cause.Done<OutDone>>(
@@ -8110,7 +8110,7 @@ export type HaltStrategy = "left" | "right" | "both" | "either"
8110
8110
  * // Order may vary: 1, "a", 2, "b", 3, "c"
8111
8111
  * ```
8112
8112
  *
8113
- * @category utils
8113
+ * @category combining
8114
8114
  * @since 4.0.0
8115
8115
  */
8116
8116
  export const merge: {
@@ -8140,7 +8140,7 @@ export const merge: {
8140
8140
  * // Order may vary: 1, "a", 2, "b", 3, "c"
8141
8141
  * ```
8142
8142
  *
8143
- * @category utils
8143
+ * @category combining
8144
8144
  * @since 4.0.0
8145
8145
  */
8146
8146
  <OutElem1, OutErr1, OutDone1, InElem1, InErr1, InDone1, Env1>(
@@ -8185,7 +8185,7 @@ export const merge: {
8185
8185
  * // Order may vary: 1, "a", 2, "b", 3, "c"
8186
8186
  * ```
8187
8187
  *
8188
- * @category utils
8188
+ * @category combining
8189
8189
  * @since 4.0.0
8190
8190
  */
8191
8191
  <
@@ -8276,7 +8276,7 @@ export const merge: {
8276
8276
  * // Order may vary: 1, "a", 2, "b", 3, "c"
8277
8277
  * ```
8278
8278
  *
8279
- * @category utils
8279
+ * @category combining
8280
8280
  * @since 4.0.0
8281
8281
  */
8282
8282
  OutElem | OutElem1, /**
@@ -8305,7 +8305,7 @@ export const merge: {
8305
8305
  * // Order may vary: 1, "a", 2, "b", 3, "c"
8306
8306
  * ```
8307
8307
  *
8308
- * @category utils
8308
+ * @category combining
8309
8309
  * @since 4.0.0
8310
8310
  */
8311
8311
  OutErr | OutErr1 | Cause.Done<OutDone | OutDone1>>(0)
@@ -8374,7 +8374,7 @@ export const merge: {
8374
8374
  * The effect's successful value is ignored. If the effect fails while the
8375
8375
  * channel is running, the returned channel fails with that error.
8376
8376
  *
8377
- * @category utils
8377
+ * @category combining
8378
8378
  * @since 4.0.0
8379
8379
  */
8380
8380
  export const mergeEffect: {
@@ -8387,7 +8387,7 @@ export const mergeEffect: {
8387
8387
  * The effect's successful value is ignored. If the effect fails while the
8388
8388
  * channel is running, the returned channel fails with that error.
8389
8389
  *
8390
- * @category utils
8390
+ * @category combining
8391
8391
  * @since 4.0.0
8392
8392
  */
8393
8393
  <X, E, R>(effect: Effect.Effect<X, E, R>): <OutElem, OutDone, OutErr, InElem, InErr, InDone, Env>(
@@ -8402,7 +8402,7 @@ export const mergeEffect: {
8402
8402
  * The effect's successful value is ignored. If the effect fails while the
8403
8403
  * channel is running, the returned channel fails with that error.
8404
8404
  *
8405
- * @category utils
8405
+ * @category combining
8406
8406
  * @since 4.0.0
8407
8407
  */
8408
8408
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, X, E, R>(
@@ -8628,7 +8628,7 @@ export const encodeText = <Err, Done>(): Channel<
8628
8628
  * // Outputs: 2, 4, 6
8629
8629
  * ```
8630
8630
  *
8631
- * @category utils
8631
+ * @category sequencing
8632
8632
  * @since 2.0.0
8633
8633
  */
8634
8634
  export const pipeTo: {
@@ -8657,7 +8657,7 @@ export const pipeTo: {
8657
8657
  * // Outputs: 2, 4, 6
8658
8658
  * ```
8659
8659
  *
8660
- * @category utils
8660
+ * @category sequencing
8661
8661
  * @since 2.0.0
8662
8662
  */
8663
8663
  <OutElem2, OutErr2, OutDone2, OutElem, OutErr, OutDone, Env2>(that: Channel<OutElem2, OutErr2, OutDone2, OutElem, OutErr, OutDone, Env2>): <InElem, InErr, InDone, Env>(
@@ -8688,7 +8688,7 @@ export const pipeTo: {
8688
8688
  * // Outputs: 2, 4, 6
8689
8689
  * ```
8690
8690
  *
8691
- * @category utils
8691
+ * @category sequencing
8692
8692
  * @since 2.0.0
8693
8693
  */
8694
8694
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutElem2, OutErr2, OutDone2, Env2>(
@@ -8730,7 +8730,7 @@ export const pipeTo: {
8730
8730
  * // Source errors are preserved and not sent to transform channel
8731
8731
  * ```
8732
8732
  *
8733
- * @category utils
8733
+ * @category sequencing
8734
8734
  * @since 2.0.0
8735
8735
  */
8736
8736
  export const pipeToOrFail: {
@@ -8758,7 +8758,7 @@ export const pipeToOrFail: {
8758
8758
  * // Source errors are preserved and not sent to transform channel
8759
8759
  * ```
8760
8760
  *
8761
- * @category utils
8761
+ * @category sequencing
8762
8762
  * @since 2.0.0
8763
8763
  */
8764
8764
  <OutElem2, OutErr2, OutDone2, OutElem, OutDone, Env2>(that: Channel<OutElem2, OutErr2, OutDone2, OutElem, never, OutDone, Env2>): <OutErr, InElem, InErr, InDone, Env>(
@@ -8788,7 +8788,7 @@ export const pipeToOrFail: {
8788
8788
  * // Source errors are preserved and not sent to transform channel
8789
8789
  * ```
8790
8790
  *
8791
- * @category utils
8791
+ * @category sequencing
8792
8792
  * @since 2.0.0
8793
8793
  */
8794
8794
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutElem2, OutErr2, OutDone2, Env2>(
@@ -8867,7 +8867,7 @@ export const unwrap = <OutElem, OutErr, OutDone, InElem, InErr, InDone, R2, E, R
8867
8867
  * Runs a channel with a scope provided for the duration of the channel
8868
8868
  * execution, removing the channel's `Scope` requirement.
8869
8869
  *
8870
- * @category utils
8870
+ * @category resource management
8871
8871
  * @since 2.0.0
8872
8872
  */
8873
8873
  export const scoped = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -8911,7 +8911,7 @@ export const scoped = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
8911
8911
  * )
8912
8912
  * ```
8913
8913
  *
8914
- * @category utils
8914
+ * @category sequencing
8915
8915
  * @since 2.0.0
8916
8916
  */
8917
8917
  export const embedInput: {
@@ -8946,7 +8946,7 @@ export const embedInput: {
8946
8946
  * )
8947
8947
  * ```
8948
8948
  *
8949
- * @category utils
8949
+ * @category sequencing
8950
8950
  * @since 2.0.0
8951
8951
  */
8952
8952
  <InElem, InErr, InDone, R>(
@@ -8987,7 +8987,7 @@ export const embedInput: {
8987
8987
  * )
8988
8988
  * ```
8989
8989
  *
8990
- * @category utils
8990
+ * @category sequencing
8991
8991
  * @since 2.0.0
8992
8992
  */
8993
8993
  <OutElem, OutErr, OutDone, Env, InErr, InElem, InDone, R>(
@@ -9314,7 +9314,7 @@ export const bufferArray: {
9314
9314
  * channel's done value. If the channel completes first, the original channel's
9315
9315
  * done value is preserved.
9316
9316
  *
9317
- * @category utils
9317
+ * @category interruption
9318
9318
  * @since 2.0.0
9319
9319
  */
9320
9320
  export const interruptWhen: {
@@ -9332,7 +9332,7 @@ export const interruptWhen: {
9332
9332
  * channel's done value. If the channel completes first, the original channel's
9333
9333
  * done value is preserved.
9334
9334
  *
9335
- * @category utils
9335
+ * @category interruption
9336
9336
  * @since 2.0.0
9337
9337
  */
9338
9338
  <OutDone2, OutErr2, Env2>(effect: Effect.Effect<OutDone2, OutErr2, Env2>): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -9352,7 +9352,7 @@ export const interruptWhen: {
9352
9352
  * channel's done value. If the channel completes first, the original channel's
9353
9353
  * done value is preserved.
9354
9354
  *
9355
- * @category utils
9355
+ * @category interruption
9356
9356
  * @since 2.0.0
9357
9357
  */
9358
9358
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutDone2, OutErr2, Env2>(
@@ -9379,7 +9379,7 @@ export const interruptWhen: {
9379
9379
  * fails with that error. If the channel completes first, the channel's done
9380
9380
  * value is preserved.
9381
9381
  *
9382
- * @category utils
9382
+ * @category interruption
9383
9383
  * @since 4.0.0
9384
9384
  */
9385
9385
  export const haltWhen: {
@@ -9393,7 +9393,7 @@ export const haltWhen: {
9393
9393
  * fails with that error. If the channel completes first, the channel's done
9394
9394
  * value is preserved.
9395
9395
  *
9396
- * @category utils
9396
+ * @category interruption
9397
9397
  * @since 4.0.0
9398
9398
  */
9399
9399
  <OutDone2, OutErr2, Env2>(effect: Effect.Effect<OutDone2, OutErr2, Env2>): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -9409,7 +9409,7 @@ export const haltWhen: {
9409
9409
  * fails with that error. If the channel completes first, the channel's done
9410
9410
  * value is preserved.
9411
9411
  *
9412
- * @category utils
9412
+ * @category interruption
9413
9413
  * @since 4.0.0
9414
9414
  */
9415
9415
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, OutDone2, OutErr2, Env2>(
@@ -9443,7 +9443,7 @@ export const haltWhen: {
9443
9443
  * The finalizer receives the failure `Cause`. The original channel failure is
9444
9444
  * preserved. The finalizer itself must not fail.
9445
9445
  *
9446
- * @category utils
9446
+ * @category error handling
9447
9447
  * @since 4.0.0
9448
9448
  */
9449
9449
  export const onError: {
@@ -9455,7 +9455,7 @@ export const onError: {
9455
9455
  * The finalizer receives the failure `Cause`. The original channel failure is
9456
9456
  * preserved. The finalizer itself must not fail.
9457
9457
  *
9458
- * @category utils
9458
+ * @category error handling
9459
9459
  * @since 4.0.0
9460
9460
  */
9461
9461
  <OutDone, OutErr, Env2>(
@@ -9471,7 +9471,7 @@ export const onError: {
9471
9471
  * The finalizer receives the failure `Cause`. The original channel failure is
9472
9472
  * preserved. The finalizer itself must not fail.
9473
9473
  *
9474
- * @category utils
9474
+ * @category error handling
9475
9475
  * @since 4.0.0
9476
9476
  */
9477
9477
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, Env2>(
@@ -9510,7 +9510,7 @@ export const onError: {
9510
9510
  * })
9511
9511
  * ```
9512
9512
  *
9513
- * @category utils
9513
+ * @category resource management
9514
9514
  * @since 4.0.0
9515
9515
  */
9516
9516
  export const onExit: {
@@ -9540,7 +9540,7 @@ export const onExit: {
9540
9540
  * })
9541
9541
  * ```
9542
9542
  *
9543
- * @category utils
9543
+ * @category resource management
9544
9544
  * @since 4.0.0
9545
9545
  */
9546
9546
  <OutDone, OutErr, Env2>(
@@ -9574,7 +9574,7 @@ export const onExit: {
9574
9574
  * })
9575
9575
  * ```
9576
9576
  *
9577
- * @category utils
9577
+ * @category resource management
9578
9578
  * @since 4.0.0
9579
9579
  */
9580
9580
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, Env2>(
@@ -9599,7 +9599,7 @@ export const onExit: {
9599
9599
  * The effect's successful value is ignored. If the effect fails, the returned
9600
9600
  * channel fails before running the source channel.
9601
9601
  *
9602
- * @category utils
9602
+ * @category hooks
9603
9603
  * @since 4.0.0
9604
9604
  */
9605
9605
  export const onStart: {
@@ -9611,7 +9611,7 @@ export const onStart: {
9611
9611
  * The effect's successful value is ignored. If the effect fails, the returned
9612
9612
  * channel fails before running the source channel.
9613
9613
  *
9614
- * @category utils
9614
+ * @category hooks
9615
9615
  * @since 4.0.0
9616
9616
  */
9617
9617
  <A, E, R>(onStart: Effect.Effect<A, E, R>): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -9625,7 +9625,7 @@ export const onStart: {
9625
9625
  * The effect's successful value is ignored. If the effect fails, the returned
9626
9626
  * channel fails before running the source channel.
9627
9627
  *
9628
- * @category utils
9628
+ * @category hooks
9629
9629
  * @since 4.0.0
9630
9630
  */
9631
9631
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, A, E, R>(
@@ -9646,7 +9646,7 @@ export const onStart: {
9646
9646
  * emitted unchanged. The effect is not run if the channel completes without
9647
9647
  * emitting an element.
9648
9648
  *
9649
- * @category utils
9649
+ * @category hooks
9650
9650
  * @since 4.0.0
9651
9651
  */
9652
9652
  export const onFirst: {
@@ -9659,7 +9659,7 @@ export const onFirst: {
9659
9659
  * emitted unchanged. The effect is not run if the channel completes without
9660
9660
  * emitting an element.
9661
9661
  *
9662
- * @category utils
9662
+ * @category hooks
9663
9663
  * @since 4.0.0
9664
9664
  */
9665
9665
  <OutElem, A, E, R>(onFirst: (element: Types.NoInfer<OutElem>) => Effect.Effect<A, E, R>): <OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -9674,7 +9674,7 @@ export const onFirst: {
9674
9674
  * emitted unchanged. The effect is not run if the channel completes without
9675
9675
  * emitting an element.
9676
9676
  *
9677
- * @category utils
9677
+ * @category hooks
9678
9678
  * @since 4.0.0
9679
9679
  */
9680
9680
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, A, E, R>(
@@ -9704,7 +9704,7 @@ export const onFirst: {
9704
9704
  * not run when the channel fails. If the effect fails, the returned channel
9705
9705
  * fails with that error.
9706
9706
  *
9707
- * @category utils
9707
+ * @category hooks
9708
9708
  * @since 4.0.0
9709
9709
  */
9710
9710
  export const onEnd: {
@@ -9717,7 +9717,7 @@ export const onEnd: {
9717
9717
  * not run when the channel fails. If the effect fails, the returned channel
9718
9718
  * fails with that error.
9719
9719
  *
9720
- * @category utils
9720
+ * @category hooks
9721
9721
  * @since 4.0.0
9722
9722
  */
9723
9723
  <A, E, R>(onEnd: Effect.Effect<A, E, R>): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -9732,7 +9732,7 @@ export const onEnd: {
9732
9732
  * not run when the channel fails. If the effect fails, the returned channel
9733
9733
  * fails with that error.
9734
9734
  *
9735
- * @category utils
9735
+ * @category hooks
9736
9736
  * @since 4.0.0
9737
9737
  */
9738
9738
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, A, E, R>(
@@ -9772,7 +9772,7 @@ export const onEnd: {
9772
9772
  * )
9773
9773
  * ```
9774
9774
  *
9775
- * @category utils
9775
+ * @category resource management
9776
9776
  * @since 2.0.0
9777
9777
  */
9778
9778
  export const ensuring: {
@@ -9799,7 +9799,7 @@ export const ensuring: {
9799
9799
  * )
9800
9800
  * ```
9801
9801
  *
9802
- * @category utils
9802
+ * @category resource management
9803
9803
  * @since 2.0.0
9804
9804
  */
9805
9805
  <Env2>(finalizer: Effect.Effect<unknown, never, Env2>): <OutElem, OutDone, OutErr, InElem, InErr, InDone, Env>(
@@ -9828,7 +9828,7 @@ export const ensuring: {
9828
9828
  * )
9829
9829
  * ```
9830
9830
  *
9831
- * @category utils
9831
+ * @category resource management
9832
9832
  * @since 2.0.0
9833
9833
  */
9834
9834
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, Env2>(
@@ -10283,7 +10283,7 @@ const withSpanImpl = <OutElem, OutErr, OutDone, InElem, InErr, InDone, R>(
10283
10283
  /**
10284
10284
  * The starting channel for Do notation, emitting an empty object.
10285
10285
  *
10286
- * @category Do notation
10286
+ * @category do notation
10287
10287
  * @since 4.0.0
10288
10288
  */
10289
10289
  export const Do: Channel<{}> = succeed({})
@@ -10337,7 +10337,7 @@ export {
10337
10337
  /**
10338
10338
  * Adds a computed field to each object emitted by a channel.
10339
10339
  *
10340
- * @category Do notation
10340
+ * @category do notation
10341
10341
  * @since 4.0.0
10342
10342
  */
10343
10343
  let_ as let
@@ -10353,7 +10353,7 @@ export {
10353
10353
  * channel's output becomes the value of the new field. `options.concurrency`
10354
10354
  * and `options.bufferSize` control how derived channels are flattened.
10355
10355
  *
10356
- * @category Do notation
10356
+ * @category do notation
10357
10357
  * @since 4.0.0
10358
10358
  */
10359
10359
  export const bind: {
@@ -10367,7 +10367,7 @@ export const bind: {
10367
10367
  * channel's output becomes the value of the new field. `options.concurrency`
10368
10368
  * and `options.bufferSize` control how derived channels are flattened.
10369
10369
  *
10370
- * @category Do notation
10370
+ * @category do notation
10371
10371
  * @since 4.0.0
10372
10372
  */
10373
10373
  <N extends string, OutElem extends object, B, OutErr2, OutDone2, InElem2, InErr2, InDone2, Env2>(
@@ -10398,7 +10398,7 @@ export const bind: {
10398
10398
  * channel's output becomes the value of the new field. `options.concurrency`
10399
10399
  * and `options.bufferSize` control how derived channels are flattened.
10400
10400
  *
10401
- * @category Do notation
10401
+ * @category do notation
10402
10402
  * @since 4.0.0
10403
10403
  */
10404
10404
  <
@@ -10485,7 +10485,7 @@ export const bind: {
10485
10485
  * @see {@link bind} for adding a field produced by another channel
10486
10486
  * @see {@link let_ let} for adding a computed field
10487
10487
  *
10488
- * @category Do notation
10488
+ * @category do notation
10489
10489
  * @since 4.0.0
10490
10490
  */
10491
10491
  export const bindTo: {
@@ -10501,7 +10501,7 @@ export const bindTo: {
10501
10501
  * @see {@link bind} for adding a field produced by another channel
10502
10502
  * @see {@link let_ let} for adding a computed field
10503
10503
  *
10504
- * @category Do notation
10504
+ * @category do notation
10505
10505
  * @since 4.0.0
10506
10506
  */
10507
10507
  <N extends string>(name: N): <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>(
@@ -10527,7 +10527,7 @@ export const bindTo: {
10527
10527
  * @see {@link bind} for adding a field produced by another channel
10528
10528
  * @see {@link let_ let} for adding a computed field
10529
10529
  *
10530
- * @category Do notation
10530
+ * @category do notation
10531
10531
  * @since 4.0.0
10532
10532
  */
10533
10533
  <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env, N extends string>(