@depup/effect 3.20.0-depup.0

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 (2716) hide show
  1. package/.index/package.json +6 -0
  2. package/Arbitrary/package.json +6 -0
  3. package/Array/package.json +6 -0
  4. package/BigDecimal/package.json +6 -0
  5. package/BigInt/package.json +6 -0
  6. package/Boolean/package.json +6 -0
  7. package/Brand/package.json +6 -0
  8. package/Cache/package.json +6 -0
  9. package/Cause/package.json +6 -0
  10. package/Channel/package.json +6 -0
  11. package/ChildExecutorDecision/package.json +6 -0
  12. package/Chunk/package.json +6 -0
  13. package/Clock/package.json +6 -0
  14. package/Config/package.json +6 -0
  15. package/ConfigError/package.json +6 -0
  16. package/ConfigProvider/package.json +6 -0
  17. package/ConfigProviderPathPatch/package.json +6 -0
  18. package/Console/package.json +6 -0
  19. package/Context/package.json +6 -0
  20. package/Cron/package.json +6 -0
  21. package/Data/package.json +6 -0
  22. package/DateTime/package.json +6 -0
  23. package/DefaultServices/package.json +6 -0
  24. package/Deferred/package.json +6 -0
  25. package/Differ/package.json +6 -0
  26. package/Duration/package.json +6 -0
  27. package/Effect/package.json +6 -0
  28. package/Effectable/package.json +6 -0
  29. package/Either/package.json +6 -0
  30. package/Encoding/package.json +6 -0
  31. package/Equal/package.json +6 -0
  32. package/Equivalence/package.json +6 -0
  33. package/ExecutionPlan/package.json +6 -0
  34. package/ExecutionStrategy/package.json +6 -0
  35. package/Exit/package.json +6 -0
  36. package/FastCheck/package.json +6 -0
  37. package/Fiber/package.json +6 -0
  38. package/FiberHandle/package.json +6 -0
  39. package/FiberId/package.json +6 -0
  40. package/FiberMap/package.json +6 -0
  41. package/FiberRef/package.json +6 -0
  42. package/FiberRefs/package.json +6 -0
  43. package/FiberRefsPatch/package.json +6 -0
  44. package/FiberSet/package.json +6 -0
  45. package/FiberStatus/package.json +6 -0
  46. package/Function/package.json +6 -0
  47. package/GlobalValue/package.json +6 -0
  48. package/Graph/package.json +6 -0
  49. package/GroupBy/package.json +6 -0
  50. package/HKT/package.json +6 -0
  51. package/Hash/package.json +6 -0
  52. package/HashMap/package.json +6 -0
  53. package/HashRing/package.json +6 -0
  54. package/HashSet/package.json +6 -0
  55. package/Inspectable/package.json +6 -0
  56. package/Iterable/package.json +6 -0
  57. package/JSONSchema/package.json +6 -0
  58. package/KeyedPool/package.json +6 -0
  59. package/LICENSE +21 -0
  60. package/Layer/package.json +6 -0
  61. package/LayerMap/package.json +6 -0
  62. package/List/package.json +6 -0
  63. package/LogLevel/package.json +6 -0
  64. package/LogSpan/package.json +6 -0
  65. package/Logger/package.json +6 -0
  66. package/Mailbox/package.json +6 -0
  67. package/ManagedRuntime/package.json +6 -0
  68. package/Match/package.json +6 -0
  69. package/MergeDecision/package.json +6 -0
  70. package/MergeState/package.json +6 -0
  71. package/MergeStrategy/package.json +6 -0
  72. package/Metric/package.json +6 -0
  73. package/MetricBoundaries/package.json +6 -0
  74. package/MetricHook/package.json +6 -0
  75. package/MetricKey/package.json +6 -0
  76. package/MetricKeyType/package.json +6 -0
  77. package/MetricLabel/package.json +6 -0
  78. package/MetricPair/package.json +6 -0
  79. package/MetricPolling/package.json +6 -0
  80. package/MetricRegistry/package.json +6 -0
  81. package/MetricState/package.json +6 -0
  82. package/Micro/package.json +6 -0
  83. package/ModuleVersion/package.json +6 -0
  84. package/MutableHashMap/package.json +6 -0
  85. package/MutableHashSet/package.json +6 -0
  86. package/MutableList/package.json +6 -0
  87. package/MutableQueue/package.json +6 -0
  88. package/MutableRef/package.json +6 -0
  89. package/NonEmptyIterable/package.json +6 -0
  90. package/Number/package.json +6 -0
  91. package/Option/package.json +6 -0
  92. package/Order/package.json +6 -0
  93. package/Ordering/package.json +6 -0
  94. package/ParseResult/package.json +6 -0
  95. package/PartitionedSemaphore/package.json +6 -0
  96. package/Pipeable/package.json +6 -0
  97. package/Pool/package.json +6 -0
  98. package/Predicate/package.json +6 -0
  99. package/Pretty/package.json +6 -0
  100. package/PrimaryKey/package.json +6 -0
  101. package/PubSub/package.json +6 -0
  102. package/Queue/package.json +6 -0
  103. package/README.md +32 -0
  104. package/Random/package.json +6 -0
  105. package/RateLimiter/package.json +6 -0
  106. package/RcMap/package.json +6 -0
  107. package/RcRef/package.json +6 -0
  108. package/Readable/package.json +6 -0
  109. package/Record/package.json +6 -0
  110. package/RedBlackTree/package.json +6 -0
  111. package/Redacted/package.json +6 -0
  112. package/Ref/package.json +6 -0
  113. package/RegExp/package.json +6 -0
  114. package/Reloadable/package.json +6 -0
  115. package/Request/package.json +6 -0
  116. package/RequestBlock/package.json +6 -0
  117. package/RequestResolver/package.json +6 -0
  118. package/Resource/package.json +6 -0
  119. package/Runtime/package.json +6 -0
  120. package/RuntimeFlags/package.json +6 -0
  121. package/RuntimeFlagsPatch/package.json +6 -0
  122. package/STM/package.json +6 -0
  123. package/Schedule/package.json +6 -0
  124. package/ScheduleDecision/package.json +6 -0
  125. package/ScheduleInterval/package.json +6 -0
  126. package/ScheduleIntervals/package.json +6 -0
  127. package/Scheduler/package.json +6 -0
  128. package/Schema/package.json +6 -0
  129. package/SchemaAST/package.json +6 -0
  130. package/Scope/package.json +6 -0
  131. package/ScopedCache/package.json +6 -0
  132. package/ScopedRef/package.json +6 -0
  133. package/Secret/package.json +6 -0
  134. package/SingleProducerAsyncInput/package.json +6 -0
  135. package/Sink/package.json +6 -0
  136. package/SortedMap/package.json +6 -0
  137. package/SortedSet/package.json +6 -0
  138. package/Stream/package.json +6 -0
  139. package/StreamEmit/package.json +6 -0
  140. package/StreamHaltStrategy/package.json +6 -0
  141. package/Streamable/package.json +6 -0
  142. package/String/package.json +6 -0
  143. package/Struct/package.json +6 -0
  144. package/Subscribable/package.json +6 -0
  145. package/SubscriptionRef/package.json +6 -0
  146. package/Supervisor/package.json +6 -0
  147. package/Symbol/package.json +6 -0
  148. package/SynchronizedRef/package.json +6 -0
  149. package/TArray/package.json +6 -0
  150. package/TDeferred/package.json +6 -0
  151. package/TMap/package.json +6 -0
  152. package/TPriorityQueue/package.json +6 -0
  153. package/TPubSub/package.json +6 -0
  154. package/TQueue/package.json +6 -0
  155. package/TRandom/package.json +6 -0
  156. package/TReentrantLock/package.json +6 -0
  157. package/TRef/package.json +6 -0
  158. package/TSemaphore/package.json +6 -0
  159. package/TSet/package.json +6 -0
  160. package/TSubscriptionRef/package.json +6 -0
  161. package/Take/package.json +6 -0
  162. package/TestAnnotation/package.json +6 -0
  163. package/TestAnnotationMap/package.json +6 -0
  164. package/TestAnnotations/package.json +6 -0
  165. package/TestClock/package.json +6 -0
  166. package/TestConfig/package.json +6 -0
  167. package/TestContext/package.json +6 -0
  168. package/TestLive/package.json +6 -0
  169. package/TestServices/package.json +6 -0
  170. package/TestSized/package.json +6 -0
  171. package/Tracer/package.json +6 -0
  172. package/Trie/package.json +6 -0
  173. package/Tuple/package.json +6 -0
  174. package/Types/package.json +6 -0
  175. package/Unify/package.json +6 -0
  176. package/UpstreamPullRequest/package.json +6 -0
  177. package/UpstreamPullStrategy/package.json +6 -0
  178. package/Utils/package.json +6 -0
  179. package/changes.json +14 -0
  180. package/dist/cjs/Arbitrary.js +813 -0
  181. package/dist/cjs/Arbitrary.js.map +1 -0
  182. package/dist/cjs/Array.js +2695 -0
  183. package/dist/cjs/Array.js.map +1 -0
  184. package/dist/cjs/BigDecimal.js +1116 -0
  185. package/dist/cjs/BigDecimal.js.map +1 -0
  186. package/dist/cjs/BigInt.js +567 -0
  187. package/dist/cjs/BigInt.js.map +1 -0
  188. package/dist/cjs/Boolean.js +251 -0
  189. package/dist/cjs/Boolean.js.map +1 -0
  190. package/dist/cjs/Brand.js +175 -0
  191. package/dist/cjs/Brand.js.map +1 -0
  192. package/dist/cjs/Cache.js +50 -0
  193. package/dist/cjs/Cache.js.map +1 -0
  194. package/dist/cjs/Cause.js +1011 -0
  195. package/dist/cjs/Cause.js.map +1 -0
  196. package/dist/cjs/Channel.js +889 -0
  197. package/dist/cjs/Channel.js.map +1 -0
  198. package/dist/cjs/ChildExecutorDecision.js +72 -0
  199. package/dist/cjs/ChildExecutorDecision.js.map +1 -0
  200. package/dist/cjs/Chunk.js +1114 -0
  201. package/dist/cjs/Chunk.js.map +1 -0
  202. package/dist/cjs/Clock.js +45 -0
  203. package/dist/cjs/Clock.js.map +1 -0
  204. package/dist/cjs/Config.js +328 -0
  205. package/dist/cjs/Config.js.map +1 -0
  206. package/dist/cjs/ConfigError.js +114 -0
  207. package/dist/cjs/ConfigError.js.map +1 -0
  208. package/dist/cjs/ConfigProvider.js +173 -0
  209. package/dist/cjs/ConfigProvider.js.map +1 -0
  210. package/dist/cjs/ConfigProviderPathPatch.js +38 -0
  211. package/dist/cjs/ConfigProviderPathPatch.js.map +1 -0
  212. package/dist/cjs/Console.js +125 -0
  213. package/dist/cjs/Console.js.map +1 -0
  214. package/dist/cjs/Context.js +367 -0
  215. package/dist/cjs/Context.js.map +1 -0
  216. package/dist/cjs/Cron.js +583 -0
  217. package/dist/cjs/Cron.js.map +1 -0
  218. package/dist/cjs/Data.js +291 -0
  219. package/dist/cjs/Data.js.map +1 -0
  220. package/dist/cjs/DateTime.js +1084 -0
  221. package/dist/cjs/DateTime.js.map +1 -0
  222. package/dist/cjs/DefaultServices.js +19 -0
  223. package/dist/cjs/DefaultServices.js.map +1 -0
  224. package/dist/cjs/Deferred.js +167 -0
  225. package/dist/cjs/Deferred.js.map +1 -0
  226. package/dist/cjs/Differ.js +140 -0
  227. package/dist/cjs/Differ.js.map +1 -0
  228. package/dist/cjs/Duration.js +737 -0
  229. package/dist/cjs/Duration.js.map +1 -0
  230. package/dist/cjs/Effect.js +10717 -0
  231. package/dist/cjs/Effect.js.map +1 -0
  232. package/dist/cjs/Effectable.js +58 -0
  233. package/dist/cjs/Effectable.js.map +1 -0
  234. package/dist/cjs/Either.js +654 -0
  235. package/dist/cjs/Either.js.map +1 -0
  236. package/dist/cjs/Encoding.js +155 -0
  237. package/dist/cjs/Encoding.js.map +1 -0
  238. package/dist/cjs/Equal.js +81 -0
  239. package/dist/cjs/Equal.js.map +1 -0
  240. package/dist/cjs/Equivalence.js +181 -0
  241. package/dist/cjs/Equivalence.js.map +1 -0
  242. package/dist/cjs/ExecutionPlan.js +108 -0
  243. package/dist/cjs/ExecutionPlan.js.map +1 -0
  244. package/dist/cjs/ExecutionStrategy.js +62 -0
  245. package/dist/cjs/ExecutionStrategy.js.map +1 -0
  246. package/dist/cjs/Exit.js +256 -0
  247. package/dist/cjs/Exit.js.map +1 -0
  248. package/dist/cjs/FastCheck.js +17 -0
  249. package/dist/cjs/FastCheck.js.map +1 -0
  250. package/dist/cjs/Fiber.js +340 -0
  251. package/dist/cjs/Fiber.js.map +1 -0
  252. package/dist/cjs/FiberHandle.js +335 -0
  253. package/dist/cjs/FiberHandle.js.map +1 -0
  254. package/dist/cjs/FiberId.js +122 -0
  255. package/dist/cjs/FiberId.js.map +1 -0
  256. package/dist/cjs/FiberMap.js +374 -0
  257. package/dist/cjs/FiberMap.js.map +1 -0
  258. package/dist/cjs/FiberRef.js +243 -0
  259. package/dist/cjs/FiberRef.js.map +1 -0
  260. package/dist/cjs/FiberRefs.js +91 -0
  261. package/dist/cjs/FiberRefs.js.map +1 -0
  262. package/dist/cjs/FiberRefsPatch.js +39 -0
  263. package/dist/cjs/FiberRefsPatch.js.map +1 -0
  264. package/dist/cjs/FiberSet.js +308 -0
  265. package/dist/cjs/FiberSet.js.map +1 -0
  266. package/dist/cjs/FiberStatus.js +59 -0
  267. package/dist/cjs/FiberStatus.js.map +1 -0
  268. package/dist/cjs/Function.js +488 -0
  269. package/dist/cjs/Function.js.map +1 -0
  270. package/dist/cjs/GlobalValue.js +59 -0
  271. package/dist/cjs/GlobalValue.js.map +1 -0
  272. package/dist/cjs/Graph.js +3080 -0
  273. package/dist/cjs/Graph.js.map +1 -0
  274. package/dist/cjs/GroupBy.js +47 -0
  275. package/dist/cjs/GroupBy.js.map +1 -0
  276. package/dist/cjs/HKT.js +6 -0
  277. package/dist/cjs/HKT.js.map +1 -0
  278. package/dist/cjs/Hash.js +184 -0
  279. package/dist/cjs/Hash.js.map +1 -0
  280. package/dist/cjs/HashMap.js +322 -0
  281. package/dist/cjs/HashMap.js.map +1 -0
  282. package/dist/cjs/HashRing.js +257 -0
  283. package/dist/cjs/HashRing.js.map +1 -0
  284. package/dist/cjs/HashSet.js +1262 -0
  285. package/dist/cjs/HashSet.js.map +1 -0
  286. package/dist/cjs/Inspectable.js +213 -0
  287. package/dist/cjs/Inspectable.js.map +1 -0
  288. package/dist/cjs/Iterable.js +1009 -0
  289. package/dist/cjs/Iterable.js.map +1 -0
  290. package/dist/cjs/JSONSchema.js +727 -0
  291. package/dist/cjs/JSONSchema.js.map +1 -0
  292. package/dist/cjs/KeyedPool.js +83 -0
  293. package/dist/cjs/KeyedPool.js.map +1 -0
  294. package/dist/cjs/Layer.js +651 -0
  295. package/dist/cjs/Layer.js.map +1 -0
  296. package/dist/cjs/LayerMap.js +212 -0
  297. package/dist/cjs/LayerMap.js.map +1 -0
  298. package/dist/cjs/List.js +784 -0
  299. package/dist/cjs/List.js.map +1 -0
  300. package/dist/cjs/LogLevel.js +143 -0
  301. package/dist/cjs/LogLevel.js.map +1 -0
  302. package/dist/cjs/LogSpan.js +23 -0
  303. package/dist/cjs/LogSpan.js.map +1 -0
  304. package/dist/cjs/Logger.js +497 -0
  305. package/dist/cjs/Logger.js.map +1 -0
  306. package/dist/cjs/Mailbox.js +105 -0
  307. package/dist/cjs/Mailbox.js.map +1 -0
  308. package/dist/cjs/ManagedRuntime.js +49 -0
  309. package/dist/cjs/ManagedRuntime.js.map +1 -0
  310. package/dist/cjs/Match.js +819 -0
  311. package/dist/cjs/Match.js.map +1 -0
  312. package/dist/cjs/MergeDecision.js +42 -0
  313. package/dist/cjs/MergeDecision.js.map +1 -0
  314. package/dist/cjs/MergeState.js +65 -0
  315. package/dist/cjs/MergeState.js.map +1 -0
  316. package/dist/cjs/MergeStrategy.js +59 -0
  317. package/dist/cjs/MergeStrategy.js.map +1 -0
  318. package/dist/cjs/Metric.js +415 -0
  319. package/dist/cjs/Metric.js.map +1 -0
  320. package/dist/cjs/MetricBoundaries.js +40 -0
  321. package/dist/cjs/MetricBoundaries.js.map +1 -0
  322. package/dist/cjs/MetricHook.js +54 -0
  323. package/dist/cjs/MetricHook.js.map +1 -0
  324. package/dist/cjs/MetricKey.js +70 -0
  325. package/dist/cjs/MetricKey.js.map +1 -0
  326. package/dist/cjs/MetricKeyType.js +94 -0
  327. package/dist/cjs/MetricKeyType.js.map +1 -0
  328. package/dist/cjs/MetricLabel.js +24 -0
  329. package/dist/cjs/MetricLabel.js.map +1 -0
  330. package/dist/cjs/MetricPair.js +28 -0
  331. package/dist/cjs/MetricPair.js.map +1 -0
  332. package/dist/cjs/MetricPolling.js +66 -0
  333. package/dist/cjs/MetricPolling.js.map +1 -0
  334. package/dist/cjs/MetricRegistry.js +23 -0
  335. package/dist/cjs/MetricRegistry.js.map +1 -0
  336. package/dist/cjs/MetricState.js +94 -0
  337. package/dist/cjs/MetricState.js.map +1 -0
  338. package/dist/cjs/Micro.js +2582 -0
  339. package/dist/cjs/Micro.js.map +1 -0
  340. package/dist/cjs/ModuleVersion.js +25 -0
  341. package/dist/cjs/ModuleVersion.js.map +1 -0
  342. package/dist/cjs/MutableHashMap.js +314 -0
  343. package/dist/cjs/MutableHashMap.js.map +1 -0
  344. package/dist/cjs/MutableHashSet.js +524 -0
  345. package/dist/cjs/MutableHashSet.js.map +1 -0
  346. package/dist/cjs/MutableList.js +258 -0
  347. package/dist/cjs/MutableList.js.map +1 -0
  348. package/dist/cjs/MutableQueue.js +173 -0
  349. package/dist/cjs/MutableQueue.js.map +1 -0
  350. package/dist/cjs/MutableRef.js +144 -0
  351. package/dist/cjs/MutableRef.js.map +1 -0
  352. package/dist/cjs/NonEmptyIterable.js +23 -0
  353. package/dist/cjs/NonEmptyIterable.js.map +1 -0
  354. package/dist/cjs/Number.js +903 -0
  355. package/dist/cjs/Number.js.map +1 -0
  356. package/dist/cjs/Option.js +1769 -0
  357. package/dist/cjs/Option.js.map +1 -0
  358. package/dist/cjs/Order.js +275 -0
  359. package/dist/cjs/Order.js.map +1 -0
  360. package/dist/cjs/Ordering.js +80 -0
  361. package/dist/cjs/Ordering.js.map +1 -0
  362. package/dist/cjs/ParseResult.js +1594 -0
  363. package/dist/cjs/ParseResult.js.map +1 -0
  364. package/dist/cjs/PartitionedSemaphore.js +147 -0
  365. package/dist/cjs/PartitionedSemaphore.js.map +1 -0
  366. package/dist/cjs/Pipeable.js +70 -0
  367. package/dist/cjs/Pipeable.js.map +1 -0
  368. package/dist/cjs/Pool.js +107 -0
  369. package/dist/cjs/Pool.js.map +1 -0
  370. package/dist/cjs/Predicate.js +1159 -0
  371. package/dist/cjs/Predicate.js.map +1 -0
  372. package/dist/cjs/Pretty.js +183 -0
  373. package/dist/cjs/Pretty.js.map +1 -0
  374. package/dist/cjs/PrimaryKey.js +21 -0
  375. package/dist/cjs/PrimaryKey.js.map +1 -0
  376. package/dist/cjs/PubSub.js +127 -0
  377. package/dist/cjs/PubSub.js.map +1 -0
  378. package/dist/cjs/Queue.js +255 -0
  379. package/dist/cjs/Queue.js.map +1 -0
  380. package/dist/cjs/Random.js +145 -0
  381. package/dist/cjs/Random.js.map +1 -0
  382. package/dist/cjs/RateLimiter.js +84 -0
  383. package/dist/cjs/RateLimiter.js.map +1 -0
  384. package/dist/cjs/RcMap.js +76 -0
  385. package/dist/cjs/RcMap.js.map +1 -0
  386. package/dist/cjs/RcRef.js +58 -0
  387. package/dist/cjs/RcRef.js.map +1 -0
  388. package/dist/cjs/Readable.js +55 -0
  389. package/dist/cjs/Readable.js.map +1 -0
  390. package/dist/cjs/Record.js +865 -0
  391. package/dist/cjs/Record.js.map +1 -0
  392. package/dist/cjs/RedBlackTree.js +266 -0
  393. package/dist/cjs/RedBlackTree.js.map +1 -0
  394. package/dist/cjs/Redacted.js +101 -0
  395. package/dist/cjs/Redacted.js.map +1 -0
  396. package/dist/cjs/Ref.js +84 -0
  397. package/dist/cjs/Ref.js.map +1 -0
  398. package/dist/cjs/RegExp.js +46 -0
  399. package/dist/cjs/RegExp.js.map +1 -0
  400. package/dist/cjs/Reloadable.js +66 -0
  401. package/dist/cjs/Reloadable.js.map +1 -0
  402. package/dist/cjs/Request.js +148 -0
  403. package/dist/cjs/Request.js.map +1 -0
  404. package/dist/cjs/RequestBlock.js +43 -0
  405. package/dist/cjs/RequestBlock.js.map +1 -0
  406. package/dist/cjs/RequestResolver.js +185 -0
  407. package/dist/cjs/RequestResolver.js.map +1 -0
  408. package/dist/cjs/Resource.js +51 -0
  409. package/dist/cjs/Resource.js.map +1 -0
  410. package/dist/cjs/Runtime.js +188 -0
  411. package/dist/cjs/Runtime.js.map +1 -0
  412. package/dist/cjs/RuntimeFlags.js +259 -0
  413. package/dist/cjs/RuntimeFlags.js.map +1 -0
  414. package/dist/cjs/RuntimeFlagsPatch.js +142 -0
  415. package/dist/cjs/RuntimeFlagsPatch.js.map +1 -0
  416. package/dist/cjs/STM.js +981 -0
  417. package/dist/cjs/STM.js.map +1 -0
  418. package/dist/cjs/Schedule.js +1603 -0
  419. package/dist/cjs/Schedule.js.map +1 -0
  420. package/dist/cjs/ScheduleDecision.js +34 -0
  421. package/dist/cjs/ScheduleDecision.js.map +1 -0
  422. package/dist/cjs/ScheduleInterval.js +107 -0
  423. package/dist/cjs/ScheduleInterval.js.map +1 -0
  424. package/dist/cjs/ScheduleIntervals.js +85 -0
  425. package/dist/cjs/ScheduleIntervals.js.map +1 -0
  426. package/dist/cjs/Scheduler.js +308 -0
  427. package/dist/cjs/Scheduler.js.map +1 -0
  428. package/dist/cjs/Schema.js +6254 -0
  429. package/dist/cjs/Schema.js.map +1 -0
  430. package/dist/cjs/SchemaAST.js +2552 -0
  431. package/dist/cjs/SchemaAST.js.map +1 -0
  432. package/dist/cjs/Scope.js +102 -0
  433. package/dist/cjs/Scope.js.map +1 -0
  434. package/dist/cjs/ScopedCache.js +31 -0
  435. package/dist/cjs/ScopedCache.js.map +1 -0
  436. package/dist/cjs/ScopedRef.js +49 -0
  437. package/dist/cjs/ScopedRef.js.map +1 -0
  438. package/dist/cjs/Secret.js +51 -0
  439. package/dist/cjs/Secret.js.map +1 -0
  440. package/dist/cjs/SingleProducerAsyncInput.js +14 -0
  441. package/dist/cjs/SingleProducerAsyncInput.js.map +1 -0
  442. package/dist/cjs/Sink.js +872 -0
  443. package/dist/cjs/Sink.js.map +1 -0
  444. package/dist/cjs/SortedMap.js +189 -0
  445. package/dist/cjs/SortedMap.js.map +1 -0
  446. package/dist/cjs/SortedSet.js +251 -0
  447. package/dist/cjs/SortedSet.js.map +1 -0
  448. package/dist/cjs/Stream.js +4112 -0
  449. package/dist/cjs/Stream.js.map +1 -0
  450. package/dist/cjs/StreamEmit.js +6 -0
  451. package/dist/cjs/StreamEmit.js.map +1 -0
  452. package/dist/cjs/StreamHaltStrategy.js +65 -0
  453. package/dist/cjs/StreamHaltStrategy.js.map +1 -0
  454. package/dist/cjs/Streamable.js +45 -0
  455. package/dist/cjs/Streamable.js.map +1 -0
  456. package/dist/cjs/String.js +680 -0
  457. package/dist/cjs/String.js.map +1 -0
  458. package/dist/cjs/Struct.js +202 -0
  459. package/dist/cjs/Struct.js.map +1 -0
  460. package/dist/cjs/Subscribable.js +67 -0
  461. package/dist/cjs/Subscribable.js.map +1 -0
  462. package/dist/cjs/SubscriptionRef.js +123 -0
  463. package/dist/cjs/SubscriptionRef.js.map +1 -0
  464. package/dist/cjs/Supervisor.js +115 -0
  465. package/dist/cjs/Supervisor.js.map +1 -0
  466. package/dist/cjs/Symbol.js +35 -0
  467. package/dist/cjs/Symbol.js.map +1 -0
  468. package/dist/cjs/SynchronizedRef.js +126 -0
  469. package/dist/cjs/SynchronizedRef.js.map +1 -0
  470. package/dist/cjs/TArray.js +314 -0
  471. package/dist/cjs/TArray.js.map +1 -0
  472. package/dist/cjs/TDeferred.js +40 -0
  473. package/dist/cjs/TDeferred.js.map +1 -0
  474. package/dist/cjs/TMap.js +286 -0
  475. package/dist/cjs/TMap.js.map +1 -0
  476. package/dist/cjs/TPriorityQueue.js +143 -0
  477. package/dist/cjs/TPriorityQueue.js.map +1 -0
  478. package/dist/cjs/TPubSub.js +138 -0
  479. package/dist/cjs/TPubSub.js.map +1 -0
  480. package/dist/cjs/TQueue.js +237 -0
  481. package/dist/cjs/TQueue.js.map +1 -0
  482. package/dist/cjs/TRandom.js +72 -0
  483. package/dist/cjs/TRandom.js.map +1 -0
  484. package/dist/cjs/TReentrantLock.js +149 -0
  485. package/dist/cjs/TReentrantLock.js.map +1 -0
  486. package/dist/cjs/TRef.js +83 -0
  487. package/dist/cjs/TRef.js.map +1 -0
  488. package/dist/cjs/TSemaphore.js +73 -0
  489. package/dist/cjs/TSemaphore.js.map +1 -0
  490. package/dist/cjs/TSet.js +208 -0
  491. package/dist/cjs/TSet.js.map +1 -0
  492. package/dist/cjs/TSubscriptionRef.js +95 -0
  493. package/dist/cjs/TSubscriptionRef.js.map +1 -0
  494. package/dist/cjs/Take.js +155 -0
  495. package/dist/cjs/Take.js.map +1 -0
  496. package/dist/cjs/TestAnnotation.js +105 -0
  497. package/dist/cjs/TestAnnotation.js.map +1 -0
  498. package/dist/cjs/TestAnnotationMap.js +91 -0
  499. package/dist/cjs/TestAnnotationMap.js.map +1 -0
  500. package/dist/cjs/TestAnnotations.js +71 -0
  501. package/dist/cjs/TestAnnotations.js.map +1 -0
  502. package/dist/cjs/TestClock.js +372 -0
  503. package/dist/cjs/TestClock.js.map +1 -0
  504. package/dist/cjs/TestConfig.js +22 -0
  505. package/dist/cjs/TestConfig.js.map +1 -0
  506. package/dist/cjs/TestContext.js +28 -0
  507. package/dist/cjs/TestContext.js.map +1 -0
  508. package/dist/cjs/TestLive.js +39 -0
  509. package/dist/cjs/TestLive.js.map +1 -0
  510. package/dist/cjs/TestServices.js +255 -0
  511. package/dist/cjs/TestServices.js.map +1 -0
  512. package/dist/cjs/TestSized.js +46 -0
  513. package/dist/cjs/TestSized.js.map +1 -0
  514. package/dist/cjs/Tracer.js +44 -0
  515. package/dist/cjs/Tracer.js.map +1 -0
  516. package/dist/cjs/Trie.js +724 -0
  517. package/dist/cjs/Trie.js.map +1 -0
  518. package/dist/cjs/Tuple.js +210 -0
  519. package/dist/cjs/Tuple.js.map +1 -0
  520. package/dist/cjs/Types.js +6 -0
  521. package/dist/cjs/Types.js.map +1 -0
  522. package/dist/cjs/Unify.js +16 -0
  523. package/dist/cjs/Unify.js.map +1 -0
  524. package/dist/cjs/UpstreamPullRequest.js +59 -0
  525. package/dist/cjs/UpstreamPullRequest.js.map +1 -0
  526. package/dist/cjs/UpstreamPullStrategy.js +59 -0
  527. package/dist/cjs/UpstreamPullStrategy.js.map +1 -0
  528. package/dist/cjs/Utils.js +374 -0
  529. package/dist/cjs/Utils.js.map +1 -0
  530. package/dist/cjs/index.js +395 -0
  531. package/dist/cjs/index.js.map +1 -0
  532. package/dist/cjs/internal/array.js +13 -0
  533. package/dist/cjs/internal/array.js.map +1 -0
  534. package/dist/cjs/internal/blockedRequests.js +369 -0
  535. package/dist/cjs/internal/blockedRequests.js.map +1 -0
  536. package/dist/cjs/internal/cache.js +500 -0
  537. package/dist/cjs/internal/cache.js.map +1 -0
  538. package/dist/cjs/internal/cause.js +867 -0
  539. package/dist/cjs/internal/cause.js.map +1 -0
  540. package/dist/cjs/internal/channel/channelExecutor.js +697 -0
  541. package/dist/cjs/internal/channel/channelExecutor.js.map +1 -0
  542. package/dist/cjs/internal/channel/channelState.js +77 -0
  543. package/dist/cjs/internal/channel/channelState.js.map +1 -0
  544. package/dist/cjs/internal/channel/childExecutorDecision.js +74 -0
  545. package/dist/cjs/internal/channel/childExecutorDecision.js.map +1 -0
  546. package/dist/cjs/internal/channel/continuation.js +57 -0
  547. package/dist/cjs/internal/channel/continuation.js.map +1 -0
  548. package/dist/cjs/internal/channel/mergeDecision.js +60 -0
  549. package/dist/cjs/internal/channel/mergeDecision.js.map +1 -0
  550. package/dist/cjs/internal/channel/mergeState.js +83 -0
  551. package/dist/cjs/internal/channel/mergeState.js.map +1 -0
  552. package/dist/cjs/internal/channel/mergeStrategy.js +58 -0
  553. package/dist/cjs/internal/channel/mergeStrategy.js.map +1 -0
  554. package/dist/cjs/internal/channel/singleProducerAsyncInput.js +171 -0
  555. package/dist/cjs/internal/channel/singleProducerAsyncInput.js.map +1 -0
  556. package/dist/cjs/internal/channel/subexecutor.js +163 -0
  557. package/dist/cjs/internal/channel/subexecutor.js.map +1 -0
  558. package/dist/cjs/internal/channel/upstreamPullRequest.js +64 -0
  559. package/dist/cjs/internal/channel/upstreamPullRequest.js.map +1 -0
  560. package/dist/cjs/internal/channel/upstreamPullStrategy.js +64 -0
  561. package/dist/cjs/internal/channel/upstreamPullStrategy.js.map +1 -0
  562. package/dist/cjs/internal/channel.js +738 -0
  563. package/dist/cjs/internal/channel.js.map +1 -0
  564. package/dist/cjs/internal/clock.js +85 -0
  565. package/dist/cjs/internal/clock.js.map +1 -0
  566. package/dist/cjs/internal/completedRequestMap.js +11 -0
  567. package/dist/cjs/internal/completedRequestMap.js.map +1 -0
  568. package/dist/cjs/internal/concurrency.js +37 -0
  569. package/dist/cjs/internal/concurrency.js.map +1 -0
  570. package/dist/cjs/internal/config.js +397 -0
  571. package/dist/cjs/internal/config.js.map +1 -0
  572. package/dist/cjs/internal/configError.js +284 -0
  573. package/dist/cjs/internal/configError.js.map +1 -0
  574. package/dist/cjs/internal/configProvider/pathPatch.js +83 -0
  575. package/dist/cjs/internal/configProvider/pathPatch.js.map +1 -0
  576. package/dist/cjs/internal/configProvider.js +443 -0
  577. package/dist/cjs/internal/configProvider.js.map +1 -0
  578. package/dist/cjs/internal/console.js +79 -0
  579. package/dist/cjs/internal/console.js.map +1 -0
  580. package/dist/cjs/internal/context.js +273 -0
  581. package/dist/cjs/internal/context.js.map +1 -0
  582. package/dist/cjs/internal/core-effect.js +872 -0
  583. package/dist/cjs/internal/core-effect.js.map +1 -0
  584. package/dist/cjs/internal/core-stream.js +258 -0
  585. package/dist/cjs/internal/core-stream.js.map +1 -0
  586. package/dist/cjs/internal/core.js +1713 -0
  587. package/dist/cjs/internal/core.js.map +1 -0
  588. package/dist/cjs/internal/data.js +37 -0
  589. package/dist/cjs/internal/data.js.map +1 -0
  590. package/dist/cjs/internal/dataSource.js +107 -0
  591. package/dist/cjs/internal/dataSource.js.map +1 -0
  592. package/dist/cjs/internal/dateTime.js +839 -0
  593. package/dist/cjs/internal/dateTime.js.map +1 -0
  594. package/dist/cjs/internal/defaultServices/console.js +99 -0
  595. package/dist/cjs/internal/defaultServices/console.js.map +1 -0
  596. package/dist/cjs/internal/defaultServices.js +92 -0
  597. package/dist/cjs/internal/defaultServices.js.map +1 -0
  598. package/dist/cjs/internal/deferred.js +36 -0
  599. package/dist/cjs/internal/deferred.js.map +1 -0
  600. package/dist/cjs/internal/differ/chunkPatch.js +139 -0
  601. package/dist/cjs/internal/differ/chunkPatch.js.map +1 -0
  602. package/dist/cjs/internal/differ/contextPatch.js +152 -0
  603. package/dist/cjs/internal/differ/contextPatch.js.map +1 -0
  604. package/dist/cjs/internal/differ/hashMapPatch.js +139 -0
  605. package/dist/cjs/internal/differ/hashMapPatch.js.map +1 -0
  606. package/dist/cjs/internal/differ/hashSetPatch.js +113 -0
  607. package/dist/cjs/internal/differ/hashSetPatch.js.map +1 -0
  608. package/dist/cjs/internal/differ/orPatch.js +184 -0
  609. package/dist/cjs/internal/differ/orPatch.js.map +1 -0
  610. package/dist/cjs/internal/differ/readonlyArrayPatch.js +138 -0
  611. package/dist/cjs/internal/differ/readonlyArrayPatch.js.map +1 -0
  612. package/dist/cjs/internal/differ.js +149 -0
  613. package/dist/cjs/internal/differ.js.map +1 -0
  614. package/dist/cjs/internal/doNotation.js +25 -0
  615. package/dist/cjs/internal/doNotation.js.map +1 -0
  616. package/dist/cjs/internal/effect/circular.js +420 -0
  617. package/dist/cjs/internal/effect/circular.js.map +1 -0
  618. package/dist/cjs/internal/effectable.js +120 -0
  619. package/dist/cjs/internal/effectable.js.map +1 -0
  620. package/dist/cjs/internal/either.js +100 -0
  621. package/dist/cjs/internal/either.js.map +1 -0
  622. package/dist/cjs/internal/encoding/base64.js +81 -0
  623. package/dist/cjs/internal/encoding/base64.js.map +1 -0
  624. package/dist/cjs/internal/encoding/base64Url.js +30 -0
  625. package/dist/cjs/internal/encoding/base64Url.js.map +1 -0
  626. package/dist/cjs/internal/encoding/common.js +48 -0
  627. package/dist/cjs/internal/encoding/common.js.map +1 -0
  628. package/dist/cjs/internal/encoding/hex.js +57 -0
  629. package/dist/cjs/internal/encoding/hex.js.map +1 -0
  630. package/dist/cjs/internal/errors.js +13 -0
  631. package/dist/cjs/internal/errors.js.map +1 -0
  632. package/dist/cjs/internal/executionPlan.js +68 -0
  633. package/dist/cjs/internal/executionPlan.js.map +1 -0
  634. package/dist/cjs/internal/executionStrategy.js +54 -0
  635. package/dist/cjs/internal/executionStrategy.js.map +1 -0
  636. package/dist/cjs/internal/fiber.js +279 -0
  637. package/dist/cjs/internal/fiber.js.map +1 -0
  638. package/dist/cjs/internal/fiberId.js +239 -0
  639. package/dist/cjs/internal/fiberId.js.map +1 -0
  640. package/dist/cjs/internal/fiberMessage.js +38 -0
  641. package/dist/cjs/internal/fiberMessage.js.map +1 -0
  642. package/dist/cjs/internal/fiberRefs/patch.js +115 -0
  643. package/dist/cjs/internal/fiberRefs/patch.js.map +1 -0
  644. package/dist/cjs/internal/fiberRefs.js +203 -0
  645. package/dist/cjs/internal/fiberRefs.js.map +1 -0
  646. package/dist/cjs/internal/fiberRuntime.js +2207 -0
  647. package/dist/cjs/internal/fiberRuntime.js.map +1 -0
  648. package/dist/cjs/internal/fiberScope.js +52 -0
  649. package/dist/cjs/internal/fiberScope.js.map +1 -0
  650. package/dist/cjs/internal/fiberStatus.js +85 -0
  651. package/dist/cjs/internal/fiberStatus.js.map +1 -0
  652. package/dist/cjs/internal/groupBy.js +222 -0
  653. package/dist/cjs/internal/groupBy.js.map +1 -0
  654. package/dist/cjs/internal/hashMap/array.js +56 -0
  655. package/dist/cjs/internal/hashMap/array.js.map +1 -0
  656. package/dist/cjs/internal/hashMap/bitwise.js +38 -0
  657. package/dist/cjs/internal/hashMap/bitwise.js.map +1 -0
  658. package/dist/cjs/internal/hashMap/config.js +17 -0
  659. package/dist/cjs/internal/hashMap/config.js.map +1 -0
  660. package/dist/cjs/internal/hashMap/keySet.js +12 -0
  661. package/dist/cjs/internal/hashMap/keySet.js.map +1 -0
  662. package/dist/cjs/internal/hashMap/node.js +268 -0
  663. package/dist/cjs/internal/hashMap/node.js.map +1 -0
  664. package/dist/cjs/internal/hashMap.js +379 -0
  665. package/dist/cjs/internal/hashMap.js.map +1 -0
  666. package/dist/cjs/internal/hashSet.js +198 -0
  667. package/dist/cjs/internal/hashSet.js.map +1 -0
  668. package/dist/cjs/internal/keyedPool.js +170 -0
  669. package/dist/cjs/internal/keyedPool.js.map +1 -0
  670. package/dist/cjs/internal/layer/circular.js +80 -0
  671. package/dist/cjs/internal/layer/circular.js.map +1 -0
  672. package/dist/cjs/internal/layer.js +595 -0
  673. package/dist/cjs/internal/layer.js.map +1 -0
  674. package/dist/cjs/internal/logSpan.js +26 -0
  675. package/dist/cjs/internal/logSpan.js.map +1 -0
  676. package/dist/cjs/internal/logger-circular.js +26 -0
  677. package/dist/cjs/internal/logger-circular.js.map +1 -0
  678. package/dist/cjs/internal/logger.js +381 -0
  679. package/dist/cjs/internal/logger.js.map +1 -0
  680. package/dist/cjs/internal/mailbox.js +462 -0
  681. package/dist/cjs/internal/mailbox.js.map +1 -0
  682. package/dist/cjs/internal/managedRuntime/circular.js +10 -0
  683. package/dist/cjs/internal/managedRuntime/circular.js.map +1 -0
  684. package/dist/cjs/internal/managedRuntime.js +95 -0
  685. package/dist/cjs/internal/managedRuntime.js.map +1 -0
  686. package/dist/cjs/internal/matcher.js +320 -0
  687. package/dist/cjs/internal/matcher.js.map +1 -0
  688. package/dist/cjs/internal/metric/boundaries.js +53 -0
  689. package/dist/cjs/internal/metric/boundaries.js.map +1 -0
  690. package/dist/cjs/internal/metric/hook.js +388 -0
  691. package/dist/cjs/internal/metric/hook.js.map +1 -0
  692. package/dist/cjs/internal/metric/key.js +73 -0
  693. package/dist/cjs/internal/metric/key.js.map +1 -0
  694. package/dist/cjs/internal/metric/keyType.js +188 -0
  695. package/dist/cjs/internal/metric/keyType.js.map +1 -0
  696. package/dist/cjs/internal/metric/label.js +45 -0
  697. package/dist/cjs/internal/metric/label.js.map +1 -0
  698. package/dist/cjs/internal/metric/pair.js +40 -0
  699. package/dist/cjs/internal/metric/pair.js.map +1 -0
  700. package/dist/cjs/internal/metric/polling.js +80 -0
  701. package/dist/cjs/internal/metric/polling.js.map +1 -0
  702. package/dist/cjs/internal/metric/registry.js +113 -0
  703. package/dist/cjs/internal/metric/registry.js.map +1 -0
  704. package/dist/cjs/internal/metric/state.js +201 -0
  705. package/dist/cjs/internal/metric/state.js.map +1 -0
  706. package/dist/cjs/internal/metric.js +204 -0
  707. package/dist/cjs/internal/metric.js.map +1 -0
  708. package/dist/cjs/internal/opCodes/cause.js +19 -0
  709. package/dist/cjs/internal/opCodes/cause.js.map +1 -0
  710. package/dist/cjs/internal/opCodes/channel.js +35 -0
  711. package/dist/cjs/internal/opCodes/channel.js.map +1 -0
  712. package/dist/cjs/internal/opCodes/channelChildExecutorDecision.js +13 -0
  713. package/dist/cjs/internal/opCodes/channelChildExecutorDecision.js.map +1 -0
  714. package/dist/cjs/internal/opCodes/channelMergeDecision.js +11 -0
  715. package/dist/cjs/internal/opCodes/channelMergeDecision.js.map +1 -0
  716. package/dist/cjs/internal/opCodes/channelMergeState.js +13 -0
  717. package/dist/cjs/internal/opCodes/channelMergeState.js.map +1 -0
  718. package/dist/cjs/internal/opCodes/channelMergeStrategy.js +11 -0
  719. package/dist/cjs/internal/opCodes/channelMergeStrategy.js.map +1 -0
  720. package/dist/cjs/internal/opCodes/channelState.js +15 -0
  721. package/dist/cjs/internal/opCodes/channelState.js.map +1 -0
  722. package/dist/cjs/internal/opCodes/channelUpstreamPullRequest.js +11 -0
  723. package/dist/cjs/internal/opCodes/channelUpstreamPullRequest.js.map +1 -0
  724. package/dist/cjs/internal/opCodes/channelUpstreamPullStrategy.js +11 -0
  725. package/dist/cjs/internal/opCodes/channelUpstreamPullStrategy.js.map +1 -0
  726. package/dist/cjs/internal/opCodes/config.js +29 -0
  727. package/dist/cjs/internal/opCodes/config.js.map +1 -0
  728. package/dist/cjs/internal/opCodes/configError.js +19 -0
  729. package/dist/cjs/internal/opCodes/configError.js.map +1 -0
  730. package/dist/cjs/internal/opCodes/continuation.js +11 -0
  731. package/dist/cjs/internal/opCodes/continuation.js.map +1 -0
  732. package/dist/cjs/internal/opCodes/deferred.js +11 -0
  733. package/dist/cjs/internal/opCodes/deferred.js.map +1 -0
  734. package/dist/cjs/internal/opCodes/effect.js +37 -0
  735. package/dist/cjs/internal/opCodes/effect.js.map +1 -0
  736. package/dist/cjs/internal/opCodes/layer.js +27 -0
  737. package/dist/cjs/internal/opCodes/layer.js.map +1 -0
  738. package/dist/cjs/internal/opCodes/streamHaltStrategy.js +15 -0
  739. package/dist/cjs/internal/opCodes/streamHaltStrategy.js.map +1 -0
  740. package/dist/cjs/internal/option.js +82 -0
  741. package/dist/cjs/internal/option.js.map +1 -0
  742. package/dist/cjs/internal/pool.js +288 -0
  743. package/dist/cjs/internal/pool.js.map +1 -0
  744. package/dist/cjs/internal/pubsub.js +1287 -0
  745. package/dist/cjs/internal/pubsub.js.map +1 -0
  746. package/dist/cjs/internal/query.js +102 -0
  747. package/dist/cjs/internal/query.js.map +1 -0
  748. package/dist/cjs/internal/queue.js +518 -0
  749. package/dist/cjs/internal/queue.js.map +1 -0
  750. package/dist/cjs/internal/random.js +128 -0
  751. package/dist/cjs/internal/random.js.map +1 -0
  752. package/dist/cjs/internal/rateLimiter.js +52 -0
  753. package/dist/cjs/internal/rateLimiter.js.map +1 -0
  754. package/dist/cjs/internal/rcMap.js +182 -0
  755. package/dist/cjs/internal/rcMap.js.map +1 -0
  756. package/dist/cjs/internal/rcRef.js +139 -0
  757. package/dist/cjs/internal/rcRef.js.map +1 -0
  758. package/dist/cjs/internal/redBlackTree/iterator.js +199 -0
  759. package/dist/cjs/internal/redBlackTree/iterator.js.map +1 -0
  760. package/dist/cjs/internal/redBlackTree/node.js +60 -0
  761. package/dist/cjs/internal/redBlackTree/node.js.map +1 -0
  762. package/dist/cjs/internal/redBlackTree.js +1088 -0
  763. package/dist/cjs/internal/redBlackTree.js.map +1 -0
  764. package/dist/cjs/internal/redacted.js +67 -0
  765. package/dist/cjs/internal/redacted.js.map +1 -0
  766. package/dist/cjs/internal/ref.js +121 -0
  767. package/dist/cjs/internal/ref.js.map +1 -0
  768. package/dist/cjs/internal/reloadable.js +56 -0
  769. package/dist/cjs/internal/reloadable.js.map +1 -0
  770. package/dist/cjs/internal/request.js +104 -0
  771. package/dist/cjs/internal/request.js.map +1 -0
  772. package/dist/cjs/internal/resource.js +49 -0
  773. package/dist/cjs/internal/resource.js.map +1 -0
  774. package/dist/cjs/internal/ringBuffer.js +64 -0
  775. package/dist/cjs/internal/ringBuffer.js.map +1 -0
  776. package/dist/cjs/internal/runtime.js +321 -0
  777. package/dist/cjs/internal/runtime.js.map +1 -0
  778. package/dist/cjs/internal/runtimeFlags.js +126 -0
  779. package/dist/cjs/internal/runtimeFlags.js.map +1 -0
  780. package/dist/cjs/internal/runtimeFlagsPatch.js +52 -0
  781. package/dist/cjs/internal/runtimeFlagsPatch.js.map +1 -0
  782. package/dist/cjs/internal/schedule/decision.js +44 -0
  783. package/dist/cjs/internal/schedule/decision.js.map +1 -0
  784. package/dist/cjs/internal/schedule/interval.js +83 -0
  785. package/dist/cjs/internal/schedule/interval.js.map +1 -0
  786. package/dist/cjs/internal/schedule/intervals.js +134 -0
  787. package/dist/cjs/internal/schedule/intervals.js.map +1 -0
  788. package/dist/cjs/internal/schedule.js +900 -0
  789. package/dist/cjs/internal/schedule.js.map +1 -0
  790. package/dist/cjs/internal/schema/errors.js +113 -0
  791. package/dist/cjs/internal/schema/errors.js.map +1 -0
  792. package/dist/cjs/internal/schema/schemaId.js +49 -0
  793. package/dist/cjs/internal/schema/schemaId.js.map +1 -0
  794. package/dist/cjs/internal/schema/util.js +48 -0
  795. package/dist/cjs/internal/schema/util.js.map +1 -0
  796. package/dist/cjs/internal/scopedCache.js +398 -0
  797. package/dist/cjs/internal/scopedCache.js.map +1 -0
  798. package/dist/cjs/internal/scopedRef.js +53 -0
  799. package/dist/cjs/internal/scopedRef.js.map +1 -0
  800. package/dist/cjs/internal/secret.js +90 -0
  801. package/dist/cjs/internal/secret.js.map +1 -0
  802. package/dist/cjs/internal/singleShotGen.js +37 -0
  803. package/dist/cjs/internal/singleShotGen.js.map +1 -0
  804. package/dist/cjs/internal/sink.js +883 -0
  805. package/dist/cjs/internal/sink.js.map +1 -0
  806. package/dist/cjs/internal/stack.js +12 -0
  807. package/dist/cjs/internal/stack.js.map +1 -0
  808. package/dist/cjs/internal/stm/core.js +525 -0
  809. package/dist/cjs/internal/stm/core.js.map +1 -0
  810. package/dist/cjs/internal/stm/entry.js +57 -0
  811. package/dist/cjs/internal/stm/entry.js.map +1 -0
  812. package/dist/cjs/internal/stm/journal.js +104 -0
  813. package/dist/cjs/internal/stm/journal.js.map +1 -0
  814. package/dist/cjs/internal/stm/opCodes/stm.js +31 -0
  815. package/dist/cjs/internal/stm/opCodes/stm.js.map +1 -0
  816. package/dist/cjs/internal/stm/opCodes/stmState.js +13 -0
  817. package/dist/cjs/internal/stm/opCodes/stmState.js.map +1 -0
  818. package/dist/cjs/internal/stm/opCodes/strategy.js +13 -0
  819. package/dist/cjs/internal/stm/opCodes/strategy.js.map +1 -0
  820. package/dist/cjs/internal/stm/opCodes/tExit.js +17 -0
  821. package/dist/cjs/internal/stm/opCodes/tExit.js.map +1 -0
  822. package/dist/cjs/internal/stm/opCodes/tryCommit.js +11 -0
  823. package/dist/cjs/internal/stm/opCodes/tryCommit.js.map +1 -0
  824. package/dist/cjs/internal/stm/stm.js +514 -0
  825. package/dist/cjs/internal/stm/stm.js.map +1 -0
  826. package/dist/cjs/internal/stm/stmState.js +102 -0
  827. package/dist/cjs/internal/stm/stmState.js.map +1 -0
  828. package/dist/cjs/internal/stm/tArray.js +258 -0
  829. package/dist/cjs/internal/stm/tArray.js.map +1 -0
  830. package/dist/cjs/internal/stm/tDeferred.js +51 -0
  831. package/dist/cjs/internal/stm/tDeferred.js.map +1 -0
  832. package/dist/cjs/internal/stm/tExit.js +116 -0
  833. package/dist/cjs/internal/stm/tExit.js.map +1 -0
  834. package/dist/cjs/internal/stm/tMap.js +448 -0
  835. package/dist/cjs/internal/stm/tMap.js.map +1 -0
  836. package/dist/cjs/internal/stm/tPriorityQueue.js +164 -0
  837. package/dist/cjs/internal/stm/tPriorityQueue.js.map +1 -0
  838. package/dist/cjs/internal/stm/tPubSub.js +397 -0
  839. package/dist/cjs/internal/stm/tPubSub.js.map +1 -0
  840. package/dist/cjs/internal/stm/tQueue.js +284 -0
  841. package/dist/cjs/internal/stm/tQueue.js.map +1 -0
  842. package/dist/cjs/internal/stm/tRandom.js +92 -0
  843. package/dist/cjs/internal/stm/tRandom.js.map +1 -0
  844. package/dist/cjs/internal/stm/tReentrantLock.js +215 -0
  845. package/dist/cjs/internal/stm/tReentrantLock.js.map +1 -0
  846. package/dist/cjs/internal/stm/tRef.js +110 -0
  847. package/dist/cjs/internal/stm/tRef.js.map +1 -0
  848. package/dist/cjs/internal/stm/tSemaphore.js +72 -0
  849. package/dist/cjs/internal/stm/tSemaphore.js.map +1 -0
  850. package/dist/cjs/internal/stm/tSet.js +104 -0
  851. package/dist/cjs/internal/stm/tSet.js.map +1 -0
  852. package/dist/cjs/internal/stm/tSubscriptionRef.js +177 -0
  853. package/dist/cjs/internal/stm/tSubscriptionRef.js.map +1 -0
  854. package/dist/cjs/internal/stm/tryCommit.js +25 -0
  855. package/dist/cjs/internal/stm/tryCommit.js.map +1 -0
  856. package/dist/cjs/internal/stm/txnId.js +18 -0
  857. package/dist/cjs/internal/stm/txnId.js.map +1 -0
  858. package/dist/cjs/internal/stm/versioned.js +15 -0
  859. package/dist/cjs/internal/stm/versioned.js.map +1 -0
  860. package/dist/cjs/internal/stream/debounceState.js +29 -0
  861. package/dist/cjs/internal/stream/debounceState.js.map +1 -0
  862. package/dist/cjs/internal/stream/emit.js +129 -0
  863. package/dist/cjs/internal/stream/emit.js.map +1 -0
  864. package/dist/cjs/internal/stream/haltStrategy.js +75 -0
  865. package/dist/cjs/internal/stream/haltStrategy.js.map +1 -0
  866. package/dist/cjs/internal/stream/handoff.js +65 -0
  867. package/dist/cjs/internal/stream/handoff.js.map +1 -0
  868. package/dist/cjs/internal/stream/handoffSignal.js +31 -0
  869. package/dist/cjs/internal/stream/handoffSignal.js.map +1 -0
  870. package/dist/cjs/internal/stream/pull.js +34 -0
  871. package/dist/cjs/internal/stream/pull.js.map +1 -0
  872. package/dist/cjs/internal/stream/sinkEndReason.js +19 -0
  873. package/dist/cjs/internal/stream/sinkEndReason.js.map +1 -0
  874. package/dist/cjs/internal/stream/zipAllState.js +41 -0
  875. package/dist/cjs/internal/stream/zipAllState.js.map +1 -0
  876. package/dist/cjs/internal/stream/zipChunksState.js +29 -0
  877. package/dist/cjs/internal/stream/zipChunksState.js.map +1 -0
  878. package/dist/cjs/internal/stream.js +2979 -0
  879. package/dist/cjs/internal/stream.js.map +1 -0
  880. package/dist/cjs/internal/string-utils.js +90 -0
  881. package/dist/cjs/internal/string-utils.js.map +1 -0
  882. package/dist/cjs/internal/subscriptionRef.js +72 -0
  883. package/dist/cjs/internal/subscriptionRef.js.map +1 -0
  884. package/dist/cjs/internal/supervisor/patch.js +135 -0
  885. package/dist/cjs/internal/supervisor/patch.js.map +1 -0
  886. package/dist/cjs/internal/supervisor.js +222 -0
  887. package/dist/cjs/internal/supervisor.js.map +1 -0
  888. package/dist/cjs/internal/synchronizedRef.js +51 -0
  889. package/dist/cjs/internal/synchronizedRef.js.map +1 -0
  890. package/dist/cjs/internal/take.js +130 -0
  891. package/dist/cjs/internal/take.js.map +1 -0
  892. package/dist/cjs/internal/testing/sleep.js +14 -0
  893. package/dist/cjs/internal/testing/sleep.js.map +1 -0
  894. package/dist/cjs/internal/testing/suspendedWarningData.js +58 -0
  895. package/dist/cjs/internal/testing/suspendedWarningData.js.map +1 -0
  896. package/dist/cjs/internal/testing/warningData.js +59 -0
  897. package/dist/cjs/internal/testing/warningData.js.map +1 -0
  898. package/dist/cjs/internal/tracer.js +134 -0
  899. package/dist/cjs/internal/tracer.js.map +1 -0
  900. package/dist/cjs/internal/trie.js +564 -0
  901. package/dist/cjs/internal/trie.js.map +1 -0
  902. package/dist/cjs/internal/version.js +14 -0
  903. package/dist/cjs/internal/version.js.map +1 -0
  904. package/dist/dts/Arbitrary.d.ts +69 -0
  905. package/dist/dts/Arbitrary.d.ts.map +1 -0
  906. package/dist/dts/Array.d.ts +5922 -0
  907. package/dist/dts/Array.d.ts.map +1 -0
  908. package/dist/dts/BigDecimal.d.ts +1483 -0
  909. package/dist/dts/BigDecimal.d.ts.map +1 -0
  910. package/dist/dts/BigInt.d.ts +1033 -0
  911. package/dist/dts/BigInt.d.ts.map +1 -0
  912. package/dist/dts/Boolean.d.ts +523 -0
  913. package/dist/dts/Boolean.d.ts.map +1 -0
  914. package/dist/dts/Brand.d.ts +234 -0
  915. package/dist/dts/Brand.d.ts.map +1 -0
  916. package/dist/dts/Cache.d.ts +241 -0
  917. package/dist/dts/Cache.d.ts.map +1 -0
  918. package/dist/dts/Cause.d.ts +1928 -0
  919. package/dist/dts/Cause.d.ts.map +1 -0
  920. package/dist/dts/Channel.d.ts +1989 -0
  921. package/dist/dts/Channel.d.ts.map +1 -0
  922. package/dist/dts/ChildExecutorDecision.d.ts +135 -0
  923. package/dist/dts/ChildExecutorDecision.d.ts.map +1 -0
  924. package/dist/dts/Chunk.d.ts +1709 -0
  925. package/dist/dts/Chunk.d.ts.map +1 -0
  926. package/dist/dts/Clock.d.ts +97 -0
  927. package/dist/dts/Clock.d.ts.map +1 -0
  928. package/dist/dts/Config.d.ts +667 -0
  929. package/dist/dts/Config.d.ts.map +1 -0
  930. package/dist/dts/ConfigError.d.ts +238 -0
  931. package/dist/dts/ConfigError.d.ts.map +1 -0
  932. package/dist/dts/ConfigProvider.d.ts +372 -0
  933. package/dist/dts/ConfigProvider.d.ts.map +1 -0
  934. package/dist/dts/ConfigProviderPathPatch.d.ts +118 -0
  935. package/dist/dts/ConfigProviderPathPatch.d.ts.map +1 -0
  936. package/dist/dts/Console.d.ts +224 -0
  937. package/dist/dts/Console.d.ts.map +1 -0
  938. package/dist/dts/Context.d.ts +823 -0
  939. package/dist/dts/Context.d.ts.map +1 -0
  940. package/dist/dts/Cron.d.ts +226 -0
  941. package/dist/dts/Cron.d.ts.map +1 -0
  942. package/dist/dts/Data.d.ts +613 -0
  943. package/dist/dts/Data.d.ts.map +1 -0
  944. package/dist/dts/DateTime.d.ts +2417 -0
  945. package/dist/dts/DateTime.d.ts.map +1 -0
  946. package/dist/dts/DefaultServices.d.ts +26 -0
  947. package/dist/dts/DefaultServices.d.ts.map +1 -0
  948. package/dist/dts/Deferred.d.ts +437 -0
  949. package/dist/dts/Deferred.d.ts.map +1 -0
  950. package/dist/dts/Differ.d.ts +420 -0
  951. package/dist/dts/Differ.d.ts.map +1 -0
  952. package/dist/dts/Duration.d.ts +557 -0
  953. package/dist/dts/Duration.d.ts.map +1 -0
  954. package/dist/dts/Effect.d.ts +26986 -0
  955. package/dist/dts/Effect.d.ts.map +1 -0
  956. package/dist/dts/Effectable.d.ts +93 -0
  957. package/dist/dts/Effectable.d.ts.map +1 -0
  958. package/dist/dts/Either.d.ts +1431 -0
  959. package/dist/dts/Either.d.ts.map +1 -0
  960. package/dist/dts/Encoding.d.ts +160 -0
  961. package/dist/dts/Encoding.d.ts.map +1 -0
  962. package/dist/dts/Equal.d.ts +34 -0
  963. package/dist/dts/Equal.d.ts.map +1 -0
  964. package/dist/dts/Equivalence.d.ts +158 -0
  965. package/dist/dts/Equivalence.d.ts.map +1 -0
  966. package/dist/dts/ExecutionPlan.d.ts +210 -0
  967. package/dist/dts/ExecutionPlan.d.ts.map +1 -0
  968. package/dist/dts/ExecutionStrategy.d.ts +122 -0
  969. package/dist/dts/ExecutionStrategy.d.ts.map +1 -0
  970. package/dist/dts/Exit.d.ts +663 -0
  971. package/dist/dts/Exit.d.ts.map +1 -0
  972. package/dist/dts/FastCheck.d.ts +9 -0
  973. package/dist/dts/FastCheck.d.ts.map +1 -0
  974. package/dist/dts/Fiber.d.ts +831 -0
  975. package/dist/dts/Fiber.d.ts.map +1 -0
  976. package/dist/dts/FiberHandle.d.ts +270 -0
  977. package/dist/dts/FiberHandle.d.ts.map +1 -0
  978. package/dist/dts/FiberId.d.ts +196 -0
  979. package/dist/dts/FiberId.d.ts.map +1 -0
  980. package/dist/dts/FiberMap.d.ts +368 -0
  981. package/dist/dts/FiberMap.d.ts.map +1 -0
  982. package/dist/dts/FiberRef.d.ts +422 -0
  983. package/dist/dts/FiberRef.d.ts.map +1 -0
  984. package/dist/dts/FiberRefs.d.ts +256 -0
  985. package/dist/dts/FiberRefs.d.ts.map +1 -0
  986. package/dist/dts/FiberRefsPatch.d.ts +125 -0
  987. package/dist/dts/FiberRefsPatch.d.ts.map +1 -0
  988. package/dist/dts/FiberSet.d.ts +236 -0
  989. package/dist/dts/FiberSet.d.ts.map +1 -0
  990. package/dist/dts/FiberStatus.d.ts +94 -0
  991. package/dist/dts/FiberStatus.d.ts.map +1 -0
  992. package/dist/dts/Function.d.ts +660 -0
  993. package/dist/dts/Function.d.ts.map +1 -0
  994. package/dist/dts/GlobalValue.d.ts +25 -0
  995. package/dist/dts/GlobalValue.d.ts.map +1 -0
  996. package/dist/dts/Graph.d.ts +1753 -0
  997. package/dist/dts/Graph.d.ts.map +1 -0
  998. package/dist/dts/GroupBy.d.ts +125 -0
  999. package/dist/dts/GroupBy.d.ts.map +1 -0
  1000. package/dist/dts/HKT.d.ts +41 -0
  1001. package/dist/dts/HKT.d.ts.map +1 -0
  1002. package/dist/dts/Hash.d.ts +79 -0
  1003. package/dist/dts/Hash.d.ts.map +1 -0
  1004. package/dist/dts/HashMap.d.ts +863 -0
  1005. package/dist/dts/HashMap.d.ts.map +1 -0
  1006. package/dist/dts/HashRing.d.ts +158 -0
  1007. package/dist/dts/HashRing.d.ts.map +1 -0
  1008. package/dist/dts/HashSet.d.ts +2271 -0
  1009. package/dist/dts/HashSet.d.ts.map +1 -0
  1010. package/dist/dts/Inspectable.d.ts +88 -0
  1011. package/dist/dts/Inspectable.d.ts.map +1 -0
  1012. package/dist/dts/Iterable.d.ts +1047 -0
  1013. package/dist/dts/Iterable.d.ts.map +1 -0
  1014. package/dist/dts/JSONSchema.d.ts +268 -0
  1015. package/dist/dts/JSONSchema.d.ts.map +1 -0
  1016. package/dist/dts/KeyedPool.d.ts +182 -0
  1017. package/dist/dts/KeyedPool.d.ts.map +1 -0
  1018. package/dist/dts/Layer.d.ts +1374 -0
  1019. package/dist/dts/Layer.d.ts.map +1 -0
  1020. package/dist/dts/LayerMap.d.ts +265 -0
  1021. package/dist/dts/LayerMap.d.ts.map +1 -0
  1022. package/dist/dts/List.d.ts +937 -0
  1023. package/dist/dts/List.d.ts.map +1 -0
  1024. package/dist/dts/LogLevel.d.ts +333 -0
  1025. package/dist/dts/LogLevel.d.ts.map +1 -0
  1026. package/dist/dts/LogSpan.d.ts +19 -0
  1027. package/dist/dts/LogSpan.d.ts.map +1 -0
  1028. package/dist/dts/Logger.d.ts +795 -0
  1029. package/dist/dts/Logger.d.ts.map +1 -0
  1030. package/dist/dts/Mailbox.d.ts +274 -0
  1031. package/dist/dts/Mailbox.d.ts.map +1 -0
  1032. package/dist/dts/ManagedRuntime.d.ts +154 -0
  1033. package/dist/dts/ManagedRuntime.d.ts.map +1 -0
  1034. package/dist/dts/Match.d.ts +1140 -0
  1035. package/dist/dts/Match.d.ts.map +1 -0
  1036. package/dist/dts/MergeDecision.d.ts +86 -0
  1037. package/dist/dts/MergeDecision.d.ts.map +1 -0
  1038. package/dist/dts/MergeState.d.ts +130 -0
  1039. package/dist/dts/MergeState.d.ts.map +1 -0
  1040. package/dist/dts/MergeStrategy.d.ts +104 -0
  1041. package/dist/dts/MergeStrategy.d.ts.map +1 -0
  1042. package/dist/dts/Metric.d.ts +1042 -0
  1043. package/dist/dts/Metric.d.ts.map +1 -0
  1044. package/dist/dts/MetricBoundaries.d.ts +58 -0
  1045. package/dist/dts/MetricBoundaries.d.ts.map +1 -0
  1046. package/dist/dts/MetricHook.d.ts +155 -0
  1047. package/dist/dts/MetricHook.d.ts.map +1 -0
  1048. package/dist/dts/MetricKey.d.ts +222 -0
  1049. package/dist/dts/MetricKey.d.ts.map +1 -0
  1050. package/dist/dts/MetricKeyType.d.ts +224 -0
  1051. package/dist/dts/MetricKeyType.d.ts.map +1 -0
  1052. package/dist/dts/MetricLabel.d.ts +42 -0
  1053. package/dist/dts/MetricLabel.d.ts.map +1 -0
  1054. package/dist/dts/MetricPair.d.ts +54 -0
  1055. package/dist/dts/MetricPair.d.ts.map +1 -0
  1056. package/dist/dts/MetricPolling.d.ts +151 -0
  1057. package/dist/dts/MetricPolling.d.ts.map +1 -0
  1058. package/dist/dts/MetricRegistry.d.ts +34 -0
  1059. package/dist/dts/MetricRegistry.d.ts.map +1 -0
  1060. package/dist/dts/MetricState.d.ts +238 -0
  1061. package/dist/dts/MetricState.d.ts.map +1 -0
  1062. package/dist/dts/Micro.d.ts +3440 -0
  1063. package/dist/dts/Micro.d.ts.map +1 -0
  1064. package/dist/dts/ModuleVersion.d.ts +11 -0
  1065. package/dist/dts/ModuleVersion.d.ts.map +1 -0
  1066. package/dist/dts/MutableHashMap.d.ts +170 -0
  1067. package/dist/dts/MutableHashMap.d.ts.map +1 -0
  1068. package/dist/dts/MutableHashSet.d.ts +547 -0
  1069. package/dist/dts/MutableHashSet.d.ts.map +1 -0
  1070. package/dist/dts/MutableList.d.ts +150 -0
  1071. package/dist/dts/MutableList.d.ts.map +1 -0
  1072. package/dist/dts/MutableQueue.d.ts +189 -0
  1073. package/dist/dts/MutableQueue.d.ts.map +1 -0
  1074. package/dist/dts/MutableRef.d.ts +175 -0
  1075. package/dist/dts/MutableRef.d.ts.map +1 -0
  1076. package/dist/dts/NonEmptyIterable.d.ts +21 -0
  1077. package/dist/dts/NonEmptyIterable.d.ts.map +1 -0
  1078. package/dist/dts/Number.d.ts +1361 -0
  1079. package/dist/dts/Number.d.ts.map +1 -0
  1080. package/dist/dts/Option.d.ts +3757 -0
  1081. package/dist/dts/Option.d.ts.map +1 -0
  1082. package/dist/dts/Order.d.ts +260 -0
  1083. package/dist/dts/Order.d.ts.map +1 -0
  1084. package/dist/dts/Ordering.d.ts +144 -0
  1085. package/dist/dts/Ordering.d.ts.map +1 -0
  1086. package/dist/dts/ParseResult.d.ts +560 -0
  1087. package/dist/dts/ParseResult.d.ts.map +1 -0
  1088. package/dist/dts/PartitionedSemaphore.d.ts +76 -0
  1089. package/dist/dts/PartitionedSemaphore.d.ts.map +1 -0
  1090. package/dist/dts/Pipeable.d.ts +65 -0
  1091. package/dist/dts/Pipeable.d.ts.map +1 -0
  1092. package/dist/dts/Pool.d.ts +201 -0
  1093. package/dist/dts/Pool.d.ts.map +1 -0
  1094. package/dist/dts/Predicate.d.ts +2197 -0
  1095. package/dist/dts/Predicate.d.ts.map +1 -0
  1096. package/dist/dts/Pretty.d.ts +26 -0
  1097. package/dist/dts/Pretty.d.ts.map +1 -0
  1098. package/dist/dts/PrimaryKey.d.ts +21 -0
  1099. package/dist/dts/PrimaryKey.d.ts.map +1 -0
  1100. package/dist/dts/PubSub.d.ts +197 -0
  1101. package/dist/dts/PubSub.d.ts.map +1 -0
  1102. package/dist/dts/Queue.d.ts +664 -0
  1103. package/dist/dts/Queue.d.ts.map +1 -0
  1104. package/dist/dts/Random.d.ts +183 -0
  1105. package/dist/dts/Random.d.ts.map +1 -0
  1106. package/dist/dts/RateLimiter.d.ts +134 -0
  1107. package/dist/dts/RateLimiter.d.ts.map +1 -0
  1108. package/dist/dts/RcMap.d.ts +231 -0
  1109. package/dist/dts/RcMap.d.ts.map +1 -0
  1110. package/dist/dts/RcRef.d.ts +111 -0
  1111. package/dist/dts/RcRef.d.ts.map +1 -0
  1112. package/dist/dts/Readable.d.ts +72 -0
  1113. package/dist/dts/Readable.d.ts.map +1 -0
  1114. package/dist/dts/Record.d.ts +1547 -0
  1115. package/dist/dts/Record.d.ts.map +1 -0
  1116. package/dist/dts/RedBlackTree.d.ts +676 -0
  1117. package/dist/dts/RedBlackTree.d.ts.map +1 -0
  1118. package/dist/dts/Redacted.d.ts +133 -0
  1119. package/dist/dts/Redacted.d.ts.map +1 -0
  1120. package/dist/dts/Ref.d.ts +250 -0
  1121. package/dist/dts/Ref.d.ts.map +1 -0
  1122. package/dist/dts/RegExp.d.ts +31 -0
  1123. package/dist/dts/RegExp.d.ts.map +1 -0
  1124. package/dist/dts/Reloadable.d.ts +102 -0
  1125. package/dist/dts/Reloadable.d.ts.map +1 -0
  1126. package/dist/dts/Request.d.ts +383 -0
  1127. package/dist/dts/Request.d.ts.map +1 -0
  1128. package/dist/dts/RequestBlock.d.ts +94 -0
  1129. package/dist/dts/RequestBlock.d.ts.map +1 -0
  1130. package/dist/dts/RequestResolver.d.ts +413 -0
  1131. package/dist/dts/RequestResolver.d.ts.map +1 -0
  1132. package/dist/dts/Resource.d.ts +99 -0
  1133. package/dist/dts/Resource.d.ts.map +1 -0
  1134. package/dist/dts/Runtime.d.ts +578 -0
  1135. package/dist/dts/Runtime.d.ts.map +1 -0
  1136. package/dist/dts/RuntimeFlags.d.ts +397 -0
  1137. package/dist/dts/RuntimeFlags.d.ts.map +1 -0
  1138. package/dist/dts/RuntimeFlagsPatch.d.ts +273 -0
  1139. package/dist/dts/RuntimeFlagsPatch.d.ts.map +1 -0
  1140. package/dist/dts/STM.d.ts +2645 -0
  1141. package/dist/dts/STM.d.ts.map +1 -0
  1142. package/dist/dts/Schedule.d.ts +3509 -0
  1143. package/dist/dts/Schedule.d.ts.map +1 -0
  1144. package/dist/dts/ScheduleDecision.d.ts +50 -0
  1145. package/dist/dts/ScheduleDecision.d.ts.map +1 -0
  1146. package/dist/dts/ScheduleInterval.d.ts +204 -0
  1147. package/dist/dts/ScheduleInterval.d.ts.map +1 -0
  1148. package/dist/dts/ScheduleIntervals.d.ts +159 -0
  1149. package/dist/dts/ScheduleIntervals.d.ts.map +1 -0
  1150. package/dist/dts/Scheduler.d.ts +161 -0
  1151. package/dist/dts/Scheduler.d.ts.map +1 -0
  1152. package/dist/dts/Schema.d.ts +5094 -0
  1153. package/dist/dts/Schema.d.ts.map +1 -0
  1154. package/dist/dts/SchemaAST.d.ts +1360 -0
  1155. package/dist/dts/SchemaAST.d.ts.map +1 -0
  1156. package/dist/dts/Scope.d.ts +194 -0
  1157. package/dist/dts/Scope.d.ts.map +1 -0
  1158. package/dist/dts/ScopedCache.d.ts +127 -0
  1159. package/dist/dts/ScopedCache.d.ts.map +1 -0
  1160. package/dist/dts/ScopedRef.d.ts +125 -0
  1161. package/dist/dts/ScopedRef.d.ts.map +1 -0
  1162. package/dist/dts/Secret.d.ts +76 -0
  1163. package/dist/dts/Secret.d.ts.map +1 -0
  1164. package/dist/dts/SingleProducerAsyncInput.d.ts +57 -0
  1165. package/dist/dts/SingleProducerAsyncInput.d.ts.map +1 -0
  1166. package/dist/dts/Sink.d.ts +1616 -0
  1167. package/dist/dts/Sink.d.ts.map +1 -0
  1168. package/dist/dts/SortedMap.d.ts +234 -0
  1169. package/dist/dts/SortedMap.d.ts.map +1 -0
  1170. package/dist/dts/SortedSet.d.ts +333 -0
  1171. package/dist/dts/SortedSet.d.ts.map +1 -0
  1172. package/dist/dts/Stream.d.ts +10803 -0
  1173. package/dist/dts/Stream.d.ts.map +1 -0
  1174. package/dist/dts/StreamEmit.d.ts +117 -0
  1175. package/dist/dts/StreamEmit.d.ts.map +1 -0
  1176. package/dist/dts/StreamHaltStrategy.d.ts +116 -0
  1177. package/dist/dts/StreamHaltStrategy.d.ts.map +1 -0
  1178. package/dist/dts/Streamable.d.ts +27 -0
  1179. package/dist/dts/Streamable.d.ts.map +1 -0
  1180. package/dist/dts/String.d.ts +848 -0
  1181. package/dist/dts/String.d.ts.map +1 -0
  1182. package/dist/dts/Struct.d.ts +295 -0
  1183. package/dist/dts/Struct.d.ts.map +1 -0
  1184. package/dist/dts/Subscribable.d.ts +76 -0
  1185. package/dist/dts/Subscribable.d.ts.map +1 -0
  1186. package/dist/dts/SubscriptionRef.d.ts +384 -0
  1187. package/dist/dts/SubscriptionRef.d.ts.map +1 -0
  1188. package/dist/dts/Supervisor.d.ts +171 -0
  1189. package/dist/dts/Supervisor.d.ts.map +1 -0
  1190. package/dist/dts/Symbol.d.ts +26 -0
  1191. package/dist/dts/Symbol.d.ts.map +1 -0
  1192. package/dist/dts/SynchronizedRef.d.ts +378 -0
  1193. package/dist/dts/SynchronizedRef.d.ts.map +1 -0
  1194. package/dist/dts/TArray.d.ts +857 -0
  1195. package/dist/dts/TArray.d.ts.map +1 -0
  1196. package/dist/dts/TDeferred.d.ts +104 -0
  1197. package/dist/dts/TDeferred.d.ts.map +1 -0
  1198. package/dist/dts/TMap.d.ts +780 -0
  1199. package/dist/dts/TMap.d.ts.map +1 -0
  1200. package/dist/dts/TPriorityQueue.d.ts +250 -0
  1201. package/dist/dts/TPriorityQueue.d.ts.map +1 -0
  1202. package/dist/dts/TPubSub.d.ts +186 -0
  1203. package/dist/dts/TPubSub.d.ts.map +1 -0
  1204. package/dist/dts/TQueue.d.ts +492 -0
  1205. package/dist/dts/TQueue.d.ts.map +1 -0
  1206. package/dist/dts/TRandom.d.ts +108 -0
  1207. package/dist/dts/TRandom.d.ts.map +1 -0
  1208. package/dist/dts/TReentrantLock.d.ts +230 -0
  1209. package/dist/dts/TReentrantLock.d.ts.map +1 -0
  1210. package/dist/dts/TRef.d.ts +235 -0
  1211. package/dist/dts/TRef.d.ts.map +1 -0
  1212. package/dist/dts/TSemaphore.d.ts +145 -0
  1213. package/dist/dts/TSemaphore.d.ts.map +1 -0
  1214. package/dist/dts/TSet.d.ts +564 -0
  1215. package/dist/dts/TSet.d.ts.map +1 -0
  1216. package/dist/dts/TSubscriptionRef.d.ts +251 -0
  1217. package/dist/dts/TSubscriptionRef.d.ts.map +1 -0
  1218. package/dist/dts/Take.d.ts +271 -0
  1219. package/dist/dts/Take.d.ts.map +1 -0
  1220. package/dist/dts/TestAnnotation.d.ts +71 -0
  1221. package/dist/dts/TestAnnotation.d.ts.map +1 -0
  1222. package/dist/dts/TestAnnotationMap.d.ts +56 -0
  1223. package/dist/dts/TestAnnotationMap.d.ts.map +1 -0
  1224. package/dist/dts/TestAnnotations.d.ts +59 -0
  1225. package/dist/dts/TestAnnotations.d.ts.map +1 -0
  1226. package/dist/dts/TestClock.d.ts +147 -0
  1227. package/dist/dts/TestClock.d.ts.map +1 -0
  1228. package/dist/dts/TestConfig.d.ts +45 -0
  1229. package/dist/dts/TestConfig.d.ts.map +1 -0
  1230. package/dist/dts/TestContext.d.ts +15 -0
  1231. package/dist/dts/TestContext.d.ts.map +1 -0
  1232. package/dist/dts/TestLive.d.ts +35 -0
  1233. package/dist/dts/TestLive.d.ts.map +1 -0
  1234. package/dist/dts/TestServices.d.ts +231 -0
  1235. package/dist/dts/TestServices.d.ts.map +1 -0
  1236. package/dist/dts/TestSized.d.ts +36 -0
  1237. package/dist/dts/TestSized.d.ts.map +1 -0
  1238. package/dist/dts/Tracer.d.ts +152 -0
  1239. package/dist/dts/Tracer.d.ts.map +1 -0
  1240. package/dist/dts/Trie.d.ts +1828 -0
  1241. package/dist/dts/Trie.d.ts.map +1 -0
  1242. package/dist/dts/Tuple.d.ts +446 -0
  1243. package/dist/dts/Tuple.d.ts.map +1 -0
  1244. package/dist/dts/Types.d.ts +330 -0
  1245. package/dist/dts/Types.d.ts.map +1 -0
  1246. package/dist/dts/Unify.d.ts +75 -0
  1247. package/dist/dts/Unify.d.ts.map +1 -0
  1248. package/dist/dts/UpstreamPullRequest.d.ts +109 -0
  1249. package/dist/dts/UpstreamPullRequest.d.ts.map +1 -0
  1250. package/dist/dts/UpstreamPullStrategy.d.ts +110 -0
  1251. package/dist/dts/UpstreamPullStrategy.d.ts.map +1 -0
  1252. package/dist/dts/Utils.d.ts +283 -0
  1253. package/dist/dts/Utils.d.ts.map +1 -0
  1254. package/dist/dts/index.d.ts +1385 -0
  1255. package/dist/dts/index.d.ts.map +1 -0
  1256. package/dist/dts/internal/array.d.ts +5 -0
  1257. package/dist/dts/internal/array.d.ts.map +1 -0
  1258. package/dist/dts/internal/blockedRequests.d.ts +2 -0
  1259. package/dist/dts/internal/blockedRequests.d.ts.map +1 -0
  1260. package/dist/dts/internal/cache.d.ts +2 -0
  1261. package/dist/dts/internal/cache.d.ts.map +1 -0
  1262. package/dist/dts/internal/cause.d.ts +2 -0
  1263. package/dist/dts/internal/cause.d.ts.map +1 -0
  1264. package/dist/dts/internal/channel/channelExecutor.d.ts +3 -0
  1265. package/dist/dts/internal/channel/channelExecutor.d.ts.map +1 -0
  1266. package/dist/dts/internal/channel/channelState.d.ts +2 -0
  1267. package/dist/dts/internal/channel/channelState.d.ts.map +1 -0
  1268. package/dist/dts/internal/channel/childExecutorDecision.d.ts +2 -0
  1269. package/dist/dts/internal/channel/childExecutorDecision.d.ts.map +1 -0
  1270. package/dist/dts/internal/channel/continuation.d.ts +2 -0
  1271. package/dist/dts/internal/channel/continuation.d.ts.map +1 -0
  1272. package/dist/dts/internal/channel/mergeDecision.d.ts +2 -0
  1273. package/dist/dts/internal/channel/mergeDecision.d.ts.map +1 -0
  1274. package/dist/dts/internal/channel/mergeState.d.ts +2 -0
  1275. package/dist/dts/internal/channel/mergeState.d.ts.map +1 -0
  1276. package/dist/dts/internal/channel/mergeStrategy.d.ts +2 -0
  1277. package/dist/dts/internal/channel/mergeStrategy.d.ts.map +1 -0
  1278. package/dist/dts/internal/channel/singleProducerAsyncInput.d.ts +2 -0
  1279. package/dist/dts/internal/channel/singleProducerAsyncInput.d.ts.map +1 -0
  1280. package/dist/dts/internal/channel/subexecutor.d.ts +2 -0
  1281. package/dist/dts/internal/channel/subexecutor.d.ts.map +1 -0
  1282. package/dist/dts/internal/channel/upstreamPullRequest.d.ts +2 -0
  1283. package/dist/dts/internal/channel/upstreamPullRequest.d.ts.map +1 -0
  1284. package/dist/dts/internal/channel/upstreamPullStrategy.d.ts +2 -0
  1285. package/dist/dts/internal/channel/upstreamPullStrategy.d.ts.map +1 -0
  1286. package/dist/dts/internal/channel.d.ts +2 -0
  1287. package/dist/dts/internal/channel.d.ts.map +1 -0
  1288. package/dist/dts/internal/clock.d.ts +2 -0
  1289. package/dist/dts/internal/clock.d.ts.map +1 -0
  1290. package/dist/dts/internal/completedRequestMap.d.ts +2 -0
  1291. package/dist/dts/internal/completedRequestMap.d.ts.map +1 -0
  1292. package/dist/dts/internal/concurrency.d.ts +2 -0
  1293. package/dist/dts/internal/concurrency.d.ts.map +1 -0
  1294. package/dist/dts/internal/config.d.ts +2 -0
  1295. package/dist/dts/internal/config.d.ts.map +1 -0
  1296. package/dist/dts/internal/configError.d.ts +2 -0
  1297. package/dist/dts/internal/configError.d.ts.map +1 -0
  1298. package/dist/dts/internal/configProvider/pathPatch.d.ts +2 -0
  1299. package/dist/dts/internal/configProvider/pathPatch.d.ts.map +1 -0
  1300. package/dist/dts/internal/configProvider.d.ts +2 -0
  1301. package/dist/dts/internal/configProvider.d.ts.map +1 -0
  1302. package/dist/dts/internal/console.d.ts +2 -0
  1303. package/dist/dts/internal/console.d.ts.map +1 -0
  1304. package/dist/dts/internal/context.d.ts +2 -0
  1305. package/dist/dts/internal/context.d.ts.map +1 -0
  1306. package/dist/dts/internal/core-effect.d.ts +8 -0
  1307. package/dist/dts/internal/core-effect.d.ts.map +1 -0
  1308. package/dist/dts/internal/core-stream.d.ts +9 -0
  1309. package/dist/dts/internal/core-stream.d.ts.map +1 -0
  1310. package/dist/dts/internal/core.d.ts +9 -0
  1311. package/dist/dts/internal/core.d.ts.map +1 -0
  1312. package/dist/dts/internal/data.d.ts +2 -0
  1313. package/dist/dts/internal/data.d.ts.map +1 -0
  1314. package/dist/dts/internal/dataSource.d.ts +2 -0
  1315. package/dist/dts/internal/dataSource.d.ts.map +1 -0
  1316. package/dist/dts/internal/dateTime.d.ts +2 -0
  1317. package/dist/dts/internal/dateTime.d.ts.map +1 -0
  1318. package/dist/dts/internal/defaultServices/console.d.ts +2 -0
  1319. package/dist/dts/internal/defaultServices/console.d.ts.map +1 -0
  1320. package/dist/dts/internal/defaultServices.d.ts +10 -0
  1321. package/dist/dts/internal/defaultServices.d.ts.map +1 -0
  1322. package/dist/dts/internal/deferred.d.ts +2 -0
  1323. package/dist/dts/internal/deferred.d.ts.map +1 -0
  1324. package/dist/dts/internal/differ/chunkPatch.d.ts +2 -0
  1325. package/dist/dts/internal/differ/chunkPatch.d.ts.map +1 -0
  1326. package/dist/dts/internal/differ/contextPatch.d.ts +2 -0
  1327. package/dist/dts/internal/differ/contextPatch.d.ts.map +1 -0
  1328. package/dist/dts/internal/differ/hashMapPatch.d.ts +2 -0
  1329. package/dist/dts/internal/differ/hashMapPatch.d.ts.map +1 -0
  1330. package/dist/dts/internal/differ/hashSetPatch.d.ts +2 -0
  1331. package/dist/dts/internal/differ/hashSetPatch.d.ts.map +1 -0
  1332. package/dist/dts/internal/differ/orPatch.d.ts +2 -0
  1333. package/dist/dts/internal/differ/orPatch.d.ts.map +1 -0
  1334. package/dist/dts/internal/differ/readonlyArrayPatch.d.ts +2 -0
  1335. package/dist/dts/internal/differ/readonlyArrayPatch.d.ts.map +1 -0
  1336. package/dist/dts/internal/differ.d.ts +2 -0
  1337. package/dist/dts/internal/differ.d.ts.map +1 -0
  1338. package/dist/dts/internal/doNotation.d.ts +2 -0
  1339. package/dist/dts/internal/doNotation.d.ts.map +1 -0
  1340. package/dist/dts/internal/effect/circular.d.ts +2 -0
  1341. package/dist/dts/internal/effect/circular.d.ts.map +1 -0
  1342. package/dist/dts/internal/effectable.d.ts +2 -0
  1343. package/dist/dts/internal/effectable.d.ts.map +1 -0
  1344. package/dist/dts/internal/either.d.ts +5 -0
  1345. package/dist/dts/internal/either.d.ts.map +1 -0
  1346. package/dist/dts/internal/encoding/base64.d.ts +2 -0
  1347. package/dist/dts/internal/encoding/base64.d.ts.map +1 -0
  1348. package/dist/dts/internal/encoding/base64Url.d.ts +2 -0
  1349. package/dist/dts/internal/encoding/base64Url.d.ts.map +1 -0
  1350. package/dist/dts/internal/encoding/common.d.ts +5 -0
  1351. package/dist/dts/internal/encoding/common.d.ts.map +1 -0
  1352. package/dist/dts/internal/encoding/hex.d.ts +2 -0
  1353. package/dist/dts/internal/encoding/hex.d.ts.map +1 -0
  1354. package/dist/dts/internal/errors.d.ts +5 -0
  1355. package/dist/dts/internal/errors.d.ts.map +1 -0
  1356. package/dist/dts/internal/executionPlan.d.ts +2 -0
  1357. package/dist/dts/internal/executionPlan.d.ts.map +1 -0
  1358. package/dist/dts/internal/executionStrategy.d.ts +2 -0
  1359. package/dist/dts/internal/executionStrategy.d.ts.map +1 -0
  1360. package/dist/dts/internal/fiber.d.ts +6 -0
  1361. package/dist/dts/internal/fiber.d.ts.map +1 -0
  1362. package/dist/dts/internal/fiberId.d.ts +2 -0
  1363. package/dist/dts/internal/fiberId.d.ts.map +1 -0
  1364. package/dist/dts/internal/fiberMessage.d.ts +2 -0
  1365. package/dist/dts/internal/fiberMessage.d.ts.map +1 -0
  1366. package/dist/dts/internal/fiberRefs/patch.d.ts +2 -0
  1367. package/dist/dts/internal/fiberRefs/patch.d.ts.map +1 -0
  1368. package/dist/dts/internal/fiberRefs.d.ts +2 -0
  1369. package/dist/dts/internal/fiberRefs.d.ts.map +1 -0
  1370. package/dist/dts/internal/fiberRuntime.d.ts +7 -0
  1371. package/dist/dts/internal/fiberRuntime.d.ts.map +1 -0
  1372. package/dist/dts/internal/fiberScope.d.ts +18 -0
  1373. package/dist/dts/internal/fiberScope.d.ts.map +1 -0
  1374. package/dist/dts/internal/fiberStatus.d.ts +2 -0
  1375. package/dist/dts/internal/fiberStatus.d.ts.map +1 -0
  1376. package/dist/dts/internal/groupBy.d.ts +2 -0
  1377. package/dist/dts/internal/groupBy.d.ts.map +1 -0
  1378. package/dist/dts/internal/hashMap/array.d.ts +2 -0
  1379. package/dist/dts/internal/hashMap/array.d.ts.map +1 -0
  1380. package/dist/dts/internal/hashMap/bitwise.d.ts +2 -0
  1381. package/dist/dts/internal/hashMap/bitwise.d.ts.map +1 -0
  1382. package/dist/dts/internal/hashMap/config.d.ts +2 -0
  1383. package/dist/dts/internal/hashMap/config.d.ts.map +1 -0
  1384. package/dist/dts/internal/hashMap/keySet.d.ts +2 -0
  1385. package/dist/dts/internal/hashMap/keySet.d.ts.map +1 -0
  1386. package/dist/dts/internal/hashMap/node.d.ts +2 -0
  1387. package/dist/dts/internal/hashMap/node.d.ts.map +1 -0
  1388. package/dist/dts/internal/hashMap.d.ts +9 -0
  1389. package/dist/dts/internal/hashMap.d.ts.map +1 -0
  1390. package/dist/dts/internal/hashSet.d.ts +2 -0
  1391. package/dist/dts/internal/hashSet.d.ts.map +1 -0
  1392. package/dist/dts/internal/keyedPool.d.ts +2 -0
  1393. package/dist/dts/internal/keyedPool.d.ts.map +1 -0
  1394. package/dist/dts/internal/layer/circular.d.ts +2 -0
  1395. package/dist/dts/internal/layer/circular.d.ts.map +1 -0
  1396. package/dist/dts/internal/layer.d.ts +16 -0
  1397. package/dist/dts/internal/layer.d.ts.map +1 -0
  1398. package/dist/dts/internal/logSpan.d.ts +2 -0
  1399. package/dist/dts/internal/logSpan.d.ts.map +1 -0
  1400. package/dist/dts/internal/logger-circular.d.ts +2 -0
  1401. package/dist/dts/internal/logger-circular.d.ts.map +1 -0
  1402. package/dist/dts/internal/logger.d.ts +2 -0
  1403. package/dist/dts/internal/logger.d.ts.map +1 -0
  1404. package/dist/dts/internal/mailbox.d.ts +2 -0
  1405. package/dist/dts/internal/mailbox.d.ts.map +1 -0
  1406. package/dist/dts/internal/managedRuntime/circular.d.ts +2 -0
  1407. package/dist/dts/internal/managedRuntime/circular.d.ts.map +1 -0
  1408. package/dist/dts/internal/managedRuntime.d.ts +2 -0
  1409. package/dist/dts/internal/managedRuntime.d.ts.map +1 -0
  1410. package/dist/dts/internal/matcher.d.ts +2 -0
  1411. package/dist/dts/internal/matcher.d.ts.map +1 -0
  1412. package/dist/dts/internal/metric/boundaries.d.ts +2 -0
  1413. package/dist/dts/internal/metric/boundaries.d.ts.map +1 -0
  1414. package/dist/dts/internal/metric/hook.d.ts +2 -0
  1415. package/dist/dts/internal/metric/hook.d.ts.map +1 -0
  1416. package/dist/dts/internal/metric/key.d.ts +2 -0
  1417. package/dist/dts/internal/metric/key.d.ts.map +1 -0
  1418. package/dist/dts/internal/metric/keyType.d.ts +2 -0
  1419. package/dist/dts/internal/metric/keyType.d.ts.map +1 -0
  1420. package/dist/dts/internal/metric/label.d.ts +2 -0
  1421. package/dist/dts/internal/metric/label.d.ts.map +1 -0
  1422. package/dist/dts/internal/metric/pair.d.ts +2 -0
  1423. package/dist/dts/internal/metric/pair.d.ts.map +1 -0
  1424. package/dist/dts/internal/metric/polling.d.ts +2 -0
  1425. package/dist/dts/internal/metric/polling.d.ts.map +1 -0
  1426. package/dist/dts/internal/metric/registry.d.ts +2 -0
  1427. package/dist/dts/internal/metric/registry.d.ts.map +1 -0
  1428. package/dist/dts/internal/metric/state.d.ts +22 -0
  1429. package/dist/dts/internal/metric/state.d.ts.map +1 -0
  1430. package/dist/dts/internal/metric.d.ts +2 -0
  1431. package/dist/dts/internal/metric.d.ts.map +1 -0
  1432. package/dist/dts/internal/opCodes/cause.d.ts +2 -0
  1433. package/dist/dts/internal/opCodes/cause.d.ts.map +1 -0
  1434. package/dist/dts/internal/opCodes/channel.d.ts +2 -0
  1435. package/dist/dts/internal/opCodes/channel.d.ts.map +1 -0
  1436. package/dist/dts/internal/opCodes/channelChildExecutorDecision.d.ts +2 -0
  1437. package/dist/dts/internal/opCodes/channelChildExecutorDecision.d.ts.map +1 -0
  1438. package/dist/dts/internal/opCodes/channelMergeDecision.d.ts +2 -0
  1439. package/dist/dts/internal/opCodes/channelMergeDecision.d.ts.map +1 -0
  1440. package/dist/dts/internal/opCodes/channelMergeState.d.ts +2 -0
  1441. package/dist/dts/internal/opCodes/channelMergeState.d.ts.map +1 -0
  1442. package/dist/dts/internal/opCodes/channelMergeStrategy.d.ts +2 -0
  1443. package/dist/dts/internal/opCodes/channelMergeStrategy.d.ts.map +1 -0
  1444. package/dist/dts/internal/opCodes/channelState.d.ts +2 -0
  1445. package/dist/dts/internal/opCodes/channelState.d.ts.map +1 -0
  1446. package/dist/dts/internal/opCodes/channelUpstreamPullRequest.d.ts +2 -0
  1447. package/dist/dts/internal/opCodes/channelUpstreamPullRequest.d.ts.map +1 -0
  1448. package/dist/dts/internal/opCodes/channelUpstreamPullStrategy.d.ts +2 -0
  1449. package/dist/dts/internal/opCodes/channelUpstreamPullStrategy.d.ts.map +1 -0
  1450. package/dist/dts/internal/opCodes/config.d.ts +2 -0
  1451. package/dist/dts/internal/opCodes/config.d.ts.map +1 -0
  1452. package/dist/dts/internal/opCodes/configError.d.ts +2 -0
  1453. package/dist/dts/internal/opCodes/configError.d.ts.map +1 -0
  1454. package/dist/dts/internal/opCodes/continuation.d.ts +2 -0
  1455. package/dist/dts/internal/opCodes/continuation.d.ts.map +1 -0
  1456. package/dist/dts/internal/opCodes/deferred.d.ts +2 -0
  1457. package/dist/dts/internal/opCodes/deferred.d.ts.map +1 -0
  1458. package/dist/dts/internal/opCodes/effect.d.ts +2 -0
  1459. package/dist/dts/internal/opCodes/effect.d.ts.map +1 -0
  1460. package/dist/dts/internal/opCodes/layer.d.ts +2 -0
  1461. package/dist/dts/internal/opCodes/layer.d.ts.map +1 -0
  1462. package/dist/dts/internal/opCodes/streamHaltStrategy.d.ts +2 -0
  1463. package/dist/dts/internal/opCodes/streamHaltStrategy.d.ts.map +1 -0
  1464. package/dist/dts/internal/option.d.ts +5 -0
  1465. package/dist/dts/internal/option.d.ts.map +1 -0
  1466. package/dist/dts/internal/pool.d.ts +2 -0
  1467. package/dist/dts/internal/pool.d.ts.map +1 -0
  1468. package/dist/dts/internal/pubsub.d.ts +2 -0
  1469. package/dist/dts/internal/pubsub.d.ts.map +1 -0
  1470. package/dist/dts/internal/query.d.ts +2 -0
  1471. package/dist/dts/internal/query.d.ts.map +1 -0
  1472. package/dist/dts/internal/queue.d.ts +2 -0
  1473. package/dist/dts/internal/queue.d.ts.map +1 -0
  1474. package/dist/dts/internal/random.d.ts +3 -0
  1475. package/dist/dts/internal/random.d.ts.map +1 -0
  1476. package/dist/dts/internal/rateLimiter.d.ts +2 -0
  1477. package/dist/dts/internal/rateLimiter.d.ts.map +1 -0
  1478. package/dist/dts/internal/rcMap.d.ts +2 -0
  1479. package/dist/dts/internal/rcMap.d.ts.map +1 -0
  1480. package/dist/dts/internal/rcRef.d.ts +2 -0
  1481. package/dist/dts/internal/rcRef.d.ts.map +1 -0
  1482. package/dist/dts/internal/redBlackTree/iterator.d.ts +2 -0
  1483. package/dist/dts/internal/redBlackTree/iterator.d.ts.map +1 -0
  1484. package/dist/dts/internal/redBlackTree/node.d.ts +14 -0
  1485. package/dist/dts/internal/redBlackTree/node.d.ts.map +1 -0
  1486. package/dist/dts/internal/redBlackTree.d.ts +2 -0
  1487. package/dist/dts/internal/redBlackTree.d.ts.map +1 -0
  1488. package/dist/dts/internal/redacted.d.ts +2 -0
  1489. package/dist/dts/internal/redacted.d.ts.map +1 -0
  1490. package/dist/dts/internal/ref.d.ts +2 -0
  1491. package/dist/dts/internal/ref.d.ts.map +1 -0
  1492. package/dist/dts/internal/reloadable.d.ts +2 -0
  1493. package/dist/dts/internal/reloadable.d.ts.map +1 -0
  1494. package/dist/dts/internal/request.d.ts +2 -0
  1495. package/dist/dts/internal/request.d.ts.map +1 -0
  1496. package/dist/dts/internal/resource.d.ts +2 -0
  1497. package/dist/dts/internal/resource.d.ts.map +1 -0
  1498. package/dist/dts/internal/ringBuffer.d.ts +2 -0
  1499. package/dist/dts/internal/ringBuffer.d.ts.map +1 -0
  1500. package/dist/dts/internal/runtime.d.ts +2 -0
  1501. package/dist/dts/internal/runtime.d.ts.map +1 -0
  1502. package/dist/dts/internal/runtimeFlags.d.ts +3 -0
  1503. package/dist/dts/internal/runtimeFlags.d.ts.map +1 -0
  1504. package/dist/dts/internal/runtimeFlagsPatch.d.ts +2 -0
  1505. package/dist/dts/internal/runtimeFlagsPatch.d.ts.map +1 -0
  1506. package/dist/dts/internal/schedule/decision.d.ts +2 -0
  1507. package/dist/dts/internal/schedule/decision.d.ts.map +1 -0
  1508. package/dist/dts/internal/schedule/interval.d.ts +2 -0
  1509. package/dist/dts/internal/schedule/interval.d.ts.map +1 -0
  1510. package/dist/dts/internal/schedule/intervals.d.ts +2 -0
  1511. package/dist/dts/internal/schedule/intervals.d.ts.map +1 -0
  1512. package/dist/dts/internal/schedule.d.ts +2 -0
  1513. package/dist/dts/internal/schedule.d.ts.map +1 -0
  1514. package/dist/dts/internal/schema/errors.d.ts +2 -0
  1515. package/dist/dts/internal/schema/errors.d.ts.map +1 -0
  1516. package/dist/dts/internal/schema/schemaId.d.ts +2 -0
  1517. package/dist/dts/internal/schema/schemaId.d.ts.map +1 -0
  1518. package/dist/dts/internal/schema/util.d.ts +2 -0
  1519. package/dist/dts/internal/schema/util.d.ts.map +1 -0
  1520. package/dist/dts/internal/scopedCache.d.ts +2 -0
  1521. package/dist/dts/internal/scopedCache.d.ts.map +1 -0
  1522. package/dist/dts/internal/scopedRef.d.ts +2 -0
  1523. package/dist/dts/internal/scopedRef.d.ts.map +1 -0
  1524. package/dist/dts/internal/secret.d.ts +2 -0
  1525. package/dist/dts/internal/secret.d.ts.map +1 -0
  1526. package/dist/dts/internal/singleShotGen.d.ts +2 -0
  1527. package/dist/dts/internal/singleShotGen.d.ts.map +1 -0
  1528. package/dist/dts/internal/sink.d.ts +2 -0
  1529. package/dist/dts/internal/sink.d.ts.map +1 -0
  1530. package/dist/dts/internal/stack.d.ts +2 -0
  1531. package/dist/dts/internal/stack.d.ts.map +1 -0
  1532. package/dist/dts/internal/stm/core.d.ts +2 -0
  1533. package/dist/dts/internal/stm/core.d.ts.map +1 -0
  1534. package/dist/dts/internal/stm/entry.d.ts +2 -0
  1535. package/dist/dts/internal/stm/entry.d.ts.map +1 -0
  1536. package/dist/dts/internal/stm/journal.d.ts +2 -0
  1537. package/dist/dts/internal/stm/journal.d.ts.map +1 -0
  1538. package/dist/dts/internal/stm/opCodes/stm.d.ts +2 -0
  1539. package/dist/dts/internal/stm/opCodes/stm.d.ts.map +1 -0
  1540. package/dist/dts/internal/stm/opCodes/stmState.d.ts +2 -0
  1541. package/dist/dts/internal/stm/opCodes/stmState.d.ts.map +1 -0
  1542. package/dist/dts/internal/stm/opCodes/strategy.d.ts +2 -0
  1543. package/dist/dts/internal/stm/opCodes/strategy.d.ts.map +1 -0
  1544. package/dist/dts/internal/stm/opCodes/tExit.d.ts +2 -0
  1545. package/dist/dts/internal/stm/opCodes/tExit.d.ts.map +1 -0
  1546. package/dist/dts/internal/stm/opCodes/tryCommit.d.ts +2 -0
  1547. package/dist/dts/internal/stm/opCodes/tryCommit.d.ts.map +1 -0
  1548. package/dist/dts/internal/stm/stm.d.ts +7 -0
  1549. package/dist/dts/internal/stm/stm.d.ts.map +1 -0
  1550. package/dist/dts/internal/stm/stmState.d.ts +2 -0
  1551. package/dist/dts/internal/stm/stmState.d.ts.map +1 -0
  1552. package/dist/dts/internal/stm/tArray.d.ts +2 -0
  1553. package/dist/dts/internal/stm/tArray.d.ts.map +1 -0
  1554. package/dist/dts/internal/stm/tDeferred.d.ts +2 -0
  1555. package/dist/dts/internal/stm/tDeferred.d.ts.map +1 -0
  1556. package/dist/dts/internal/stm/tExit.d.ts +5 -0
  1557. package/dist/dts/internal/stm/tExit.d.ts.map +1 -0
  1558. package/dist/dts/internal/stm/tMap.d.ts +2 -0
  1559. package/dist/dts/internal/stm/tMap.d.ts.map +1 -0
  1560. package/dist/dts/internal/stm/tPriorityQueue.d.ts +2 -0
  1561. package/dist/dts/internal/stm/tPriorityQueue.d.ts.map +1 -0
  1562. package/dist/dts/internal/stm/tPubSub.d.ts +2 -0
  1563. package/dist/dts/internal/stm/tPubSub.d.ts.map +1 -0
  1564. package/dist/dts/internal/stm/tQueue.d.ts +2 -0
  1565. package/dist/dts/internal/stm/tQueue.d.ts.map +1 -0
  1566. package/dist/dts/internal/stm/tRandom.d.ts +2 -0
  1567. package/dist/dts/internal/stm/tRandom.d.ts.map +1 -0
  1568. package/dist/dts/internal/stm/tReentrantLock.d.ts +2 -0
  1569. package/dist/dts/internal/stm/tReentrantLock.d.ts.map +1 -0
  1570. package/dist/dts/internal/stm/tRef.d.ts +4 -0
  1571. package/dist/dts/internal/stm/tRef.d.ts.map +1 -0
  1572. package/dist/dts/internal/stm/tSemaphore.d.ts +2 -0
  1573. package/dist/dts/internal/stm/tSemaphore.d.ts.map +1 -0
  1574. package/dist/dts/internal/stm/tSet.d.ts +2 -0
  1575. package/dist/dts/internal/stm/tSet.d.ts.map +1 -0
  1576. package/dist/dts/internal/stm/tSubscriptionRef.d.ts +2 -0
  1577. package/dist/dts/internal/stm/tSubscriptionRef.d.ts.map +1 -0
  1578. package/dist/dts/internal/stm/tryCommit.d.ts +2 -0
  1579. package/dist/dts/internal/stm/tryCommit.d.ts.map +1 -0
  1580. package/dist/dts/internal/stm/txnId.d.ts +2 -0
  1581. package/dist/dts/internal/stm/txnId.d.ts.map +1 -0
  1582. package/dist/dts/internal/stm/versioned.d.ts +2 -0
  1583. package/dist/dts/internal/stm/versioned.d.ts.map +1 -0
  1584. package/dist/dts/internal/stream/debounceState.d.ts +4 -0
  1585. package/dist/dts/internal/stream/debounceState.d.ts.map +1 -0
  1586. package/dist/dts/internal/stream/emit.d.ts +2 -0
  1587. package/dist/dts/internal/stream/emit.d.ts.map +1 -0
  1588. package/dist/dts/internal/stream/haltStrategy.d.ts +2 -0
  1589. package/dist/dts/internal/stream/haltStrategy.d.ts.map +1 -0
  1590. package/dist/dts/internal/stream/handoff.d.ts +2 -0
  1591. package/dist/dts/internal/stream/handoff.d.ts.map +1 -0
  1592. package/dist/dts/internal/stream/handoffSignal.d.ts +6 -0
  1593. package/dist/dts/internal/stream/handoffSignal.d.ts.map +1 -0
  1594. package/dist/dts/internal/stream/pull.d.ts +2 -0
  1595. package/dist/dts/internal/stream/pull.d.ts.map +1 -0
  1596. package/dist/dts/internal/stream/sinkEndReason.d.ts +2 -0
  1597. package/dist/dts/internal/stream/sinkEndReason.d.ts.map +1 -0
  1598. package/dist/dts/internal/stream/zipAllState.d.ts +2 -0
  1599. package/dist/dts/internal/stream/zipAllState.d.ts.map +1 -0
  1600. package/dist/dts/internal/stream/zipChunksState.d.ts +2 -0
  1601. package/dist/dts/internal/stream/zipChunksState.d.ts.map +1 -0
  1602. package/dist/dts/internal/stream.d.ts +29 -0
  1603. package/dist/dts/internal/stream.d.ts.map +1 -0
  1604. package/dist/dts/internal/string-utils.d.ts +7 -0
  1605. package/dist/dts/internal/string-utils.d.ts.map +1 -0
  1606. package/dist/dts/internal/subscriptionRef.d.ts +2 -0
  1607. package/dist/dts/internal/subscriptionRef.d.ts.map +1 -0
  1608. package/dist/dts/internal/supervisor/patch.d.ts +2 -0
  1609. package/dist/dts/internal/supervisor/patch.d.ts.map +1 -0
  1610. package/dist/dts/internal/supervisor.d.ts +2 -0
  1611. package/dist/dts/internal/supervisor.d.ts.map +1 -0
  1612. package/dist/dts/internal/synchronizedRef.d.ts +2 -0
  1613. package/dist/dts/internal/synchronizedRef.d.ts.map +1 -0
  1614. package/dist/dts/internal/take.d.ts +2 -0
  1615. package/dist/dts/internal/take.d.ts.map +1 -0
  1616. package/dist/dts/internal/testing/sleep.d.ts +2 -0
  1617. package/dist/dts/internal/testing/sleep.d.ts.map +1 -0
  1618. package/dist/dts/internal/testing/suspendedWarningData.d.ts +2 -0
  1619. package/dist/dts/internal/testing/suspendedWarningData.d.ts.map +1 -0
  1620. package/dist/dts/internal/testing/warningData.d.ts +2 -0
  1621. package/dist/dts/internal/testing/warningData.d.ts.map +1 -0
  1622. package/dist/dts/internal/tracer.d.ts +2 -0
  1623. package/dist/dts/internal/tracer.d.ts.map +1 -0
  1624. package/dist/dts/internal/trie.d.ts +2 -0
  1625. package/dist/dts/internal/trie.d.ts.map +1 -0
  1626. package/dist/dts/internal/version.d.ts +3 -0
  1627. package/dist/dts/internal/version.d.ts.map +1 -0
  1628. package/dist/esm/Arbitrary.js +798 -0
  1629. package/dist/esm/Arbitrary.js.map +1 -0
  1630. package/dist/esm/Array.js +2703 -0
  1631. package/dist/esm/Array.js.map +1 -0
  1632. package/dist/esm/BigDecimal.js +1087 -0
  1633. package/dist/esm/BigDecimal.js.map +1 -0
  1634. package/dist/esm/BigInt.js +548 -0
  1635. package/dist/esm/BigInt.js.map +1 -0
  1636. package/dist/esm/Boolean.js +240 -0
  1637. package/dist/esm/Boolean.js.map +1 -0
  1638. package/dist/esm/Brand.js +161 -0
  1639. package/dist/esm/Brand.js.map +1 -0
  1640. package/dist/esm/Cache.js +43 -0
  1641. package/dist/esm/Cache.js.map +1 -0
  1642. package/dist/esm/Cause.js +1004 -0
  1643. package/dist/esm/Cause.js.map +1 -0
  1644. package/dist/esm/Channel.js +887 -0
  1645. package/dist/esm/Channel.js.map +1 -0
  1646. package/dist/esm/ChildExecutorDecision.js +64 -0
  1647. package/dist/esm/ChildExecutorDecision.js.map +1 -0
  1648. package/dist/esm/Chunk.js +1083 -0
  1649. package/dist/esm/Chunk.js.map +1 -0
  1650. package/dist/esm/Clock.js +38 -0
  1651. package/dist/esm/Clock.js.map +1 -0
  1652. package/dist/esm/Config.js +321 -0
  1653. package/dist/esm/Config.js.map +1 -0
  1654. package/dist/esm/ConfigError.js +107 -0
  1655. package/dist/esm/ConfigError.js.map +1 -0
  1656. package/dist/esm/ConfigProvider.js +166 -0
  1657. package/dist/esm/ConfigProvider.js.map +1 -0
  1658. package/dist/esm/ConfigProviderPathPatch.js +30 -0
  1659. package/dist/esm/ConfigProviderPathPatch.js.map +1 -0
  1660. package/dist/esm/Console.js +118 -0
  1661. package/dist/esm/Console.js.map +1 -0
  1662. package/dist/esm/Context.js +360 -0
  1663. package/dist/esm/Context.js.map +1 -0
  1664. package/dist/esm/Cron.js +566 -0
  1665. package/dist/esm/Cron.js.map +1 -0
  1666. package/dist/esm/Data.js +305 -0
  1667. package/dist/esm/Data.js.map +1 -0
  1668. package/dist/esm/DateTime.js +1071 -0
  1669. package/dist/esm/DateTime.js.map +1 -0
  1670. package/dist/esm/DefaultServices.js +12 -0
  1671. package/dist/esm/DefaultServices.js.map +1 -0
  1672. package/dist/esm/Deferred.js +169 -0
  1673. package/dist/esm/Deferred.js.map +1 -0
  1674. package/dist/esm/Differ.js +132 -0
  1675. package/dist/esm/Differ.js.map +1 -0
  1676. package/dist/esm/Duration.js +702 -0
  1677. package/dist/esm/Duration.js.map +1 -0
  1678. package/dist/esm/Effect.js +10883 -0
  1679. package/dist/esm/Effect.js.map +1 -0
  1680. package/dist/esm/Effectable.js +49 -0
  1681. package/dist/esm/Effectable.js.map +1 -0
  1682. package/dist/esm/Either.js +688 -0
  1683. package/dist/esm/Either.js.map +1 -0
  1684. package/dist/esm/Encoding.js +136 -0
  1685. package/dist/esm/Encoding.js.map +1 -0
  1686. package/dist/esm/Equal.js +71 -0
  1687. package/dist/esm/Equal.js.map +1 -0
  1688. package/dist/esm/Equivalence.js +166 -0
  1689. package/dist/esm/Equivalence.js.map +1 -0
  1690. package/dist/esm/ExecutionPlan.js +99 -0
  1691. package/dist/esm/ExecutionPlan.js.map +1 -0
  1692. package/dist/esm/ExecutionStrategy.js +55 -0
  1693. package/dist/esm/ExecutionStrategy.js.map +1 -0
  1694. package/dist/esm/Exit.js +257 -0
  1695. package/dist/esm/Exit.js.map +1 -0
  1696. package/dist/esm/FastCheck.js +9 -0
  1697. package/dist/esm/FastCheck.js.map +1 -0
  1698. package/dist/esm/Fiber.js +350 -0
  1699. package/dist/esm/Fiber.js.map +1 -0
  1700. package/dist/esm/FiberHandle.js +316 -0
  1701. package/dist/esm/FiberHandle.js.map +1 -0
  1702. package/dist/esm/FiberId.js +115 -0
  1703. package/dist/esm/FiberId.js.map +1 -0
  1704. package/dist/esm/FiberMap.js +356 -0
  1705. package/dist/esm/FiberMap.js.map +1 -0
  1706. package/dist/esm/FiberRef.js +242 -0
  1707. package/dist/esm/FiberRef.js.map +1 -0
  1708. package/dist/esm/FiberRefs.js +92 -0
  1709. package/dist/esm/FiberRefs.js.map +1 -0
  1710. package/dist/esm/FiberRefsPatch.js +32 -0
  1711. package/dist/esm/FiberRefsPatch.js.map +1 -0
  1712. package/dist/esm/FiberSet.js +289 -0
  1713. package/dist/esm/FiberSet.js.map +1 -0
  1714. package/dist/esm/FiberStatus.js +52 -0
  1715. package/dist/esm/FiberStatus.js.map +1 -0
  1716. package/dist/esm/Function.js +467 -0
  1717. package/dist/esm/Function.js.map +1 -0
  1718. package/dist/esm/GlobalValue.js +52 -0
  1719. package/dist/esm/GlobalValue.js.map +1 -0
  1720. package/dist/esm/Graph.js +3019 -0
  1721. package/dist/esm/Graph.js.map +1 -0
  1722. package/dist/esm/GroupBy.js +39 -0
  1723. package/dist/esm/GroupBy.js.map +1 -0
  1724. package/dist/esm/HKT.js +2 -0
  1725. package/dist/esm/HKT.js.map +1 -0
  1726. package/dist/esm/Hash.js +166 -0
  1727. package/dist/esm/Hash.js.map +1 -0
  1728. package/dist/esm/HashMap.js +312 -0
  1729. package/dist/esm/HashMap.js.map +1 -0
  1730. package/dist/esm/HashRing.js +245 -0
  1731. package/dist/esm/HashRing.js.map +1 -0
  1732. package/dist/esm/HashSet.js +1253 -0
  1733. package/dist/esm/HashSet.js.map +1 -0
  1734. package/dist/esm/Inspectable.js +194 -0
  1735. package/dist/esm/Inspectable.js.map +1 -0
  1736. package/dist/esm/Iterable.js +987 -0
  1737. package/dist/esm/Iterable.js.map +1 -0
  1738. package/dist/esm/JSONSchema.js +715 -0
  1739. package/dist/esm/JSONSchema.js.map +1 -0
  1740. package/dist/esm/KeyedPool.js +76 -0
  1741. package/dist/esm/KeyedPool.js.map +1 -0
  1742. package/dist/esm/Layer.js +642 -0
  1743. package/dist/esm/Layer.js.map +1 -0
  1744. package/dist/esm/LayerMap.js +202 -0
  1745. package/dist/esm/LayerMap.js.map +1 -0
  1746. package/dist/esm/List.js +756 -0
  1747. package/dist/esm/List.js.map +1 -0
  1748. package/dist/esm/LogLevel.js +135 -0
  1749. package/dist/esm/LogLevel.js.map +1 -0
  1750. package/dist/esm/LogSpan.js +15 -0
  1751. package/dist/esm/LogSpan.js.map +1 -0
  1752. package/dist/esm/Logger.js +490 -0
  1753. package/dist/esm/Logger.js.map +1 -0
  1754. package/dist/esm/Mailbox.js +96 -0
  1755. package/dist/esm/Mailbox.js.map +1 -0
  1756. package/dist/esm/ManagedRuntime.js +42 -0
  1757. package/dist/esm/ManagedRuntime.js.map +1 -0
  1758. package/dist/esm/Match.js +828 -0
  1759. package/dist/esm/Match.js.map +1 -0
  1760. package/dist/esm/MergeDecision.js +35 -0
  1761. package/dist/esm/MergeDecision.js.map +1 -0
  1762. package/dist/esm/MergeState.js +58 -0
  1763. package/dist/esm/MergeState.js.map +1 -0
  1764. package/dist/esm/MergeStrategy.js +51 -0
  1765. package/dist/esm/MergeStrategy.js.map +1 -0
  1766. package/dist/esm/Metric.js +408 -0
  1767. package/dist/esm/Metric.js.map +1 -0
  1768. package/dist/esm/MetricBoundaries.js +33 -0
  1769. package/dist/esm/MetricBoundaries.js.map +1 -0
  1770. package/dist/esm/MetricHook.js +47 -0
  1771. package/dist/esm/MetricHook.js.map +1 -0
  1772. package/dist/esm/MetricKey.js +63 -0
  1773. package/dist/esm/MetricKey.js.map +1 -0
  1774. package/dist/esm/MetricKeyType.js +87 -0
  1775. package/dist/esm/MetricKeyType.js.map +1 -0
  1776. package/dist/esm/MetricLabel.js +17 -0
  1777. package/dist/esm/MetricLabel.js.map +1 -0
  1778. package/dist/esm/MetricPair.js +20 -0
  1779. package/dist/esm/MetricPair.js.map +1 -0
  1780. package/dist/esm/MetricPolling.js +59 -0
  1781. package/dist/esm/MetricPolling.js.map +1 -0
  1782. package/dist/esm/MetricRegistry.js +15 -0
  1783. package/dist/esm/MetricRegistry.js.map +1 -0
  1784. package/dist/esm/MetricState.js +87 -0
  1785. package/dist/esm/MetricState.js.map +1 -0
  1786. package/dist/esm/Micro.js +2528 -0
  1787. package/dist/esm/Micro.js.map +1 -0
  1788. package/dist/esm/ModuleVersion.js +17 -0
  1789. package/dist/esm/ModuleVersion.js.map +1 -0
  1790. package/dist/esm/MutableHashMap.js +299 -0
  1791. package/dist/esm/MutableHashMap.js.map +1 -0
  1792. package/dist/esm/MutableHashSet.js +511 -0
  1793. package/dist/esm/MutableHashSet.js.map +1 -0
  1794. package/dist/esm/MutableList.js +240 -0
  1795. package/dist/esm/MutableList.js.map +1 -0
  1796. package/dist/esm/MutableQueue.js +159 -0
  1797. package/dist/esm/MutableQueue.js.map +1 -0
  1798. package/dist/esm/MutableRef.js +127 -0
  1799. package/dist/esm/MutableRef.js.map +1 -0
  1800. package/dist/esm/NonEmptyIterable.js +16 -0
  1801. package/dist/esm/NonEmptyIterable.js.map +1 -0
  1802. package/dist/esm/Number.js +887 -0
  1803. package/dist/esm/Number.js.map +1 -0
  1804. package/dist/esm/Option.js +1785 -0
  1805. package/dist/esm/Option.js.map +1 -0
  1806. package/dist/esm/Order.js +252 -0
  1807. package/dist/esm/Order.js.map +1 -0
  1808. package/dist/esm/Ordering.js +72 -0
  1809. package/dist/esm/Ordering.js.map +1 -0
  1810. package/dist/esm/ParseResult.js +1556 -0
  1811. package/dist/esm/ParseResult.js.map +1 -0
  1812. package/dist/esm/PartitionedSemaphore.js +137 -0
  1813. package/dist/esm/PartitionedSemaphore.js.map +1 -0
  1814. package/dist/esm/Pipeable.js +62 -0
  1815. package/dist/esm/Pipeable.js.map +1 -0
  1816. package/dist/esm/Pool.js +100 -0
  1817. package/dist/esm/Pool.js.map +1 -0
  1818. package/dist/esm/Predicate.js +1117 -0
  1819. package/dist/esm/Predicate.js.map +1 -0
  1820. package/dist/esm/Pretty.js +174 -0
  1821. package/dist/esm/Pretty.js.map +1 -0
  1822. package/dist/esm/PrimaryKey.js +14 -0
  1823. package/dist/esm/PrimaryKey.js.map +1 -0
  1824. package/dist/esm/PubSub.js +120 -0
  1825. package/dist/esm/PubSub.js.map +1 -0
  1826. package/dist/esm/Queue.js +248 -0
  1827. package/dist/esm/Queue.js.map +1 -0
  1828. package/dist/esm/Random.js +138 -0
  1829. package/dist/esm/Random.js.map +1 -0
  1830. package/dist/esm/RateLimiter.js +77 -0
  1831. package/dist/esm/RateLimiter.js.map +1 -0
  1832. package/dist/esm/RcMap.js +69 -0
  1833. package/dist/esm/RcMap.js.map +1 -0
  1834. package/dist/esm/RcRef.js +51 -0
  1835. package/dist/esm/RcRef.js.map +1 -0
  1836. package/dist/esm/Readable.js +45 -0
  1837. package/dist/esm/Readable.js.map +1 -0
  1838. package/dist/esm/Record.js +846 -0
  1839. package/dist/esm/Record.js.map +1 -0
  1840. package/dist/esm/RedBlackTree.js +259 -0
  1841. package/dist/esm/RedBlackTree.js.map +1 -0
  1842. package/dist/esm/Redacted.js +93 -0
  1843. package/dist/esm/Redacted.js.map +1 -0
  1844. package/dist/esm/Ref.js +77 -0
  1845. package/dist/esm/Ref.js.map +1 -0
  1846. package/dist/esm/RegExp.js +37 -0
  1847. package/dist/esm/RegExp.js.map +1 -0
  1848. package/dist/esm/Reloadable.js +59 -0
  1849. package/dist/esm/Reloadable.js.map +1 -0
  1850. package/dist/esm/Request.js +140 -0
  1851. package/dist/esm/Request.js.map +1 -0
  1852. package/dist/esm/RequestBlock.js +35 -0
  1853. package/dist/esm/RequestBlock.js.map +1 -0
  1854. package/dist/esm/RequestResolver.js +175 -0
  1855. package/dist/esm/RequestResolver.js.map +1 -0
  1856. package/dist/esm/Resource.js +44 -0
  1857. package/dist/esm/Resource.js.map +1 -0
  1858. package/dist/esm/Runtime.js +181 -0
  1859. package/dist/esm/Runtime.js.map +1 -0
  1860. package/dist/esm/RuntimeFlags.js +251 -0
  1861. package/dist/esm/RuntimeFlags.js.map +1 -0
  1862. package/dist/esm/RuntimeFlagsPatch.js +134 -0
  1863. package/dist/esm/RuntimeFlagsPatch.js.map +1 -0
  1864. package/dist/esm/STM.js +1002 -0
  1865. package/dist/esm/STM.js.map +1 -0
  1866. package/dist/esm/Schedule.js +1595 -0
  1867. package/dist/esm/Schedule.js.map +1 -0
  1868. package/dist/esm/ScheduleDecision.js +32 -0
  1869. package/dist/esm/ScheduleDecision.js.map +1 -0
  1870. package/dist/esm/ScheduleInterval.js +100 -0
  1871. package/dist/esm/ScheduleInterval.js.map +1 -0
  1872. package/dist/esm/ScheduleIntervals.js +78 -0
  1873. package/dist/esm/ScheduleIntervals.js.map +1 -0
  1874. package/dist/esm/Scheduler.js +289 -0
  1875. package/dist/esm/Scheduler.js.map +1 -0
  1876. package/dist/esm/Schema.js +6035 -0
  1877. package/dist/esm/Schema.js.map +1 -0
  1878. package/dist/esm/SchemaAST.js +2485 -0
  1879. package/dist/esm/SchemaAST.js.map +1 -0
  1880. package/dist/esm/Scope.js +94 -0
  1881. package/dist/esm/Scope.js.map +1 -0
  1882. package/dist/esm/ScopedCache.js +24 -0
  1883. package/dist/esm/ScopedCache.js.map +1 -0
  1884. package/dist/esm/ScopedRef.js +42 -0
  1885. package/dist/esm/ScopedRef.js.map +1 -0
  1886. package/dist/esm/Secret.js +44 -0
  1887. package/dist/esm/Secret.js.map +1 -0
  1888. package/dist/esm/SingleProducerAsyncInput.js +7 -0
  1889. package/dist/esm/SingleProducerAsyncInput.js.map +1 -0
  1890. package/dist/esm/Sink.js +864 -0
  1891. package/dist/esm/Sink.js.map +1 -0
  1892. package/dist/esm/SortedMap.js +169 -0
  1893. package/dist/esm/SortedMap.js.map +1 -0
  1894. package/dist/esm/SortedSet.js +237 -0
  1895. package/dist/esm/SortedSet.js.map +1 -0
  1896. package/dist/esm/Stream.js +4192 -0
  1897. package/dist/esm/Stream.js.map +1 -0
  1898. package/dist/esm/StreamEmit.js +2 -0
  1899. package/dist/esm/StreamEmit.js.map +1 -0
  1900. package/dist/esm/StreamHaltStrategy.js +57 -0
  1901. package/dist/esm/StreamHaltStrategy.js.map +1 -0
  1902. package/dist/esm/Streamable.js +36 -0
  1903. package/dist/esm/Streamable.js.map +1 -0
  1904. package/dist/esm/String.js +635 -0
  1905. package/dist/esm/String.js.map +1 -0
  1906. package/dist/esm/Struct.js +191 -0
  1907. package/dist/esm/Struct.js.map +1 -0
  1908. package/dist/esm/Subscribable.js +56 -0
  1909. package/dist/esm/Subscribable.js.map +1 -0
  1910. package/dist/esm/SubscriptionRef.js +116 -0
  1911. package/dist/esm/SubscriptionRef.js.map +1 -0
  1912. package/dist/esm/Supervisor.js +107 -0
  1913. package/dist/esm/Supervisor.js.map +1 -0
  1914. package/dist/esm/Symbol.js +27 -0
  1915. package/dist/esm/Symbol.js.map +1 -0
  1916. package/dist/esm/SynchronizedRef.js +119 -0
  1917. package/dist/esm/SynchronizedRef.js.map +1 -0
  1918. package/dist/esm/TArray.js +306 -0
  1919. package/dist/esm/TArray.js.map +1 -0
  1920. package/dist/esm/TDeferred.js +39 -0
  1921. package/dist/esm/TDeferred.js.map +1 -0
  1922. package/dist/esm/TMap.js +279 -0
  1923. package/dist/esm/TMap.js.map +1 -0
  1924. package/dist/esm/TPriorityQueue.js +136 -0
  1925. package/dist/esm/TPriorityQueue.js.map +1 -0
  1926. package/dist/esm/TPubSub.js +131 -0
  1927. package/dist/esm/TPubSub.js.map +1 -0
  1928. package/dist/esm/TQueue.js +229 -0
  1929. package/dist/esm/TQueue.js.map +1 -0
  1930. package/dist/esm/TRandom.js +65 -0
  1931. package/dist/esm/TRandom.js.map +1 -0
  1932. package/dist/esm/TReentrantLock.js +142 -0
  1933. package/dist/esm/TReentrantLock.js.map +1 -0
  1934. package/dist/esm/TRef.js +75 -0
  1935. package/dist/esm/TRef.js.map +1 -0
  1936. package/dist/esm/TSemaphore.js +65 -0
  1937. package/dist/esm/TSemaphore.js.map +1 -0
  1938. package/dist/esm/TSet.js +201 -0
  1939. package/dist/esm/TSet.js.map +1 -0
  1940. package/dist/esm/TSubscriptionRef.js +87 -0
  1941. package/dist/esm/TSubscriptionRef.js.map +1 -0
  1942. package/dist/esm/Take.js +148 -0
  1943. package/dist/esm/Take.js.map +1 -0
  1944. package/dist/esm/TestAnnotation.js +94 -0
  1945. package/dist/esm/TestAnnotation.js.map +1 -0
  1946. package/dist/esm/TestAnnotationMap.js +80 -0
  1947. package/dist/esm/TestAnnotationMap.js.map +1 -0
  1948. package/dist/esm/TestAnnotations.js +61 -0
  1949. package/dist/esm/TestAnnotations.js.map +1 -0
  1950. package/dist/esm/TestClock.js +354 -0
  1951. package/dist/esm/TestClock.js.map +1 -0
  1952. package/dist/esm/TestConfig.js +13 -0
  1953. package/dist/esm/TestConfig.js.map +1 -0
  1954. package/dist/esm/TestContext.js +21 -0
  1955. package/dist/esm/TestContext.js.map +1 -0
  1956. package/dist/esm/TestLive.js +30 -0
  1957. package/dist/esm/TestLive.js.map +1 -0
  1958. package/dist/esm/TestServices.js +230 -0
  1959. package/dist/esm/TestServices.js.map +1 -0
  1960. package/dist/esm/TestSized.js +36 -0
  1961. package/dist/esm/TestSized.js.map +1 -0
  1962. package/dist/esm/Tracer.js +37 -0
  1963. package/dist/esm/Tracer.js.map +1 -0
  1964. package/dist/esm/Trie.js +716 -0
  1965. package/dist/esm/Trie.js.map +1 -0
  1966. package/dist/esm/Tuple.js +235 -0
  1967. package/dist/esm/Tuple.js.map +1 -0
  1968. package/dist/esm/Types.js +7 -0
  1969. package/dist/esm/Types.js.map +1 -0
  1970. package/dist/esm/Unify.js +9 -0
  1971. package/dist/esm/Unify.js.map +1 -0
  1972. package/dist/esm/UpstreamPullRequest.js +51 -0
  1973. package/dist/esm/UpstreamPullRequest.js.map +1 -0
  1974. package/dist/esm/UpstreamPullStrategy.js +51 -0
  1975. package/dist/esm/UpstreamPullStrategy.js.map +1 -0
  1976. package/dist/esm/Utils.js +357 -0
  1977. package/dist/esm/Utils.js.map +1 -0
  1978. package/dist/esm/index.js +1385 -0
  1979. package/dist/esm/index.js.map +1 -0
  1980. package/dist/esm/internal/array.js +6 -0
  1981. package/dist/esm/internal/array.js.map +1 -0
  1982. package/dist/esm/internal/blockedRequests.js +341 -0
  1983. package/dist/esm/internal/blockedRequests.js.map +1 -0
  1984. package/dist/esm/internal/cache.js +480 -0
  1985. package/dist/esm/internal/cache.js.map +1 -0
  1986. package/dist/esm/internal/cause.js +824 -0
  1987. package/dist/esm/internal/cause.js.map +1 -0
  1988. package/dist/esm/internal/channel/channelExecutor.js +688 -0
  1989. package/dist/esm/internal/channel/channelExecutor.js.map +1 -0
  1990. package/dist/esm/internal/channel/channelState.js +59 -0
  1991. package/dist/esm/internal/channel/channelState.js.map +1 -0
  1992. package/dist/esm/internal/channel/childExecutorDecision.js +60 -0
  1993. package/dist/esm/internal/channel/childExecutorDecision.js.map +1 -0
  1994. package/dist/esm/internal/channel/continuation.js +48 -0
  1995. package/dist/esm/internal/channel/continuation.js.map +1 -0
  1996. package/dist/esm/internal/channel/mergeDecision.js +49 -0
  1997. package/dist/esm/internal/channel/mergeDecision.js.map +1 -0
  1998. package/dist/esm/internal/channel/mergeState.js +69 -0
  1999. package/dist/esm/internal/channel/mergeState.js.map +1 -0
  2000. package/dist/esm/internal/channel/mergeStrategy.js +46 -0
  2001. package/dist/esm/internal/channel/mergeStrategy.js.map +1 -0
  2002. package/dist/esm/internal/channel/singleProducerAsyncInput.js +163 -0
  2003. package/dist/esm/internal/channel/singleProducerAsyncInput.js.map +1 -0
  2004. package/dist/esm/internal/channel/subexecutor.js +152 -0
  2005. package/dist/esm/internal/channel/subexecutor.js.map +1 -0
  2006. package/dist/esm/internal/channel/upstreamPullRequest.js +52 -0
  2007. package/dist/esm/internal/channel/upstreamPullRequest.js.map +1 -0
  2008. package/dist/esm/internal/channel/upstreamPullStrategy.js +52 -0
  2009. package/dist/esm/internal/channel/upstreamPullStrategy.js.map +1 -0
  2010. package/dist/esm/internal/channel.js +683 -0
  2011. package/dist/esm/internal/channel.js.map +1 -0
  2012. package/dist/esm/internal/clock.js +77 -0
  2013. package/dist/esm/internal/clock.js.map +1 -0
  2014. package/dist/esm/internal/completedRequestMap.js +5 -0
  2015. package/dist/esm/internal/completedRequestMap.js.map +1 -0
  2016. package/dist/esm/internal/concurrency.js +28 -0
  2017. package/dist/esm/internal/concurrency.js.map +1 -0
  2018. package/dist/esm/internal/config.js +363 -0
  2019. package/dist/esm/internal/config.js.map +1 -0
  2020. package/dist/esm/internal/configError.js +263 -0
  2021. package/dist/esm/internal/configError.js.map +1 -0
  2022. package/dist/esm/internal/configProvider/pathPatch.js +76 -0
  2023. package/dist/esm/internal/configProvider/pathPatch.js.map +1 -0
  2024. package/dist/esm/internal/configProvider.js +425 -0
  2025. package/dist/esm/internal/configProvider.js.map +1 -0
  2026. package/dist/esm/internal/console.js +54 -0
  2027. package/dist/esm/internal/console.js.map +1 -0
  2028. package/dist/esm/internal/context.js +253 -0
  2029. package/dist/esm/internal/context.js.map +1 -0
  2030. package/dist/esm/internal/core-effect.js +811 -0
  2031. package/dist/esm/internal/core-effect.js.map +1 -0
  2032. package/dist/esm/internal/core-stream.js +236 -0
  2033. package/dist/esm/internal/core-stream.js.map +1 -0
  2034. package/dist/esm/internal/core.js +1610 -0
  2035. package/dist/esm/internal/core.js.map +1 -0
  2036. package/dist/esm/internal/data.js +29 -0
  2037. package/dist/esm/internal/data.js.map +1 -0
  2038. package/dist/esm/internal/dataSource.js +93 -0
  2039. package/dist/esm/internal/dataSource.js.map +1 -0
  2040. package/dist/esm/internal/dateTime.js +796 -0
  2041. package/dist/esm/internal/dateTime.js.map +1 -0
  2042. package/dist/esm/internal/defaultServices/console.js +92 -0
  2043. package/dist/esm/internal/defaultServices/console.js.map +1 -0
  2044. package/dist/esm/internal/defaultServices.js +73 -0
  2045. package/dist/esm/internal/defaultServices.js.map +1 -0
  2046. package/dist/esm/internal/deferred.js +27 -0
  2047. package/dist/esm/internal/deferred.js.map +1 -0
  2048. package/dist/esm/internal/differ/chunkPatch.js +130 -0
  2049. package/dist/esm/internal/differ/chunkPatch.js.map +1 -0
  2050. package/dist/esm/internal/differ/contextPatch.js +143 -0
  2051. package/dist/esm/internal/differ/contextPatch.js.map +1 -0
  2052. package/dist/esm/internal/differ/hashMapPatch.js +130 -0
  2053. package/dist/esm/internal/differ/hashMapPatch.js.map +1 -0
  2054. package/dist/esm/internal/differ/hashSetPatch.js +101 -0
  2055. package/dist/esm/internal/differ/hashSetPatch.js.map +1 -0
  2056. package/dist/esm/internal/differ/orPatch.js +170 -0
  2057. package/dist/esm/internal/differ/orPatch.js.map +1 -0
  2058. package/dist/esm/internal/differ/readonlyArrayPatch.js +129 -0
  2059. package/dist/esm/internal/differ/readonlyArrayPatch.js.map +1 -0
  2060. package/dist/esm/internal/differ.js +134 -0
  2061. package/dist/esm/internal/differ.js.map +1 -0
  2062. package/dist/esm/internal/doNotation.js +16 -0
  2063. package/dist/esm/internal/doNotation.js.map +1 -0
  2064. package/dist/esm/internal/effect/circular.js +402 -0
  2065. package/dist/esm/internal/effect/circular.js.map +1 -0
  2066. package/dist/esm/internal/effectable.js +113 -0
  2067. package/dist/esm/internal/effectable.js.map +1 -0
  2068. package/dist/esm/internal/either.js +85 -0
  2069. package/dist/esm/internal/either.js.map +1 -0
  2070. package/dist/esm/internal/encoding/base64.js +71 -0
  2071. package/dist/esm/internal/encoding/base64.js.map +1 -0
  2072. package/dist/esm/internal/encoding/base64Url.js +21 -0
  2073. package/dist/esm/internal/encoding/base64Url.js.map +1 -0
  2074. package/dist/esm/internal/encoding/common.js +38 -0
  2075. package/dist/esm/internal/encoding/common.js.map +1 -0
  2076. package/dist/esm/internal/encoding/hex.js +48 -0
  2077. package/dist/esm/internal/encoding/hex.js.map +1 -0
  2078. package/dist/esm/internal/errors.js +6 -0
  2079. package/dist/esm/internal/errors.js.map +1 -0
  2080. package/dist/esm/internal/executionPlan.js +59 -0
  2081. package/dist/esm/internal/executionPlan.js.map +1 -0
  2082. package/dist/esm/internal/executionStrategy.js +44 -0
  2083. package/dist/esm/internal/executionStrategy.js.map +1 -0
  2084. package/dist/esm/internal/fiber.js +253 -0
  2085. package/dist/esm/internal/fiber.js.map +1 -0
  2086. package/dist/esm/internal/fiberId.js +219 -0
  2087. package/dist/esm/internal/fiberId.js.map +1 -0
  2088. package/dist/esm/internal/fiberMessage.js +28 -0
  2089. package/dist/esm/internal/fiberMessage.js.map +1 -0
  2090. package/dist/esm/internal/fiberRefs/patch.js +107 -0
  2091. package/dist/esm/internal/fiberRefs/patch.js.map +1 -0
  2092. package/dist/esm/internal/fiberRefs.js +189 -0
  2093. package/dist/esm/internal/fiberRefs.js.map +1 -0
  2094. package/dist/esm/internal/fiberRuntime.js +2148 -0
  2095. package/dist/esm/internal/fiberRuntime.js.map +1 -0
  2096. package/dist/esm/internal/fiberScope.js +44 -0
  2097. package/dist/esm/internal/fiberScope.js.map +1 -0
  2098. package/dist/esm/internal/fiberStatus.js +72 -0
  2099. package/dist/esm/internal/fiberStatus.js.map +1 -0
  2100. package/dist/esm/internal/groupBy.js +213 -0
  2101. package/dist/esm/internal/groupBy.js.map +1 -0
  2102. package/dist/esm/internal/hashMap/array.js +48 -0
  2103. package/dist/esm/internal/hashMap/array.js.map +1 -0
  2104. package/dist/esm/internal/hashMap/bitwise.js +29 -0
  2105. package/dist/esm/internal/hashMap/bitwise.js.map +1 -0
  2106. package/dist/esm/internal/hashMap/config.js +11 -0
  2107. package/dist/esm/internal/hashMap/config.js.map +1 -0
  2108. package/dist/esm/internal/hashMap/keySet.js +6 -0
  2109. package/dist/esm/internal/hashMap/keySet.js.map +1 -0
  2110. package/dist/esm/internal/hashMap/node.js +253 -0
  2111. package/dist/esm/internal/hashMap/node.js.map +1 -0
  2112. package/dist/esm/internal/hashMap.js +360 -0
  2113. package/dist/esm/internal/hashMap.js.map +1 -0
  2114. package/dist/esm/internal/hashSet.js +182 -0
  2115. package/dist/esm/internal/hashSet.js.map +1 -0
  2116. package/dist/esm/internal/keyedPool.js +159 -0
  2117. package/dist/esm/internal/keyedPool.js.map +1 -0
  2118. package/dist/esm/internal/layer/circular.js +63 -0
  2119. package/dist/esm/internal/layer/circular.js.map +1 -0
  2120. package/dist/esm/internal/layer.js +552 -0
  2121. package/dist/esm/internal/layer.js.map +1 -0
  2122. package/dist/esm/internal/logSpan.js +17 -0
  2123. package/dist/esm/internal/logSpan.js.map +1 -0
  2124. package/dist/esm/internal/logger-circular.js +19 -0
  2125. package/dist/esm/internal/logger-circular.js.map +1 -0
  2126. package/dist/esm/internal/logger.js +367 -0
  2127. package/dist/esm/internal/logger.js.map +1 -0
  2128. package/dist/esm/internal/mailbox.js +450 -0
  2129. package/dist/esm/internal/mailbox.js.map +1 -0
  2130. package/dist/esm/internal/managedRuntime/circular.js +4 -0
  2131. package/dist/esm/internal/managedRuntime/circular.js.map +1 -0
  2132. package/dist/esm/internal/managedRuntime.js +86 -0
  2133. package/dist/esm/internal/managedRuntime.js.map +1 -0
  2134. package/dist/esm/internal/matcher.js +291 -0
  2135. package/dist/esm/internal/matcher.js.map +1 -0
  2136. package/dist/esm/internal/metric/boundaries.js +42 -0
  2137. package/dist/esm/internal/metric/boundaries.js.map +1 -0
  2138. package/dist/esm/internal/metric/hook.js +375 -0
  2139. package/dist/esm/internal/metric/hook.js.map +1 -0
  2140. package/dist/esm/internal/metric/key.js +60 -0
  2141. package/dist/esm/internal/metric/key.js.map +1 -0
  2142. package/dist/esm/internal/metric/keyType.js +169 -0
  2143. package/dist/esm/internal/metric/keyType.js.map +1 -0
  2144. package/dist/esm/internal/metric/label.js +36 -0
  2145. package/dist/esm/internal/metric/label.js.map +1 -0
  2146. package/dist/esm/internal/metric/pair.js +32 -0
  2147. package/dist/esm/internal/metric/pair.js.map +1 -0
  2148. package/dist/esm/internal/metric/polling.js +69 -0
  2149. package/dist/esm/internal/metric/polling.js.map +1 -0
  2150. package/dist/esm/internal/metric/registry.js +105 -0
  2151. package/dist/esm/internal/metric/registry.js.map +1 -0
  2152. package/dist/esm/internal/metric/state.js +181 -0
  2153. package/dist/esm/internal/metric/state.js.map +1 -0
  2154. package/dist/esm/internal/metric.js +181 -0
  2155. package/dist/esm/internal/metric.js.map +1 -0
  2156. package/dist/esm/internal/opCodes/cause.js +13 -0
  2157. package/dist/esm/internal/opCodes/cause.js.map +1 -0
  2158. package/dist/esm/internal/opCodes/channel.js +29 -0
  2159. package/dist/esm/internal/opCodes/channel.js.map +1 -0
  2160. package/dist/esm/internal/opCodes/channelChildExecutorDecision.js +7 -0
  2161. package/dist/esm/internal/opCodes/channelChildExecutorDecision.js.map +1 -0
  2162. package/dist/esm/internal/opCodes/channelMergeDecision.js +5 -0
  2163. package/dist/esm/internal/opCodes/channelMergeDecision.js.map +1 -0
  2164. package/dist/esm/internal/opCodes/channelMergeState.js +7 -0
  2165. package/dist/esm/internal/opCodes/channelMergeState.js.map +1 -0
  2166. package/dist/esm/internal/opCodes/channelMergeStrategy.js +5 -0
  2167. package/dist/esm/internal/opCodes/channelMergeStrategy.js.map +1 -0
  2168. package/dist/esm/internal/opCodes/channelState.js +9 -0
  2169. package/dist/esm/internal/opCodes/channelState.js.map +1 -0
  2170. package/dist/esm/internal/opCodes/channelUpstreamPullRequest.js +5 -0
  2171. package/dist/esm/internal/opCodes/channelUpstreamPullRequest.js.map +1 -0
  2172. package/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js +5 -0
  2173. package/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js.map +1 -0
  2174. package/dist/esm/internal/opCodes/config.js +23 -0
  2175. package/dist/esm/internal/opCodes/config.js.map +1 -0
  2176. package/dist/esm/internal/opCodes/configError.js +13 -0
  2177. package/dist/esm/internal/opCodes/configError.js.map +1 -0
  2178. package/dist/esm/internal/opCodes/continuation.js +5 -0
  2179. package/dist/esm/internal/opCodes/continuation.js.map +1 -0
  2180. package/dist/esm/internal/opCodes/deferred.js +5 -0
  2181. package/dist/esm/internal/opCodes/deferred.js.map +1 -0
  2182. package/dist/esm/internal/opCodes/effect.js +31 -0
  2183. package/dist/esm/internal/opCodes/effect.js.map +1 -0
  2184. package/dist/esm/internal/opCodes/layer.js +21 -0
  2185. package/dist/esm/internal/opCodes/layer.js.map +1 -0
  2186. package/dist/esm/internal/opCodes/streamHaltStrategy.js +9 -0
  2187. package/dist/esm/internal/opCodes/streamHaltStrategy.js.map +1 -0
  2188. package/dist/esm/internal/option.js +70 -0
  2189. package/dist/esm/internal/option.js.map +1 -0
  2190. package/dist/esm/internal/pool.js +276 -0
  2191. package/dist/esm/internal/pool.js.map +1 -0
  2192. package/dist/esm/internal/pubsub.js +1263 -0
  2193. package/dist/esm/internal/pubsub.js.map +1 -0
  2194. package/dist/esm/internal/query.js +93 -0
  2195. package/dist/esm/internal/query.js.map +1 -0
  2196. package/dist/esm/internal/queue.js +486 -0
  2197. package/dist/esm/internal/queue.js.map +1 -0
  2198. package/dist/esm/internal/random.js +119 -0
  2199. package/dist/esm/internal/random.js.map +1 -0
  2200. package/dist/esm/internal/rateLimiter.js +43 -0
  2201. package/dist/esm/internal/rateLimiter.js.map +1 -0
  2202. package/dist/esm/internal/rcMap.js +173 -0
  2203. package/dist/esm/internal/rcMap.js.map +1 -0
  2204. package/dist/esm/internal/rcRef.js +129 -0
  2205. package/dist/esm/internal/rcRef.js.map +1 -0
  2206. package/dist/esm/internal/redBlackTree/iterator.js +191 -0
  2207. package/dist/esm/internal/redBlackTree/iterator.js.map +1 -0
  2208. package/dist/esm/internal/redBlackTree/node.js +50 -0
  2209. package/dist/esm/internal/redBlackTree/node.js.map +1 -0
  2210. package/dist/esm/internal/redBlackTree.js +1069 -0
  2211. package/dist/esm/internal/redBlackTree.js.map +1 -0
  2212. package/dist/esm/internal/redacted.js +56 -0
  2213. package/dist/esm/internal/redacted.js.map +1 -0
  2214. package/dist/esm/internal/ref.js +110 -0
  2215. package/dist/esm/internal/ref.js.map +1 -0
  2216. package/dist/esm/internal/reloadable.js +42 -0
  2217. package/dist/esm/internal/reloadable.js.map +1 -0
  2218. package/dist/esm/internal/request.js +91 -0
  2219. package/dist/esm/internal/request.js.map +1 -0
  2220. package/dist/esm/internal/resource.js +38 -0
  2221. package/dist/esm/internal/resource.js.map +1 -0
  2222. package/dist/esm/internal/ringBuffer.js +56 -0
  2223. package/dist/esm/internal/ringBuffer.js.map +1 -0
  2224. package/dist/esm/internal/runtime.js +307 -0
  2225. package/dist/esm/internal/runtime.js.map +1 -0
  2226. package/dist/esm/internal/runtimeFlags.js +107 -0
  2227. package/dist/esm/internal/runtimeFlags.js.map +1 -0
  2228. package/dist/esm/internal/runtimeFlagsPatch.js +38 -0
  2229. package/dist/esm/internal/runtimeFlagsPatch.js.map +1 -0
  2230. package/dist/esm/internal/schedule/decision.js +33 -0
  2231. package/dist/esm/internal/schedule/decision.js.map +1 -0
  2232. package/dist/esm/internal/schedule/interval.js +70 -0
  2233. package/dist/esm/internal/schedule/interval.js.map +1 -0
  2234. package/dist/esm/internal/schedule/intervals.js +122 -0
  2235. package/dist/esm/internal/schedule/intervals.js.map +1 -0
  2236. package/dist/esm/internal/schedule.js +832 -0
  2237. package/dist/esm/internal/schedule.js.map +1 -0
  2238. package/dist/esm/internal/schema/errors.js +86 -0
  2239. package/dist/esm/internal/schema/errors.js.map +1 -0
  2240. package/dist/esm/internal/schema/schemaId.js +43 -0
  2241. package/dist/esm/internal/schema/schemaId.js.map +1 -0
  2242. package/dist/esm/internal/schema/util.js +35 -0
  2243. package/dist/esm/internal/schema/util.js.map +1 -0
  2244. package/dist/esm/internal/scopedCache.js +382 -0
  2245. package/dist/esm/internal/scopedCache.js.map +1 -0
  2246. package/dist/esm/internal/scopedRef.js +43 -0
  2247. package/dist/esm/internal/scopedRef.js.map +1 -0
  2248. package/dist/esm/internal/secret.js +77 -0
  2249. package/dist/esm/internal/secret.js.map +1 -0
  2250. package/dist/esm/internal/singleShotGen.js +30 -0
  2251. package/dist/esm/internal/singleShotGen.js.map +1 -0
  2252. package/dist/esm/internal/sink.js +801 -0
  2253. package/dist/esm/internal/sink.js.map +1 -0
  2254. package/dist/esm/internal/stack.js +5 -0
  2255. package/dist/esm/internal/stack.js.map +1 -0
  2256. package/dist/esm/internal/stm/core.js +501 -0
  2257. package/dist/esm/internal/stm/core.js.map +1 -0
  2258. package/dist/esm/internal/stm/entry.js +42 -0
  2259. package/dist/esm/internal/stm/entry.js.map +1 -0
  2260. package/dist/esm/internal/stm/journal.js +89 -0
  2261. package/dist/esm/internal/stm/journal.js.map +1 -0
  2262. package/dist/esm/internal/stm/opCodes/stm.js +25 -0
  2263. package/dist/esm/internal/stm/opCodes/stm.js.map +1 -0
  2264. package/dist/esm/internal/stm/opCodes/stmState.js +7 -0
  2265. package/dist/esm/internal/stm/opCodes/stmState.js.map +1 -0
  2266. package/dist/esm/internal/stm/opCodes/strategy.js +7 -0
  2267. package/dist/esm/internal/stm/opCodes/strategy.js.map +1 -0
  2268. package/dist/esm/internal/stm/opCodes/tExit.js +11 -0
  2269. package/dist/esm/internal/stm/opCodes/tExit.js.map +1 -0
  2270. package/dist/esm/internal/stm/opCodes/tryCommit.js +5 -0
  2271. package/dist/esm/internal/stm/opCodes/tryCommit.js.map +1 -0
  2272. package/dist/esm/internal/stm/stm.js +478 -0
  2273. package/dist/esm/internal/stm/stm.js.map +1 -0
  2274. package/dist/esm/internal/stm/stmState.js +89 -0
  2275. package/dist/esm/internal/stm/stmState.js.map +1 -0
  2276. package/dist/esm/internal/stm/tArray.js +243 -0
  2277. package/dist/esm/internal/stm/tArray.js.map +1 -0
  2278. package/dist/esm/internal/stm/tDeferred.js +41 -0
  2279. package/dist/esm/internal/stm/tDeferred.js.map +1 -0
  2280. package/dist/esm/internal/stm/tExit.js +101 -0
  2281. package/dist/esm/internal/stm/tExit.js.map +1 -0
  2282. package/dist/esm/internal/stm/tMap.js +430 -0
  2283. package/dist/esm/internal/stm/tMap.js.map +1 -0
  2284. package/dist/esm/internal/stm/tPriorityQueue.js +143 -0
  2285. package/dist/esm/internal/stm/tPriorityQueue.js.map +1 -0
  2286. package/dist/esm/internal/stm/tPubSub.js +376 -0
  2287. package/dist/esm/internal/stm/tPubSub.js.map +1 -0
  2288. package/dist/esm/internal/stm/tQueue.js +258 -0
  2289. package/dist/esm/internal/stm/tQueue.js.map +1 -0
  2290. package/dist/esm/internal/stm/tRandom.js +82 -0
  2291. package/dist/esm/internal/stm/tRandom.js.map +1 -0
  2292. package/dist/esm/internal/stm/tReentrantLock.js +192 -0
  2293. package/dist/esm/internal/stm/tReentrantLock.js.map +1 -0
  2294. package/dist/esm/internal/stm/tRef.js +100 -0
  2295. package/dist/esm/internal/stm/tRef.js.map +1 -0
  2296. package/dist/esm/internal/stm/tSemaphore.js +59 -0
  2297. package/dist/esm/internal/stm/tSemaphore.js.map +1 -0
  2298. package/dist/esm/internal/stm/tSet.js +88 -0
  2299. package/dist/esm/internal/stm/tSet.js.map +1 -0
  2300. package/dist/esm/internal/stm/tSubscriptionRef.js +166 -0
  2301. package/dist/esm/internal/stm/tSubscriptionRef.js.map +1 -0
  2302. package/dist/esm/internal/stm/tryCommit.js +16 -0
  2303. package/dist/esm/internal/stm/tryCommit.js.map +1 -0
  2304. package/dist/esm/internal/stm/txnId.js +11 -0
  2305. package/dist/esm/internal/stm/txnId.js.map +1 -0
  2306. package/dist/esm/internal/stm/versioned.js +8 -0
  2307. package/dist/esm/internal/stm/versioned.js.map +1 -0
  2308. package/dist/esm/internal/stream/debounceState.js +21 -0
  2309. package/dist/esm/internal/stream/debounceState.js.map +1 -0
  2310. package/dist/esm/internal/stream/emit.js +120 -0
  2311. package/dist/esm/internal/stream/emit.js.map +1 -0
  2312. package/dist/esm/internal/stream/haltStrategy.js +63 -0
  2313. package/dist/esm/internal/stream/haltStrategy.js.map +1 -0
  2314. package/dist/esm/internal/stream/handoff.js +55 -0
  2315. package/dist/esm/internal/stream/handoff.js.map +1 -0
  2316. package/dist/esm/internal/stream/handoffSignal.js +22 -0
  2317. package/dist/esm/internal/stream/handoffSignal.js.map +1 -0
  2318. package/dist/esm/internal/stream/pull.js +20 -0
  2319. package/dist/esm/internal/stream/pull.js.map +1 -0
  2320. package/dist/esm/internal/stream/sinkEndReason.js +13 -0
  2321. package/dist/esm/internal/stream/sinkEndReason.js.map +1 -0
  2322. package/dist/esm/internal/stream/zipAllState.js +33 -0
  2323. package/dist/esm/internal/stream/zipAllState.js.map +1 -0
  2324. package/dist/esm/internal/stream/zipChunksState.js +21 -0
  2325. package/dist/esm/internal/stream/zipChunksState.js.map +1 -0
  2326. package/dist/esm/internal/stream.js +2867 -0
  2327. package/dist/esm/internal/stream.js.map +1 -0
  2328. package/dist/esm/internal/string-utils.js +77 -0
  2329. package/dist/esm/internal/string-utils.js.map +1 -0
  2330. package/dist/esm/internal/subscriptionRef.js +63 -0
  2331. package/dist/esm/internal/subscriptionRef.js.map +1 -0
  2332. package/dist/esm/internal/supervisor/patch.js +125 -0
  2333. package/dist/esm/internal/supervisor/patch.js.map +1 -0
  2334. package/dist/esm/internal/supervisor.js +207 -0
  2335. package/dist/esm/internal/supervisor.js.map +1 -0
  2336. package/dist/esm/internal/synchronizedRef.js +44 -0
  2337. package/dist/esm/internal/synchronizedRef.js.map +1 -0
  2338. package/dist/esm/internal/take.js +108 -0
  2339. package/dist/esm/internal/take.js.map +1 -0
  2340. package/dist/esm/internal/testing/sleep.js +7 -0
  2341. package/dist/esm/internal/testing/sleep.js.map +1 -0
  2342. package/dist/esm/internal/testing/suspendedWarningData.js +48 -0
  2343. package/dist/esm/internal/testing/suspendedWarningData.js.map +1 -0
  2344. package/dist/esm/internal/testing/warningData.js +49 -0
  2345. package/dist/esm/internal/testing/warningData.js.map +1 -0
  2346. package/dist/esm/internal/tracer.js +122 -0
  2347. package/dist/esm/internal/tracer.js.map +1 -0
  2348. package/dist/esm/internal/trie.js +547 -0
  2349. package/dist/esm/internal/trie.js.map +1 -0
  2350. package/dist/esm/internal/version.js +6 -0
  2351. package/dist/esm/internal/version.js.map +1 -0
  2352. package/dist/esm/package.json +4 -0
  2353. package/index/package.json +6 -0
  2354. package/package.json +1471 -0
  2355. package/src/Arbitrary.ts +1101 -0
  2356. package/src/Array.ts +6854 -0
  2357. package/src/BigDecimal.ts +2037 -0
  2358. package/src/BigInt.ts +1139 -0
  2359. package/src/Boolean.ts +560 -0
  2360. package/src/Brand.ts +360 -0
  2361. package/src/Cache.ts +281 -0
  2362. package/src/Cause.ts +2049 -0
  2363. package/src/Channel.ts +3051 -0
  2364. package/src/ChildExecutorDecision.ts +158 -0
  2365. package/src/Chunk.ts +2350 -0
  2366. package/src/Clock.ts +111 -0
  2367. package/src/Config.ts +743 -0
  2368. package/src/ConfigError.ts +286 -0
  2369. package/src/ConfigProvider.ts +421 -0
  2370. package/src/ConfigProviderPathPatch.ts +132 -0
  2371. package/src/Console.ts +255 -0
  2372. package/src/Context.ts +867 -0
  2373. package/src/Cron.ts +718 -0
  2374. package/src/Data.ts +765 -0
  2375. package/src/DateTime.ts +2715 -0
  2376. package/src/DefaultServices.ts +34 -0
  2377. package/src/Deferred.ts +471 -0
  2378. package/src/Differ.ts +512 -0
  2379. package/src/Duration.ts +1140 -0
  2380. package/src/Effect.ts +29096 -0
  2381. package/src/Effectable.ts +107 -0
  2382. package/src/Either.ts +1723 -0
  2383. package/src/Encoding.ts +195 -0
  2384. package/src/Equal.ts +98 -0
  2385. package/src/Equivalence.ts +259 -0
  2386. package/src/ExecutionPlan.ts +308 -0
  2387. package/src/ExecutionStrategy.ts +138 -0
  2388. package/src/Exit.ts +717 -0
  2389. package/src/FastCheck.ts +9 -0
  2390. package/src/Fiber.ts +926 -0
  2391. package/src/FiberHandle.ts +582 -0
  2392. package/src/FiberId.ts +219 -0
  2393. package/src/FiberMap.ts +779 -0
  2394. package/src/FiberRef.ts +511 -0
  2395. package/src/FiberRefs.ts +288 -0
  2396. package/src/FiberRefsPatch.ts +139 -0
  2397. package/src/FiberSet.ts +529 -0
  2398. package/src/FiberStatus.ts +108 -0
  2399. package/src/Function.ts +1378 -0
  2400. package/src/GlobalValue.ts +53 -0
  2401. package/src/Graph.ts +3764 -0
  2402. package/src/GroupBy.ts +141 -0
  2403. package/src/HKT.ts +45 -0
  2404. package/src/Hash.ts +203 -0
  2405. package/src/HashMap.ts +919 -0
  2406. package/src/HashRing.ts +387 -0
  2407. package/src/HashSet.ts +2346 -0
  2408. package/src/Inspectable.ts +287 -0
  2409. package/src/Iterable.ts +1606 -0
  2410. package/src/JSONSchema.ts +1044 -0
  2411. package/src/KeyedPool.ts +201 -0
  2412. package/src/Layer.ts +1671 -0
  2413. package/src/LayerMap.ts +436 -0
  2414. package/src/List.ts +1469 -0
  2415. package/src/LogLevel.ts +387 -0
  2416. package/src/LogSpan.ts +25 -0
  2417. package/src/Logger.ts +863 -0
  2418. package/src/Mailbox.ts +298 -0
  2419. package/src/ManagedRuntime.ts +180 -0
  2420. package/src/Match.ts +1493 -0
  2421. package/src/MergeDecision.ts +103 -0
  2422. package/src/MergeState.ts +180 -0
  2423. package/src/MergeStrategy.ts +124 -0
  2424. package/src/Metric.ts +1165 -0
  2425. package/src/MetricBoundaries.ts +69 -0
  2426. package/src/MetricHook.ts +175 -0
  2427. package/src/MetricKey.ts +266 -0
  2428. package/src/MetricKeyType.ts +262 -0
  2429. package/src/MetricLabel.ts +47 -0
  2430. package/src/MetricPair.ts +71 -0
  2431. package/src/MetricPolling.ts +182 -0
  2432. package/src/MetricRegistry.ts +48 -0
  2433. package/src/MetricState.ts +273 -0
  2434. package/src/Micro.ts +5556 -0
  2435. package/src/ModuleVersion.ts +18 -0
  2436. package/src/MutableHashMap.ts +518 -0
  2437. package/src/MutableHashSet.ts +706 -0
  2438. package/src/MutableList.ts +333 -0
  2439. package/src/MutableQueue.ts +289 -0
  2440. package/src/MutableRef.ts +258 -0
  2441. package/src/NonEmptyIterable.ts +32 -0
  2442. package/src/Number.ts +1440 -0
  2443. package/src/Option.ts +4028 -0
  2444. package/src/Order.ts +397 -0
  2445. package/src/Ordering.ts +173 -0
  2446. package/src/ParseResult.ts +2068 -0
  2447. package/src/PartitionedSemaphore.ts +200 -0
  2448. package/src/Pipeable.ts +574 -0
  2449. package/src/Pool.ts +220 -0
  2450. package/src/Predicate.ts +2344 -0
  2451. package/src/Pretty.ts +205 -0
  2452. package/src/PrimaryKey.ts +23 -0
  2453. package/src/PubSub.ts +210 -0
  2454. package/src/Queue.ts +748 -0
  2455. package/src/Random.ts +204 -0
  2456. package/src/RateLimiter.ts +138 -0
  2457. package/src/RcMap.ts +245 -0
  2458. package/src/RcRef.ts +122 -0
  2459. package/src/Readable.ts +104 -0
  2460. package/src/Record.ts +1990 -0
  2461. package/src/RedBlackTree.ts +725 -0
  2462. package/src/Redacted.ts +144 -0
  2463. package/src/Ref.ts +268 -0
  2464. package/src/RegExp.ts +38 -0
  2465. package/src/Reloadable.ts +127 -0
  2466. package/src/Request.ts +418 -0
  2467. package/src/RequestBlock.ts +118 -0
  2468. package/src/RequestResolver.ts +495 -0
  2469. package/src/Resource.ts +119 -0
  2470. package/src/Runtime.ts +631 -0
  2471. package/src/RuntimeFlags.ts +436 -0
  2472. package/src/RuntimeFlagsPatch.ts +295 -0
  2473. package/src/STM.ts +3091 -0
  2474. package/src/Schedule.ts +3740 -0
  2475. package/src/ScheduleDecision.ts +62 -0
  2476. package/src/ScheduleInterval.ts +219 -0
  2477. package/src/ScheduleIntervals.ts +172 -0
  2478. package/src/Scheduler.ts +364 -0
  2479. package/src/Schema.ts +11443 -0
  2480. package/src/SchemaAST.ts +3055 -0
  2481. package/src/Scope.ts +240 -0
  2482. package/src/ScopedCache.ts +151 -0
  2483. package/src/ScopedRef.ts +139 -0
  2484. package/src/Secret.ts +88 -0
  2485. package/src/SingleProducerAsyncInput.ts +67 -0
  2486. package/src/Sink.ts +1877 -0
  2487. package/src/SortedMap.ts +361 -0
  2488. package/src/SortedSet.ts +530 -0
  2489. package/src/Stream.ts +11561 -0
  2490. package/src/StreamEmit.ts +136 -0
  2491. package/src/StreamHaltStrategy.ts +140 -0
  2492. package/src/Streamable.ts +45 -0
  2493. package/src/String.ts +1026 -0
  2494. package/src/Struct.ts +335 -0
  2495. package/src/Subscribable.ts +114 -0
  2496. package/src/SubscriptionRef.ts +444 -0
  2497. package/src/Supervisor.ts +240 -0
  2498. package/src/Symbol.ts +29 -0
  2499. package/src/SynchronizedRef.ts +429 -0
  2500. package/src/TArray.ts +922 -0
  2501. package/src/TDeferred.ts +124 -0
  2502. package/src/TMap.ts +875 -0
  2503. package/src/TPriorityQueue.ts +283 -0
  2504. package/src/TPubSub.ts +228 -0
  2505. package/src/TQueue.ts +540 -0
  2506. package/src/TRandom.ts +129 -0
  2507. package/src/TReentrantLock.ts +260 -0
  2508. package/src/TRef.ts +266 -0
  2509. package/src/TSemaphore.ts +169 -0
  2510. package/src/TSet.ts +633 -0
  2511. package/src/TSubscriptionRef.ts +284 -0
  2512. package/src/Take.ts +309 -0
  2513. package/src/TestAnnotation.ts +158 -0
  2514. package/src/TestAnnotationMap.ts +163 -0
  2515. package/src/TestAnnotations.ts +117 -0
  2516. package/src/TestClock.ts +562 -0
  2517. package/src/TestConfig.ts +47 -0
  2518. package/src/TestContext.ts +36 -0
  2519. package/src/TestLive.ts +53 -0
  2520. package/src/TestServices.ts +454 -0
  2521. package/src/TestSized.ts +55 -0
  2522. package/src/Tracer.ts +182 -0
  2523. package/src/Trie.ts +1860 -0
  2524. package/src/Tuple.ts +483 -0
  2525. package/src/Types.ts +361 -0
  2526. package/src/Unify.ts +127 -0
  2527. package/src/UpstreamPullRequest.ts +129 -0
  2528. package/src/UpstreamPullStrategy.ts +133 -0
  2529. package/src/Utils.ts +809 -0
  2530. package/src/index.ts +1561 -0
  2531. package/src/internal/array.ts +8 -0
  2532. package/src/internal/blockedRequests.ts +520 -0
  2533. package/src/internal/cache.ts +733 -0
  2534. package/src/internal/cause.ts +1050 -0
  2535. package/src/internal/channel/channelExecutor.ts +1200 -0
  2536. package/src/internal/channel/channelState.ts +134 -0
  2537. package/src/internal/channel/childExecutorDecision.ts +96 -0
  2538. package/src/internal/channel/continuation.ts +200 -0
  2539. package/src/internal/channel/mergeDecision.ts +113 -0
  2540. package/src/internal/channel/mergeState.ts +120 -0
  2541. package/src/internal/channel/mergeStrategy.ts +72 -0
  2542. package/src/internal/channel/singleProducerAsyncInput.ts +259 -0
  2543. package/src/internal/channel/subexecutor.ts +229 -0
  2544. package/src/internal/channel/upstreamPullRequest.ts +84 -0
  2545. package/src/internal/channel/upstreamPullStrategy.ts +87 -0
  2546. package/src/internal/channel.ts +2603 -0
  2547. package/src/internal/clock.ts +95 -0
  2548. package/src/internal/completedRequestMap.ts +9 -0
  2549. package/src/internal/concurrency.ts +54 -0
  2550. package/src/internal/config.ts +716 -0
  2551. package/src/internal/configError.ts +304 -0
  2552. package/src/internal/configProvider/pathPatch.ts +97 -0
  2553. package/src/internal/configProvider.ts +799 -0
  2554. package/src/internal/console.ts +153 -0
  2555. package/src/internal/context.ts +337 -0
  2556. package/src/internal/core-effect.ts +2293 -0
  2557. package/src/internal/core-stream.ts +998 -0
  2558. package/src/internal/core.ts +3166 -0
  2559. package/src/internal/data.ts +36 -0
  2560. package/src/internal/dataSource.ts +327 -0
  2561. package/src/internal/dateTime.ts +1277 -0
  2562. package/src/internal/defaultServices/console.ts +100 -0
  2563. package/src/internal/defaultServices.ts +163 -0
  2564. package/src/internal/deferred.ts +46 -0
  2565. package/src/internal/differ/chunkPatch.ts +211 -0
  2566. package/src/internal/differ/contextPatch.ts +232 -0
  2567. package/src/internal/differ/hashMapPatch.ts +220 -0
  2568. package/src/internal/differ/hashSetPatch.ts +176 -0
  2569. package/src/internal/differ/orPatch.ts +311 -0
  2570. package/src/internal/differ/readonlyArrayPatch.ts +210 -0
  2571. package/src/internal/differ.ts +200 -0
  2572. package/src/internal/doNotation.ts +80 -0
  2573. package/src/internal/effect/circular.ts +903 -0
  2574. package/src/internal/effectable.ts +131 -0
  2575. package/src/internal/either.ts +110 -0
  2576. package/src/internal/encoding/base64.ts +286 -0
  2577. package/src/internal/encoding/base64Url.ts +29 -0
  2578. package/src/internal/encoding/common.ts +51 -0
  2579. package/src/internal/encoding/hex.ts +315 -0
  2580. package/src/internal/errors.ts +7 -0
  2581. package/src/internal/executionPlan.ts +114 -0
  2582. package/src/internal/executionStrategy.ts +74 -0
  2583. package/src/internal/fiber.ts +388 -0
  2584. package/src/internal/fiberId.ts +267 -0
  2585. package/src/internal/fiberMessage.ts +82 -0
  2586. package/src/internal/fiberRefs/patch.ts +144 -0
  2587. package/src/internal/fiberRefs.ts +297 -0
  2588. package/src/internal/fiberRuntime.ts +3859 -0
  2589. package/src/internal/fiberScope.ts +71 -0
  2590. package/src/internal/fiberStatus.ts +119 -0
  2591. package/src/internal/groupBy.ts +530 -0
  2592. package/src/internal/hashMap/array.ts +49 -0
  2593. package/src/internal/hashMap/bitwise.ts +32 -0
  2594. package/src/internal/hashMap/config.ts +14 -0
  2595. package/src/internal/hashMap/keySet.ts +8 -0
  2596. package/src/internal/hashMap/node.ts +391 -0
  2597. package/src/internal/hashMap.ts +586 -0
  2598. package/src/internal/hashSet.ts +323 -0
  2599. package/src/internal/keyedPool.ts +244 -0
  2600. package/src/internal/layer/circular.ts +214 -0
  2601. package/src/internal/layer.ts +1483 -0
  2602. package/src/internal/logSpan.ts +20 -0
  2603. package/src/internal/logger-circular.ts +24 -0
  2604. package/src/internal/logger.ts +485 -0
  2605. package/src/internal/mailbox.ts +561 -0
  2606. package/src/internal/managedRuntime/circular.ts +6 -0
  2607. package/src/internal/managedRuntime.ts +137 -0
  2608. package/src/internal/matcher.ts +652 -0
  2609. package/src/internal/metric/boundaries.ts +75 -0
  2610. package/src/internal/metric/hook.ts +483 -0
  2611. package/src/internal/metric/key.ts +167 -0
  2612. package/src/internal/metric/keyType.ts +238 -0
  2613. package/src/internal/metric/label.ts +41 -0
  2614. package/src/internal/metric/pair.ts +48 -0
  2615. package/src/internal/metric/polling.ts +149 -0
  2616. package/src/internal/metric/registry.ts +187 -0
  2617. package/src/internal/metric/state.ts +290 -0
  2618. package/src/internal/metric.ts +577 -0
  2619. package/src/internal/opCodes/cause.ts +35 -0
  2620. package/src/internal/opCodes/channel.ts +83 -0
  2621. package/src/internal/opCodes/channelChildExecutorDecision.ts +17 -0
  2622. package/src/internal/opCodes/channelMergeDecision.ts +11 -0
  2623. package/src/internal/opCodes/channelMergeState.ts +17 -0
  2624. package/src/internal/opCodes/channelMergeStrategy.ts +11 -0
  2625. package/src/internal/opCodes/channelState.ts +23 -0
  2626. package/src/internal/opCodes/channelUpstreamPullRequest.ts +11 -0
  2627. package/src/internal/opCodes/channelUpstreamPullStrategy.ts +11 -0
  2628. package/src/internal/opCodes/config.ts +65 -0
  2629. package/src/internal/opCodes/configError.ts +35 -0
  2630. package/src/internal/opCodes/continuation.ts +11 -0
  2631. package/src/internal/opCodes/deferred.ts +11 -0
  2632. package/src/internal/opCodes/effect.ts +89 -0
  2633. package/src/internal/opCodes/layer.ts +59 -0
  2634. package/src/internal/opCodes/streamHaltStrategy.ts +23 -0
  2635. package/src/internal/option.ts +80 -0
  2636. package/src/internal/pool.ts +432 -0
  2637. package/src/internal/pubsub.ts +1762 -0
  2638. package/src/internal/query.ts +204 -0
  2639. package/src/internal/queue.ts +766 -0
  2640. package/src/internal/random.ts +161 -0
  2641. package/src/internal/rateLimiter.ts +93 -0
  2642. package/src/internal/rcMap.ts +285 -0
  2643. package/src/internal/rcRef.ts +192 -0
  2644. package/src/internal/redBlackTree/iterator.ts +200 -0
  2645. package/src/internal/redBlackTree/node.ts +68 -0
  2646. package/src/internal/redBlackTree.ts +1245 -0
  2647. package/src/internal/redacted.ts +73 -0
  2648. package/src/internal/ref.ts +171 -0
  2649. package/src/internal/reloadable.ts +140 -0
  2650. package/src/internal/request.ts +177 -0
  2651. package/src/internal/resource.ts +76 -0
  2652. package/src/internal/ringBuffer.ts +68 -0
  2653. package/src/internal/runtime.ts +558 -0
  2654. package/src/internal/runtimeFlags.ts +178 -0
  2655. package/src/internal/runtimeFlagsPatch.ts +103 -0
  2656. package/src/internal/schedule/decision.ts +47 -0
  2657. package/src/internal/schedule/interval.ts +101 -0
  2658. package/src/internal/schedule/intervals.ts +180 -0
  2659. package/src/internal/schedule.ts +2199 -0
  2660. package/src/internal/schema/errors.ts +191 -0
  2661. package/src/internal/schema/schemaId.ts +106 -0
  2662. package/src/internal/schema/util.ts +50 -0
  2663. package/src/internal/scopedCache.ts +644 -0
  2664. package/src/internal/scopedRef.ts +118 -0
  2665. package/src/internal/secret.ts +89 -0
  2666. package/src/internal/singleShotGen.ts +35 -0
  2667. package/src/internal/sink.ts +2120 -0
  2668. package/src/internal/stack.ts +10 -0
  2669. package/src/internal/stm/core.ts +817 -0
  2670. package/src/internal/stm/entry.ts +59 -0
  2671. package/src/internal/stm/journal.ts +123 -0
  2672. package/src/internal/stm/opCodes/stm.ts +71 -0
  2673. package/src/internal/stm/opCodes/stmState.ts +17 -0
  2674. package/src/internal/stm/opCodes/strategy.ts +17 -0
  2675. package/src/internal/stm/opCodes/tExit.ts +29 -0
  2676. package/src/internal/stm/opCodes/tryCommit.ts +11 -0
  2677. package/src/internal/stm/stm.ts +1453 -0
  2678. package/src/internal/stm/stmState.ts +136 -0
  2679. package/src/internal/stm/tArray.ts +550 -0
  2680. package/src/internal/stm/tDeferred.ts +81 -0
  2681. package/src/internal/stm/tExit.ts +190 -0
  2682. package/src/internal/stm/tMap.ts +824 -0
  2683. package/src/internal/stm/tPriorityQueue.ts +267 -0
  2684. package/src/internal/stm/tPubSub.ts +551 -0
  2685. package/src/internal/stm/tQueue.ts +393 -0
  2686. package/src/internal/stm/tRandom.ts +140 -0
  2687. package/src/internal/stm/tReentrantLock.ts +352 -0
  2688. package/src/internal/stm/tRef.ts +195 -0
  2689. package/src/internal/stm/tSemaphore.ts +113 -0
  2690. package/src/internal/stm/tSet.ts +259 -0
  2691. package/src/internal/stm/tSubscriptionRef.ts +286 -0
  2692. package/src/internal/stm/tryCommit.ts +34 -0
  2693. package/src/internal/stm/txnId.ts +14 -0
  2694. package/src/internal/stm/versioned.ts +4 -0
  2695. package/src/internal/stream/debounceState.ts +57 -0
  2696. package/src/internal/stream/emit.ts +123 -0
  2697. package/src/internal/stream/haltStrategy.ts +94 -0
  2698. package/src/internal/stream/handoff.ts +187 -0
  2699. package/src/internal/stream/handoffSignal.ts +59 -0
  2700. package/src/internal/stream/pull.ts +34 -0
  2701. package/src/internal/stream/sinkEndReason.ts +30 -0
  2702. package/src/internal/stream/zipAllState.ts +88 -0
  2703. package/src/internal/stream/zipChunksState.ts +56 -0
  2704. package/src/internal/stream.ts +8802 -0
  2705. package/src/internal/string-utils.ts +107 -0
  2706. package/src/internal/subscriptionRef.ts +138 -0
  2707. package/src/internal/supervisor/patch.ts +190 -0
  2708. package/src/internal/supervisor.ts +303 -0
  2709. package/src/internal/synchronizedRef.ts +114 -0
  2710. package/src/internal/take.ts +199 -0
  2711. package/src/internal/testing/sleep.ts +27 -0
  2712. package/src/internal/testing/suspendedWarningData.ts +85 -0
  2713. package/src/internal/testing/warningData.ts +94 -0
  2714. package/src/internal/tracer.ts +150 -0
  2715. package/src/internal/trie.ts +722 -0
  2716. package/src/internal/version.ts +7 -0
@@ -0,0 +1,4112 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.fromIterableEffect = exports.fromIterable = exports.fromEventListener = exports.fromEffectOption = exports.fromEffect = exports.fromChunks = exports.fromChunkQueue = exports.fromChunkPubSub = exports.fromChunk = exports.fromChannel = exports.fromAsyncIterable = exports.forever = exports.flattenTake = exports.flattenIterables = exports.flattenExitOption = exports.flattenEffect = exports.flattenChunks = exports.flatten = exports.flatMap = exports.findEffect = exports.find = exports.finalizer = exports.filterMapWhileEffect = exports.filterMapWhile = exports.filterMapEffect = exports.filterMap = exports.filterEffect = exports.filter = exports.failSync = exports.failCauseSync = exports.failCause = exports.fail = exports.execute = exports.ensuringWith = exports.ensuring = exports.encodeText = exports.empty = exports.either = exports.dropWhileEffect = exports.dropWhile = exports.dropUntilEffect = exports.dropUntil = exports.dropRight = exports.drop = exports.drainFork = exports.drain = exports.distributedWithDynamic = exports.distributedWith = exports.dieSync = exports.dieMessage = exports.die = exports.decodeText = exports.debounce = exports.crossWith = exports.crossRight = exports.crossLeft = exports.cross = exports.contextWithStream = exports.contextWithEffect = exports.contextWith = exports.context = exports.concatAll = exports.concat = exports.combineChunks = exports.combine = exports.chunksWith = exports.chunks = exports.changesWithEffect = exports.changesWith = exports.changes = exports.catchTags = exports.catchTag = exports.catchSomeCause = exports.catchSome = exports.catchAllCause = exports.catchAll = exports.bufferChunks = exports.buffer = exports.broadcastedQueuesDynamic = exports.broadcastedQueues = exports.broadcastDynamic = exports.broadcast = exports.branchAfter = exports.bindTo = exports.bindEffect = exports.bind = exports.asyncScoped = exports.asyncPush = exports.asyncEffect = exports.async = exports.as = exports.aggregateWithinEither = exports.aggregateWithin = exports.aggregate = exports.acquireRelease = exports.accumulateChunks = exports.accumulate = exports.StreamTypeId = exports.Do = exports.DefaultChunkSize = void 0;
7
+ exports.retry = exports.repeatWith = exports.repeatValue = exports.repeatElementsWith = exports.repeatElements = exports.repeatEither = exports.repeatEffectWithSchedule = exports.repeatEffectOption = exports.repeatEffectChunkOption = exports.repeatEffectChunk = exports.repeatEffect = exports.repeat = exports.refineOrDieWith = exports.refineOrDie = exports.rechunk = exports.range = exports.raceAll = exports.race = exports.provideSomeLayer = exports.provideSomeContext = exports.provideServiceStream = exports.provideServiceEffect = exports.provideService = exports.provideLayer = exports.provideContext = exports.prepend = exports.pipeThroughChannelOrFail = exports.pipeThroughChannel = exports.pipeThrough = exports.peel = exports.partitionEither = exports.partition = exports.paginateEffect = exports.paginateChunkEffect = exports.paginateChunk = exports.paginate = exports.orElseSucceed = exports.orElseIfEmptyStream = exports.orElseIfEmptyChunk = exports.orElseIfEmpty = exports.orElseFail = exports.orElseEither = exports.orElse = exports.orDieWith = exports.orDie = exports.onStart = exports.onError = exports.onEnd = exports.onDone = exports.never = exports.mkString = exports.mergeWithTag = exports.mergeWith = exports.mergeRight = exports.mergeLeft = exports.mergeEither = exports.mergeAll = exports.merge = exports.mapInputContext = exports.mapErrorCause = exports.mapError = exports.mapEffect = exports.mapConcatEffect = exports.mapConcatChunkEffect = exports.mapConcatChunk = exports.mapConcat = exports.mapChunksEffect = exports.mapChunks = exports.mapBoth = exports.mapAccumEffect = exports.mapAccum = exports.map = exports.make = exports.let = exports.iterate = exports.intersperseAffixes = exports.intersperse = exports.interruptWhenDeferred = exports.interruptWhen = exports.interruptAfter = exports.interleaveWith = exports.interleave = exports.identity = exports.haltWhenDeferred = exports.haltWhen = exports.haltAfter = exports.groupedWithin = exports.grouped = exports.groupByKey = exports.groupBy = exports.groupAdjacentBy = exports.fromTQueue = exports.fromTPubSub = exports.fromSchedule = exports.fromReadableStreamByob = exports.fromReadableStream = exports.fromQueue = exports.fromPull = exports.fromPubSub = exports.fromIteratorSucceed = void 0;
8
+ exports.zipAllWith = exports.zipAllSortedByKeyWith = exports.zipAllSortedByKeyRight = exports.zipAllSortedByKeyLeft = exports.zipAllSortedByKey = exports.zipAllRight = exports.zipAllLeft = exports.zipAll = exports.zip = exports.withSpan = exports.withExecutionPlan = exports.whenEffect = exports.whenCaseEffect = exports.whenCase = exports.when = exports.void = exports.updateService = exports.unwrapScopedWith = exports.unwrapScoped = exports.unwrap = exports.unfoldEffect = exports.unfoldChunkEffect = exports.unfoldChunk = exports.unfold = exports.transduce = exports.toReadableStreamRuntime = exports.toReadableStreamEffect = exports.toReadableStream = exports.toQueueOfElements = exports.toQueue = exports.toPull = exports.toPubSub = exports.toChannel = exports.toAsyncIterableRuntime = exports.toAsyncIterableEffect = exports.toAsyncIterable = exports.timeoutTo = exports.timeoutFailCause = exports.timeoutFail = exports.timeout = exports.tick = exports.throttleEffect = exports.throttle = exports.tapSink = exports.tapErrorCause = exports.tapError = exports.tapBoth = exports.tap = exports.takeWhile = exports.takeUntilEffect = exports.takeUntil = exports.takeRight = exports.take = exports.sync = exports.suspend = exports.succeed = exports.splitOnChunk = exports.splitLines = exports.split = exports.someOrFail = exports.someOrElse = exports.some = exports.slidingSize = exports.sliding = exports.share = exports.scopedWith = exports.scoped = exports.scheduleWith = exports.schedule = exports.scanReduceEffect = exports.scanReduce = exports.scanEffect = exports.scan = exports.runSum = exports.runScoped = exports.runLast = exports.runIntoQueueScoped = exports.runIntoQueueElementsScoped = exports.runIntoQueue = exports.runIntoPubSubScoped = exports.runIntoPubSub = exports.runHead = exports.runForEachWhileScoped = exports.runForEachWhile = exports.runForEachScoped = exports.runForEachChunkScoped = exports.runForEachChunk = exports.runForEach = exports.runFoldWhileScopedEffect = exports.runFoldWhileScoped = exports.runFoldWhileEffect = exports.runFoldWhile = exports.runFoldScopedEffect = exports.runFoldScoped = exports.runFoldEffect = exports.runFold = exports.runDrain = exports.runCount = exports.runCollect = exports.run = void 0;
9
+ exports.zipWithPreviousAndNext = exports.zipWithPrevious = exports.zipWithNext = exports.zipWithIndex = exports.zipWithChunks = exports.zipWith = exports.zipRight = exports.zipLeft = exports.zipLatestWith = exports.zipLatestAll = exports.zipLatest = exports.zipFlatten = void 0;
10
+ var groupBy_ = _interopRequireWildcard(require("./internal/groupBy.js"));
11
+ var internal = _interopRequireWildcard(require("./internal/stream.js"));
12
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
+ /**
14
+ * @since 2.0.0
15
+ * @category symbols
16
+ */
17
+ const StreamTypeId = exports.StreamTypeId = internal.StreamTypeId;
18
+ /**
19
+ * The default chunk size used by the various combinators and constructors of
20
+ * `Stream`.
21
+ *
22
+ * @since 2.0.0
23
+ * @category constants
24
+ */
25
+ const DefaultChunkSize = exports.DefaultChunkSize = internal.DefaultChunkSize;
26
+ /**
27
+ * Collects each underlying Chunk of the stream into a new chunk, and emits it
28
+ * on each pull.
29
+ *
30
+ * @since 2.0.0
31
+ * @category utils
32
+ */
33
+ const accumulate = exports.accumulate = internal.accumulate;
34
+ /**
35
+ * Re-chunks the elements of the stream by accumulating each underlying chunk.
36
+ *
37
+ * @since 2.0.0
38
+ * @category utils
39
+ */
40
+ const accumulateChunks = exports.accumulateChunks = internal.accumulateChunks;
41
+ /**
42
+ * Creates a stream from a single value that will get cleaned up after the
43
+ * stream is consumed.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * import { Console, Effect, Stream } from "effect"
48
+ *
49
+ * // Simulating File operations
50
+ * const open = (filename: string) =>
51
+ * Effect.gen(function*() {
52
+ * yield* Console.log(`Opening ${filename}`)
53
+ * return {
54
+ * getLines: Effect.succeed(["Line 1", "Line 2", "Line 3"]),
55
+ * close: Console.log(`Closing ${filename}`)
56
+ * }
57
+ * })
58
+ *
59
+ * const stream = Stream.acquireRelease(
60
+ * open("file.txt"),
61
+ * (file) => file.close
62
+ * ).pipe(Stream.flatMap((file) => file.getLines))
63
+ *
64
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
65
+ * // Opening file.txt
66
+ * // Closing file.txt
67
+ * // { _id: 'Chunk', values: [ [ 'Line 1', 'Line 2', 'Line 3' ] ] }
68
+ * ```
69
+ *
70
+ * @since 2.0.0
71
+ * @category constructors
72
+ */
73
+ const acquireRelease = exports.acquireRelease = internal.acquireRelease;
74
+ /**
75
+ * Aggregates elements of this stream using the provided sink for as long as
76
+ * the downstream operators on the stream are busy.
77
+ *
78
+ * This operator divides the stream into two asynchronous "islands". Operators
79
+ * upstream of this operator run on one fiber, while downstream operators run
80
+ * on another. Whenever the downstream fiber is busy processing elements, the
81
+ * upstream fiber will feed elements into the sink until it signals
82
+ * completion.
83
+ *
84
+ * Any sink can be used here, but see `Sink.foldWeightedEffect` and
85
+ * `Sink.foldUntilEffect` for sinks that cover the common usecases.
86
+ *
87
+ * @since 2.0.0
88
+ * @category utils
89
+ */
90
+ const aggregate = exports.aggregate = internal.aggregate;
91
+ /**
92
+ * Like {@link aggregateWithinEither}, but only returns the `Right` results.
93
+ *
94
+ * @since 2.0.0
95
+ * @category utils
96
+ */
97
+ const aggregateWithin = exports.aggregateWithin = internal.aggregateWithin;
98
+ /**
99
+ * Aggregates elements using the provided sink until it completes, or until
100
+ * the delay signalled by the schedule has passed.
101
+ *
102
+ * This operator divides the stream into two asynchronous islands. Operators
103
+ * upstream of this operator run on one fiber, while downstream operators run
104
+ * on another. Elements will be aggregated by the sink until the downstream
105
+ * fiber pulls the aggregated value, or until the schedule's delay has passed.
106
+ *
107
+ * Aggregated elements will be fed into the schedule to determine the delays
108
+ * between pulls.
109
+ *
110
+ * @since 2.0.0
111
+ * @category utils
112
+ */
113
+ const aggregateWithinEither = exports.aggregateWithinEither = internal.aggregateWithinEither;
114
+ /**
115
+ * Maps the success values of this stream to the specified constant value.
116
+ *
117
+ * @example
118
+ * ```ts
119
+ * import { Effect, Stream } from "effect"
120
+ *
121
+ * const stream = Stream.range(1, 5).pipe(Stream.as(null))
122
+ *
123
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
124
+ * // { _id: 'Chunk', values: [ null, null, null, null, null ] }
125
+ * ```
126
+ *
127
+ * @since 2.0.0
128
+ * @category mapping
129
+ */
130
+ const as = exports.as = internal.as;
131
+ const _async = exports.async = internal._async;
132
+ /**
133
+ * Creates a stream from an asynchronous callback that can be called multiple
134
+ * times The registration of the callback itself returns an effect. The
135
+ * optionality of the error type `E` can be used to signal the end of the
136
+ * stream, by setting it to `None`.
137
+ *
138
+ * @since 2.0.0
139
+ * @category constructors
140
+ */
141
+ const asyncEffect = exports.asyncEffect = internal.asyncEffect;
142
+ /**
143
+ * Creates a stream from an external push-based resource.
144
+ *
145
+ * You can use the `emit` helper to emit values to the stream. The `emit` helper
146
+ * returns a boolean indicating whether the value was emitted or not.
147
+ *
148
+ * You can also use the `emit` helper to signal the end of the stream by
149
+ * using apis such as `emit.end` or `emit.fail`.
150
+ *
151
+ * By default it uses an "unbounded" buffer size.
152
+ * You can customize the buffer size and strategy by passing an object as the
153
+ * second argument with the `bufferSize` and `strategy` fields.
154
+ *
155
+ * @example
156
+ * ```ts
157
+ * import { Effect, Stream } from "effect"
158
+ *
159
+ * Stream.asyncPush<string>((emit) =>
160
+ * Effect.acquireRelease(
161
+ * Effect.gen(function*() {
162
+ * yield* Effect.log("subscribing")
163
+ * return setInterval(() => emit.single("tick"), 1000)
164
+ * }),
165
+ * (handle) =>
166
+ * Effect.gen(function*() {
167
+ * yield* Effect.log("unsubscribing")
168
+ * clearInterval(handle)
169
+ * })
170
+ * ), { bufferSize: 16, strategy: "dropping" })
171
+ * ```
172
+ *
173
+ * @since 3.6.0
174
+ * @category constructors
175
+ */
176
+ const asyncPush = exports.asyncPush = internal.asyncPush;
177
+ /**
178
+ * Creates a stream from an asynchronous callback that can be called multiple
179
+ * times. The registration of the callback itself returns an a scoped
180
+ * resource. The optionality of the error type `E` can be used to signal the
181
+ * end of the stream, by setting it to `None`.
182
+ *
183
+ * @since 2.0.0
184
+ * @category constructors
185
+ */
186
+ const asyncScoped = exports.asyncScoped = internal.asyncScoped;
187
+ /**
188
+ * Returns a `Stream` that first collects `n` elements from the input `Stream`,
189
+ * and then creates a new `Stream` using the specified function, and sends all
190
+ * the following elements through that.
191
+ *
192
+ * @since 2.0.0
193
+ * @category sequencing
194
+ */
195
+ const branchAfter = exports.branchAfter = internal.branchAfter;
196
+ /**
197
+ * Fan out the stream, producing a list of streams that have the same elements
198
+ * as this stream. The driver stream will only ever advance the `maximumLag`
199
+ * chunks before the slowest downstream stream.
200
+ *
201
+ * @example
202
+ * ```ts
203
+ * import { Console, Effect, Fiber, Schedule, Stream } from "effect"
204
+ *
205
+ * const numbers = Effect.scoped(
206
+ * Stream.range(1, 20).pipe(
207
+ * Stream.tap((n) => Console.log(`Emit ${n} element before broadcasting`)),
208
+ * Stream.broadcast(2, 5),
209
+ * Stream.flatMap(([first, second]) =>
210
+ * Effect.gen(function*() {
211
+ * const fiber1 = yield* Stream.runFold(first, 0, (acc, e) => Math.max(acc, e)).pipe(
212
+ * Effect.andThen((max) => Console.log(`Maximum: ${max}`)),
213
+ * Effect.fork
214
+ * )
215
+ * const fiber2 = yield* second.pipe(
216
+ * Stream.schedule(Schedule.spaced("1 second")),
217
+ * Stream.runForEach((n) => Console.log(`Logging to the Console: ${n}`)),
218
+ * Effect.fork
219
+ * )
220
+ * yield* Fiber.join(fiber1).pipe(
221
+ * Effect.zip(Fiber.join(fiber2), { concurrent: true })
222
+ * )
223
+ * })
224
+ * ),
225
+ * Stream.runCollect
226
+ * )
227
+ * )
228
+ *
229
+ * Effect.runPromise(numbers).then(console.log)
230
+ * // Emit 1 element before broadcasting
231
+ * // Emit 2 element before broadcasting
232
+ * // Emit 3 element before broadcasting
233
+ * // Emit 4 element before broadcasting
234
+ * // Emit 5 element before broadcasting
235
+ * // Emit 6 element before broadcasting
236
+ * // Emit 7 element before broadcasting
237
+ * // Emit 8 element before broadcasting
238
+ * // Emit 9 element before broadcasting
239
+ * // Emit 10 element before broadcasting
240
+ * // Emit 11 element before broadcasting
241
+ * // Logging to the Console: 1
242
+ * // Logging to the Console: 2
243
+ * // Logging to the Console: 3
244
+ * // Logging to the Console: 4
245
+ * // Logging to the Console: 5
246
+ * // Emit 12 element before broadcasting
247
+ * // Emit 13 element before broadcasting
248
+ * // Emit 14 element before broadcasting
249
+ * // Emit 15 element before broadcasting
250
+ * // Emit 16 element before broadcasting
251
+ * // Logging to the Console: 6
252
+ * // Logging to the Console: 7
253
+ * // Logging to the Console: 8
254
+ * // Logging to the Console: 9
255
+ * // Logging to the Console: 10
256
+ * // Emit 17 element before broadcasting
257
+ * // Emit 18 element before broadcasting
258
+ * // Emit 19 element before broadcasting
259
+ * // Emit 20 element before broadcasting
260
+ * // Logging to the Console: 11
261
+ * // Logging to the Console: 12
262
+ * // Logging to the Console: 13
263
+ * // Logging to the Console: 14
264
+ * // Logging to the Console: 15
265
+ * // Maximum: 20
266
+ * // Logging to the Console: 16
267
+ * // Logging to the Console: 17
268
+ * // Logging to the Console: 18
269
+ * // Logging to the Console: 19
270
+ * // Logging to the Console: 20
271
+ * // { _id: 'Chunk', values: [ undefined ] }
272
+ * ```
273
+ *
274
+ * @since 2.0.0
275
+ * @category utils
276
+ */
277
+ const broadcast = exports.broadcast = internal.broadcast;
278
+ /**
279
+ * Returns a new Stream that multicasts the original Stream, subscribing to it as soon as the first consumer subscribes.
280
+ * As long as there is at least one consumer, the upstream will continue running and emitting data.
281
+ * When all consumers have exited, the upstream will be finalized.
282
+ *
283
+ * @since 3.8.0
284
+ * @category utils
285
+ */
286
+ const share = exports.share = internal.share;
287
+ /**
288
+ * Fan out the stream, producing a dynamic number of streams that have the
289
+ * same elements as this stream. The driver stream will only ever advance the
290
+ * `maximumLag` chunks before the slowest downstream stream.
291
+ *
292
+ * @since 2.0.0
293
+ * @category utils
294
+ */
295
+ const broadcastDynamic = exports.broadcastDynamic = internal.broadcastDynamic;
296
+ /**
297
+ * Converts the stream to a scoped list of queues. Every value will be
298
+ * replicated to every queue with the slowest queue being allowed to buffer
299
+ * `maximumLag` chunks before the driver is back pressured.
300
+ *
301
+ * Queues can unsubscribe from upstream by shutting down.
302
+ *
303
+ * @since 2.0.0
304
+ * @category utils
305
+ */
306
+ const broadcastedQueues = exports.broadcastedQueues = internal.broadcastedQueues;
307
+ /**
308
+ * Converts the stream to a scoped dynamic amount of queues. Every chunk will
309
+ * be replicated to every queue with the slowest queue being allowed to buffer
310
+ * `maximumLag` chunks before the driver is back pressured.
311
+ *
312
+ * Queues can unsubscribe from upstream by shutting down.
313
+ *
314
+ * @since 2.0.0
315
+ * @category utils
316
+ */
317
+ const broadcastedQueuesDynamic = exports.broadcastedQueuesDynamic = internal.broadcastedQueuesDynamic;
318
+ /**
319
+ * Allows a faster producer to progress independently of a slower consumer by
320
+ * buffering up to `capacity` elements in a queue.
321
+ *
322
+ * Note: This combinator destroys the chunking structure. It's recommended to
323
+ * use rechunk afterwards. Additionally, prefer capacities that are powers
324
+ * of 2 for better performance.
325
+ *
326
+ * @example
327
+ * ```ts
328
+ * import { Console, Effect, Schedule, Stream } from "effect"
329
+ *
330
+ * const stream = Stream.range(1, 10).pipe(
331
+ * Stream.tap((n) => Console.log(`before buffering: ${n}`)),
332
+ * Stream.buffer({ capacity: 4 }),
333
+ * Stream.tap((n) => Console.log(`after buffering: ${n}`)),
334
+ * Stream.schedule(Schedule.spaced("5 seconds"))
335
+ * )
336
+ *
337
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
338
+ * // before buffering: 1
339
+ * // before buffering: 2
340
+ * // before buffering: 3
341
+ * // before buffering: 4
342
+ * // before buffering: 5
343
+ * // before buffering: 6
344
+ * // after buffering: 1
345
+ * // after buffering: 2
346
+ * // before buffering: 7
347
+ * // after buffering: 3
348
+ * // before buffering: 8
349
+ * // after buffering: 4
350
+ * // before buffering: 9
351
+ * // after buffering: 5
352
+ * // before buffering: 10
353
+ * // ...
354
+ * ```
355
+ *
356
+ * @since 2.0.0
357
+ * @category utils
358
+ */
359
+ const buffer = exports.buffer = internal.buffer;
360
+ /**
361
+ * Allows a faster producer to progress independently of a slower consumer by
362
+ * buffering up to `capacity` chunks in a queue.
363
+ *
364
+ * @note Prefer capacities that are powers of 2 for better performance.
365
+ * @since 2.0.0
366
+ * @category utils
367
+ */
368
+ const bufferChunks = exports.bufferChunks = internal.bufferChunks;
369
+ /**
370
+ * Switches over to the stream produced by the provided function in case this
371
+ * one fails with a typed error.
372
+ *
373
+ * @since 2.0.0
374
+ * @category error handling
375
+ */
376
+ const catchAll = exports.catchAll = internal.catchAll;
377
+ /**
378
+ * Switches over to the stream produced by the provided function in case this
379
+ * one fails. Allows recovery from all causes of failure, including
380
+ * interruption if the stream is uninterruptible.
381
+ *
382
+ * @since 2.0.0
383
+ * @category error handling
384
+ */
385
+ const catchAllCause = exports.catchAllCause = internal.catchAllCause;
386
+ /**
387
+ * Switches over to the stream produced by the provided function in case this
388
+ * one fails with some typed error.
389
+ *
390
+ * @since 2.0.0
391
+ * @category error handling
392
+ */
393
+ const catchSome = exports.catchSome = internal.catchSome;
394
+ /**
395
+ * Switches over to the stream produced by the provided function in case this
396
+ * one fails with an error matching the given `_tag`.
397
+ *
398
+ * @since 2.0.0
399
+ * @category error handling
400
+ */
401
+ const catchTag = exports.catchTag = internal.catchTag;
402
+ /**
403
+ * Switches over to the stream produced by one of the provided functions, in
404
+ * case this one fails with an error matching one of the given `_tag`'s.
405
+ *
406
+ * @since 2.0.0
407
+ * @category error handling
408
+ */
409
+ const catchTags = exports.catchTags = internal.catchTags;
410
+ /**
411
+ * Switches over to the stream produced by the provided function in case this
412
+ * one fails with some errors. Allows recovery from all causes of failure,
413
+ * including interruption if the stream is uninterruptible.
414
+ *
415
+ * @since 2.0.0
416
+ * @category error handling
417
+ */
418
+ const catchSomeCause = exports.catchSomeCause = internal.catchSomeCause;
419
+ /**
420
+ * Returns a new stream that only emits elements that are not equal to the
421
+ * previous element emitted, using natural equality to determine whether two
422
+ * elements are equal.
423
+ *
424
+ * @example
425
+ * ```ts
426
+ * import { Effect, Stream } from "effect"
427
+ *
428
+ * const stream = Stream.make(1, 1, 1, 2, 2, 3, 4).pipe(Stream.changes)
429
+ *
430
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
431
+ * // { _id: 'Chunk', values: [ 1, 2, 3, 4 ] }
432
+ * ```
433
+ *
434
+ * @since 2.0.0
435
+ * @category utils
436
+ */
437
+ const changes = exports.changes = internal.changes;
438
+ /**
439
+ * Returns a new stream that only emits elements that are not equal to the
440
+ * previous element emitted, using the specified function to determine whether
441
+ * two elements are equal.
442
+ *
443
+ * @since 2.0.0
444
+ * @category utils
445
+ */
446
+ const changesWith = exports.changesWith = internal.changesWith;
447
+ /**
448
+ * Returns a new stream that only emits elements that are not equal to the
449
+ * previous element emitted, using the specified effectual function to
450
+ * determine whether two elements are equal.
451
+ *
452
+ * @since 2.0.0
453
+ * @category utils
454
+ */
455
+ const changesWithEffect = exports.changesWithEffect = internal.changesWithEffect;
456
+ /**
457
+ * Exposes the underlying chunks of the stream as a stream of chunks of
458
+ * elements.
459
+ *
460
+ * @since 2.0.0
461
+ * @category utils
462
+ */
463
+ const chunks = exports.chunks = internal.chunks;
464
+ /**
465
+ * Performs the specified stream transformation with the chunk structure of
466
+ * the stream exposed.
467
+ *
468
+ * @since 2.0.0
469
+ * @category utils
470
+ */
471
+ const chunksWith = exports.chunksWith = internal.chunksWith;
472
+ /**
473
+ * Combines the elements from this stream and the specified stream by
474
+ * repeatedly applying the function `f` to extract an element using both sides
475
+ * and conceptually "offer" it to the destination stream. `f` can maintain
476
+ * some internal state to control the combining process, with the initial
477
+ * state being specified by `s`.
478
+ *
479
+ * Where possible, prefer `Stream.combineChunks` for a more efficient
480
+ * implementation.
481
+ *
482
+ * @since 2.0.0
483
+ * @category utils
484
+ */
485
+ const combine = exports.combine = internal.combine;
486
+ /**
487
+ * Combines the chunks from this stream and the specified stream by repeatedly
488
+ * applying the function `f` to extract a chunk using both sides and
489
+ * conceptually "offer" it to the destination stream. `f` can maintain some
490
+ * internal state to control the combining process, with the initial state
491
+ * being specified by `s`.
492
+ *
493
+ * @since 2.0.0
494
+ * @category utils
495
+ */
496
+ const combineChunks = exports.combineChunks = internal.combineChunks;
497
+ /**
498
+ * Concatenates the specified stream with this stream, resulting in a stream
499
+ * that emits the elements from this stream and then the elements from the
500
+ * specified stream.
501
+ *
502
+ * @example
503
+ * ```ts
504
+ * import { Effect, Stream } from "effect"
505
+ *
506
+ * const s1 = Stream.make(1, 2, 3)
507
+ * const s2 = Stream.make(4, 5)
508
+ *
509
+ * const stream = Stream.concat(s1, s2)
510
+ *
511
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
512
+ * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
513
+ * ```
514
+ *
515
+ * @since 2.0.0
516
+ * @category utils
517
+ */
518
+ const concat = exports.concat = internal.concat;
519
+ /**
520
+ * Concatenates all of the streams in the chunk to one stream.
521
+ *
522
+ * @example
523
+ * ```ts
524
+ * import { Chunk, Effect, Stream } from "effect"
525
+ *
526
+ * const s1 = Stream.make(1, 2, 3)
527
+ * const s2 = Stream.make(4, 5)
528
+ * const s3 = Stream.make(6, 7, 8)
529
+ *
530
+ * const stream = Stream.concatAll(Chunk.make(s1, s2, s3))
531
+ *
532
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
533
+ * // {
534
+ * // _id: 'Chunk',
535
+ * // values: [
536
+ * // 1, 2, 3, 4,
537
+ * // 5, 6, 7, 8
538
+ * // ]
539
+ * // }
540
+ * ```
541
+ *
542
+ * @since 2.0.0
543
+ * @category constructors
544
+ */
545
+ const concatAll = exports.concatAll = internal.concatAll;
546
+ /**
547
+ * Composes this stream with the specified stream to create a cartesian
548
+ * product of elements. The `right` stream would be run multiple times, for
549
+ * every element in the `left` stream.
550
+ *
551
+ * See also `Stream.zip` for the more common point-wise variant.
552
+ *
553
+ * @example
554
+ * ```ts
555
+ * import { Effect, Stream } from "effect"
556
+ *
557
+ * const s1 = Stream.make(1, 2, 3)
558
+ * const s2 = Stream.make("a", "b")
559
+ *
560
+ * const product = Stream.cross(s1, s2)
561
+ *
562
+ * Effect.runPromise(Stream.runCollect(product)).then(console.log)
563
+ * // {
564
+ * // _id: "Chunk",
565
+ * // values: [
566
+ * // [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ], [ 3, "a" ], [ 3, "b" ]
567
+ * // ]
568
+ * // }
569
+ * ```
570
+ *
571
+ * @since 2.0.0
572
+ * @category utils
573
+ */
574
+ const cross = exports.cross = internal.cross;
575
+ /**
576
+ * Composes this stream with the specified stream to create a cartesian
577
+ * product of elements, but keeps only elements from `left` stream. The `right`
578
+ * stream would be run multiple times, for every element in the `left` stream.
579
+ *
580
+ * See also `Stream.zipLeft` for the more common point-wise variant.
581
+ *
582
+ * @since 2.0.0
583
+ * @category utils
584
+ */
585
+ const crossLeft = exports.crossLeft = internal.crossLeft;
586
+ /**
587
+ * Composes this stream with the specified stream to create a cartesian
588
+ * product of elements, but keeps only elements from the `right` stream. The
589
+ * `left` stream would be run multiple times, for every element in the `right`
590
+ * stream.
591
+ *
592
+ * See also `Stream.zipRight` for the more common point-wise variant.
593
+ *
594
+ * @since 2.0.0
595
+ * @category utils
596
+ */
597
+ const crossRight = exports.crossRight = internal.crossRight;
598
+ /**
599
+ * Composes this stream with the specified stream to create a cartesian
600
+ * product of elements with a specified function. The `right` stream would be
601
+ * run multiple times, for every element in the `left` stream.
602
+ *
603
+ * See also `Stream.zipWith` for the more common point-wise variant.
604
+ *
605
+ * @since 2.0.0
606
+ * @category utils
607
+ */
608
+ const crossWith = exports.crossWith = internal.crossWith;
609
+ /**
610
+ * Delays the emission of values by holding new values for a set duration. If
611
+ * no new values arrive during that time the value is emitted, however if a
612
+ * new value is received during the holding period the previous value is
613
+ * discarded and the process is repeated with the new value.
614
+ *
615
+ * This operator is useful if you have a stream of "bursty" events which
616
+ * eventually settle down and you only need the final event of the burst. For
617
+ * example, a search engine may only want to initiate a search after a user
618
+ * has paused typing so as to not prematurely recommend results.
619
+ *
620
+ * @example
621
+ * ```ts
622
+ * import { Effect, Stream } from "effect"
623
+ *
624
+ * let last = Date.now()
625
+ * const log = (message: string) =>
626
+ * Effect.sync(() => {
627
+ * const end = Date.now()
628
+ * console.log(`${message} after ${end - last}ms`)
629
+ * last = end
630
+ * })
631
+ *
632
+ * const stream = Stream.make(1, 2, 3).pipe(
633
+ * Stream.concat(
634
+ * Stream.fromEffect(Effect.sleep("200 millis").pipe(Effect.as(4))) // Emit 4 after 200 ms
635
+ * ),
636
+ * Stream.concat(Stream.make(5, 6)), // Continue with more rapid values
637
+ * Stream.concat(
638
+ * Stream.fromEffect(Effect.sleep("150 millis").pipe(Effect.as(7))) // Emit 7 after 150 ms
639
+ * ),
640
+ * Stream.concat(Stream.make(8)),
641
+ * Stream.tap((n) => log(`Received ${n}`)),
642
+ * Stream.debounce("100 millis"), // Only emit values after a pause of at least 100 milliseconds,
643
+ * Stream.tap((n) => log(`> Emitted ${n}`))
644
+ * )
645
+ *
646
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
647
+ * // Received 1 after 5ms
648
+ * // Received 2 after 2ms
649
+ * // Received 3 after 0ms
650
+ * // > Emitted 3 after 104ms
651
+ * // Received 4 after 99ms
652
+ * // Received 5 after 1ms
653
+ * // Received 6 after 0ms
654
+ * // > Emitted 6 after 101ms
655
+ * // Received 7 after 50ms
656
+ * // Received 8 after 1ms
657
+ * // > Emitted 8 after 101ms
658
+ * // { _id: 'Chunk', values: [ 3, 6, 8 ] }
659
+ * ```
660
+ *
661
+ * @since 2.0.0
662
+ * @category utils
663
+ */
664
+ const debounce = exports.debounce = internal.debounce;
665
+ /**
666
+ * The stream that dies with the specified defect.
667
+ *
668
+ * @since 2.0.0
669
+ * @category constructors
670
+ */
671
+ const die = exports.die = internal.die;
672
+ /**
673
+ * The stream that dies with the specified lazily evaluated defect.
674
+ *
675
+ * @since 2.0.0
676
+ * @category constructors
677
+ */
678
+ const dieSync = exports.dieSync = internal.dieSync;
679
+ /**
680
+ * The stream that dies with an exception described by `message`.
681
+ *
682
+ * @since 2.0.0
683
+ * @category constructors
684
+ */
685
+ const dieMessage = exports.dieMessage = internal.dieMessage;
686
+ /**
687
+ * More powerful version of `Stream.broadcast`. Allows to provide a function
688
+ * that determines what queues should receive which elements. The decide
689
+ * function will receive the indices of the queues in the resulting list.
690
+ *
691
+ * @since 2.0.0
692
+ * @category utils
693
+ */
694
+ const distributedWith = exports.distributedWith = internal.distributedWith;
695
+ /**
696
+ * More powerful version of `Stream.distributedWith`. This returns a function
697
+ * that will produce new queues and corresponding indices. You can also
698
+ * provide a function that will be executed after the final events are
699
+ * enqueued in all queues. Shutdown of the queues is handled by the driver.
700
+ * Downstream users can also shutdown queues manually. In this case the driver
701
+ * will continue but no longer backpressure on them.
702
+ *
703
+ * @since 2.0.0
704
+ * @category utils
705
+ */
706
+ const distributedWithDynamic = exports.distributedWithDynamic = internal.distributedWithDynamic;
707
+ /**
708
+ * Converts this stream to a stream that executes its effects but emits no
709
+ * elements. Useful for sequencing effects using streams:
710
+ *
711
+ * @example
712
+ * ```ts
713
+ * import { Effect, Stream } from "effect"
714
+ *
715
+ * // We create a stream and immediately drain it.
716
+ * const stream = Stream.range(1, 6).pipe(Stream.drain)
717
+ *
718
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
719
+ * // { _id: 'Chunk', values: [] }
720
+ * ```
721
+ *
722
+ * @since 2.0.0
723
+ * @category utils
724
+ */
725
+ const drain = exports.drain = internal.drain;
726
+ /**
727
+ * Drains the provided stream in the background for as long as this stream is
728
+ * running. If this stream ends before `other`, `other` will be interrupted.
729
+ * If `other` fails, this stream will fail with that error.
730
+ *
731
+ * @since 2.0.0
732
+ * @category utils
733
+ */
734
+ const drainFork = exports.drainFork = internal.drainFork;
735
+ /**
736
+ * Drops the specified number of elements from this stream.
737
+ *
738
+ * @since 2.0.0
739
+ * @category utils
740
+ */
741
+ const drop = exports.drop = internal.drop;
742
+ /**
743
+ * Drops the last specified number of elements from this stream.
744
+ *
745
+ * @note This combinator keeps `n` elements in memory. Be careful with big
746
+ * numbers.
747
+ * @since 2.0.0
748
+ * @category utils
749
+ */
750
+ const dropRight = exports.dropRight = internal.dropRight;
751
+ /**
752
+ * Drops all elements of the stream until the specified predicate evaluates to
753
+ * `true`.
754
+ *
755
+ * @since 2.0.0
756
+ * @category utils
757
+ */
758
+ const dropUntil = exports.dropUntil = internal.dropUntil;
759
+ /**
760
+ * Drops all elements of the stream until the specified effectful predicate
761
+ * evaluates to `true`.
762
+ *
763
+ * @since 2.0.0
764
+ * @category utils
765
+ */
766
+ const dropUntilEffect = exports.dropUntilEffect = internal.dropUntilEffect;
767
+ /**
768
+ * Drops all elements of the stream for as long as the specified predicate
769
+ * evaluates to `true`.
770
+ *
771
+ * @since 2.0.0
772
+ * @category utils
773
+ */
774
+ const dropWhile = exports.dropWhile = internal.dropWhile;
775
+ /**
776
+ * Drops all elements of the stream for as long as the specified predicate
777
+ * produces an effect that evalutates to `true`
778
+ *
779
+ * @since 2.0.0
780
+ * @category utils
781
+ */
782
+ const dropWhileEffect = exports.dropWhileEffect = internal.dropWhileEffect;
783
+ /**
784
+ * Returns a stream whose failures and successes have been lifted into an
785
+ * `Either`. The resulting stream cannot fail, because the failures have been
786
+ * exposed as part of the `Either` success case.
787
+ *
788
+ * @note The stream will end as soon as the first error occurs.
789
+ *
790
+ * @since 2.0.0
791
+ * @category utils
792
+ */
793
+ const either = exports.either = internal.either;
794
+ /**
795
+ * The empty stream.
796
+ *
797
+ * @example
798
+ * ```ts
799
+ * import { Effect, Stream } from "effect"
800
+ *
801
+ * const stream = Stream.empty
802
+ *
803
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
804
+ * // { _id: 'Chunk', values: [] }
805
+ * ```
806
+ *
807
+ * @since 2.0.0
808
+ * @category constructors
809
+ */
810
+ const empty = exports.empty = internal.empty;
811
+ /**
812
+ * Executes the provided finalizer after this stream's finalizers run.
813
+ *
814
+ * @example
815
+ * ```ts
816
+ * import { Console, Effect, Stream } from "effect"
817
+ *
818
+ * const program = Stream.fromEffect(Console.log("Application Logic.")).pipe(
819
+ * Stream.concat(Stream.finalizer(Console.log("Finalizing the stream"))),
820
+ * Stream.ensuring(
821
+ * Console.log("Doing some other works after stream's finalization")
822
+ * )
823
+ * )
824
+ *
825
+ * Effect.runPromise(Stream.runCollect(program)).then(console.log)
826
+ * // Application Logic.
827
+ * // Finalizing the stream
828
+ * // Doing some other works after stream's finalization
829
+ * // { _id: 'Chunk', values: [ undefined, undefined ] }
830
+ * ```
831
+ *
832
+ * @since 2.0.0
833
+ * @category utils
834
+ */
835
+ const ensuring = exports.ensuring = internal.ensuring;
836
+ /**
837
+ * Executes the provided finalizer after this stream's finalizers run.
838
+ *
839
+ * @since 2.0.0
840
+ * @category utils
841
+ */
842
+ const ensuringWith = exports.ensuringWith = internal.ensuringWith;
843
+ /**
844
+ * Accesses the whole context of the stream.
845
+ *
846
+ * @since 2.0.0
847
+ * @category context
848
+ */
849
+ const context = exports.context = internal.context;
850
+ /**
851
+ * Accesses the context of the stream.
852
+ *
853
+ * @since 2.0.0
854
+ * @category context
855
+ */
856
+ const contextWith = exports.contextWith = internal.contextWith;
857
+ /**
858
+ * Accesses the context of the stream in the context of an effect.
859
+ *
860
+ * @since 2.0.0
861
+ * @category context
862
+ */
863
+ const contextWithEffect = exports.contextWithEffect = internal.contextWithEffect;
864
+ /**
865
+ * Accesses the context of the stream in the context of a stream.
866
+ *
867
+ * @since 2.0.0
868
+ * @category context
869
+ */
870
+ const contextWithStream = exports.contextWithStream = internal.contextWithStream;
871
+ /**
872
+ * Creates a stream that executes the specified effect but emits no elements.
873
+ *
874
+ * @since 2.0.0
875
+ * @category constructors
876
+ */
877
+ const execute = exports.execute = internal.execute;
878
+ /**
879
+ * Terminates with the specified error.
880
+ *
881
+ * @example
882
+ * ```ts
883
+ * import { Effect, Stream } from "effect"
884
+ *
885
+ * const stream = Stream.fail("Uh oh!")
886
+ *
887
+ * Effect.runPromiseExit(Stream.runCollect(stream)).then(console.log)
888
+ * // {
889
+ * // _id: 'Exit',
890
+ * // _tag: 'Failure',
891
+ * // cause: { _id: 'Cause', _tag: 'Fail', failure: 'Uh oh!' }
892
+ * // }
893
+ * ```
894
+ *
895
+ * @since 2.0.0
896
+ * @category constructors
897
+ */
898
+ const fail = exports.fail = internal.fail;
899
+ /**
900
+ * Terminates with the specified lazily evaluated error.
901
+ *
902
+ * @since 2.0.0
903
+ * @category constructors
904
+ */
905
+ const failSync = exports.failSync = internal.failSync;
906
+ /**
907
+ * The stream that always fails with the specified `Cause`.
908
+ *
909
+ * @since 2.0.0
910
+ * @category constructors
911
+ */
912
+ const failCause = exports.failCause = internal.failCause;
913
+ /**
914
+ * The stream that always fails with the specified lazily evaluated `Cause`.
915
+ *
916
+ * @since 2.0.0
917
+ * @category constructors
918
+ */
919
+ const failCauseSync = exports.failCauseSync = internal.failCauseSync;
920
+ /**
921
+ * Filters the elements emitted by this stream using the provided function.
922
+ *
923
+ * @example
924
+ * ```ts
925
+ * import { Effect, Stream } from "effect"
926
+ *
927
+ * const stream = Stream.range(1, 11).pipe(Stream.filter((n) => n % 2 === 0))
928
+ *
929
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
930
+ * // { _id: 'Chunk', values: [ 2, 4, 6, 8, 10 ] }
931
+ * ```
932
+ *
933
+ * @since 2.0.0
934
+ * @category filtering
935
+ */
936
+ const filter = exports.filter = internal.filter;
937
+ /**
938
+ * Effectfully filters the elements emitted by this stream.
939
+ *
940
+ * @since 2.0.0
941
+ * @category filtering
942
+ */
943
+ const filterEffect = exports.filterEffect = internal.filterEffect;
944
+ /**
945
+ * Performs a filter and map in a single step.
946
+ *
947
+ * @since 2.0.0
948
+ * @category utils
949
+ */
950
+ const filterMap = exports.filterMap = internal.filterMap;
951
+ /**
952
+ * Performs an effectful filter and map in a single step.
953
+ *
954
+ * @since 2.0.0
955
+ * @category utils
956
+ */
957
+ const filterMapEffect = exports.filterMapEffect = internal.filterMapEffect;
958
+ /**
959
+ * Transforms all elements of the stream for as long as the specified partial
960
+ * function is defined.
961
+ *
962
+ * @since 2.0.0
963
+ * @category utils
964
+ */
965
+ const filterMapWhile = exports.filterMapWhile = internal.filterMapWhile;
966
+ /**
967
+ * Effectfully transforms all elements of the stream for as long as the
968
+ * specified partial function is defined.
969
+ *
970
+ * @since 2.0.0
971
+ * @category utils
972
+ */
973
+ const filterMapWhileEffect = exports.filterMapWhileEffect = internal.filterMapWhileEffect;
974
+ /**
975
+ * Creates a one-element stream that never fails and executes the finalizer
976
+ * when it ends.
977
+ *
978
+ * @example
979
+ * ```ts
980
+ * import { Console, Effect, Stream } from "effect"
981
+ *
982
+ * const application = Stream.fromEffect(Console.log("Application Logic."))
983
+ *
984
+ * const deleteDir = (dir: string) => Console.log(`Deleting dir: ${dir}`)
985
+ *
986
+ * const program = application.pipe(
987
+ * Stream.concat(
988
+ * Stream.finalizer(
989
+ * deleteDir("tmp").pipe(
990
+ * Effect.andThen(Console.log("Temporary directory was deleted."))
991
+ * )
992
+ * )
993
+ * )
994
+ * )
995
+ *
996
+ * Effect.runPromise(Stream.runCollect(program)).then(console.log)
997
+ * // Application Logic.
998
+ * // Deleting dir: tmp
999
+ * // Temporary directory was deleted.
1000
+ * // { _id: 'Chunk', values: [ undefined, undefined ] }
1001
+ * ```
1002
+ *
1003
+ * @since 2.0.0
1004
+ * @category constructors
1005
+ */
1006
+ const finalizer = exports.finalizer = internal.finalizer;
1007
+ /**
1008
+ * Finds the first element emitted by this stream that satisfies the provided
1009
+ * predicate.
1010
+ *
1011
+ * @since 2.0.0
1012
+ * @category elements
1013
+ */
1014
+ const find = exports.find = internal.find;
1015
+ /**
1016
+ * Finds the first element emitted by this stream that satisfies the provided
1017
+ * effectful predicate.
1018
+ *
1019
+ * @since 2.0.0
1020
+ * @category elements
1021
+ */
1022
+ const findEffect = exports.findEffect = internal.findEffect;
1023
+ /**
1024
+ * Returns a stream made of the concatenation in strict order of all the
1025
+ * streams produced by passing each element of this stream to `f0`
1026
+ *
1027
+ * @since 2.0.0
1028
+ * @category sequencing
1029
+ */
1030
+ const flatMap = exports.flatMap = internal.flatMap;
1031
+ /**
1032
+ * Flattens this stream-of-streams into a stream made of the concatenation in
1033
+ * strict order of all the streams.
1034
+ *
1035
+ * @since 2.0.0
1036
+ * @category sequencing
1037
+ */
1038
+ const flatten = exports.flatten = internal.flatten;
1039
+ /**
1040
+ * Submerges the chunks carried by this stream into the stream's structure,
1041
+ * while still preserving them.
1042
+ *
1043
+ * @since 2.0.0
1044
+ * @category sequencing
1045
+ */
1046
+ const flattenChunks = exports.flattenChunks = internal.flattenChunks;
1047
+ /**
1048
+ * Flattens `Effect` values into the stream's structure, preserving all
1049
+ * information about the effect.
1050
+ *
1051
+ * @since 2.0.0
1052
+ * @category sequencing
1053
+ */
1054
+ const flattenEffect = exports.flattenEffect = internal.flattenEffect;
1055
+ /**
1056
+ * Unwraps `Exit` values that also signify end-of-stream by failing with `None`.
1057
+ *
1058
+ * @since 2.0.0
1059
+ * @category sequencing
1060
+ */
1061
+ const flattenExitOption = exports.flattenExitOption = internal.flattenExitOption;
1062
+ /**
1063
+ * Submerges the iterables carried by this stream into the stream's structure,
1064
+ * while still preserving them.
1065
+ *
1066
+ * @since 2.0.0
1067
+ * @category sequencing
1068
+ */
1069
+ const flattenIterables = exports.flattenIterables = internal.flattenIterables;
1070
+ /**
1071
+ * Unwraps `Exit` values and flatten chunks that also signify end-of-stream
1072
+ * by failing with `None`.
1073
+ *
1074
+ * @since 2.0.0
1075
+ * @category sequencing
1076
+ */
1077
+ const flattenTake = exports.flattenTake = internal.flattenTake;
1078
+ /**
1079
+ * Repeats this stream forever.
1080
+ *
1081
+ * @since 2.0.0
1082
+ * @category utils
1083
+ */
1084
+ const forever = exports.forever = internal.forever;
1085
+ /**
1086
+ * Creates a stream from an `AsyncIterable`.
1087
+ *
1088
+ * @example
1089
+ * ```ts
1090
+ * import { Effect, Stream } from "effect"
1091
+ *
1092
+ * const myAsyncIterable = async function*() {
1093
+ * yield 1
1094
+ * yield 2
1095
+ * }
1096
+ *
1097
+ * const stream = Stream.fromAsyncIterable(
1098
+ * myAsyncIterable(),
1099
+ * (e) => new Error(String(e)) // Error Handling
1100
+ * )
1101
+ *
1102
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1103
+ * // { _id: 'Chunk', values: [ 1, 2 ] }
1104
+ * ```
1105
+ *
1106
+ * @since 2.0.0
1107
+ * @category constructors
1108
+ */
1109
+ const fromAsyncIterable = exports.fromAsyncIterable = internal.fromAsyncIterable;
1110
+ /**
1111
+ * Creates a stream from a `Channel`.
1112
+ *
1113
+ * @since 2.0.0
1114
+ * @category constructors
1115
+ */
1116
+ const fromChannel = exports.fromChannel = internal.fromChannel;
1117
+ /**
1118
+ * Creates a channel from a `Stream`.
1119
+ *
1120
+ * @since 2.0.0
1121
+ * @category constructors
1122
+ */
1123
+ const toChannel = exports.toChannel = internal.toChannel;
1124
+ /**
1125
+ * Creates a stream from a `Chunk` of values.
1126
+ *
1127
+ * @example
1128
+ * ```ts
1129
+ * import { Chunk, Effect, Stream } from "effect"
1130
+ *
1131
+ * // Creating a stream with values from a single Chunk
1132
+ * const stream = Stream.fromChunk(Chunk.make(1, 2, 3))
1133
+ *
1134
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1135
+ * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
1136
+ * ```
1137
+ *
1138
+ * @since 2.0.0
1139
+ * @category constructors
1140
+ */
1141
+ const fromChunk = exports.fromChunk = internal.fromChunk;
1142
+ /**
1143
+ * Creates a stream from a subscription to a `PubSub`.
1144
+ *
1145
+ * **Options**
1146
+ *
1147
+ * - `shutdown`: If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
1148
+ *
1149
+ * @since 2.0.0
1150
+ * @category constructors
1151
+ */
1152
+ const fromChunkPubSub = exports.fromChunkPubSub = internal.fromChunkPubSub;
1153
+ /**
1154
+ * Creates a stream from a `Queue` of values.
1155
+ *
1156
+ * **Options**
1157
+ *
1158
+ * - `shutdown`: If `true`, the queue will be shutdown after the stream is evaluated (defaults to `false`)
1159
+ *
1160
+ * @since 2.0.0
1161
+ * @category constructors
1162
+ */
1163
+ const fromChunkQueue = exports.fromChunkQueue = internal.fromChunkQueue;
1164
+ /**
1165
+ * Creates a stream from an arbitrary number of chunks.
1166
+ *
1167
+ * @example
1168
+ * ```ts
1169
+ * import { Chunk, Effect, Stream } from "effect"
1170
+ *
1171
+ * // Creating a stream with values from multiple Chunks
1172
+ * const stream = Stream.fromChunks(Chunk.make(1, 2, 3), Chunk.make(4, 5, 6))
1173
+ *
1174
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1175
+ * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6 ] }
1176
+ * ```
1177
+ *
1178
+ * @since 2.0.0
1179
+ * @category constructors
1180
+ */
1181
+ const fromChunks = exports.fromChunks = internal.fromChunks;
1182
+ /**
1183
+ * Either emits the success value of this effect or terminates the stream
1184
+ * with the failure value of this effect.
1185
+ *
1186
+ * @example
1187
+ * ```ts
1188
+ * import { Effect, Random, Stream } from "effect"
1189
+ *
1190
+ * const stream = Stream.fromEffect(Random.nextInt)
1191
+ *
1192
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1193
+ * // Example Output: { _id: 'Chunk', values: [ 922694024 ] }
1194
+ * ```
1195
+ *
1196
+ * @since 2.0.0
1197
+ * @category constructors
1198
+ */
1199
+ const fromEffect = exports.fromEffect = internal.fromEffect;
1200
+ /**
1201
+ * Creates a stream from an effect producing a value of type `A` or an empty
1202
+ * `Stream`.
1203
+ *
1204
+ * @since 2.0.0
1205
+ * @category constructors
1206
+ */
1207
+ const fromEffectOption = exports.fromEffectOption = internal.fromEffectOption;
1208
+ /**
1209
+ * Creates a stream from a subscription to a `PubSub`.
1210
+ *
1211
+ * **Options**
1212
+ *
1213
+ * - `shutdown`: If `true`, the `PubSub` will be shutdown after the stream is evaluated (defaults to `false`)
1214
+ *
1215
+ * @since 2.0.0
1216
+ * @category constructors
1217
+ */
1218
+ const fromPubSub = exports.fromPubSub = internal.fromPubSub;
1219
+ /**
1220
+ * Creates a stream from a subscription to a `TPubSub`.
1221
+ *
1222
+ * @since 3.10.0
1223
+ * @category constructors
1224
+ */
1225
+ const fromTPubSub = exports.fromTPubSub = internal.fromTPubSub;
1226
+ /**
1227
+ * Creates a new `Stream` from an iterable collection of values.
1228
+ *
1229
+ * @example
1230
+ * ```ts
1231
+ * import { Effect, Stream } from "effect"
1232
+ *
1233
+ * const numbers = [1, 2, 3]
1234
+ *
1235
+ * const stream = Stream.fromIterable(numbers)
1236
+ *
1237
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1238
+ * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
1239
+ * ```
1240
+ *
1241
+ * @since 2.0.0
1242
+ * @category constructors
1243
+ */
1244
+ const fromIterable = exports.fromIterable = internal.fromIterable;
1245
+ /**
1246
+ * Creates a stream from an effect producing a value of type `Iterable<A>`.
1247
+ *
1248
+ * @example
1249
+ * ```ts
1250
+ * import { Context, Effect, Stream } from "effect"
1251
+ *
1252
+ * class Database extends Context.Tag("Database")<
1253
+ * Database,
1254
+ * { readonly getUsers: Effect.Effect<Array<string>> }
1255
+ * >() {}
1256
+ *
1257
+ * const getUsers = Database.pipe(Effect.andThen((_) => _.getUsers))
1258
+ *
1259
+ * const stream = Stream.fromIterableEffect(getUsers)
1260
+ *
1261
+ * Effect.runPromise(
1262
+ * Stream.runCollect(stream.pipe(Stream.provideService(Database, { getUsers: Effect.succeed(["user1", "user2"]) })))
1263
+ * ).then(console.log)
1264
+ * // { _id: 'Chunk', values: [ 'user1', 'user2' ] }
1265
+ * ```
1266
+ *
1267
+ * @since 2.0.0
1268
+ * @category constructors
1269
+ */
1270
+ const fromIterableEffect = exports.fromIterableEffect = internal.fromIterableEffect;
1271
+ /**
1272
+ * Creates a stream from an iterator
1273
+ *
1274
+ * @since 2.0.0
1275
+ * @category constructors
1276
+ */
1277
+ const fromIteratorSucceed = exports.fromIteratorSucceed = internal.fromIteratorSucceed;
1278
+ /**
1279
+ * Creates a stream from an effect that pulls elements from another stream.
1280
+ *
1281
+ * See `Stream.toPull` for reference.
1282
+ *
1283
+ * @since 2.0.0
1284
+ * @category constructors
1285
+ */
1286
+ const fromPull = exports.fromPull = internal.fromPull;
1287
+ /**
1288
+ * Creates a stream from a queue of values
1289
+ *
1290
+ * **Options**
1291
+ *
1292
+ * - `maxChunkSize`: The maximum number of queued elements to put in one chunk in the stream
1293
+ * - `shutdown`: If `true`, the queue will be shutdown after the stream is evaluated (defaults to `false`)
1294
+ *
1295
+ * @since 2.0.0
1296
+ * @category constructors
1297
+ */
1298
+ const fromQueue = exports.fromQueue = internal.fromQueue;
1299
+ /**
1300
+ * Creates a stream from a TQueue of values
1301
+ *
1302
+ * @since 3.10.0
1303
+ * @category constructors
1304
+ */
1305
+ const fromTQueue = exports.fromTQueue = internal.fromTQueue;
1306
+ /**
1307
+ * Creates a stream from a `ReadableStream`.
1308
+ *
1309
+ * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
1310
+ *
1311
+ * @since 2.0.0
1312
+ * @category constructors
1313
+ */
1314
+ const fromReadableStream = exports.fromReadableStream = internal.fromReadableStream;
1315
+ /**
1316
+ * Creates a stream from a `ReadableStreamBYOBReader`.
1317
+ *
1318
+ * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader.
1319
+ *
1320
+ * @since 2.0.0
1321
+ * @category constructors
1322
+ */
1323
+ const fromReadableStreamByob = exports.fromReadableStreamByob = internal.fromReadableStreamByob;
1324
+ /**
1325
+ * Creates a stream from a `Schedule` that does not require any further
1326
+ * input. The stream will emit an element for each value output from the
1327
+ * schedule, continuing for as long as the schedule continues.
1328
+ *
1329
+ * @example
1330
+ * ```ts
1331
+ * import { Effect, Schedule, Stream } from "effect"
1332
+ *
1333
+ * // Emits values every 1 second for a total of 5 emissions
1334
+ * const schedule = Schedule.spaced("1 second").pipe(
1335
+ * Schedule.compose(Schedule.recurs(5))
1336
+ * )
1337
+ *
1338
+ * const stream = Stream.fromSchedule(schedule)
1339
+ *
1340
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1341
+ * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
1342
+ * ```
1343
+ *
1344
+ * @since 2.0.0
1345
+ * @category constructors
1346
+ */
1347
+ const fromSchedule = exports.fromSchedule = internal.fromSchedule;
1348
+ /**
1349
+ * Creates a pipeline that groups on adjacent keys, calculated by the
1350
+ * specified function.
1351
+ *
1352
+ * @since 2.0.0
1353
+ * @category grouping
1354
+ */
1355
+ const groupAdjacentBy = exports.groupAdjacentBy = internal.groupAdjacentBy;
1356
+ /**
1357
+ * More powerful version of `Stream.groupByKey`.
1358
+ *
1359
+ * @example
1360
+ * ```ts
1361
+ * import { Chunk, Effect, GroupBy, Stream } from "effect"
1362
+ *
1363
+ * const groupByKeyResult = Stream.fromIterable([
1364
+ * "Mary",
1365
+ * "James",
1366
+ * "Robert",
1367
+ * "Patricia",
1368
+ * "John",
1369
+ * "Jennifer",
1370
+ * "Rebecca",
1371
+ * "Peter"
1372
+ * ]).pipe(
1373
+ * Stream.groupBy((name) => Effect.succeed([name.substring(0, 1), name]))
1374
+ * )
1375
+ *
1376
+ * const stream = GroupBy.evaluate(groupByKeyResult, (key, stream) =>
1377
+ * Stream.fromEffect(
1378
+ * Stream.runCollect(stream).pipe(
1379
+ * Effect.andThen((chunk) => [key, Chunk.size(chunk)] as const)
1380
+ * )
1381
+ * ))
1382
+ *
1383
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1384
+ * // {
1385
+ * // _id: 'Chunk',
1386
+ * // values: [ [ 'M', 1 ], [ 'J', 3 ], [ 'R', 2 ], [ 'P', 2 ] ]
1387
+ * // }
1388
+ * ```
1389
+ *
1390
+ * @since 2.0.0
1391
+ * @category grouping
1392
+ */
1393
+ const groupBy = exports.groupBy = groupBy_.groupBy;
1394
+ /**
1395
+ * Partition a stream using a function and process each stream individually.
1396
+ * This returns a data structure that can be used to further filter down which
1397
+ * groups shall be processed.
1398
+ *
1399
+ * After calling apply on the GroupBy object, the remaining groups will be
1400
+ * processed in parallel and the resulting streams merged in a
1401
+ * nondeterministic fashion.
1402
+ *
1403
+ * Up to `buffer` elements may be buffered in any group stream before the
1404
+ * producer is backpressured. Take care to consume from all streams in order
1405
+ * to prevent deadlocks.
1406
+ *
1407
+ * For example, to collect the first 2 words for every starting letter from a
1408
+ * stream of words:
1409
+ *
1410
+ * ```ts
1411
+ * import { pipe, GroupBy, Stream } from "effect"
1412
+ *
1413
+ * pipe(
1414
+ * Stream.fromIterable(["hello", "world", "hi", "holla"]),
1415
+ * Stream.groupByKey((word) => word[0]),
1416
+ * GroupBy.evaluate((key, stream) =>
1417
+ * pipe(
1418
+ * stream,
1419
+ * Stream.take(2),
1420
+ * Stream.map((words) => [key, words] as const)
1421
+ * )
1422
+ * )
1423
+ * )
1424
+ * ```
1425
+ *
1426
+ * @since 2.0.0
1427
+ * @category grouping
1428
+ */
1429
+ const groupByKey = exports.groupByKey = groupBy_.groupByKey;
1430
+ /**
1431
+ * Partitions the stream with specified `chunkSize`.
1432
+ *
1433
+ * @example
1434
+ * ```ts
1435
+ * import { Effect, Stream } from "effect"
1436
+ *
1437
+ * const stream = Stream.range(0, 8).pipe(Stream.grouped(3))
1438
+ *
1439
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
1440
+ * // {
1441
+ * // _id: 'Chunk',
1442
+ * // values: [
1443
+ * // { _id: 'Chunk', values: [ 0, 1, 2, [length]: 3 ] },
1444
+ * // { _id: 'Chunk', values: [ 3, 4, 5, [length]: 3 ] },
1445
+ * // { _id: 'Chunk', values: [ 6, 7, 8, [length]: 3 ] },
1446
+ * // [length]: 3
1447
+ * // ]
1448
+ * // }
1449
+ * ```
1450
+ *
1451
+ * @since 2.0.0
1452
+ * @category grouping
1453
+ */
1454
+ const grouped = exports.grouped = internal.grouped;
1455
+ /**
1456
+ * Partitions the stream with the specified `chunkSize` or until the specified
1457
+ * `duration` has passed, whichever is satisfied first.
1458
+ *
1459
+ * @example
1460
+ * ```ts
1461
+ * import { Chunk, Effect, Schedule, Stream } from "effect"
1462
+ *
1463
+ * const stream = Stream.range(0, 9).pipe(
1464
+ * Stream.repeat(Schedule.spaced("1 second")),
1465
+ * Stream.groupedWithin(18, "1.5 seconds"),
1466
+ * Stream.take(3)
1467
+ * )
1468
+ *
1469
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
1470
+ * // [
1471
+ * // {
1472
+ * // _id: 'Chunk',
1473
+ * // values: [
1474
+ * // 0, 1, 2, 3, 4, 5, 6,
1475
+ * // 7, 8, 9, 0, 1, 2, 3,
1476
+ * // 4, 5, 6, 7
1477
+ * // ]
1478
+ * // },
1479
+ * // {
1480
+ * // _id: 'Chunk',
1481
+ * // values: [
1482
+ * // 8, 9, 0, 1, 2,
1483
+ * // 3, 4, 5, 6, 7,
1484
+ * // 8, 9
1485
+ * // ]
1486
+ * // },
1487
+ * // {
1488
+ * // _id: 'Chunk',
1489
+ * // values: [
1490
+ * // 0, 1, 2, 3, 4, 5, 6,
1491
+ * // 7, 8, 9, 0, 1, 2, 3,
1492
+ * // 4, 5, 6, 7
1493
+ * // ]
1494
+ * // }
1495
+ * // ]
1496
+ * ```
1497
+ *
1498
+ * @since 2.0.0
1499
+ * @category grouping
1500
+ */
1501
+ const groupedWithin = exports.groupedWithin = internal.groupedWithin;
1502
+ /**
1503
+ * Specialized version of haltWhen which halts the evaluation of this stream
1504
+ * after the given duration.
1505
+ *
1506
+ * An element in the process of being pulled will not be interrupted when the
1507
+ * given duration completes. See `interruptAfter` for this behavior.
1508
+ *
1509
+ * @since 2.0.0
1510
+ * @category utils
1511
+ */
1512
+ const haltAfter = exports.haltAfter = internal.haltAfter;
1513
+ /**
1514
+ * Halts the evaluation of this stream when the provided effect completes. The
1515
+ * given effect will be forked as part of the returned stream, and its success
1516
+ * will be discarded.
1517
+ *
1518
+ * An element in the process of being pulled will not be interrupted when the
1519
+ * effect completes. See `interruptWhen` for this behavior.
1520
+ *
1521
+ * If the effect completes with a failure, the stream will emit that failure.
1522
+ *
1523
+ * @since 2.0.0
1524
+ * @category utils
1525
+ */
1526
+ const haltWhen = exports.haltWhen = internal.haltWhen;
1527
+ /**
1528
+ * Halts the evaluation of this stream when the provided promise resolves.
1529
+ *
1530
+ * If the promise completes with a failure, the stream will emit that failure.
1531
+ *
1532
+ * @since 2.0.0
1533
+ * @category utils
1534
+ */
1535
+ const haltWhenDeferred = exports.haltWhenDeferred = internal.haltWhenDeferred;
1536
+ /**
1537
+ * The identity pipeline, which does not modify streams in any way.
1538
+ *
1539
+ * @since 2.0.0
1540
+ * @category utils
1541
+ */
1542
+ const identity = exports.identity = internal.identityStream;
1543
+ /**
1544
+ * Interleaves this stream and the specified stream deterministically by
1545
+ * alternating pulling values from this stream and the specified stream. When
1546
+ * one stream is exhausted all remaining values in the other stream will be
1547
+ * pulled.
1548
+ *
1549
+ * @example
1550
+ * ```ts
1551
+ * import { Effect, Stream } from "effect"
1552
+ *
1553
+ * const s1 = Stream.make(1, 2, 3)
1554
+ * const s2 = Stream.make(4, 5, 6)
1555
+ *
1556
+ * const stream = Stream.interleave(s1, s2)
1557
+ *
1558
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1559
+ * // { _id: 'Chunk', values: [ 1, 4, 2, 5, 3, 6 ] }
1560
+ * ```
1561
+ * @since 2.0.0
1562
+ * @category utils
1563
+ */
1564
+ const interleave = exports.interleave = internal.interleave;
1565
+ /**
1566
+ * Combines this stream and the specified stream deterministically using the
1567
+ * stream of boolean values `pull` to control which stream to pull from next.
1568
+ * A value of `true` indicates to pull from this stream and a value of `false`
1569
+ * indicates to pull from the specified stream. Only consumes as many elements
1570
+ * as requested by the `pull` stream. If either this stream or the specified
1571
+ * stream are exhausted further requests for values from that stream will be
1572
+ * ignored.
1573
+ *
1574
+ * @example
1575
+ * ```ts
1576
+ * import { Effect, Stream } from "effect"
1577
+ *
1578
+ * const s1 = Stream.make(1, 3, 5, 7, 9)
1579
+ * const s2 = Stream.make(2, 4, 6, 8, 10)
1580
+ *
1581
+ * const booleanStream = Stream.make(true, false, false).pipe(Stream.forever)
1582
+ *
1583
+ * const stream = Stream.interleaveWith(s1, s2, booleanStream)
1584
+ *
1585
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1586
+ * // {
1587
+ * // _id: 'Chunk',
1588
+ * // values: [
1589
+ * // 1, 2, 4, 3, 6,
1590
+ * // 8, 5, 10, 7, 9
1591
+ * // ]
1592
+ * // }
1593
+ * ```
1594
+ *
1595
+ * @since 2.0.0
1596
+ * @category utils
1597
+ */
1598
+ const interleaveWith = exports.interleaveWith = internal.interleaveWith;
1599
+ /**
1600
+ * Intersperse stream with provided `element`.
1601
+ *
1602
+ * @example
1603
+ * ```ts
1604
+ * import { Effect, Stream } from "effect"
1605
+ *
1606
+ * const stream = Stream.make(1, 2, 3, 4, 5).pipe(Stream.intersperse(0))
1607
+ *
1608
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1609
+ * // {
1610
+ * // _id: 'Chunk',
1611
+ * // values: [
1612
+ * // 1, 0, 2, 0, 3,
1613
+ * // 0, 4, 0, 5
1614
+ * // ]
1615
+ * // }
1616
+ * ```
1617
+ *
1618
+ * @since 2.0.0
1619
+ * @category utils
1620
+ */
1621
+ const intersperse = exports.intersperse = internal.intersperse;
1622
+ /**
1623
+ * Intersperse the specified element, also adding a prefix and a suffix.
1624
+ *
1625
+ * @example
1626
+ * ```ts
1627
+ * import { Effect, Stream } from "effect"
1628
+ *
1629
+ * const stream = Stream.make(1, 2, 3, 4, 5).pipe(
1630
+ * Stream.intersperseAffixes({
1631
+ * start: "[",
1632
+ * middle: "-",
1633
+ * end: "]"
1634
+ * })
1635
+ * )
1636
+ *
1637
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1638
+ * // {
1639
+ * // _id: 'Chunk',
1640
+ * // values: [
1641
+ * // '[', 1, '-', 2, '-',
1642
+ * // 3, '-', 4, '-', 5,
1643
+ * // ']'
1644
+ * // ]
1645
+ * // }
1646
+ * ```
1647
+ *
1648
+ * @since 2.0.0
1649
+ * @category utils
1650
+ */
1651
+ const intersperseAffixes = exports.intersperseAffixes = internal.intersperseAffixes;
1652
+ /**
1653
+ * Specialized version of `Stream.interruptWhen` which interrupts the
1654
+ * evaluation of this stream after the given `Duration`.
1655
+ *
1656
+ * @since 2.0.0
1657
+ * @category utils
1658
+ */
1659
+ const interruptAfter = exports.interruptAfter = internal.interruptAfter;
1660
+ /**
1661
+ * Interrupts the evaluation of this stream when the provided effect
1662
+ * completes. The given effect will be forked as part of this stream, and its
1663
+ * success will be discarded. This combinator will also interrupt any
1664
+ * in-progress element being pulled from upstream.
1665
+ *
1666
+ * If the effect completes with a failure before the stream completes, the
1667
+ * returned stream will emit that failure.
1668
+ *
1669
+ * @since 2.0.0
1670
+ * @category utils
1671
+ */
1672
+ const interruptWhen = exports.interruptWhen = internal.interruptWhen;
1673
+ /**
1674
+ * Interrupts the evaluation of this stream when the provided promise
1675
+ * resolves. This combinator will also interrupt any in-progress element being
1676
+ * pulled from upstream.
1677
+ *
1678
+ * If the promise completes with a failure, the stream will emit that failure.
1679
+ *
1680
+ * @since 2.0.0
1681
+ * @category utils
1682
+ */
1683
+ const interruptWhenDeferred = exports.interruptWhenDeferred = internal.interruptWhenDeferred;
1684
+ /**
1685
+ * The infinite stream of iterative function application: a, f(a), f(f(a)),
1686
+ * f(f(f(a))), ...
1687
+ *
1688
+ * @example
1689
+ * ```ts
1690
+ * import { Effect, Stream } from "effect"
1691
+ *
1692
+ * // An infinite Stream of numbers starting from 1 and incrementing
1693
+ * const stream = Stream.iterate(1, (n) => n + 1)
1694
+ *
1695
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(10)))).then(console.log)
1696
+ * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }
1697
+ * ```
1698
+ *
1699
+ * @since 2.0.0
1700
+ * @category constructors
1701
+ */
1702
+ const iterate = exports.iterate = internal.iterate;
1703
+ /**
1704
+ * Creates a stream from an sequence of values.
1705
+ *
1706
+ * @example
1707
+ * ```ts
1708
+ * import { Effect, Stream } from "effect"
1709
+ *
1710
+ * const stream = Stream.make(1, 2, 3)
1711
+ *
1712
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1713
+ * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
1714
+ * ```
1715
+ *
1716
+ * @since 2.0.0
1717
+ * @category constructors
1718
+ */
1719
+ const make = exports.make = internal.make;
1720
+ /**
1721
+ * Transforms the elements of this stream using the supplied function.
1722
+ *
1723
+ * @example
1724
+ * ```ts
1725
+ * import { Effect, Stream } from "effect"
1726
+ *
1727
+ * const stream = Stream.make(1, 2, 3).pipe(Stream.map((n) => n + 1))
1728
+ *
1729
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1730
+ * // { _id: 'Chunk', values: [ 2, 3, 4 ] }
1731
+ * ```
1732
+ *
1733
+ * @since 2.0.0
1734
+ * @category mapping
1735
+ */
1736
+ const map = exports.map = internal.map;
1737
+ /**
1738
+ * Statefully maps over the elements of this stream to produce new elements.
1739
+ *
1740
+ * @example
1741
+ * ```ts
1742
+ * import { Effect, Stream } from "effect"
1743
+ *
1744
+ * const runningTotal = (stream: Stream.Stream<number>): Stream.Stream<number> =>
1745
+ * stream.pipe(Stream.mapAccum(0, (s, a) => [s + a, s + a]))
1746
+ *
1747
+ * // input: 0, 1, 2, 3, 4, 5, 6
1748
+ * Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
1749
+ * console.log
1750
+ * )
1751
+ * // { _id: "Chunk", values: [ 0, 1, 3, 6, 10, 15, 21 ] }
1752
+ * ```
1753
+ *
1754
+ * @since 2.0.0
1755
+ * @category mapping
1756
+ */
1757
+ const mapAccum = exports.mapAccum = internal.mapAccum;
1758
+ /**
1759
+ * Statefully and effectfully maps over the elements of this stream to produce
1760
+ * new elements.
1761
+ *
1762
+ * @since 2.0.0
1763
+ * @category mapping
1764
+ */
1765
+ const mapAccumEffect = exports.mapAccumEffect = internal.mapAccumEffect;
1766
+ /**
1767
+ * Returns a stream whose failure and success channels have been mapped by the
1768
+ * specified `onFailure` and `onSuccess` functions.
1769
+ *
1770
+ * @since 2.0.0
1771
+ * @category utils
1772
+ */
1773
+ const mapBoth = exports.mapBoth = internal.mapBoth;
1774
+ /**
1775
+ * Transforms the chunks emitted by this stream.
1776
+ *
1777
+ * @since 2.0.0
1778
+ * @category mapping
1779
+ */
1780
+ const mapChunks = exports.mapChunks = internal.mapChunks;
1781
+ /**
1782
+ * Effectfully transforms the chunks emitted by this stream.
1783
+ *
1784
+ * @since 2.0.0
1785
+ * @category mapping
1786
+ */
1787
+ const mapChunksEffect = exports.mapChunksEffect = internal.mapChunksEffect;
1788
+ /**
1789
+ * Maps each element to an iterable, and flattens the iterables into the
1790
+ * output of this stream.
1791
+ *
1792
+ * @example
1793
+ * ```ts
1794
+ * import { Effect, Stream } from "effect"
1795
+ *
1796
+ * const numbers = Stream.make("1-2-3", "4-5", "6").pipe(
1797
+ * Stream.mapConcat((s) => s.split("-")),
1798
+ * Stream.map((s) => parseInt(s))
1799
+ * )
1800
+ *
1801
+ * Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
1802
+ * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6 ] }
1803
+ * ```
1804
+ *
1805
+ * @since 2.0.0
1806
+ * @category mapping
1807
+ */
1808
+ const mapConcat = exports.mapConcat = internal.mapConcat;
1809
+ /**
1810
+ * Maps each element to a chunk, and flattens the chunks into the output of
1811
+ * this stream.
1812
+ *
1813
+ * @since 2.0.0
1814
+ * @category mapping
1815
+ */
1816
+ const mapConcatChunk = exports.mapConcatChunk = internal.mapConcatChunk;
1817
+ /**
1818
+ * Effectfully maps each element to a chunk, and flattens the chunks into the
1819
+ * output of this stream.
1820
+ *
1821
+ * @since 2.0.0
1822
+ * @category mapping
1823
+ */
1824
+ const mapConcatChunkEffect = exports.mapConcatChunkEffect = internal.mapConcatChunkEffect;
1825
+ /**
1826
+ * Effectfully maps each element to an iterable, and flattens the iterables
1827
+ * into the output of this stream.
1828
+ *
1829
+ * @since 2.0.0
1830
+ * @category mapping
1831
+ */
1832
+ const mapConcatEffect = exports.mapConcatEffect = internal.mapConcatEffect;
1833
+ /**
1834
+ * Maps over elements of the stream with the specified effectful function.
1835
+ *
1836
+ * @example
1837
+ * ```ts
1838
+ * import { Effect, Random, Stream } from "effect"
1839
+ *
1840
+ * const stream = Stream.make(10, 20, 30).pipe(
1841
+ * Stream.mapEffect((n) => Random.nextIntBetween(0, n))
1842
+ * )
1843
+ *
1844
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1845
+ * // Example Output: { _id: 'Chunk', values: [ 7, 19, 8 ] }
1846
+ * ```
1847
+ *
1848
+ * @since 2.0.0
1849
+ * @category mapping
1850
+ */
1851
+ const mapEffect = exports.mapEffect = groupBy_.mapEffectOptions;
1852
+ /**
1853
+ * Transforms the errors emitted by this stream using `f`.
1854
+ *
1855
+ * @since 2.0.0
1856
+ * @category mapping
1857
+ */
1858
+ const mapError = exports.mapError = internal.mapError;
1859
+ /**
1860
+ * Transforms the full causes of failures emitted by this stream.
1861
+ *
1862
+ * @since 2.0.0
1863
+ * @category mapping
1864
+ */
1865
+ const mapErrorCause = exports.mapErrorCause = internal.mapErrorCause;
1866
+ /**
1867
+ * Merges this stream and the specified stream together.
1868
+ *
1869
+ * New produced stream will terminate when both specified stream terminate if
1870
+ * no termination strategy is specified.
1871
+ *
1872
+ * @example
1873
+ * ```ts
1874
+ * import { Effect, Schedule, Stream } from "effect"
1875
+ *
1876
+ * const s1 = Stream.make(1, 2, 3).pipe(
1877
+ * Stream.schedule(Schedule.spaced("100 millis"))
1878
+ * )
1879
+ * const s2 = Stream.make(4, 5, 6).pipe(
1880
+ * Stream.schedule(Schedule.spaced("200 millis"))
1881
+ * )
1882
+ *
1883
+ * const stream = Stream.merge(s1, s2)
1884
+ *
1885
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1886
+ * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
1887
+ * ```
1888
+ *
1889
+ * @since 2.0.0
1890
+ * @category utils
1891
+ */
1892
+ const merge = exports.merge = internal.merge;
1893
+ /**
1894
+ * Merges a variable list of streams in a non-deterministic fashion. Up to `n`
1895
+ * streams may be consumed in parallel and up to `outputBuffer` chunks may be
1896
+ * buffered by this operator.
1897
+ *
1898
+ * @since 2.0.0
1899
+ * @category utils
1900
+ */
1901
+ const mergeAll = exports.mergeAll = internal.mergeAll;
1902
+ /**
1903
+ * Merges a struct of streams into a single stream of tagged values.
1904
+ * @category combinators
1905
+ * @since 3.8.5
1906
+ *
1907
+ * @example
1908
+ * ```ts
1909
+ * import { Stream } from "effect"
1910
+ * // Stream.Stream<{ _tag: "a"; value: number; } | { _tag: "b"; value: string; }>
1911
+ * const res = Stream.mergeWithTag({
1912
+ * a: Stream.make(0),
1913
+ * b: Stream.make("")
1914
+ * }, { concurrency: "unbounded" })
1915
+ * ```
1916
+ */
1917
+ const mergeWithTag = exports.mergeWithTag = internal.mergeWithTag;
1918
+ /**
1919
+ * Merges this stream and the specified stream together to a common element
1920
+ * type with the specified mapping functions.
1921
+ *
1922
+ * New produced stream will terminate when both specified stream terminate if
1923
+ * no termination strategy is specified.
1924
+ *
1925
+ * @example
1926
+ * ```ts
1927
+ * import { Effect, Schedule, Stream } from "effect"
1928
+ *
1929
+ * const s1 = Stream.make("1", "2", "3").pipe(
1930
+ * Stream.schedule(Schedule.spaced("100 millis"))
1931
+ * )
1932
+ * const s2 = Stream.make(4.1, 5.3, 6.2).pipe(
1933
+ * Stream.schedule(Schedule.spaced("200 millis"))
1934
+ * )
1935
+ *
1936
+ * const stream = Stream.mergeWith(s1, s2, {
1937
+ * onSelf: (s) => parseInt(s),
1938
+ * onOther: (n) => Math.floor(n)
1939
+ * })
1940
+ *
1941
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1942
+ * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
1943
+ * ```
1944
+ *
1945
+ * @since 2.0.0
1946
+ * @category utils
1947
+ */
1948
+ const mergeWith = exports.mergeWith = internal.mergeWith;
1949
+ /**
1950
+ * Merges this stream and the specified stream together to produce a stream of
1951
+ * eithers.
1952
+ *
1953
+ * @since 2.0.0
1954
+ * @category utils
1955
+ */
1956
+ const mergeEither = exports.mergeEither = internal.mergeEither;
1957
+ /**
1958
+ * Merges this stream and the specified stream together, discarding the values
1959
+ * from the right stream.
1960
+ *
1961
+ * @since 2.0.0
1962
+ * @category utils
1963
+ */
1964
+ const mergeLeft = exports.mergeLeft = internal.mergeLeft;
1965
+ /**
1966
+ * Merges this stream and the specified stream together, discarding the values
1967
+ * from the left stream.
1968
+ *
1969
+ * @since 2.0.0
1970
+ * @category utils
1971
+ */
1972
+ const mergeRight = exports.mergeRight = internal.mergeRight;
1973
+ /**
1974
+ * Returns a combined string resulting from concatenating each of the values
1975
+ * from the stream.
1976
+ *
1977
+ * @since 2.0.0
1978
+ * @category utils
1979
+ */
1980
+ const mkString = exports.mkString = internal.mkString;
1981
+ /**
1982
+ * The stream that never produces any value or fails with any error.
1983
+ *
1984
+ * @since 2.0.0
1985
+ * @category constructors
1986
+ */
1987
+ const never = exports.never = internal.never;
1988
+ /**
1989
+ * Adds an effect to be executed at the end of the stream.
1990
+ *
1991
+ * @example
1992
+ * ```ts
1993
+ * import { Console, Effect, Stream } from "effect"
1994
+ *
1995
+ * const stream = Stream.make(1, 2, 3).pipe(
1996
+ * Stream.map((n) => n * 2),
1997
+ * Stream.tap((n) => Console.log(`after mapping: ${n}`)),
1998
+ * Stream.onEnd(Console.log("Stream ended"))
1999
+ * )
2000
+ *
2001
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2002
+ * // after mapping: 2
2003
+ * // after mapping: 4
2004
+ * // after mapping: 6
2005
+ * // Stream ended
2006
+ * // { _id: 'Chunk', values: [ 2, 4, 6 ] }
2007
+ * ```
2008
+ *
2009
+ * @since 3.6.0
2010
+ * @category sequencing
2011
+ */
2012
+ const onEnd = exports.onEnd = internal.onEnd;
2013
+ /**
2014
+ * Runs the specified effect if this stream fails, providing the error to the
2015
+ * effect if it exists.
2016
+ *
2017
+ * Note: Unlike `Effect.onError` there is no guarantee that the provided
2018
+ * effect will not be interrupted.
2019
+ *
2020
+ * @since 2.0.0
2021
+ * @category utils
2022
+ */
2023
+ const onError = exports.onError = internal.onError;
2024
+ /**
2025
+ * Runs the specified effect if this stream ends.
2026
+ *
2027
+ * @since 2.0.0
2028
+ * @category utils
2029
+ */
2030
+ const onDone = exports.onDone = internal.onDone;
2031
+ /**
2032
+ * Adds an effect to be executed at the start of the stream.
2033
+ *
2034
+ * @example
2035
+ * ```ts
2036
+ * import { Console, Effect, Stream } from "effect"
2037
+ *
2038
+ * const stream = Stream.make(1, 2, 3).pipe(
2039
+ * Stream.onStart(Console.log("Stream started")),
2040
+ * Stream.map((n) => n * 2),
2041
+ * Stream.tap((n) => Console.log(`after mapping: ${n}`))
2042
+ * )
2043
+ *
2044
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2045
+ * // Stream started
2046
+ * // after mapping: 2
2047
+ * // after mapping: 4
2048
+ * // after mapping: 6
2049
+ * // { _id: 'Chunk', values: [ 2, 4, 6 ] }
2050
+ * ```
2051
+ *
2052
+ * @since 3.6.0
2053
+ * @category sequencing
2054
+ */
2055
+ const onStart = exports.onStart = internal.onStart;
2056
+ /**
2057
+ * Translates any failure into a stream termination, making the stream
2058
+ * infallible and all failures unchecked.
2059
+ *
2060
+ * @since 2.0.0
2061
+ * @category error handling
2062
+ */
2063
+ const orDie = exports.orDie = internal.orDie;
2064
+ /**
2065
+ * Keeps none of the errors, and terminates the stream with them, using the
2066
+ * specified function to convert the `E` into a defect.
2067
+ *
2068
+ * @since 2.0.0
2069
+ * @category error handling
2070
+ */
2071
+ const orDieWith = exports.orDieWith = internal.orDieWith;
2072
+ /**
2073
+ * Switches to the provided stream in case this one fails with a typed error.
2074
+ *
2075
+ * See also `Stream.catchAll`.
2076
+ *
2077
+ * @since 2.0.0
2078
+ * @category error handling
2079
+ */
2080
+ const orElse = exports.orElse = internal.orElse;
2081
+ /**
2082
+ * Switches to the provided stream in case this one fails with a typed error.
2083
+ *
2084
+ * See also `Stream.catchAll`.
2085
+ *
2086
+ * @since 2.0.0
2087
+ * @category error handling
2088
+ */
2089
+ const orElseEither = exports.orElseEither = internal.orElseEither;
2090
+ /**
2091
+ * Fails with given error in case this one fails with a typed error.
2092
+ *
2093
+ * See also `Stream.catchAll`.
2094
+ *
2095
+ * @since 2.0.0
2096
+ * @category error handling
2097
+ */
2098
+ const orElseFail = exports.orElseFail = internal.orElseFail;
2099
+ /**
2100
+ * Produces the specified element if this stream is empty.
2101
+ *
2102
+ * @since 2.0.0
2103
+ * @category error handling
2104
+ */
2105
+ const orElseIfEmpty = exports.orElseIfEmpty = internal.orElseIfEmpty;
2106
+ /**
2107
+ * Produces the specified chunk if this stream is empty.
2108
+ *
2109
+ * @since 2.0.0
2110
+ * @category error handling
2111
+ */
2112
+ const orElseIfEmptyChunk = exports.orElseIfEmptyChunk = internal.orElseIfEmptyChunk;
2113
+ /**
2114
+ * Switches to the provided stream in case this one is empty.
2115
+ *
2116
+ * @since 2.0.0
2117
+ * @category error handling
2118
+ */
2119
+ const orElseIfEmptyStream = exports.orElseIfEmptyStream = internal.orElseIfEmptyStream;
2120
+ /**
2121
+ * Succeeds with the specified value if this one fails with a typed error.
2122
+ *
2123
+ * @since 2.0.0
2124
+ * @category error handling
2125
+ */
2126
+ const orElseSucceed = exports.orElseSucceed = internal.orElseSucceed;
2127
+ /**
2128
+ * Like `Stream.unfold`, but allows the emission of values to end one step further
2129
+ * than the unfolding of the state. This is useful for embedding paginated
2130
+ * APIs, hence the name.
2131
+ *
2132
+ * @example
2133
+ * ```ts
2134
+ * import { Effect, Option, Stream } from "effect"
2135
+ *
2136
+ * const stream = Stream.paginate(0, (n) => [
2137
+ * n,
2138
+ * n < 3 ? Option.some(n + 1) : Option.none()
2139
+ * ])
2140
+ *
2141
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2142
+ * // { _id: 'Chunk', values: [ 0, 1, 2, 3 ] }
2143
+ * ```
2144
+ *
2145
+ * @since 2.0.0
2146
+ * @category constructors
2147
+ */
2148
+ const paginate = exports.paginate = internal.paginate;
2149
+ /**
2150
+ * Like `Stream.unfoldChunk`, but allows the emission of values to end one step
2151
+ * further than the unfolding of the state. This is useful for embedding
2152
+ * paginated APIs, hence the name.
2153
+ *
2154
+ * @since 2.0.0
2155
+ * @category constructors
2156
+ */
2157
+ const paginateChunk = exports.paginateChunk = internal.paginateChunk;
2158
+ /**
2159
+ * Like `Stream.unfoldChunkEffect`, but allows the emission of values to end one step
2160
+ * further than the unfolding of the state. This is useful for embedding
2161
+ * paginated APIs, hence the name.
2162
+ *
2163
+ * @since 2.0.0
2164
+ * @category constructors
2165
+ */
2166
+ const paginateChunkEffect = exports.paginateChunkEffect = internal.paginateChunkEffect;
2167
+ /**
2168
+ * Like `Stream.unfoldEffect` but allows the emission of values to end one step
2169
+ * further than the unfolding of the state. This is useful for embedding
2170
+ * paginated APIs, hence the name.
2171
+ *
2172
+ * @since 2.0.0
2173
+ * @category constructors
2174
+ */
2175
+ const paginateEffect = exports.paginateEffect = internal.paginateEffect;
2176
+ /**
2177
+ * Splits a stream into two substreams based on a predicate.
2178
+ *
2179
+ * **Details**
2180
+ *
2181
+ * The `Stream.partition` function splits a stream into two parts: one for
2182
+ * elements that satisfy the predicate (evaluated to `true`) and another for
2183
+ * those that do not (evaluated to `false`).
2184
+ *
2185
+ * The faster stream may advance up to `bufferSize` elements ahead of the slower
2186
+ * one.
2187
+ *
2188
+ * **Example** (Partitioning a Stream into Even and Odd Numbers)
2189
+ *
2190
+ * ```ts
2191
+ * import { Effect, Stream } from "effect"
2192
+ *
2193
+ * const partition = Stream.range(1, 9).pipe(
2194
+ * Stream.partition((n) => n % 2 === 0, { bufferSize: 5 })
2195
+ * )
2196
+ *
2197
+ * const program = Effect.scoped(
2198
+ * Effect.gen(function*() {
2199
+ * const [odds, evens] = yield* partition
2200
+ * console.log(yield* Stream.runCollect(odds))
2201
+ * console.log(yield* Stream.runCollect(evens))
2202
+ * })
2203
+ * )
2204
+ *
2205
+ * Effect.runPromise(program)
2206
+ * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
2207
+ * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
2208
+ * ```
2209
+ *
2210
+ * @see {@link partitionEither} for partitioning a stream based on effectful
2211
+ * conditions.
2212
+ *
2213
+ * @since 2.0.0
2214
+ * @category utils
2215
+ */
2216
+ const partition = exports.partition = internal.partition;
2217
+ /**
2218
+ * Splits a stream into two substreams based on an effectful condition.
2219
+ *
2220
+ * **Details**
2221
+ *
2222
+ * The `Stream.partitionEither` function is used to divide a stream into two
2223
+ * parts: one for elements that satisfy a condition producing `Either.left`
2224
+ * values, and another for those that produce `Either.right` values. This
2225
+ * function applies an effectful predicate to each element in the stream to
2226
+ * determine which substream it belongs to.
2227
+ *
2228
+ * The faster stream may advance up to `bufferSize` elements ahead of the slower
2229
+ * one.
2230
+ *
2231
+ * **Example** (Partitioning a Stream with an Effectful Predicate)
2232
+ *
2233
+ * ```ts
2234
+ * import { Effect, Either, Stream } from "effect"
2235
+ *
2236
+ * const partition = Stream.range(1, 9).pipe(
2237
+ * Stream.partitionEither(
2238
+ * (n) => Effect.succeed(n % 2 === 0 ? Either.right(n) : Either.left(n)),
2239
+ * { bufferSize: 5 }
2240
+ * )
2241
+ * )
2242
+ *
2243
+ * const program = Effect.scoped(
2244
+ * Effect.gen(function*() {
2245
+ * const [evens, odds] = yield* partition
2246
+ * console.log(yield* Stream.runCollect(evens))
2247
+ * console.log(yield* Stream.runCollect(odds))
2248
+ * })
2249
+ * )
2250
+ *
2251
+ * Effect.runPromise(program)
2252
+ * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
2253
+ * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
2254
+ * ```
2255
+ *
2256
+ * @see {@link partition} for partitioning a stream based on simple conditions.
2257
+ *
2258
+ * @since 2.0.0
2259
+ * @category utils
2260
+ */
2261
+ const partitionEither = exports.partitionEither = internal.partitionEither;
2262
+ /**
2263
+ * Peels off enough material from the stream to construct a `Z` using the
2264
+ * provided `Sink` and then returns both the `Z` and the rest of the
2265
+ * `Stream` in a scope. Like all scoped values, the provided stream is
2266
+ * valid only within the scope.
2267
+ *
2268
+ * @since 2.0.0
2269
+ * @category utils
2270
+ */
2271
+ const peel = exports.peel = internal.peel;
2272
+ /**
2273
+ * Pipes all of the values from this stream through the provided sink.
2274
+ *
2275
+ * See also `Stream.transduce`.
2276
+ *
2277
+ * @since 2.0.0
2278
+ * @category utils
2279
+ */
2280
+ const pipeThrough = exports.pipeThrough = internal.pipeThrough;
2281
+ /**
2282
+ * Pipes all the values from this stream through the provided channel.
2283
+ *
2284
+ * @since 2.0.0
2285
+ * @category utils
2286
+ */
2287
+ const pipeThroughChannel = exports.pipeThroughChannel = internal.pipeThroughChannel;
2288
+ /**
2289
+ * Pipes all values from this stream through the provided channel, passing
2290
+ * through any error emitted by this stream unchanged.
2291
+ *
2292
+ * @since 2.0.0
2293
+ * @category utils
2294
+ */
2295
+ const pipeThroughChannelOrFail = exports.pipeThroughChannelOrFail = internal.pipeThroughChannelOrFail;
2296
+ /**
2297
+ * Emits the provided chunk before emitting any other value.
2298
+ *
2299
+ * @since 2.0.0
2300
+ * @category utils
2301
+ */
2302
+ const prepend = exports.prepend = internal.prepend;
2303
+ /**
2304
+ * Provides the stream with its required context, which eliminates its
2305
+ * dependency on `R`.
2306
+ *
2307
+ * @since 2.0.0
2308
+ * @category context
2309
+ */
2310
+ const provideContext = exports.provideContext = internal.provideContext;
2311
+ /**
2312
+ * Provides the stream with some of its required context, which eliminates its
2313
+ * dependency on `R`.
2314
+ *
2315
+ * @since 3.16.9
2316
+ * @category context
2317
+ */
2318
+ const provideSomeContext = exports.provideSomeContext = internal.provideSomeContext;
2319
+ /**
2320
+ * Provides a `Layer` to the stream, which translates it to another level.
2321
+ *
2322
+ * @since 2.0.0
2323
+ * @category context
2324
+ */
2325
+ const provideLayer = exports.provideLayer = internal.provideLayer;
2326
+ /**
2327
+ * Provides the stream with the single service it requires. If the stream
2328
+ * requires more than one service use `Stream.provideContext` instead.
2329
+ *
2330
+ * @since 2.0.0
2331
+ * @category context
2332
+ */
2333
+ const provideService = exports.provideService = internal.provideService;
2334
+ /**
2335
+ * Provides the stream with the single service it requires. If the stream
2336
+ * requires more than one service use `Stream.provideContext` instead.
2337
+ *
2338
+ * @since 2.0.0
2339
+ * @category context
2340
+ */
2341
+ const provideServiceEffect = exports.provideServiceEffect = internal.provideServiceEffect;
2342
+ /**
2343
+ * Provides the stream with the single service it requires. If the stream
2344
+ * requires more than one service use `Stream.provideContext` instead.
2345
+ *
2346
+ * @since 2.0.0
2347
+ * @category context
2348
+ */
2349
+ const provideServiceStream = exports.provideServiceStream = internal.provideServiceStream;
2350
+ /**
2351
+ * Transforms the context being provided to the stream with the specified
2352
+ * function.
2353
+ *
2354
+ * @since 2.0.0
2355
+ * @category context
2356
+ */
2357
+ const mapInputContext = exports.mapInputContext = internal.mapInputContext;
2358
+ /**
2359
+ * Splits the context into two parts, providing one part using the
2360
+ * specified layer and leaving the remainder `R0`.
2361
+ *
2362
+ * @since 2.0.0
2363
+ * @category context
2364
+ */
2365
+ const provideSomeLayer = exports.provideSomeLayer = internal.provideSomeLayer;
2366
+ /**
2367
+ * Returns a stream that mirrors the first upstream to emit an item.
2368
+ * As soon as one of the upstream emits a first value, the other is interrupted.
2369
+ * The resulting stream will forward all items from the "winning" source stream.
2370
+ * Any upstream failures will cause the returned stream to fail.
2371
+ *
2372
+ * @example
2373
+ * ```ts
2374
+ * import { Stream, Schedule, Console, Effect } from "effect"
2375
+ *
2376
+ * const stream = Stream.fromSchedule(Schedule.spaced('2 millis')).pipe(
2377
+ * Stream.race(Stream.fromSchedule(Schedule.spaced('1 millis'))),
2378
+ * Stream.take(6),
2379
+ * Stream.tap(Console.log)
2380
+ * )
2381
+ *
2382
+ * Effect.runPromise(Stream.runDrain(stream))
2383
+ * // Output each millisecond from the first stream, the rest streams are interrupted
2384
+ * // 0
2385
+ * // 1
2386
+ * // 2
2387
+ * // 3
2388
+ * // 4
2389
+ * // 5
2390
+ * ```
2391
+ * @since 3.7.0
2392
+ * @category racing
2393
+ */
2394
+ const race = exports.race = internal.race;
2395
+ /**
2396
+ * Returns a stream that mirrors the first upstream to emit an item.
2397
+ * As soon as one of the upstream emits a first value, all the others are interrupted.
2398
+ * The resulting stream will forward all items from the "winning" source stream.
2399
+ * Any upstream failures will cause the returned stream to fail.
2400
+ *
2401
+ * @example
2402
+ * ```ts
2403
+ * import { Stream, Schedule, Console, Effect } from "effect"
2404
+ *
2405
+ * const stream = Stream.raceAll(
2406
+ * Stream.fromSchedule(Schedule.spaced('1 millis')),
2407
+ * Stream.fromSchedule(Schedule.spaced('2 millis')),
2408
+ * Stream.fromSchedule(Schedule.spaced('4 millis')),
2409
+ * ).pipe(Stream.take(6), Stream.tap(Console.log))
2410
+ *
2411
+ * Effect.runPromise(Stream.runDrain(stream))
2412
+ * // Output each millisecond from the first stream, the rest streams are interrupted
2413
+ * // 0
2414
+ * // 1
2415
+ * // 2
2416
+ * // 3
2417
+ * // 4
2418
+ * // 5
2419
+ * ```
2420
+ * @since 3.5.0
2421
+ * @category racing
2422
+ */
2423
+ const raceAll = exports.raceAll = internal.raceAll;
2424
+ /**
2425
+ * Constructs a stream from a range of integers, including both endpoints.
2426
+ *
2427
+ * @example
2428
+ * ```ts
2429
+ * import { Effect, Stream } from "effect"
2430
+ *
2431
+ * // A Stream with a range of numbers from 1 to 5
2432
+ * const stream = Stream.range(1, 5)
2433
+ *
2434
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2435
+ * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
2436
+ * ```
2437
+ *
2438
+ * @since 2.0.0
2439
+ * @category constructors
2440
+ */
2441
+ const range = exports.range = internal.range;
2442
+ /**
2443
+ * Re-chunks the elements of the stream into chunks of `n` elements each. The
2444
+ * last chunk might contain less than `n` elements.
2445
+ *
2446
+ * @since 2.0.0
2447
+ * @category utils
2448
+ */
2449
+ const rechunk = exports.rechunk = internal.rechunk;
2450
+ /**
2451
+ * Keeps some of the errors, and terminates the fiber with the rest
2452
+ *
2453
+ * @since 2.0.0
2454
+ * @category error handling
2455
+ */
2456
+ const refineOrDie = exports.refineOrDie = internal.refineOrDie;
2457
+ /**
2458
+ * Keeps some of the errors, and terminates the fiber with the rest, using the
2459
+ * specified function to convert the `E` into a defect.
2460
+ *
2461
+ * @since 2.0.0
2462
+ * @category error handling
2463
+ */
2464
+ const refineOrDieWith = exports.refineOrDieWith = internal.refineOrDieWith;
2465
+ /**
2466
+ * Repeats the entire stream using the specified schedule. The stream will
2467
+ * execute normally, and then repeat again according to the provided schedule.
2468
+ *
2469
+ * @example
2470
+ * ```ts
2471
+ * import { Effect, Schedule, Stream } from "effect"
2472
+ *
2473
+ * const stream = Stream.repeat(Stream.succeed(1), Schedule.forever)
2474
+ *
2475
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2476
+ * // { _id: 'Chunk', values: [ 1, 1, 1, 1, 1 ] }
2477
+ * ```
2478
+ *
2479
+ * @since 2.0.0
2480
+ * @category utils
2481
+ */
2482
+ const repeat = exports.repeat = internal.repeat;
2483
+ /**
2484
+ * Creates a stream from an effect producing a value of type `A` which repeats
2485
+ * forever.
2486
+ *
2487
+ * @example
2488
+ * ```ts
2489
+ * import { Effect, Random, Stream } from "effect"
2490
+ *
2491
+ * const stream = Stream.repeatEffect(Random.nextInt)
2492
+ *
2493
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2494
+ * // Example Output: { _id: 'Chunk', values: [ 3891571149, 4239494205, 2352981603, 2339111046, 1488052210 ] }
2495
+ * ```
2496
+ *
2497
+ * @since 2.0.0
2498
+ * @category constructors
2499
+ */
2500
+ const repeatEffect = exports.repeatEffect = internal.repeatEffect;
2501
+ /**
2502
+ * Creates a stream from an effect producing chunks of `A` values which
2503
+ * repeats forever.
2504
+ *
2505
+ * @since 2.0.0
2506
+ * @category constructors
2507
+ */
2508
+ const repeatEffectChunk = exports.repeatEffectChunk = internal.repeatEffectChunk;
2509
+ /**
2510
+ * Creates a stream from an effect producing chunks of `A` values until it
2511
+ * fails with `None`.
2512
+ *
2513
+ * @since 2.0.0
2514
+ * @category constructors
2515
+ */
2516
+ const repeatEffectChunkOption = exports.repeatEffectChunkOption = internal.repeatEffectChunkOption;
2517
+ /**
2518
+ * Creates a stream from an effect producing values of type `A` until it fails
2519
+ * with `None`.
2520
+ *
2521
+ * @example
2522
+ * ```ts
2523
+ * // In this example, we're draining an Iterator to create a stream from it
2524
+ * import { Stream, Effect, Option } from "effect"
2525
+ *
2526
+ * const drainIterator = <A>(it: Iterator<A>): Stream.Stream<A> =>
2527
+ * Stream.repeatEffectOption(
2528
+ * Effect.sync(() => it.next()).pipe(
2529
+ * Effect.andThen((res) => {
2530
+ * if (res.done) {
2531
+ * return Effect.fail(Option.none())
2532
+ * }
2533
+ * return Effect.succeed(res.value)
2534
+ * })
2535
+ * )
2536
+ * )
2537
+ * ```
2538
+ *
2539
+ * @since 2.0.0
2540
+ * @category constructors
2541
+ */
2542
+ const repeatEffectOption = exports.repeatEffectOption = internal.repeatEffectOption;
2543
+ /**
2544
+ * Creates a stream from an effect producing a value of type `A`, which is
2545
+ * repeated using the specified schedule.
2546
+ *
2547
+ * @since 2.0.0
2548
+ * @category constructors
2549
+ */
2550
+ const repeatEffectWithSchedule = exports.repeatEffectWithSchedule = internal.repeatEffectWithSchedule;
2551
+ /**
2552
+ * Repeats the entire stream using the specified schedule. The stream will
2553
+ * execute normally, and then repeat again according to the provided schedule.
2554
+ * The schedule output will be emitted at the end of each repetition.
2555
+ *
2556
+ * @since 2.0.0
2557
+ * @category utils
2558
+ */
2559
+ const repeatEither = exports.repeatEither = internal.repeatEither;
2560
+ /**
2561
+ * Repeats each element of the stream using the provided schedule. Repetitions
2562
+ * are done in addition to the first execution, which means using
2563
+ * `Schedule.recurs(1)` actually results in the original effect, plus an
2564
+ * additional recurrence, for a total of two repetitions of each value in the
2565
+ * stream.
2566
+ *
2567
+ * @since 2.0.0
2568
+ * @category utils
2569
+ */
2570
+ const repeatElements = exports.repeatElements = internal.repeatElements;
2571
+ /**
2572
+ * Repeats each element of the stream using the provided schedule. When the
2573
+ * schedule is finished, then the output of the schedule will be emitted into
2574
+ * the stream. Repetitions are done in addition to the first execution, which
2575
+ * means using `Schedule.recurs(1)` actually results in the original effect,
2576
+ * plus an additional recurrence, for a total of two repetitions of each value
2577
+ * in the stream.
2578
+ *
2579
+ * This function accepts two conversion functions, which allow the output of
2580
+ * this stream and the output of the provided schedule to be unified into a
2581
+ * single type. For example, `Either` or similar data type.
2582
+ *
2583
+ * @since 2.0.0
2584
+ * @category utils
2585
+ */
2586
+ const repeatElementsWith = exports.repeatElementsWith = internal.repeatElementsWith;
2587
+ /**
2588
+ * Repeats the provided value infinitely.
2589
+ *
2590
+ * @example
2591
+ * ```ts
2592
+ * import { Effect, Stream } from "effect"
2593
+ *
2594
+ * const stream = Stream.repeatValue(0)
2595
+ *
2596
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2597
+ * // { _id: 'Chunk', values: [ 0, 0, 0, 0, 0 ] }
2598
+ * ```
2599
+ *
2600
+ * @since 2.0.0
2601
+ * @category constructors
2602
+ */
2603
+ const repeatValue = exports.repeatValue = internal.repeatValue;
2604
+ /**
2605
+ * Repeats the entire stream using the specified schedule. The stream will
2606
+ * execute normally, and then repeat again according to the provided schedule.
2607
+ * The schedule output will be emitted at the end of each repetition and can
2608
+ * be unified with the stream elements using the provided functions.
2609
+ *
2610
+ * @since 2.0.0
2611
+ * @category utils
2612
+ */
2613
+ const repeatWith = exports.repeatWith = internal.repeatWith;
2614
+ /**
2615
+ * When the stream fails, retry it according to the given schedule
2616
+ *
2617
+ * This retries the entire stream, so will re-execute all of the stream's
2618
+ * acquire operations.
2619
+ *
2620
+ * The schedule is reset as soon as the first element passes through the
2621
+ * stream again.
2622
+ *
2623
+ * @since 2.0.0
2624
+ * @category utils
2625
+ */
2626
+ const retry = exports.retry = internal.retry;
2627
+ /**
2628
+ * Apply an `ExecutionPlan` to the stream, which allows you to fallback to
2629
+ * different resources in case of failure.
2630
+ *
2631
+ * If you have a stream that could fail with partial results, you can use
2632
+ * the `preventFallbackOnPartialStream` option to prevent contamination of
2633
+ * the final stream with partial results.
2634
+ *
2635
+ * @since 3.16.0
2636
+ * @category Error handling
2637
+ * @experimental
2638
+ */
2639
+ const withExecutionPlan = exports.withExecutionPlan = internal.withExecutionPlan;
2640
+ /**
2641
+ * Runs the sink on the stream to produce either the sink's result or an error.
2642
+ *
2643
+ * @since 2.0.0
2644
+ * @category destructors
2645
+ */
2646
+ const run = exports.run = internal.run;
2647
+ /**
2648
+ * Runs the stream and collects all of its elements to a chunk.
2649
+ *
2650
+ * @since 2.0.0
2651
+ * @category destructors
2652
+ */
2653
+ const runCollect = exports.runCollect = internal.runCollect;
2654
+ /**
2655
+ * Runs the stream and emits the number of elements processed
2656
+ *
2657
+ * @since 2.0.0
2658
+ * @category destructors
2659
+ */
2660
+ const runCount = exports.runCount = internal.runCount;
2661
+ /**
2662
+ * Runs the stream only for its effects. The emitted elements are discarded.
2663
+ *
2664
+ * @since 2.0.0
2665
+ * @category destructors
2666
+ */
2667
+ const runDrain = exports.runDrain = internal.runDrain;
2668
+ /**
2669
+ * Executes a pure fold over the stream of values - reduces all elements in
2670
+ * the stream to a value of type `S`.
2671
+ *
2672
+ * @since 2.0.0
2673
+ * @category destructors
2674
+ */
2675
+ const runFold = exports.runFold = internal.runFold;
2676
+ /**
2677
+ * Executes an effectful fold over the stream of values.
2678
+ *
2679
+ * @since 2.0.0
2680
+ * @category destructors
2681
+ */
2682
+ const runFoldEffect = exports.runFoldEffect = internal.runFoldEffect;
2683
+ /**
2684
+ * Executes a pure fold over the stream of values. Returns a scoped value that
2685
+ * represents the scope of the stream.
2686
+ *
2687
+ * @since 2.0.0
2688
+ * @category destructors
2689
+ */
2690
+ const runFoldScoped = exports.runFoldScoped = internal.runFoldScoped;
2691
+ /**
2692
+ * Executes an effectful fold over the stream of values. Returns a scoped
2693
+ * value that represents the scope of the stream.
2694
+ *
2695
+ * @since 2.0.0
2696
+ * @category destructors
2697
+ */
2698
+ const runFoldScopedEffect = exports.runFoldScopedEffect = internal.runFoldScopedEffect;
2699
+ /**
2700
+ * Reduces the elements in the stream to a value of type `S`. Stops the fold
2701
+ * early when the condition is not fulfilled. Example:
2702
+ *
2703
+ * @since 2.0.0
2704
+ * @category destructors
2705
+ */
2706
+ const runFoldWhile = exports.runFoldWhile = internal.runFoldWhile;
2707
+ /**
2708
+ * Executes an effectful fold over the stream of values. Stops the fold early
2709
+ * when the condition is not fulfilled.
2710
+ *
2711
+ * @since 2.0.0
2712
+ * @category destructors
2713
+ */
2714
+ const runFoldWhileEffect = exports.runFoldWhileEffect = internal.runFoldWhileEffect;
2715
+ /**
2716
+ * Executes a pure fold over the stream of values. Returns a scoped value that
2717
+ * represents the scope of the stream. Stops the fold early when the condition
2718
+ * is not fulfilled.
2719
+ *
2720
+ * @since 2.0.0
2721
+ * @category destructors
2722
+ */
2723
+ const runFoldWhileScoped = exports.runFoldWhileScoped = internal.runFoldWhileScoped;
2724
+ /**
2725
+ * Executes an effectful fold over the stream of values. Returns a scoped
2726
+ * value that represents the scope of the stream. Stops the fold early when
2727
+ * the condition is not fulfilled.
2728
+ *
2729
+ * @since 2.0.0
2730
+ * @category destructors
2731
+ */
2732
+ const runFoldWhileScopedEffect = exports.runFoldWhileScopedEffect = internal.runFoldWhileScopedEffect;
2733
+ /**
2734
+ * Consumes all elements of the stream, passing them to the specified
2735
+ * callback.
2736
+ *
2737
+ * @since 2.0.0
2738
+ * @category destructors
2739
+ */
2740
+ const runForEach = exports.runForEach = internal.runForEach;
2741
+ /**
2742
+ * Consumes all elements of the stream, passing them to the specified
2743
+ * callback.
2744
+ *
2745
+ * @since 2.0.0
2746
+ * @category destructors
2747
+ */
2748
+ const runForEachChunk = exports.runForEachChunk = internal.runForEachChunk;
2749
+ /**
2750
+ * Like `Stream.runForEachChunk`, but returns a scoped effect so the
2751
+ * finalization order can be controlled.
2752
+ *
2753
+ * @since 2.0.0
2754
+ * @category destructors
2755
+ */
2756
+ const runForEachChunkScoped = exports.runForEachChunkScoped = internal.runForEachChunkScoped;
2757
+ /**
2758
+ * Like `Stream.forEach`, but returns a scoped effect so the finalization
2759
+ * order can be controlled.
2760
+ *
2761
+ * @since 2.0.0
2762
+ * @category destructors
2763
+ */
2764
+ const runForEachScoped = exports.runForEachScoped = internal.runForEachScoped;
2765
+ /**
2766
+ * Consumes elements of the stream, passing them to the specified callback,
2767
+ * and terminating consumption when the callback returns `false`.
2768
+ *
2769
+ * @since 2.0.0
2770
+ * @category destructors
2771
+ */
2772
+ const runForEachWhile = exports.runForEachWhile = internal.runForEachWhile;
2773
+ /**
2774
+ * Like `Stream.runForEachWhile`, but returns a scoped effect so the
2775
+ * finalization order can be controlled.
2776
+ *
2777
+ * @since 2.0.0
2778
+ * @category destructors
2779
+ */
2780
+ const runForEachWhileScoped = exports.runForEachWhileScoped = internal.runForEachWhileScoped;
2781
+ /**
2782
+ * Runs the stream to completion and yields the first value emitted by it,
2783
+ * discarding the rest of the elements.
2784
+ *
2785
+ * @since 2.0.0
2786
+ * @category destructors
2787
+ */
2788
+ const runHead = exports.runHead = internal.runHead;
2789
+ /**
2790
+ * Publishes elements of this stream to a `PubSub`. Stream failure and ending will
2791
+ * also be signalled.
2792
+ *
2793
+ * @since 2.0.0
2794
+ * @category destructors
2795
+ */
2796
+ const runIntoPubSub = exports.runIntoPubSub = internal.runIntoPubSub;
2797
+ /**
2798
+ * Like `Stream.runIntoPubSub`, but provides the result as a scoped effect to
2799
+ * allow for scope composition.
2800
+ *
2801
+ * @since 2.0.0
2802
+ * @category destructors
2803
+ */
2804
+ const runIntoPubSubScoped = exports.runIntoPubSubScoped = internal.runIntoPubSubScoped;
2805
+ /**
2806
+ * Enqueues elements of this stream into a queue. Stream failure and ending
2807
+ * will also be signalled.
2808
+ *
2809
+ * @since 2.0.0
2810
+ * @category destructors
2811
+ */
2812
+ const runIntoQueue = exports.runIntoQueue = internal.runIntoQueue;
2813
+ /**
2814
+ * Like `Stream.runIntoQueue`, but provides the result as a scoped Effect
2815
+ * to allow for scope composition.
2816
+ *
2817
+ * @since 2.0.0
2818
+ * @category destructors
2819
+ */
2820
+ const runIntoQueueElementsScoped = exports.runIntoQueueElementsScoped = internal.runIntoQueueElementsScoped;
2821
+ /**
2822
+ * Like `Stream.runIntoQueue`, but provides the result as a scoped effect
2823
+ * to allow for scope composition.
2824
+ *
2825
+ * @since 2.0.0
2826
+ * @category destructors
2827
+ */
2828
+ const runIntoQueueScoped = exports.runIntoQueueScoped = internal.runIntoQueueScoped;
2829
+ /**
2830
+ * Runs the stream to completion and yields the last value emitted by it,
2831
+ * discarding the rest of the elements.
2832
+ *
2833
+ * @since 2.0.0
2834
+ * @category destructors
2835
+ */
2836
+ const runLast = exports.runLast = internal.runLast;
2837
+ /**
2838
+ * @since 2.0.0
2839
+ * @category destructors
2840
+ */
2841
+ const runScoped = exports.runScoped = internal.runScoped;
2842
+ /**
2843
+ * Runs the stream to a sink which sums elements, provided they are Numeric.
2844
+ *
2845
+ * @since 2.0.0
2846
+ * @category destructors
2847
+ */
2848
+ const runSum = exports.runSum = internal.runSum;
2849
+ /**
2850
+ * Statefully maps over the elements of this stream to produce all
2851
+ * intermediate results of type `S` given an initial S.
2852
+ *
2853
+ * @example
2854
+ * ```ts
2855
+ * import { Effect, Stream } from "effect"
2856
+ *
2857
+ * const stream = Stream.range(1, 6).pipe(Stream.scan(0, (a, b) => a + b))
2858
+ *
2859
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2860
+ * // { _id: 'Chunk', values: [ 0, 1, 3, 6, 10, 15, 21 ] }
2861
+ * ```
2862
+ *
2863
+ * @since 2.0.0
2864
+ * @category utils
2865
+ */
2866
+ const scan = exports.scan = internal.scan;
2867
+ /**
2868
+ * Statefully and effectfully maps over the elements of this stream to produce
2869
+ * all intermediate results of type `S` given an initial S.
2870
+ *
2871
+ * @since 2.0.0
2872
+ * @category utils
2873
+ */
2874
+ const scanEffect = exports.scanEffect = internal.scanEffect;
2875
+ /**
2876
+ * Statefully maps over the elements of this stream to produce all
2877
+ * intermediate results.
2878
+ *
2879
+ * See also `Stream.scan`.
2880
+ *
2881
+ * @since 2.0.0
2882
+ * @category utils
2883
+ */
2884
+ const scanReduce = exports.scanReduce = internal.scanReduce;
2885
+ /**
2886
+ * Statefully and effectfully maps over the elements of this stream to produce
2887
+ * all intermediate results.
2888
+ *
2889
+ * See also `Stream.scanEffect`.
2890
+ *
2891
+ * @since 2.0.0
2892
+ * @category utils
2893
+ */
2894
+ const scanReduceEffect = exports.scanReduceEffect = internal.scanReduceEffect;
2895
+ /**
2896
+ * Schedules the output of the stream using the provided `schedule`.
2897
+ *
2898
+ * @since 2.0.0
2899
+ * @category utils
2900
+ */
2901
+ const schedule = exports.schedule = internal.schedule;
2902
+ /**
2903
+ * Schedules the output of the stream using the provided `schedule` and emits
2904
+ * its output at the end (if `schedule` is finite). Uses the provided function
2905
+ * to align the stream and schedule outputs on the same type.
2906
+ *
2907
+ * @since 2.0.0
2908
+ * @category utils
2909
+ */
2910
+ const scheduleWith = exports.scheduleWith = internal.scheduleWith;
2911
+ /**
2912
+ * Creates a single-valued stream from a scoped resource.
2913
+ *
2914
+ * @example
2915
+ * ```ts
2916
+ * import { Console, Effect, Stream } from "effect"
2917
+ *
2918
+ * // Creating a single-valued stream from a scoped resource
2919
+ * const stream = Stream.scoped(
2920
+ * Effect.acquireRelease(
2921
+ * Console.log("acquire"),
2922
+ * () => Console.log("release")
2923
+ * )
2924
+ * ).pipe(
2925
+ * Stream.flatMap(() => Console.log("use"))
2926
+ * )
2927
+ *
2928
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2929
+ * // acquire
2930
+ * // use
2931
+ * // release
2932
+ * // { _id: 'Chunk', values: [ undefined ] }
2933
+ * ```
2934
+ *
2935
+ * @since 2.0.0
2936
+ * @category constructors
2937
+ */
2938
+ const scoped = exports.scoped = internal.scoped;
2939
+ /**
2940
+ * Use a function that receives a scope and returns an effect to emit an output
2941
+ * element. The output element will be the result of the returned effect, if
2942
+ * successful.
2943
+ *
2944
+ * @since 3.11.0
2945
+ * @category constructors
2946
+ */
2947
+ const scopedWith = exports.scopedWith = internal.scopedWith;
2948
+ /**
2949
+ * Emits a sliding window of `n` elements.
2950
+ *
2951
+ * ```ts
2952
+ * import { pipe, Stream } from "effect"
2953
+ *
2954
+ * pipe(
2955
+ * Stream.make(1, 2, 3, 4),
2956
+ * Stream.sliding(2),
2957
+ * Stream.runCollect
2958
+ * )
2959
+ * // => Chunk(Chunk(1, 2), Chunk(2, 3), Chunk(3, 4))
2960
+ * ```
2961
+ *
2962
+ * @since 2.0.0
2963
+ * @category utils
2964
+ */
2965
+ const sliding = exports.sliding = internal.sliding;
2966
+ /**
2967
+ * Like `sliding`, but with a configurable `stepSize` parameter.
2968
+ *
2969
+ * @since 2.0.0
2970
+ * @category utils
2971
+ */
2972
+ const slidingSize = exports.slidingSize = internal.slidingSize;
2973
+ /**
2974
+ * Converts an option on values into an option on errors.
2975
+ *
2976
+ * @since 2.0.0
2977
+ * @category utils
2978
+ */
2979
+ const some = exports.some = internal.some;
2980
+ /**
2981
+ * Extracts the optional value, or returns the given 'default'.
2982
+ *
2983
+ * @since 2.0.0
2984
+ * @category utils
2985
+ */
2986
+ const someOrElse = exports.someOrElse = internal.someOrElse;
2987
+ /**
2988
+ * Extracts the optional value, or fails with the given error 'e'.
2989
+ *
2990
+ * @since 2.0.0
2991
+ * @category utils
2992
+ */
2993
+ const someOrFail = exports.someOrFail = internal.someOrFail;
2994
+ /**
2995
+ * Splits elements based on a predicate or refinement.
2996
+ *
2997
+ * ```ts
2998
+ * import { pipe, Stream } from "effect"
2999
+ *
3000
+ * pipe(
3001
+ * Stream.range(1, 10),
3002
+ * Stream.split((n) => n % 4 === 0),
3003
+ * Stream.runCollect
3004
+ * )
3005
+ * // => Chunk(Chunk(1, 2, 3), Chunk(5, 6, 7), Chunk(9))
3006
+ * ```
3007
+ *
3008
+ * @since 2.0.0
3009
+ * @category utils
3010
+ */
3011
+ const split = exports.split = internal.split;
3012
+ /**
3013
+ * Splits elements on a delimiter and transforms the splits into desired output.
3014
+ *
3015
+ * @since 2.0.0
3016
+ * @category utils
3017
+ */
3018
+ const splitOnChunk = exports.splitOnChunk = internal.splitOnChunk;
3019
+ /**
3020
+ * Splits strings on newlines. Handles both Windows newlines (`\r\n`) and UNIX
3021
+ * newlines (`\n`).
3022
+ *
3023
+ * @since 2.0.0
3024
+ * @category combinators
3025
+ */
3026
+ const splitLines = exports.splitLines = internal.splitLines;
3027
+ /**
3028
+ * Creates a single-valued pure stream.
3029
+ *
3030
+ * @example
3031
+ * ```ts
3032
+ * import { Effect, Stream } from "effect"
3033
+ *
3034
+ * // A Stream with a single number
3035
+ * const stream = Stream.succeed(3)
3036
+ *
3037
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3038
+ * // { _id: 'Chunk', values: [ 3 ] }
3039
+ * ```
3040
+ *
3041
+ * @since 2.0.0
3042
+ * @category constructors
3043
+ */
3044
+ const succeed = exports.succeed = internal.succeed;
3045
+ /**
3046
+ * Creates a single-valued pure stream.
3047
+ *
3048
+ * @since 2.0.0
3049
+ * @category constructors
3050
+ */
3051
+ const sync = exports.sync = internal.sync;
3052
+ /**
3053
+ * Returns a lazily constructed stream.
3054
+ *
3055
+ * @since 2.0.0
3056
+ * @category constructors
3057
+ */
3058
+ const suspend = exports.suspend = internal.suspend;
3059
+ /**
3060
+ * Takes the specified number of elements from this stream.
3061
+ *
3062
+ * @example
3063
+ * ```ts
3064
+ * import { Effect, Stream } from "effect"
3065
+ *
3066
+ * const stream = Stream.take(Stream.iterate(0, (n) => n + 1), 5)
3067
+ *
3068
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3069
+ * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
3070
+ * ```
3071
+ *
3072
+ * @since 2.0.0
3073
+ * @category utils
3074
+ */
3075
+ const take = exports.take = internal.take;
3076
+ /**
3077
+ * Takes the last specified number of elements from this stream.
3078
+ *
3079
+ * @example
3080
+ * ```ts
3081
+ * import { Effect, Stream } from "effect"
3082
+ *
3083
+ * const stream = Stream.takeRight(Stream.make(1, 2, 3, 4, 5, 6), 3)
3084
+ *
3085
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3086
+ * // { _id: 'Chunk', values: [ 4, 5, 6 ] }
3087
+ * ```
3088
+ *
3089
+ * @since 2.0.0
3090
+ * @category utils
3091
+ */
3092
+ const takeRight = exports.takeRight = internal.takeRight;
3093
+ /**
3094
+ * Takes all elements of the stream until the specified predicate evaluates to
3095
+ * `true`.
3096
+ *
3097
+ * @example
3098
+ * ```ts
3099
+ * import { Effect, Stream } from "effect"
3100
+ *
3101
+ * const stream = Stream.takeUntil(Stream.iterate(0, (n) => n + 1), (n) => n === 4)
3102
+ *
3103
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3104
+ * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
3105
+ * ```
3106
+ *
3107
+ * @since 2.0.0
3108
+ * @category utils
3109
+ */
3110
+ const takeUntil = exports.takeUntil = internal.takeUntil;
3111
+ /**
3112
+ * Takes all elements of the stream until the specified effectual predicate
3113
+ * evaluates to `true`.
3114
+ *
3115
+ * @since 2.0.0
3116
+ * @category utils
3117
+ */
3118
+ const takeUntilEffect = exports.takeUntilEffect = internal.takeUntilEffect;
3119
+ /**
3120
+ * Takes all elements of the stream for as long as the specified predicate
3121
+ * evaluates to `true`.
3122
+ *
3123
+ * @example
3124
+ * ```ts
3125
+ * import { Effect, Stream } from "effect"
3126
+ *
3127
+ * const stream = Stream.takeWhile(Stream.iterate(0, (n) => n + 1), (n) => n < 5)
3128
+ *
3129
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3130
+ * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
3131
+ * ```
3132
+ *
3133
+ * @since 2.0.0
3134
+ * @category utils
3135
+ */
3136
+ const takeWhile = exports.takeWhile = internal.takeWhile;
3137
+ /**
3138
+ * Adds an effect to consumption of every element of the stream.
3139
+ *
3140
+ * @example
3141
+ * ```ts
3142
+ * import { Console, Effect, Stream } from "effect"
3143
+ *
3144
+ * const stream = Stream.make(1, 2, 3).pipe(
3145
+ * Stream.tap((n) => Console.log(`before mapping: ${n}`)),
3146
+ * Stream.map((n) => n * 2),
3147
+ * Stream.tap((n) => Console.log(`after mapping: ${n}`))
3148
+ * )
3149
+ *
3150
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3151
+ * // before mapping: 1
3152
+ * // after mapping: 2
3153
+ * // before mapping: 2
3154
+ * // after mapping: 4
3155
+ * // before mapping: 3
3156
+ * // after mapping: 6
3157
+ * // { _id: 'Chunk', values: [ 2, 4, 6 ] }
3158
+ * ```
3159
+ *
3160
+ * @since 2.0.0
3161
+ * @category sequencing
3162
+ */
3163
+ const tap = exports.tap = internal.tap;
3164
+ /**
3165
+ * Returns a stream that effectfully "peeks" at the failure or success of
3166
+ * the stream.
3167
+ *
3168
+ * @since 2.0.0
3169
+ * @category sequencing
3170
+ */
3171
+ const tapBoth = exports.tapBoth = internal.tapBoth;
3172
+ /**
3173
+ * Returns a stream that effectfully "peeks" at the failure of the stream.
3174
+ *
3175
+ * @since 2.0.0
3176
+ * @category sequencing
3177
+ */
3178
+ const tapError = exports.tapError = internal.tapError;
3179
+ /**
3180
+ * Returns a stream that effectfully "peeks" at the cause of failure of the
3181
+ * stream.
3182
+ *
3183
+ * @since 2.0.0
3184
+ * @category utils
3185
+ */
3186
+ const tapErrorCause = exports.tapErrorCause = internal.tapErrorCause;
3187
+ /**
3188
+ * Sends all elements emitted by this stream to the specified sink in addition
3189
+ * to emitting them.
3190
+ *
3191
+ * @since 2.0.0
3192
+ * @category sequencing
3193
+ */
3194
+ const tapSink = exports.tapSink = internal.tapSink;
3195
+ /**
3196
+ * Delays the chunks of this stream according to the given bandwidth
3197
+ * parameters using the token bucket algorithm. Allows for burst in the
3198
+ * processing of elements by allowing the token bucket to accumulate tokens up
3199
+ * to a `units + burst` threshold. The weight of each chunk is determined by
3200
+ * the `cost` function.
3201
+ *
3202
+ * If using the "enforce" strategy, chunks that do not meet the bandwidth
3203
+ * constraints are dropped. If using the "shape" strategy, chunks are delayed
3204
+ * until they can be emitted without exceeding the bandwidth constraints.
3205
+ *
3206
+ * Defaults to the "shape" strategy.
3207
+ *
3208
+ * @example
3209
+ * ```ts
3210
+ * import { Chunk, Effect, Schedule, Stream } from "effect"
3211
+ *
3212
+ * let last = Date.now()
3213
+ * const log = (message: string) =>
3214
+ * Effect.sync(() => {
3215
+ * const end = Date.now()
3216
+ * console.log(`${message} after ${end - last}ms`)
3217
+ * last = end
3218
+ * })
3219
+ *
3220
+ * const stream = Stream.fromSchedule(Schedule.spaced("50 millis")).pipe(
3221
+ * Stream.take(6),
3222
+ * Stream.tap((n) => log(`Received ${n}`)),
3223
+ * Stream.throttle({
3224
+ * cost: Chunk.size,
3225
+ * duration: "100 millis",
3226
+ * units: 1
3227
+ * }),
3228
+ * Stream.tap((n) => log(`> Emitted ${n}`))
3229
+ * )
3230
+ *
3231
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3232
+ * // Received 0 after 56ms
3233
+ * // > Emitted 0 after 0ms
3234
+ * // Received 1 after 52ms
3235
+ * // > Emitted 1 after 48ms
3236
+ * // Received 2 after 52ms
3237
+ * // > Emitted 2 after 49ms
3238
+ * // Received 3 after 52ms
3239
+ * // > Emitted 3 after 48ms
3240
+ * // Received 4 after 52ms
3241
+ * // > Emitted 4 after 47ms
3242
+ * // Received 5 after 52ms
3243
+ * // > Emitted 5 after 49ms
3244
+ * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4, 5 ] }
3245
+ * ```
3246
+ *
3247
+ * @since 2.0.0
3248
+ * @category utils
3249
+ */
3250
+ const throttle = exports.throttle = internal.throttle;
3251
+ /**
3252
+ * Delays the chunks of this stream according to the given bandwidth
3253
+ * parameters using the token bucket algorithm. Allows for burst in the
3254
+ * processing of elements by allowing the token bucket to accumulate tokens up
3255
+ * to a `units + burst` threshold. The weight of each chunk is determined by
3256
+ * the effectful `costFn` function.
3257
+ *
3258
+ * If using the "enforce" strategy, chunks that do not meet the bandwidth
3259
+ * constraints are dropped. If using the "shape" strategy, chunks are delayed
3260
+ * until they can be emitted without exceeding the bandwidth constraints.
3261
+ *
3262
+ * Defaults to the "shape" strategy.
3263
+ *
3264
+ * @since 2.0.0
3265
+ * @category utils
3266
+ */
3267
+ const throttleEffect = exports.throttleEffect = internal.throttleEffect;
3268
+ /**
3269
+ * A stream that emits void values spaced by the specified duration.
3270
+ *
3271
+ * @example
3272
+ * ```ts
3273
+ * import { Effect, Stream } from "effect"
3274
+ *
3275
+ * let last = Date.now()
3276
+ * const log = (message: string) =>
3277
+ * Effect.sync(() => {
3278
+ * const end = Date.now()
3279
+ * console.log(`${message} after ${end - last}ms`)
3280
+ * last = end
3281
+ * })
3282
+ *
3283
+ * const stream = Stream.tick("1 seconds").pipe(Stream.tap(() => log("tick")))
3284
+ *
3285
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3286
+ * // tick after 4ms
3287
+ * // tick after 1003ms
3288
+ * // tick after 1001ms
3289
+ * // tick after 1002ms
3290
+ * // tick after 1002ms
3291
+ * // { _id: 'Chunk', values: [ undefined, undefined, undefined, undefined, undefined ] }
3292
+ * ```
3293
+ *
3294
+ * @since 2.0.0
3295
+ * @category constructors
3296
+ */
3297
+ const tick = exports.tick = internal.tick;
3298
+ /**
3299
+ * Ends the stream if it does not produce a value after the specified duration.
3300
+ *
3301
+ * @since 2.0.0
3302
+ * @category utils
3303
+ */
3304
+ const timeout = exports.timeout = internal.timeout;
3305
+ /**
3306
+ * Fails the stream with given error if it does not produce a value after d
3307
+ * duration.
3308
+ *
3309
+ * @since 2.0.0
3310
+ * @category utils
3311
+ */
3312
+ const timeoutFail = exports.timeoutFail = internal.timeoutFail;
3313
+ /**
3314
+ * Fails the stream with given cause if it does not produce a value after d
3315
+ * duration.
3316
+ *
3317
+ * @since 2.0.0
3318
+ * @category utils
3319
+ */
3320
+ const timeoutFailCause = exports.timeoutFailCause = internal.timeoutFailCause;
3321
+ /**
3322
+ * Switches the stream if it does not produce a value after the specified
3323
+ * duration.
3324
+ *
3325
+ * @since 2.0.0
3326
+ * @category utils
3327
+ */
3328
+ const timeoutTo = exports.timeoutTo = internal.timeoutTo;
3329
+ /**
3330
+ * Converts the stream to a scoped `PubSub` of chunks. After the scope is closed,
3331
+ * the `PubSub` will never again produce values and should be discarded.
3332
+ *
3333
+ * @since 2.0.0
3334
+ * @category destructors
3335
+ */
3336
+ const toPubSub = exports.toPubSub = internal.toPubSub;
3337
+ /**
3338
+ * Returns in a scope an Effect that can be used to repeatedly pull chunks
3339
+ * from the stream. The pull effect fails with None when the stream is
3340
+ * finished, or with Some error if it fails, otherwise it returns a chunk of
3341
+ * the stream's output.
3342
+ *
3343
+ * @example
3344
+ * ```ts
3345
+ * import { Effect, Stream } from "effect"
3346
+ *
3347
+ * // Simulate a chunked stream
3348
+ * const stream = Stream.fromIterable([1, 2, 3, 4, 5]).pipe(Stream.rechunk(2))
3349
+ *
3350
+ * const program = Effect.gen(function*() {
3351
+ * // Create an effect to get data chunks from the stream
3352
+ * const getChunk = yield* Stream.toPull(stream)
3353
+ *
3354
+ * // Continuously fetch and process chunks
3355
+ * while (true) {
3356
+ * const chunk = yield* getChunk
3357
+ * console.log(chunk)
3358
+ * }
3359
+ * })
3360
+ *
3361
+ * Effect.runPromise(Effect.scoped(program)).then(console.log, console.error)
3362
+ * // { _id: 'Chunk', values: [ 1, 2 ] }
3363
+ * // { _id: 'Chunk', values: [ 3, 4 ] }
3364
+ * // { _id: 'Chunk', values: [ 5 ] }
3365
+ * // (FiberFailure) Error: {
3366
+ * // "_id": "Option",
3367
+ * // "_tag": "None"
3368
+ * // }
3369
+ * ```
3370
+ *
3371
+ * @since 2.0.0
3372
+ * @category destructors
3373
+ */
3374
+ const toPull = exports.toPull = internal.toPull;
3375
+ /**
3376
+ * Converts the stream to a scoped queue of chunks. After the scope is closed,
3377
+ * the queue will never again produce values and should be discarded.
3378
+ *
3379
+ * Defaults to the "suspend" back pressure strategy with a capacity of 2.
3380
+ *
3381
+ * @since 2.0.0
3382
+ * @category destructors
3383
+ */
3384
+ const toQueue = exports.toQueue = internal.toQueue;
3385
+ /**
3386
+ * Converts the stream to a scoped queue of elements. After the scope is
3387
+ * closed, the queue will never again produce values and should be discarded.
3388
+ *
3389
+ * Defaults to a capacity of 2.
3390
+ *
3391
+ * @since 2.0.0
3392
+ * @category destructors
3393
+ */
3394
+ const toQueueOfElements = exports.toQueueOfElements = internal.toQueueOfElements;
3395
+ /**
3396
+ * Converts the stream to a `ReadableStream`.
3397
+ *
3398
+ * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
3399
+ *
3400
+ * @since 2.0.0
3401
+ * @category destructors
3402
+ */
3403
+ const toReadableStream = exports.toReadableStream = internal.toReadableStream;
3404
+ /**
3405
+ * Converts the stream to a `Effect<ReadableStream>`.
3406
+ *
3407
+ * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
3408
+ *
3409
+ * @since 2.0.0
3410
+ * @category destructors
3411
+ */
3412
+ const toReadableStreamEffect = exports.toReadableStreamEffect = internal.toReadableStreamEffect;
3413
+ /**
3414
+ * Converts the stream to a `ReadableStream` using the provided runtime.
3415
+ *
3416
+ * See https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream.
3417
+ *
3418
+ * @since 2.0.0
3419
+ * @category destructors
3420
+ */
3421
+ const toReadableStreamRuntime = exports.toReadableStreamRuntime = internal.toReadableStreamRuntime;
3422
+ /**
3423
+ * Converts the stream to a `AsyncIterable` using the provided runtime.
3424
+ *
3425
+ * @since 3.15.0
3426
+ * @category destructors
3427
+ */
3428
+ const toAsyncIterableRuntime = exports.toAsyncIterableRuntime = internal.toAsyncIterableRuntime;
3429
+ /**
3430
+ * Converts the stream to a `AsyncIterable` capturing the required dependencies.
3431
+ *
3432
+ * @since 3.15.0
3433
+ * @category destructors
3434
+ */
3435
+ const toAsyncIterableEffect = exports.toAsyncIterableEffect = internal.toAsyncIterableEffect;
3436
+ /**
3437
+ * Converts the stream to a `AsyncIterable`.
3438
+ *
3439
+ * @since 3.15.0
3440
+ * @category destructors
3441
+ */
3442
+ const toAsyncIterable = exports.toAsyncIterable = internal.toAsyncIterable;
3443
+ /**
3444
+ * Applies the transducer to the stream and emits its outputs.
3445
+ *
3446
+ * @since 2.0.0
3447
+ * @category utils
3448
+ */
3449
+ const transduce = exports.transduce = internal.transduce;
3450
+ /**
3451
+ * Creates a stream by peeling off the "layers" of a value of type `S`.
3452
+ *
3453
+ * @example
3454
+ * ```ts
3455
+ * import { Effect, Option, Stream } from "effect"
3456
+ *
3457
+ * const stream = Stream.unfold(1, (n) => Option.some([n, n + 1]))
3458
+ *
3459
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3460
+ * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
3461
+ * ```
3462
+ *
3463
+ * @since 2.0.0
3464
+ * @category constructors
3465
+ */
3466
+ const unfold = exports.unfold = internal.unfold;
3467
+ /**
3468
+ * Creates a stream by peeling off the "layers" of a value of type `S`.
3469
+ *
3470
+ * @since 2.0.0
3471
+ * @category constructors
3472
+ */
3473
+ const unfoldChunk = exports.unfoldChunk = internal.unfoldChunk;
3474
+ /**
3475
+ * Creates a stream by effectfully peeling off the "layers" of a value of type
3476
+ * `S`.
3477
+ *
3478
+ * @since 2.0.0
3479
+ * @category constructors
3480
+ */
3481
+ const unfoldChunkEffect = exports.unfoldChunkEffect = internal.unfoldChunkEffect;
3482
+ /**
3483
+ * Creates a stream by effectfully peeling off the "layers" of a value of type
3484
+ * `S`.
3485
+ *
3486
+ * @example
3487
+ * ```ts
3488
+ * import { Effect, Option, Random, Stream } from "effect"
3489
+ *
3490
+ * const stream = Stream.unfoldEffect(1, (n) =>
3491
+ * Random.nextBoolean.pipe(
3492
+ * Effect.map((b) => (b ? Option.some([n, -n]) : Option.some([n, n])))
3493
+ * ))
3494
+ *
3495
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3496
+ * // { _id: 'Chunk', values: [ 1, -1, -1, -1, -1 ] }
3497
+ * ```
3498
+ *
3499
+ * @since 2.0.0
3500
+ * @category constructors
3501
+ */
3502
+ const unfoldEffect = exports.unfoldEffect = internal.unfoldEffect;
3503
+ const void_ = exports.void = internal.void;
3504
+ /**
3505
+ * Creates a stream produced from an `Effect`.
3506
+ *
3507
+ * @since 2.0.0
3508
+ * @category constructors
3509
+ */
3510
+ const unwrap = exports.unwrap = internal.unwrap;
3511
+ /**
3512
+ * Creates a stream produced from a scoped `Effect`.
3513
+ *
3514
+ * @since 2.0.0
3515
+ * @category constructors
3516
+ */
3517
+ const unwrapScoped = exports.unwrapScoped = internal.unwrapScoped;
3518
+ /**
3519
+ * Creates a stream produced from a function which receives a `Scope` and
3520
+ * returns an `Effect`. The resulting stream will emit a single element, which
3521
+ * will be the result of the returned effect, if successful.
3522
+ *
3523
+ * @since 3.11.0
3524
+ * @category constructors
3525
+ */
3526
+ const unwrapScopedWith = exports.unwrapScopedWith = internal.unwrapScopedWith;
3527
+ /**
3528
+ * Updates the specified service within the context of the `Stream`.
3529
+ *
3530
+ * @since 2.0.0
3531
+ * @category context
3532
+ */
3533
+ const updateService = exports.updateService = internal.updateService;
3534
+ /**
3535
+ * Returns the specified stream if the given condition is satisfied, otherwise
3536
+ * returns an empty stream.
3537
+ *
3538
+ * @since 2.0.0
3539
+ * @category utils
3540
+ */
3541
+ const when = exports.when = internal.when;
3542
+ /**
3543
+ * Returns the resulting stream when the given `PartialFunction` is defined
3544
+ * for the given value, otherwise returns an empty stream.
3545
+ *
3546
+ * @since 2.0.0
3547
+ * @category constructors
3548
+ */
3549
+ const whenCase = exports.whenCase = internal.whenCase;
3550
+ /**
3551
+ * Returns the stream when the given partial function is defined for the given
3552
+ * effectful value, otherwise returns an empty stream.
3553
+ *
3554
+ * @since 2.0.0
3555
+ * @category utils
3556
+ */
3557
+ const whenCaseEffect = exports.whenCaseEffect = internal.whenCaseEffect;
3558
+ /**
3559
+ * Returns the stream if the given effectful condition is satisfied, otherwise
3560
+ * returns an empty stream.
3561
+ *
3562
+ * @since 2.0.0
3563
+ * @category utils
3564
+ */
3565
+ const whenEffect = exports.whenEffect = internal.whenEffect;
3566
+ /**
3567
+ * Wraps the stream with a new span for tracing.
3568
+ *
3569
+ * @since 2.0.0
3570
+ * @category tracing
3571
+ */
3572
+ const withSpan = exports.withSpan = internal.withSpan;
3573
+ /**
3574
+ * Zips this stream with another point-wise and emits tuples of elements from
3575
+ * both streams.
3576
+ *
3577
+ * The new stream will end when one of the sides ends.
3578
+ *
3579
+ * @example
3580
+ * ```ts
3581
+ * import { Effect, Stream } from "effect"
3582
+ *
3583
+ * // We create two streams and zip them together.
3584
+ * const stream = Stream.zip(
3585
+ * Stream.make(1, 2, 3, 4, 5, 6),
3586
+ * Stream.make("a", "b", "c")
3587
+ * )
3588
+ *
3589
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3590
+ * // { _id: 'Chunk', values: [ [ 1, 'a' ], [ 2, 'b' ], [ 3, 'c' ] ] }
3591
+ * ```
3592
+ *
3593
+ * @since 2.0.0
3594
+ * @category zipping
3595
+ */
3596
+ const zip = exports.zip = internal.zip;
3597
+ /**
3598
+ * Zips this stream with another point-wise and emits tuples of elements from
3599
+ * both streams.
3600
+ *
3601
+ * The new stream will end when one of the sides ends.
3602
+ *
3603
+ * @since 2.0.0
3604
+ * @category zipping
3605
+ */
3606
+ const zipFlatten = exports.zipFlatten = internal.zipFlatten;
3607
+ /**
3608
+ * Zips this stream with another point-wise, creating a new stream of pairs of
3609
+ * elements from both sides.
3610
+ *
3611
+ * The defaults `defaultLeft` and `defaultRight` will be used if the streams
3612
+ * have different lengths and one of the streams has ended before the other.
3613
+ *
3614
+ * @example
3615
+ * ```ts
3616
+ * import { Effect, Stream } from "effect"
3617
+ *
3618
+ * const stream = Stream.zipAll(Stream.make(1, 2, 3, 4, 5, 6), {
3619
+ * other: Stream.make("a", "b", "c"),
3620
+ * defaultSelf: 0,
3621
+ * defaultOther: "x"
3622
+ * })
3623
+ *
3624
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3625
+ * // { _id: "Chunk", values: [ [ 1, "a" ], [ 2, "b" ], [ 3, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
3626
+ * ```
3627
+ *
3628
+ * @since 2.0.0
3629
+ * @category zipping
3630
+ */
3631
+ const zipAll = exports.zipAll = internal.zipAll;
3632
+ /**
3633
+ * Zips this stream with another point-wise, and keeps only elements from this
3634
+ * stream.
3635
+ *
3636
+ * The provided default value will be used if the other stream ends before
3637
+ * this one.
3638
+ *
3639
+ * @since 2.0.0
3640
+ * @category zipping
3641
+ */
3642
+ const zipAllLeft = exports.zipAllLeft = internal.zipAllLeft;
3643
+ /**
3644
+ * Zips this stream with another point-wise, and keeps only elements from the
3645
+ * other stream.
3646
+ *
3647
+ * The provided default value will be used if this stream ends before the
3648
+ * other one.
3649
+ *
3650
+ * @since 2.0.0
3651
+ * @category zipping
3652
+ */
3653
+ const zipAllRight = exports.zipAllRight = internal.zipAllRight;
3654
+ /**
3655
+ * Zips this stream that is sorted by distinct keys and the specified stream
3656
+ * that is sorted by distinct keys to produce a new stream that is sorted by
3657
+ * distinct keys. Combines values associated with each key into a tuple,
3658
+ * using the specified values `defaultLeft` and `defaultRight` to fill in
3659
+ * missing values.
3660
+ *
3661
+ * This allows zipping potentially unbounded streams of data by key in
3662
+ * constant space but the caller is responsible for ensuring that the
3663
+ * streams are sorted by distinct keys.
3664
+ *
3665
+ * @since 2.0.0
3666
+ * @category zipping
3667
+ */
3668
+ const zipAllSortedByKey = exports.zipAllSortedByKey = internal.zipAllSortedByKey;
3669
+ /**
3670
+ * Zips this stream that is sorted by distinct keys and the specified stream
3671
+ * that is sorted by distinct keys to produce a new stream that is sorted by
3672
+ * distinct keys. Keeps only values from this stream, using the specified
3673
+ * value `default` to fill in missing values.
3674
+ *
3675
+ * This allows zipping potentially unbounded streams of data by key in
3676
+ * constant space but the caller is responsible for ensuring that the
3677
+ * streams are sorted by distinct keys.
3678
+ *
3679
+ * @since 2.0.0
3680
+ * @category zipping
3681
+ */
3682
+ const zipAllSortedByKeyLeft = exports.zipAllSortedByKeyLeft = internal.zipAllSortedByKeyLeft;
3683
+ /**
3684
+ * Zips this stream that is sorted by distinct keys and the specified stream
3685
+ * that is sorted by distinct keys to produce a new stream that is sorted by
3686
+ * distinct keys. Keeps only values from that stream, using the specified
3687
+ * value `default` to fill in missing values.
3688
+ *
3689
+ * This allows zipping potentially unbounded streams of data by key in
3690
+ * constant space but the caller is responsible for ensuring that the
3691
+ * streams are sorted by distinct keys.
3692
+ *
3693
+ * @since 2.0.0
3694
+ * @category zipping
3695
+ */
3696
+ const zipAllSortedByKeyRight = exports.zipAllSortedByKeyRight = internal.zipAllSortedByKeyRight;
3697
+ /**
3698
+ * Zips this stream that is sorted by distinct keys and the specified stream
3699
+ * that is sorted by distinct keys to produce a new stream that is sorted by
3700
+ * distinct keys. Uses the functions `left`, `right`, and `both` to handle
3701
+ * the cases where a key and value exist in this stream, that stream, or
3702
+ * both streams.
3703
+ *
3704
+ * This allows zipping potentially unbounded streams of data by key in
3705
+ * constant space but the caller is responsible for ensuring that the
3706
+ * streams are sorted by distinct keys.
3707
+ *
3708
+ * @since 2.0.0
3709
+ * @category zipping
3710
+ */
3711
+ const zipAllSortedByKeyWith = exports.zipAllSortedByKeyWith = internal.zipAllSortedByKeyWith;
3712
+ /**
3713
+ * Zips this stream with another point-wise. The provided functions will be
3714
+ * used to create elements for the composed stream.
3715
+ *
3716
+ * The functions `left` and `right` will be used if the streams have different
3717
+ * lengths and one of the streams has ended before the other.
3718
+ *
3719
+ * @example
3720
+ * ```ts
3721
+ * import { Effect, Stream } from "effect"
3722
+ *
3723
+ * const stream = Stream.zipAllWith(Stream.make(1, 2, 3, 4, 5, 6), {
3724
+ * other: Stream.make("a", "b", "c"),
3725
+ * onSelf: (n) => [n, "x"],
3726
+ * onOther: (s) => [0, s],
3727
+ * onBoth: (n, s) => [n - s.length, s]
3728
+ * })
3729
+ *
3730
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3731
+ * // { _id: "Chunk", values: [ [ 0, "a" ], [ 1, "b" ], [ 2, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
3732
+ * ```
3733
+ *
3734
+ * @since 2.0.0
3735
+ * @category zipping
3736
+ */
3737
+ const zipAllWith = exports.zipAllWith = internal.zipAllWith;
3738
+ /**
3739
+ * Zips the two streams so that when a value is emitted by either of the two
3740
+ * streams, it is combined with the latest value from the other stream to
3741
+ * produce a result.
3742
+ *
3743
+ * Note: tracking the latest value is done on a per-chunk basis. That means
3744
+ * that emitted elements that are not the last value in chunks will never be
3745
+ * used for zipping.
3746
+ *
3747
+ * @example
3748
+ * ```ts
3749
+ * import { Effect, Schedule, Stream } from "effect"
3750
+ *
3751
+ * const s1 = Stream.make(1, 2, 3).pipe(
3752
+ * Stream.schedule(Schedule.spaced("1 second"))
3753
+ * )
3754
+ *
3755
+ * const s2 = Stream.make("a", "b", "c", "d").pipe(
3756
+ * Stream.schedule(Schedule.spaced("500 millis"))
3757
+ * )
3758
+ *
3759
+ * const stream = Stream.zipLatest(s1, s2)
3760
+ *
3761
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3762
+ * // { _id: "Chunk", values: [ [ 1, "a" ], [ 1, "b" ], [ 2, "b" ], [ 2, "c" ], [ 2, "d" ], [ 3, "d" ] ] }
3763
+ * ```
3764
+ *
3765
+ * @since 2.0.0
3766
+ * @category zipping
3767
+ */
3768
+ const zipLatest = exports.zipLatest = internal.zipLatest;
3769
+ /**
3770
+ * Zips multiple streams so that when a value is emitted by any of the streams,
3771
+ * it is combined with the latest values from the other streams to produce a result.
3772
+ *
3773
+ * Note: tracking the latest value is done on a per-chunk basis. That means
3774
+ * that emitted elements that are not the last value in chunks will never be
3775
+ * used for zipping.
3776
+ *
3777
+ * @example
3778
+ * ```ts
3779
+ * import { Stream, Schedule, Console, Effect } from "effect"
3780
+ *
3781
+ * const stream = Stream.zipLatestAll(
3782
+ * Stream.fromSchedule(Schedule.spaced('1 millis')),
3783
+ * Stream.fromSchedule(Schedule.spaced('2 millis')),
3784
+ * Stream.fromSchedule(Schedule.spaced('4 millis')),
3785
+ * ).pipe(Stream.take(6), Stream.tap(Console.log))
3786
+ *
3787
+ * Effect.runPromise(Stream.runDrain(stream))
3788
+ * // Output:
3789
+ * // [ 0, 0, 0 ]
3790
+ * // [ 1, 0, 0 ]
3791
+ * // [ 1, 1, 0 ]
3792
+ * // [ 2, 1, 0 ]
3793
+ * // [ 3, 1, 0 ]
3794
+ * // [ 3, 1, 1 ]
3795
+ * // .....
3796
+ * ```
3797
+ *
3798
+ * @since 3.3.0
3799
+ * @category zipping
3800
+ */
3801
+ const zipLatestAll = exports.zipLatestAll = internal.zipLatestAll;
3802
+ /**
3803
+ * Zips the two streams so that when a value is emitted by either of the two
3804
+ * streams, it is combined with the latest value from the other stream to
3805
+ * produce a result.
3806
+ *
3807
+ * Note: tracking the latest value is done on a per-chunk basis. That means
3808
+ * that emitted elements that are not the last value in chunks will never be
3809
+ * used for zipping.
3810
+ *
3811
+ * @since 2.0.0
3812
+ * @category zipping
3813
+ */
3814
+ const zipLatestWith = exports.zipLatestWith = internal.zipLatestWith;
3815
+ /**
3816
+ * Zips this stream with another point-wise, but keeps only the outputs of
3817
+ * `left` stream.
3818
+ *
3819
+ * The new stream will end when one of the sides ends.
3820
+ *
3821
+ * @since 2.0.0
3822
+ * @category zipping
3823
+ */
3824
+ const zipLeft = exports.zipLeft = internal.zipLeft;
3825
+ /**
3826
+ * Zips this stream with another point-wise, but keeps only the outputs of the
3827
+ * `right` stream.
3828
+ *
3829
+ * The new stream will end when one of the sides ends.
3830
+ *
3831
+ * @since 2.0.0
3832
+ * @category zipping
3833
+ */
3834
+ const zipRight = exports.zipRight = internal.zipRight;
3835
+ /**
3836
+ * Zips this stream with another point-wise and applies the function to the
3837
+ * paired elements.
3838
+ *
3839
+ * The new stream will end when one of the sides ends.
3840
+ *
3841
+ * @example
3842
+ * ```ts
3843
+ * import { Effect, Stream } from "effect"
3844
+ *
3845
+ * // We create two streams and zip them with custom logic.
3846
+ * const stream = Stream.zipWith(
3847
+ * Stream.make(1, 2, 3, 4, 5, 6),
3848
+ * Stream.make("a", "b", "c"),
3849
+ * (n, s) => [n - s.length, s]
3850
+ * )
3851
+ *
3852
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3853
+ * // { _id: 'Chunk', values: [ [ 0, 'a' ], [ 1, 'b' ], [ 2, 'c' ] ] }
3854
+ * ```
3855
+ *
3856
+ * @since 2.0.0
3857
+ * @category zipping
3858
+ */
3859
+ const zipWith = exports.zipWith = internal.zipWith;
3860
+ /**
3861
+ * Zips this stream with another point-wise and applies the function to the
3862
+ * paired elements.
3863
+ *
3864
+ * The new stream will end when one of the sides ends.
3865
+ *
3866
+ * @since 2.0.0
3867
+ * @category zipping
3868
+ */
3869
+ const zipWithChunks = exports.zipWithChunks = internal.zipWithChunks;
3870
+ /**
3871
+ * Zips each element with the next element if present.
3872
+ *
3873
+ * @example
3874
+ * ```ts
3875
+ * import { Chunk, Effect, Stream } from "effect"
3876
+ *
3877
+ * const stream = Stream.zipWithNext(Stream.make(1, 2, 3, 4))
3878
+ *
3879
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3880
+ * // [
3881
+ * // [ 1, { _id: 'Option', _tag: 'Some', value: 2 } ],
3882
+ * // [ 2, { _id: 'Option', _tag: 'Some', value: 3 } ],
3883
+ * // [ 3, { _id: 'Option', _tag: 'Some', value: 4 } ],
3884
+ * // [ 4, { _id: 'Option', _tag: 'None' } ]
3885
+ * // ]
3886
+ * ```
3887
+ *
3888
+ * @since 2.0.0
3889
+ * @category zipping
3890
+ */
3891
+ const zipWithNext = exports.zipWithNext = internal.zipWithNext;
3892
+ /**
3893
+ * Zips each element with the previous element. Initially accompanied by
3894
+ * `None`.
3895
+ *
3896
+ * @example
3897
+ * ```ts
3898
+ * import { Chunk, Effect, Stream } from "effect"
3899
+ *
3900
+ * const stream = Stream.zipWithPrevious(Stream.make(1, 2, 3, 4))
3901
+ *
3902
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3903
+ * // [
3904
+ * // [ { _id: 'Option', _tag: 'None' }, 1 ],
3905
+ * // [ { _id: 'Option', _tag: 'Some', value: 1 }, 2 ],
3906
+ * // [ { _id: 'Option', _tag: 'Some', value: 2 }, 3 ],
3907
+ * // [ { _id: 'Option', _tag: 'Some', value: 3 }, 4 ]
3908
+ * // ]
3909
+ * ```
3910
+ *
3911
+ * @since 2.0.0
3912
+ * @category zipping
3913
+ */
3914
+ const zipWithPrevious = exports.zipWithPrevious = internal.zipWithPrevious;
3915
+ /**
3916
+ * Zips each element with both the previous and next element.
3917
+ *
3918
+ * @example
3919
+ * ```ts
3920
+ * import { Chunk, Effect, Stream } from "effect"
3921
+ *
3922
+ * const stream = Stream.zipWithPreviousAndNext(Stream.make(1, 2, 3, 4))
3923
+ *
3924
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3925
+ * // [
3926
+ * // [
3927
+ * // { _id: 'Option', _tag: 'None' },
3928
+ * // 1,
3929
+ * // { _id: 'Option', _tag: 'Some', value: 2 }
3930
+ * // ],
3931
+ * // [
3932
+ * // { _id: 'Option', _tag: 'Some', value: 1 },
3933
+ * // 2,
3934
+ * // { _id: 'Option', _tag: 'Some', value: 3 }
3935
+ * // ],
3936
+ * // [
3937
+ * // { _id: 'Option', _tag: 'Some', value: 2 },
3938
+ * // 3,
3939
+ * // { _id: 'Option', _tag: 'Some', value: 4 }
3940
+ * // ],
3941
+ * // [
3942
+ * // { _id: 'Option', _tag: 'Some', value: 3 },
3943
+ * // 4,
3944
+ * // { _id: 'Option', _tag: 'None' }
3945
+ * // ]
3946
+ * // ]
3947
+ * ```
3948
+ *
3949
+ * @since 2.0.0
3950
+ * @category zipping
3951
+ */
3952
+ const zipWithPreviousAndNext = exports.zipWithPreviousAndNext = internal.zipWithPreviousAndNext;
3953
+ /**
3954
+ * Zips this stream together with the index of elements.
3955
+ *
3956
+ * @example
3957
+ * ```ts
3958
+ * import { Effect, Stream } from "effect"
3959
+ *
3960
+ * const stream = Stream.make("Mary", "James", "Robert", "Patricia")
3961
+ *
3962
+ * const indexedStream = Stream.zipWithIndex(stream)
3963
+ *
3964
+ * Effect.runPromise(Stream.runCollect(indexedStream)).then(console.log)
3965
+ * // {
3966
+ * // _id: 'Chunk',
3967
+ * // values: [ [ 'Mary', 0 ], [ 'James', 1 ], [ 'Robert', 2 ], [ 'Patricia', 3 ] ]
3968
+ * // }
3969
+ * ```
3970
+ *
3971
+ * @since 2.0.0
3972
+ * @category zipping
3973
+ */
3974
+ const zipWithIndex = exports.zipWithIndex = internal.zipWithIndex;
3975
+ // -------------------------------------------------------------------------------------
3976
+ // do notation
3977
+ // -------------------------------------------------------------------------------------
3978
+ /**
3979
+ * The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
3980
+ *
3981
+ * Here's how the do simulation works:
3982
+ *
3983
+ * 1. Start the do simulation using the `Do` value
3984
+ * 2. Within the do simulation scope, you can use the `bind` function to define variables and bind them to `Stream` values
3985
+ * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
3986
+ * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
3987
+ *
3988
+ * @example
3989
+ * ```ts
3990
+ * import * as assert from "node:assert"
3991
+ * import { Chunk, Effect, pipe, Stream } from "effect"
3992
+ *
3993
+ * const result = pipe(
3994
+ * Stream.Do,
3995
+ * Stream.bind("x", () => Stream.succeed(2)),
3996
+ * Stream.bind("y", () => Stream.succeed(3)),
3997
+ * Stream.let("sum", ({ x, y }) => x + y)
3998
+ * )
3999
+ * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
4000
+ * ```
4001
+ *
4002
+ * @see {@link bindTo}
4003
+ * @see {@link bind}
4004
+ * @see {@link bindEffect}
4005
+ * @see {@link let_ let}
4006
+ *
4007
+ * @category do notation
4008
+ * @since 2.0.0
4009
+ */
4010
+ const Do = exports.Do = internal.Do;
4011
+ /**
4012
+ * The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
4013
+ *
4014
+ * Here's how the do simulation works:
4015
+ *
4016
+ * 1. Start the do simulation using the `Do` value
4017
+ * 2. Within the do simulation scope, you can use the `bind` function to define variables and bind them to `Stream` values
4018
+ * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
4019
+ * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
4020
+ *
4021
+ * @example
4022
+ * ```ts
4023
+ * import * as assert from "node:assert"
4024
+ * import { Chunk, Effect, pipe, Stream } from "effect"
4025
+ *
4026
+ * const result = pipe(
4027
+ * Stream.Do,
4028
+ * Stream.bind("x", () => Stream.succeed(2)),
4029
+ * Stream.bind("y", () => Stream.succeed(3)),
4030
+ * Stream.let("sum", ({ x, y }) => x + y)
4031
+ * )
4032
+ * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
4033
+ * ```
4034
+ *
4035
+ * @see {@link Do}
4036
+ * @see {@link bindTo}
4037
+ * @see {@link bindEffect}
4038
+ * @see {@link let_ let}
4039
+ *
4040
+ * @category do notation
4041
+ * @since 2.0.0
4042
+ */
4043
+ const bind = exports.bind = internal.bind;
4044
+ /**
4045
+ * Binds an effectful value in a `do` scope
4046
+ *
4047
+ * @see {@link Do}
4048
+ * @see {@link bindTo}
4049
+ * @see {@link bind}
4050
+ * @see {@link let_ let}
4051
+ *
4052
+ * @since 2.0.0
4053
+ * @category do notation
4054
+ */
4055
+ const bindEffect = exports.bindEffect = groupBy_.bindEffect;
4056
+ /**
4057
+ * The "do simulation" in Effect allows you to write code in a more declarative style, similar to the "do notation" in other programming languages. It provides a way to define variables and perform operations on them using functions like `bind` and `let`.
4058
+ *
4059
+ * Here's how the do simulation works:
4060
+ *
4061
+ * 1. Start the do simulation using the `Do` value
4062
+ * 2. Within the do simulation scope, you can use the `bind` function to define variables and bind them to `Stream` values
4063
+ * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
4064
+ * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
4065
+ *
4066
+ * @example
4067
+ * ```ts
4068
+ * import * as assert from "node:assert"
4069
+ * import { Chunk, Effect, pipe, Stream } from "effect"
4070
+ *
4071
+ * const result = pipe(
4072
+ * Stream.Do,
4073
+ * Stream.bind("x", () => Stream.succeed(2)),
4074
+ * Stream.bind("y", () => Stream.succeed(3)),
4075
+ * Stream.let("sum", ({ x, y }) => x + y)
4076
+ * )
4077
+ * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
4078
+ * ```
4079
+ *
4080
+ * @see {@link Do}
4081
+ * @see {@link bind}
4082
+ * @see {@link bindEffect}
4083
+ * @see {@link let_ let}
4084
+ *
4085
+ * @category do notation
4086
+ * @since 2.0.0
4087
+ */
4088
+ const bindTo = exports.bindTo = internal.bindTo;
4089
+ const let_ = exports.let = internal.let_;
4090
+ // -------------------------------------------------------------------------------------
4091
+ // encoding
4092
+ // -------------------------------------------------------------------------------------
4093
+ /**
4094
+ * Decode Uint8Array chunks into a stream of strings using the specified encoding.
4095
+ *
4096
+ * @since 2.0.0
4097
+ * @category encoding
4098
+ */
4099
+ const decodeText = exports.decodeText = internal.decodeText;
4100
+ /**
4101
+ * Encode a stream of strings into a stream of Uint8Array chunks using the specified encoding.
4102
+ *
4103
+ * @since 2.0.0
4104
+ * @category encoding
4105
+ */
4106
+ const encodeText = exports.encodeText = internal.encodeText;
4107
+ /**
4108
+ * Creates a `Stream` using addEventListener.
4109
+ * @since 3.1.0
4110
+ */
4111
+ const fromEventListener = exports.fromEventListener = internal.fromEventListener;
4112
+ //# sourceMappingURL=Stream.js.map