effect 2.0.0-next.8 → 2.0.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 (2475) hide show
  1. package/BigDecimal/package.json +6 -0
  2. package/BigInt/package.json +6 -0
  3. package/Boolean/package.json +6 -0
  4. package/Brand/package.json +6 -0
  5. package/Cache/package.json +6 -0
  6. package/Cause/package.json +6 -0
  7. package/Channel/package.json +6 -0
  8. package/ChildExecutorDecision/package.json +6 -0
  9. package/Chunk/package.json +6 -0
  10. package/Clock/package.json +6 -0
  11. package/Config/package.json +6 -0
  12. package/ConfigError/package.json +6 -0
  13. package/ConfigProvider/package.json +6 -0
  14. package/ConfigProviderPathPatch/package.json +6 -0
  15. package/Console/package.json +6 -0
  16. package/Context/package.json +6 -0
  17. package/Data/package.json +6 -0
  18. package/DefaultServices/package.json +6 -0
  19. package/Deferred/package.json +6 -0
  20. package/Differ/package.json +6 -0
  21. package/Duration/package.json +6 -0
  22. package/Effect/package.json +6 -0
  23. package/Effectable/package.json +6 -0
  24. package/Either/package.json +6 -0
  25. package/Encoding/package.json +6 -0
  26. package/Equal/package.json +6 -0
  27. package/Equivalence/package.json +6 -0
  28. package/ExecutionStrategy/package.json +6 -0
  29. package/Exit/package.json +6 -0
  30. package/Fiber/package.json +6 -0
  31. package/FiberId/package.json +6 -0
  32. package/FiberRef/package.json +6 -0
  33. package/FiberRefs/package.json +6 -0
  34. package/FiberRefsPatch/package.json +6 -0
  35. package/FiberStatus/package.json +6 -0
  36. package/Function/package.json +6 -0
  37. package/GlobalValue/package.json +6 -0
  38. package/GroupBy/package.json +6 -0
  39. package/HKT/package.json +6 -0
  40. package/Hash/package.json +6 -0
  41. package/HashMap/package.json +6 -0
  42. package/HashSet/package.json +6 -0
  43. package/Inspectable/package.json +6 -0
  44. package/KeyedPool/package.json +6 -0
  45. package/LICENSE +21 -0
  46. package/Layer/package.json +6 -0
  47. package/List/package.json +6 -0
  48. package/LogLevel/package.json +6 -0
  49. package/LogSpan/package.json +6 -0
  50. package/Logger/package.json +6 -0
  51. package/Match/package.json +6 -0
  52. package/MergeDecision/package.json +6 -0
  53. package/MergeState/package.json +6 -0
  54. package/MergeStrategy/package.json +6 -0
  55. package/Metric/package.json +6 -0
  56. package/MetricBoundaries/package.json +6 -0
  57. package/MetricHook/package.json +6 -0
  58. package/MetricKey/package.json +6 -0
  59. package/MetricKeyType/package.json +6 -0
  60. package/MetricLabel/package.json +6 -0
  61. package/MetricPair/package.json +6 -0
  62. package/MetricPolling/package.json +6 -0
  63. package/MetricRegistry/package.json +6 -0
  64. package/MetricState/package.json +6 -0
  65. package/MutableHashMap/package.json +6 -0
  66. package/MutableHashSet/package.json +6 -0
  67. package/MutableList/package.json +6 -0
  68. package/MutableQueue/package.json +6 -0
  69. package/MutableRef/package.json +6 -0
  70. package/NonEmptyIterable/package.json +6 -0
  71. package/Number/package.json +6 -0
  72. package/Option/package.json +6 -0
  73. package/Order/package.json +6 -0
  74. package/Ordering/package.json +6 -0
  75. package/Pipeable/package.json +6 -0
  76. package/Pool/package.json +6 -0
  77. package/Predicate/package.json +6 -0
  78. package/PrimaryKey/package.json +6 -0
  79. package/PubSub/package.json +6 -0
  80. package/Queue/package.json +6 -0
  81. package/README.md +53 -14
  82. package/Random/package.json +6 -0
  83. package/ReadonlyArray/package.json +6 -0
  84. package/ReadonlyRecord/package.json +6 -0
  85. package/RedBlackTree/package.json +6 -0
  86. package/Ref/package.json +6 -0
  87. package/Reloadable/package.json +6 -0
  88. package/Request/package.json +6 -0
  89. package/RequestBlock/package.json +6 -0
  90. package/RequestResolver/package.json +6 -0
  91. package/Resource/package.json +6 -0
  92. package/Runtime/package.json +6 -0
  93. package/RuntimeFlags/package.json +6 -0
  94. package/RuntimeFlagsPatch/package.json +6 -0
  95. package/STM/package.json +6 -0
  96. package/Schedule/package.json +6 -0
  97. package/ScheduleDecision/package.json +6 -0
  98. package/ScheduleInterval/package.json +6 -0
  99. package/ScheduleIntervals/package.json +6 -0
  100. package/Scheduler/package.json +6 -0
  101. package/Scope/package.json +6 -0
  102. package/ScopedCache/package.json +6 -0
  103. package/ScopedRef/package.json +6 -0
  104. package/Secret/package.json +6 -0
  105. package/SingleProducerAsyncInput/package.json +6 -0
  106. package/Sink/package.json +6 -0
  107. package/SortedMap/package.json +6 -0
  108. package/SortedSet/package.json +6 -0
  109. package/Stream/package.json +6 -0
  110. package/StreamEmit/package.json +6 -0
  111. package/StreamHaltStrategy/package.json +6 -0
  112. package/Streamable/package.json +6 -0
  113. package/String/package.json +6 -0
  114. package/Struct/package.json +6 -0
  115. package/SubscriptionRef/package.json +6 -0
  116. package/Supervisor/package.json +6 -0
  117. package/Symbol/package.json +6 -0
  118. package/SynchronizedRef/package.json +6 -0
  119. package/TArray/package.json +6 -0
  120. package/TDeferred/package.json +6 -0
  121. package/TMap/package.json +6 -0
  122. package/TPriorityQueue/package.json +6 -0
  123. package/TPubSub/package.json +6 -0
  124. package/TQueue/package.json +6 -0
  125. package/TRandom/package.json +6 -0
  126. package/TReentrantLock/package.json +6 -0
  127. package/TRef/package.json +6 -0
  128. package/TSemaphore/package.json +6 -0
  129. package/TSet/package.json +6 -0
  130. package/Take/package.json +6 -0
  131. package/TestAnnotation/package.json +6 -0
  132. package/TestAnnotationMap/package.json +6 -0
  133. package/TestAnnotations/package.json +6 -0
  134. package/TestClock/package.json +6 -0
  135. package/TestConfig/package.json +6 -0
  136. package/TestContext/package.json +6 -0
  137. package/TestLive/package.json +6 -0
  138. package/TestServices/package.json +6 -0
  139. package/TestSized/package.json +6 -0
  140. package/Tracer/package.json +6 -0
  141. package/Tuple/package.json +6 -0
  142. package/Types/package.json +6 -0
  143. package/Unify/package.json +6 -0
  144. package/UpstreamPullRequest/package.json +6 -0
  145. package/UpstreamPullStrategy/package.json +6 -0
  146. package/Utils/package.json +6 -0
  147. package/dist/cjs/BigDecimal.js +889 -0
  148. package/dist/cjs/BigDecimal.js.map +1 -0
  149. package/dist/cjs/BigInt.js +498 -0
  150. package/dist/cjs/BigInt.js.map +1 -0
  151. package/dist/cjs/Boolean.js +249 -0
  152. package/dist/cjs/Boolean.js.map +1 -0
  153. package/dist/cjs/Brand.js +207 -0
  154. package/dist/cjs/Brand.js.map +1 -0
  155. package/dist/cjs/Cache.js +69 -0
  156. package/dist/cjs/Cache.js.map +1 -0
  157. package/dist/cjs/Cause.js +499 -0
  158. package/dist/cjs/Cause.js.map +1 -0
  159. package/dist/cjs/Channel.js +866 -0
  160. package/dist/cjs/Channel.js.map +1 -0
  161. package/dist/cjs/ChildExecutorDecision.js +96 -0
  162. package/dist/cjs/ChildExecutorDecision.js.map +1 -0
  163. package/dist/cjs/Chunk.js +1062 -0
  164. package/dist/cjs/Chunk.js.map +1 -0
  165. package/dist/cjs/Clock.js +69 -0
  166. package/dist/cjs/Clock.js.map +1 -0
  167. package/dist/cjs/Config.js +311 -0
  168. package/dist/cjs/Config.js.map +1 -0
  169. package/dist/cjs/ConfigError.js +138 -0
  170. package/dist/cjs/ConfigError.js.map +1 -0
  171. package/dist/cjs/ConfigProvider.js +192 -0
  172. package/dist/cjs/ConfigProvider.js.map +1 -0
  173. package/dist/cjs/ConfigProviderPathPatch.js +62 -0
  174. package/dist/cjs/ConfigProviderPathPatch.js.map +1 -0
  175. package/dist/cjs/Console.js +149 -0
  176. package/dist/cjs/Console.js.map +1 -0
  177. package/dist/cjs/Context.js +265 -0
  178. package/dist/cjs/Context.js.map +1 -0
  179. package/dist/cjs/Data.js +265 -0
  180. package/dist/cjs/Data.js.map +1 -0
  181. package/dist/cjs/DefaultServices.js +43 -0
  182. package/dist/cjs/DefaultServices.js.map +1 -0
  183. package/dist/cjs/Deferred.js +191 -0
  184. package/dist/cjs/Deferred.js.map +1 -0
  185. package/dist/cjs/Differ.js +164 -0
  186. package/dist/cjs/Differ.js.map +1 -0
  187. package/dist/cjs/Duration.js +476 -0
  188. package/dist/cjs/Duration.js.map +1 -0
  189. package/dist/cjs/Effect.js +2709 -0
  190. package/dist/cjs/Effect.js.map +1 -0
  191. package/dist/cjs/Effectable.js +82 -0
  192. package/dist/cjs/Effectable.js.map +1 -0
  193. package/dist/cjs/Either.js +466 -0
  194. package/dist/cjs/Either.js.map +1 -0
  195. package/dist/cjs/Encoding.js +138 -0
  196. package/dist/cjs/Encoding.js.map +1 -0
  197. package/dist/cjs/Equal.js +73 -0
  198. package/dist/cjs/Equal.js.map +1 -0
  199. package/dist/cjs/Equivalence.js +181 -0
  200. package/dist/cjs/Equivalence.js.map +1 -0
  201. package/dist/cjs/ExecutionStrategy.js +86 -0
  202. package/dist/cjs/ExecutionStrategy.js.map +1 -0
  203. package/dist/cjs/Exit.js +286 -0
  204. package/dist/cjs/Exit.js.map +1 -0
  205. package/dist/cjs/Fiber.js +370 -0
  206. package/dist/cjs/Fiber.js.map +1 -0
  207. package/dist/cjs/FiberId.js +146 -0
  208. package/dist/cjs/FiberId.js.map +1 -0
  209. package/dist/cjs/FiberRef.js +257 -0
  210. package/dist/cjs/FiberRef.js.map +1 -0
  211. package/dist/cjs/FiberRefs.js +115 -0
  212. package/dist/cjs/FiberRefs.js.map +1 -0
  213. package/dist/cjs/FiberRefsPatch.js +63 -0
  214. package/dist/cjs/FiberRefsPatch.js.map +1 -0
  215. package/dist/cjs/FiberStatus.js +83 -0
  216. package/dist/cjs/FiberStatus.js.map +1 -0
  217. package/dist/cjs/Function.js +417 -0
  218. package/dist/cjs/Function.js.map +1 -0
  219. package/dist/cjs/GlobalValue.js +28 -0
  220. package/dist/cjs/GlobalValue.js.map +1 -0
  221. package/dist/cjs/GroupBy.js +71 -0
  222. package/dist/cjs/GroupBy.js.map +1 -0
  223. package/dist/cjs/HKT.js +6 -0
  224. package/dist/cjs/HKT.js.map +1 -0
  225. package/dist/cjs/Hash.js +149 -0
  226. package/dist/cjs/Hash.js.map +1 -0
  227. package/dist/cjs/HashMap.js +287 -0
  228. package/dist/cjs/HashMap.js.map +1 -0
  229. package/dist/cjs/HashSet.js +223 -0
  230. package/dist/cjs/HashSet.js.map +1 -0
  231. package/dist/cjs/Inspectable.js +34 -0
  232. package/dist/cjs/Inspectable.js.map +1 -0
  233. package/dist/cjs/KeyedPool.js +107 -0
  234. package/dist/cjs/KeyedPool.js.map +1 -0
  235. package/dist/cjs/Layer.js +586 -0
  236. package/dist/cjs/Layer.js.map +1 -0
  237. package/dist/cjs/List.js +802 -0
  238. package/dist/cjs/List.js.map +1 -0
  239. package/dist/cjs/LogLevel.js +139 -0
  240. package/dist/cjs/LogLevel.js.map +1 -0
  241. package/dist/cjs/LogSpan.js +47 -0
  242. package/dist/cjs/LogSpan.js.map +1 -0
  243. package/dist/cjs/Logger.js +189 -0
  244. package/dist/cjs/Logger.js.map +1 -0
  245. package/dist/cjs/Match.js +217 -0
  246. package/dist/cjs/Match.js.map +1 -0
  247. package/dist/cjs/MergeDecision.js +66 -0
  248. package/dist/cjs/MergeDecision.js.map +1 -0
  249. package/dist/cjs/MergeState.js +89 -0
  250. package/dist/cjs/MergeState.js.map +1 -0
  251. package/dist/cjs/MergeStrategy.js +83 -0
  252. package/dist/cjs/MergeStrategy.js.map +1 -0
  253. package/dist/cjs/Metric.js +426 -0
  254. package/dist/cjs/Metric.js.map +1 -0
  255. package/dist/cjs/MetricBoundaries.js +64 -0
  256. package/dist/cjs/MetricBoundaries.js.map +1 -0
  257. package/dist/cjs/MetricHook.js +73 -0
  258. package/dist/cjs/MetricHook.js.map +1 -0
  259. package/dist/cjs/MetricKey.js +94 -0
  260. package/dist/cjs/MetricKey.js.map +1 -0
  261. package/dist/cjs/MetricKeyType.js +118 -0
  262. package/dist/cjs/MetricKeyType.js.map +1 -0
  263. package/dist/cjs/MetricLabel.js +48 -0
  264. package/dist/cjs/MetricLabel.js.map +1 -0
  265. package/dist/cjs/MetricPair.js +52 -0
  266. package/dist/cjs/MetricPair.js.map +1 -0
  267. package/dist/cjs/MetricPolling.js +90 -0
  268. package/dist/cjs/MetricPolling.js.map +1 -0
  269. package/dist/cjs/MetricRegistry.js +47 -0
  270. package/dist/cjs/MetricRegistry.js.map +1 -0
  271. package/dist/cjs/MetricState.js +118 -0
  272. package/dist/cjs/MetricState.js.map +1 -0
  273. package/dist/cjs/MutableHashMap.js +288 -0
  274. package/dist/cjs/MutableHashMap.js.map +1 -0
  275. package/dist/cjs/MutableHashSet.js +108 -0
  276. package/dist/cjs/MutableHashSet.js.map +1 -0
  277. package/dist/cjs/MutableList.js +285 -0
  278. package/dist/cjs/MutableList.js.map +1 -0
  279. package/dist/cjs/MutableQueue.js +197 -0
  280. package/dist/cjs/MutableQueue.js.map +1 -0
  281. package/dist/cjs/MutableRef.js +168 -0
  282. package/dist/cjs/MutableRef.js.map +1 -0
  283. package/dist/cjs/NonEmptyIterable.js +23 -0
  284. package/dist/cjs/NonEmptyIterable.js.map +1 -0
  285. package/dist/cjs/Number.js +407 -0
  286. package/dist/cjs/Number.js.map +1 -0
  287. package/dist/cjs/Option.js +950 -0
  288. package/dist/cjs/Option.js.map +1 -0
  289. package/dist/cjs/Order.js +258 -0
  290. package/dist/cjs/Order.js.map +1 -0
  291. package/dist/cjs/Ordering.js +81 -0
  292. package/dist/cjs/Ordering.js.map +1 -0
  293. package/dist/cjs/Pipeable.js +44 -0
  294. package/dist/cjs/Pipeable.js.map +1 -0
  295. package/dist/cjs/Pool.js +105 -0
  296. package/dist/cjs/Pool.js.map +1 -0
  297. package/dist/cjs/Predicate.js +640 -0
  298. package/dist/cjs/Predicate.js.map +1 -0
  299. package/dist/cjs/PrimaryKey.js +21 -0
  300. package/dist/cjs/PrimaryKey.js.map +1 -0
  301. package/dist/cjs/PubSub.js +151 -0
  302. package/dist/cjs/PubSub.js.map +1 -0
  303. package/dist/cjs/Queue.js +279 -0
  304. package/dist/cjs/Queue.js.map +1 -0
  305. package/dist/cjs/Random.js +91 -0
  306. package/dist/cjs/Random.js.map +1 -0
  307. package/dist/cjs/ReadonlyArray.js +1408 -0
  308. package/dist/cjs/ReadonlyArray.js.map +1 -0
  309. package/dist/cjs/ReadonlyRecord.js +829 -0
  310. package/dist/cjs/ReadonlyRecord.js.map +1 -0
  311. package/dist/cjs/RedBlackTree.js +290 -0
  312. package/dist/cjs/RedBlackTree.js.map +1 -0
  313. package/dist/cjs/Ref.js +108 -0
  314. package/dist/cjs/Ref.js.map +1 -0
  315. package/dist/cjs/Reloadable.js +90 -0
  316. package/dist/cjs/Reloadable.js.map +1 -0
  317. package/dist/cjs/Request.js +168 -0
  318. package/dist/cjs/Request.js.map +1 -0
  319. package/dist/cjs/RequestBlock.js +67 -0
  320. package/dist/cjs/RequestBlock.js.map +1 -0
  321. package/dist/cjs/RequestResolver.js +182 -0
  322. package/dist/cjs/RequestResolver.js.map +1 -0
  323. package/dist/cjs/Resource.js +75 -0
  324. package/dist/cjs/Resource.js.map +1 -0
  325. package/dist/cjs/Runtime.js +135 -0
  326. package/dist/cjs/Runtime.js.map +1 -0
  327. package/dist/cjs/RuntimeFlags.js +283 -0
  328. package/dist/cjs/RuntimeFlags.js.map +1 -0
  329. package/dist/cjs/RuntimeFlagsPatch.js +166 -0
  330. package/dist/cjs/RuntimeFlagsPatch.js.map +1 -0
  331. package/dist/cjs/STM.js +1013 -0
  332. package/dist/cjs/STM.js.map +1 -0
  333. package/dist/cjs/Schedule.js +838 -0
  334. package/dist/cjs/Schedule.js.map +1 -0
  335. package/dist/cjs/ScheduleDecision.js +58 -0
  336. package/dist/cjs/ScheduleDecision.js.map +1 -0
  337. package/dist/cjs/ScheduleInterval.js +131 -0
  338. package/dist/cjs/ScheduleInterval.js.map +1 -0
  339. package/dist/cjs/ScheduleIntervals.js +109 -0
  340. package/dist/cjs/ScheduleIntervals.js.map +1 -0
  341. package/dist/cjs/Scheduler.js +332 -0
  342. package/dist/cjs/Scheduler.js.map +1 -0
  343. package/dist/cjs/Scope.js +114 -0
  344. package/dist/cjs/Scope.js.map +1 -0
  345. package/dist/cjs/ScopedCache.js +55 -0
  346. package/dist/cjs/ScopedCache.js.map +1 -0
  347. package/dist/cjs/ScopedRef.js +73 -0
  348. package/dist/cjs/ScopedRef.js.map +1 -0
  349. package/dist/cjs/Secret.js +68 -0
  350. package/dist/cjs/Secret.js.map +1 -0
  351. package/dist/cjs/SingleProducerAsyncInput.js +38 -0
  352. package/dist/cjs/SingleProducerAsyncInput.js.map +1 -0
  353. package/dist/cjs/Sink.js +884 -0
  354. package/dist/cjs/Sink.js.map +1 -0
  355. package/dist/cjs/SortedMap.js +190 -0
  356. package/dist/cjs/SortedMap.js.map +1 -0
  357. package/dist/cjs/SortedSet.js +269 -0
  358. package/dist/cjs/SortedSet.js.map +1 -0
  359. package/dist/cjs/Stream.js +2581 -0
  360. package/dist/cjs/Stream.js.map +1 -0
  361. package/dist/cjs/StreamEmit.js +6 -0
  362. package/dist/cjs/StreamEmit.js.map +1 -0
  363. package/dist/cjs/StreamHaltStrategy.js +87 -0
  364. package/dist/cjs/StreamHaltStrategy.js.map +1 -0
  365. package/dist/cjs/Streamable.js +69 -0
  366. package/dist/cjs/Streamable.js.map +1 -0
  367. package/dist/cjs/String.js +601 -0
  368. package/dist/cjs/String.js.map +1 -0
  369. package/dist/cjs/Struct.js +153 -0
  370. package/dist/cjs/Struct.js.map +1 -0
  371. package/dist/cjs/SubscriptionRef.js +147 -0
  372. package/dist/cjs/SubscriptionRef.js.map +1 -0
  373. package/dist/cjs/Supervisor.js +139 -0
  374. package/dist/cjs/Supervisor.js.map +1 -0
  375. package/dist/cjs/Symbol.js +58 -0
  376. package/dist/cjs/Symbol.js.map +1 -0
  377. package/dist/cjs/SynchronizedRef.js +150 -0
  378. package/dist/cjs/SynchronizedRef.js.map +1 -0
  379. package/dist/cjs/TArray.js +338 -0
  380. package/dist/cjs/TArray.js.map +1 -0
  381. package/dist/cjs/TDeferred.js +64 -0
  382. package/dist/cjs/TDeferred.js.map +1 -0
  383. package/dist/cjs/TMap.js +310 -0
  384. package/dist/cjs/TMap.js.map +1 -0
  385. package/dist/cjs/TPriorityQueue.js +167 -0
  386. package/dist/cjs/TPriorityQueue.js.map +1 -0
  387. package/dist/cjs/TPubSub.js +154 -0
  388. package/dist/cjs/TPubSub.js.map +1 -0
  389. package/dist/cjs/TQueue.js +261 -0
  390. package/dist/cjs/TQueue.js.map +1 -0
  391. package/dist/cjs/TRandom.js +96 -0
  392. package/dist/cjs/TRandom.js.map +1 -0
  393. package/dist/cjs/TReentrantLock.js +173 -0
  394. package/dist/cjs/TReentrantLock.js.map +1 -0
  395. package/dist/cjs/TRef.js +107 -0
  396. package/dist/cjs/TRef.js.map +1 -0
  397. package/dist/cjs/TSemaphore.js +97 -0
  398. package/dist/cjs/TSemaphore.js.map +1 -0
  399. package/dist/cjs/TSet.js +232 -0
  400. package/dist/cjs/TSet.js.map +1 -0
  401. package/dist/cjs/Take.js +179 -0
  402. package/dist/cjs/Take.js.map +1 -0
  403. package/dist/cjs/TestAnnotation.js +131 -0
  404. package/dist/cjs/TestAnnotation.js.map +1 -0
  405. package/dist/cjs/TestAnnotationMap.js +90 -0
  406. package/dist/cjs/TestAnnotationMap.js.map +1 -0
  407. package/dist/cjs/TestAnnotations.js +95 -0
  408. package/dist/cjs/TestAnnotations.js.map +1 -0
  409. package/dist/cjs/TestClock.js +389 -0
  410. package/dist/cjs/TestClock.js.map +1 -0
  411. package/dist/cjs/TestConfig.js +46 -0
  412. package/dist/cjs/TestConfig.js.map +1 -0
  413. package/dist/cjs/TestContext.js +52 -0
  414. package/dist/cjs/TestContext.js.map +1 -0
  415. package/dist/cjs/TestLive.js +63 -0
  416. package/dist/cjs/TestLive.js.map +1 -0
  417. package/dist/cjs/TestServices.js +279 -0
  418. package/dist/cjs/TestServices.js.map +1 -0
  419. package/dist/cjs/TestSized.js +70 -0
  420. package/dist/cjs/TestSized.js.map +1 -0
  421. package/dist/cjs/Tracer.js +63 -0
  422. package/dist/cjs/Tracer.js.map +1 -0
  423. package/dist/cjs/Tuple.js +191 -0
  424. package/dist/cjs/Tuple.js.map +1 -0
  425. package/dist/cjs/Types.js +6 -0
  426. package/dist/cjs/Types.js.map +1 -0
  427. package/dist/cjs/Unify.js +16 -0
  428. package/dist/cjs/Unify.js.map +1 -0
  429. package/dist/cjs/UpstreamPullRequest.js +83 -0
  430. package/dist/cjs/UpstreamPullRequest.js.map +1 -0
  431. package/dist/cjs/UpstreamPullStrategy.js +83 -0
  432. package/dist/cjs/UpstreamPullStrategy.js.map +1 -0
  433. package/dist/cjs/Utils.js +289 -0
  434. package/dist/cjs/Utils.js.map +1 -0
  435. package/dist/cjs/index.js +357 -0
  436. package/dist/cjs/index.js.map +1 -0
  437. package/dist/cjs/internal/Iterable.js +61 -0
  438. package/dist/cjs/internal/Iterable.js.map +1 -0
  439. package/dist/cjs/internal/blockedRequests.js +389 -0
  440. package/dist/cjs/internal/blockedRequests.js.map +1 -0
  441. package/dist/cjs/internal/cache.js +511 -0
  442. package/dist/cjs/internal/cache.js.map +1 -0
  443. package/dist/cjs/internal/cause.js +931 -0
  444. package/dist/cjs/internal/cause.js.map +1 -0
  445. package/dist/cjs/internal/channel/channelExecutor.js +722 -0
  446. package/dist/cjs/internal/channel/channelExecutor.js.map +1 -0
  447. package/dist/cjs/internal/channel/channelState.js +101 -0
  448. package/dist/cjs/internal/channel/channelState.js.map +1 -0
  449. package/dist/cjs/internal/channel/childExecutorDecision.js +98 -0
  450. package/dist/cjs/internal/channel/childExecutorDecision.js.map +1 -0
  451. package/dist/cjs/internal/channel/continuation.js +81 -0
  452. package/dist/cjs/internal/channel/continuation.js.map +1 -0
  453. package/dist/cjs/internal/channel/mergeDecision.js +88 -0
  454. package/dist/cjs/internal/channel/mergeDecision.js.map +1 -0
  455. package/dist/cjs/internal/channel/mergeState.js +107 -0
  456. package/dist/cjs/internal/channel/mergeState.js.map +1 -0
  457. package/dist/cjs/internal/channel/mergeStrategy.js +82 -0
  458. package/dist/cjs/internal/channel/mergeStrategy.js.map +1 -0
  459. package/dist/cjs/internal/channel/singleProducerAsyncInput.js +195 -0
  460. package/dist/cjs/internal/channel/singleProducerAsyncInput.js.map +1 -0
  461. package/dist/cjs/internal/channel/subexecutor.js +187 -0
  462. package/dist/cjs/internal/channel/subexecutor.js.map +1 -0
  463. package/dist/cjs/internal/channel/upstreamPullRequest.js +88 -0
  464. package/dist/cjs/internal/channel/upstreamPullRequest.js.map +1 -0
  465. package/dist/cjs/internal/channel/upstreamPullStrategy.js +88 -0
  466. package/dist/cjs/internal/channel/upstreamPullStrategy.js.map +1 -0
  467. package/dist/cjs/internal/channel.js +647 -0
  468. package/dist/cjs/internal/channel.js.map +1 -0
  469. package/dist/cjs/internal/clock.js +106 -0
  470. package/dist/cjs/internal/clock.js.map +1 -0
  471. package/dist/cjs/internal/completedRequestMap.js +11 -0
  472. package/dist/cjs/internal/completedRequestMap.js.map +1 -0
  473. package/dist/cjs/internal/concurrency.js +61 -0
  474. package/dist/cjs/internal/concurrency.js.map +1 -0
  475. package/dist/cjs/internal/config.js +371 -0
  476. package/dist/cjs/internal/config.js.map +1 -0
  477. package/dist/cjs/internal/configError.js +295 -0
  478. package/dist/cjs/internal/configError.js.map +1 -0
  479. package/dist/cjs/internal/configProvider/pathPatch.js +107 -0
  480. package/dist/cjs/internal/configProvider/pathPatch.js.map +1 -0
  481. package/dist/cjs/internal/configProvider.js +469 -0
  482. package/dist/cjs/internal/configProvider.js.map +1 -0
  483. package/dist/cjs/internal/console.js +103 -0
  484. package/dist/cjs/internal/console.js.map +1 -0
  485. package/dist/cjs/internal/context.js +228 -0
  486. package/dist/cjs/internal/context.js.map +1 -0
  487. package/dist/cjs/internal/core-effect.js +848 -0
  488. package/dist/cjs/internal/core-effect.js.map +1 -0
  489. package/dist/cjs/internal/core-stream.js +283 -0
  490. package/dist/cjs/internal/core-stream.js.map +1 -0
  491. package/dist/cjs/internal/core.js +1771 -0
  492. package/dist/cjs/internal/core.js.map +1 -0
  493. package/dist/cjs/internal/data.js +61 -0
  494. package/dist/cjs/internal/data.js.map +1 -0
  495. package/dist/cjs/internal/dataSource.js +109 -0
  496. package/dist/cjs/internal/dataSource.js.map +1 -0
  497. package/dist/cjs/internal/defaultServices/console.js +123 -0
  498. package/dist/cjs/internal/defaultServices/console.js.map +1 -0
  499. package/dist/cjs/internal/defaultServices.js +104 -0
  500. package/dist/cjs/internal/defaultServices.js.map +1 -0
  501. package/dist/cjs/internal/deferred.js +60 -0
  502. package/dist/cjs/internal/deferred.js.map +1 -0
  503. package/dist/cjs/internal/differ/chunkPatch.js +163 -0
  504. package/dist/cjs/internal/differ/chunkPatch.js.map +1 -0
  505. package/dist/cjs/internal/differ/contextPatch.js +176 -0
  506. package/dist/cjs/internal/differ/contextPatch.js.map +1 -0
  507. package/dist/cjs/internal/differ/hashMapPatch.js +163 -0
  508. package/dist/cjs/internal/differ/hashMapPatch.js.map +1 -0
  509. package/dist/cjs/internal/differ/hashSetPatch.js +137 -0
  510. package/dist/cjs/internal/differ/hashSetPatch.js.map +1 -0
  511. package/dist/cjs/internal/differ/orPatch.js +208 -0
  512. package/dist/cjs/internal/differ/orPatch.js.map +1 -0
  513. package/dist/cjs/internal/differ/readonlyArrayPatch.js +160 -0
  514. package/dist/cjs/internal/differ/readonlyArrayPatch.js.map +1 -0
  515. package/dist/cjs/internal/differ.js +169 -0
  516. package/dist/cjs/internal/differ.js.map +1 -0
  517. package/dist/cjs/internal/effect/circular.js +321 -0
  518. package/dist/cjs/internal/effect/circular.js.map +1 -0
  519. package/dist/cjs/internal/effectable.js +140 -0
  520. package/dist/cjs/internal/effectable.js.map +1 -0
  521. package/dist/cjs/internal/either.js +124 -0
  522. package/dist/cjs/internal/either.js.map +1 -0
  523. package/dist/cjs/internal/encoding/base64.js +101 -0
  524. package/dist/cjs/internal/encoding/base64.js.map +1 -0
  525. package/dist/cjs/internal/encoding/base64Url.js +53 -0
  526. package/dist/cjs/internal/encoding/base64Url.js.map +1 -0
  527. package/dist/cjs/internal/encoding/common.js +30 -0
  528. package/dist/cjs/internal/encoding/common.js.map +1 -0
  529. package/dist/cjs/internal/encoding/hex.js +81 -0
  530. package/dist/cjs/internal/encoding/hex.js.map +1 -0
  531. package/dist/cjs/internal/executionStrategy.js +54 -0
  532. package/dist/cjs/internal/executionStrategy.js.map +1 -0
  533. package/dist/cjs/internal/fiber.js +269 -0
  534. package/dist/cjs/internal/fiber.js.map +1 -0
  535. package/dist/cjs/internal/fiberId.js +259 -0
  536. package/dist/cjs/internal/fiberId.js.map +1 -0
  537. package/dist/cjs/internal/fiberMessage.js +38 -0
  538. package/dist/cjs/internal/fiberMessage.js.map +1 -0
  539. package/dist/cjs/internal/fiberRefs/patch.js +139 -0
  540. package/dist/cjs/internal/fiberRefs/patch.js.map +1 -0
  541. package/dist/cjs/internal/fiberRefs.js +227 -0
  542. package/dist/cjs/internal/fiberRefs.js.map +1 -0
  543. package/dist/cjs/internal/fiberRuntime.js +1921 -0
  544. package/dist/cjs/internal/fiberRuntime.js.map +1 -0
  545. package/dist/cjs/internal/fiberScope.js +76 -0
  546. package/dist/cjs/internal/fiberScope.js.map +1 -0
  547. package/dist/cjs/internal/fiberStatus.js +108 -0
  548. package/dist/cjs/internal/fiberStatus.js.map +1 -0
  549. package/dist/cjs/internal/groupBy.js +235 -0
  550. package/dist/cjs/internal/groupBy.js.map +1 -0
  551. package/dist/cjs/internal/hashMap/array.js +57 -0
  552. package/dist/cjs/internal/hashMap/array.js.map +1 -0
  553. package/dist/cjs/internal/hashMap/bitwise.js +38 -0
  554. package/dist/cjs/internal/hashMap/bitwise.js.map +1 -0
  555. package/dist/cjs/internal/hashMap/config.js +17 -0
  556. package/dist/cjs/internal/hashMap/config.js.map +1 -0
  557. package/dist/cjs/internal/hashMap/keySet.js +12 -0
  558. package/dist/cjs/internal/hashMap/keySet.js.map +1 -0
  559. package/dist/cjs/internal/hashMap/node.js +297 -0
  560. package/dist/cjs/internal/hashMap/node.js.map +1 -0
  561. package/dist/cjs/internal/hashMap.js +381 -0
  562. package/dist/cjs/internal/hashMap.js.map +1 -0
  563. package/dist/cjs/internal/hashSet.js +222 -0
  564. package/dist/cjs/internal/hashSet.js.map +1 -0
  565. package/dist/cjs/internal/internalize.js +15 -0
  566. package/dist/cjs/internal/internalize.js.map +1 -0
  567. package/dist/cjs/internal/keyedPool.js +194 -0
  568. package/dist/cjs/internal/keyedPool.js.map +1 -0
  569. package/dist/cjs/internal/layer/circular.js +101 -0
  570. package/dist/cjs/internal/layer/circular.js.map +1 -0
  571. package/dist/cjs/internal/layer.js +526 -0
  572. package/dist/cjs/internal/layer.js.map +1 -0
  573. package/dist/cjs/internal/logSpan.js +21 -0
  574. package/dist/cjs/internal/logSpan.js.map +1 -0
  575. package/dist/cjs/internal/logger-circular.js +50 -0
  576. package/dist/cjs/internal/logger-circular.js.map +1 -0
  577. package/dist/cjs/internal/logger.js +229 -0
  578. package/dist/cjs/internal/logger.js.map +1 -0
  579. package/dist/cjs/internal/matcher.js +337 -0
  580. package/dist/cjs/internal/matcher.js.map +1 -0
  581. package/dist/cjs/internal/metric/boundaries.js +77 -0
  582. package/dist/cjs/internal/metric/boundaries.js.map +1 -0
  583. package/dist/cjs/internal/metric/hook.js +387 -0
  584. package/dist/cjs/internal/metric/hook.js.map +1 -0
  585. package/dist/cjs/internal/metric/key.js +97 -0
  586. package/dist/cjs/internal/metric/key.js.map +1 -0
  587. package/dist/cjs/internal/metric/keyType.js +243 -0
  588. package/dist/cjs/internal/metric/keyType.js.map +1 -0
  589. package/dist/cjs/internal/metric/label.js +69 -0
  590. package/dist/cjs/internal/metric/label.js.map +1 -0
  591. package/dist/cjs/internal/metric/pair.js +40 -0
  592. package/dist/cjs/internal/metric/pair.js.map +1 -0
  593. package/dist/cjs/internal/metric/polling.js +99 -0
  594. package/dist/cjs/internal/metric/polling.js.map +1 -0
  595. package/dist/cjs/internal/metric/registry.js +137 -0
  596. package/dist/cjs/internal/metric/registry.js.map +1 -0
  597. package/dist/cjs/internal/metric/state.js +229 -0
  598. package/dist/cjs/internal/metric/state.js.map +1 -0
  599. package/dist/cjs/internal/metric.js +227 -0
  600. package/dist/cjs/internal/metric.js.map +1 -0
  601. package/dist/cjs/internal/opCodes/cause.js +19 -0
  602. package/dist/cjs/internal/opCodes/cause.js.map +1 -0
  603. package/dist/cjs/internal/opCodes/channel.js +35 -0
  604. package/dist/cjs/internal/opCodes/channel.js.map +1 -0
  605. package/dist/cjs/internal/opCodes/channelChildExecutorDecision.js +13 -0
  606. package/dist/cjs/internal/opCodes/channelChildExecutorDecision.js.map +1 -0
  607. package/dist/cjs/internal/opCodes/channelMergeDecision.js +11 -0
  608. package/dist/cjs/internal/opCodes/channelMergeDecision.js.map +1 -0
  609. package/dist/cjs/internal/opCodes/channelMergeState.js +13 -0
  610. package/dist/cjs/internal/opCodes/channelMergeState.js.map +1 -0
  611. package/dist/cjs/internal/opCodes/channelMergeStrategy.js +11 -0
  612. package/dist/cjs/internal/opCodes/channelMergeStrategy.js.map +1 -0
  613. package/dist/cjs/internal/opCodes/channelState.js +15 -0
  614. package/dist/cjs/internal/opCodes/channelState.js.map +1 -0
  615. package/dist/cjs/internal/opCodes/channelUpstreamPullRequest.js +11 -0
  616. package/dist/cjs/internal/opCodes/channelUpstreamPullRequest.js.map +1 -0
  617. package/dist/cjs/internal/opCodes/channelUpstreamPullStrategy.js +11 -0
  618. package/dist/cjs/internal/opCodes/channelUpstreamPullStrategy.js.map +1 -0
  619. package/dist/cjs/internal/opCodes/config.js +29 -0
  620. package/dist/cjs/internal/opCodes/config.js.map +1 -0
  621. package/dist/cjs/internal/opCodes/configError.js +19 -0
  622. package/dist/cjs/internal/opCodes/configError.js.map +1 -0
  623. package/dist/cjs/internal/opCodes/continuation.js +11 -0
  624. package/dist/cjs/internal/opCodes/continuation.js.map +1 -0
  625. package/dist/cjs/internal/opCodes/deferred.js +11 -0
  626. package/dist/cjs/internal/opCodes/deferred.js.map +1 -0
  627. package/dist/cjs/internal/opCodes/effect.js +35 -0
  628. package/dist/cjs/internal/opCodes/effect.js.map +1 -0
  629. package/dist/cjs/internal/opCodes/layer.js +25 -0
  630. package/dist/cjs/internal/opCodes/layer.js.map +1 -0
  631. package/dist/cjs/internal/opCodes/streamHaltStrategy.js +15 -0
  632. package/dist/cjs/internal/opCodes/streamHaltStrategy.js.map +1 -0
  633. package/dist/cjs/internal/option.js +105 -0
  634. package/dist/cjs/internal/option.js.map +1 -0
  635. package/dist/cjs/internal/pool.js +296 -0
  636. package/dist/cjs/internal/pool.js.map +1 -0
  637. package/dist/cjs/internal/pubsub.js +1125 -0
  638. package/dist/cjs/internal/pubsub.js.map +1 -0
  639. package/dist/cjs/internal/query.js +126 -0
  640. package/dist/cjs/internal/query.js.map +1 -0
  641. package/dist/cjs/internal/queue.js +537 -0
  642. package/dist/cjs/internal/queue.js.map +1 -0
  643. package/dist/cjs/internal/random.js +88 -0
  644. package/dist/cjs/internal/random.js.map +1 -0
  645. package/dist/cjs/internal/readonlyArray.js +13 -0
  646. package/dist/cjs/internal/readonlyArray.js.map +1 -0
  647. package/dist/cjs/internal/redBlackTree/iterator.js +224 -0
  648. package/dist/cjs/internal/redBlackTree/iterator.js.map +1 -0
  649. package/dist/cjs/internal/redBlackTree/node.js +55 -0
  650. package/dist/cjs/internal/redBlackTree/node.js.map +1 -0
  651. package/dist/cjs/internal/redBlackTree.js +1056 -0
  652. package/dist/cjs/internal/redBlackTree.js.map +1 -0
  653. package/dist/cjs/internal/ref.js +140 -0
  654. package/dist/cjs/internal/ref.js.map +1 -0
  655. package/dist/cjs/internal/reloadable.js +88 -0
  656. package/dist/cjs/internal/reloadable.js.map +1 -0
  657. package/dist/cjs/internal/request.js +127 -0
  658. package/dist/cjs/internal/request.js.map +1 -0
  659. package/dist/cjs/internal/resource.js +63 -0
  660. package/dist/cjs/internal/resource.js.map +1 -0
  661. package/dist/cjs/internal/ringBuffer.js +88 -0
  662. package/dist/cjs/internal/ringBuffer.js.map +1 -0
  663. package/dist/cjs/internal/runtime.js +288 -0
  664. package/dist/cjs/internal/runtime.js.map +1 -0
  665. package/dist/cjs/internal/runtimeFlags.js +150 -0
  666. package/dist/cjs/internal/runtimeFlags.js.map +1 -0
  667. package/dist/cjs/internal/runtimeFlagsPatch.js +52 -0
  668. package/dist/cjs/internal/runtimeFlagsPatch.js.map +1 -0
  669. package/dist/cjs/internal/schedule/decision.js +68 -0
  670. package/dist/cjs/internal/schedule/decision.js.map +1 -0
  671. package/dist/cjs/internal/schedule/interval.js +107 -0
  672. package/dist/cjs/internal/schedule/interval.js.map +1 -0
  673. package/dist/cjs/internal/schedule/intervals.js +157 -0
  674. package/dist/cjs/internal/schedule/intervals.js.map +1 -0
  675. package/dist/cjs/internal/schedule.js +802 -0
  676. package/dist/cjs/internal/schedule.js.map +1 -0
  677. package/dist/cjs/internal/scopedCache.js +422 -0
  678. package/dist/cjs/internal/scopedCache.js.map +1 -0
  679. package/dist/cjs/internal/scopedRef.js +75 -0
  680. package/dist/cjs/internal/scopedRef.js.map +1 -0
  681. package/dist/cjs/internal/secret.js +90 -0
  682. package/dist/cjs/internal/secret.js.map +1 -0
  683. package/dist/cjs/internal/singleShotGen.js +37 -0
  684. package/dist/cjs/internal/singleShotGen.js.map +1 -0
  685. package/dist/cjs/internal/sink.js +901 -0
  686. package/dist/cjs/internal/sink.js.map +1 -0
  687. package/dist/cjs/internal/stack.js +17 -0
  688. package/dist/cjs/internal/stack.js.map +1 -0
  689. package/dist/cjs/internal/stm/core.js +546 -0
  690. package/dist/cjs/internal/stm/core.js.map +1 -0
  691. package/dist/cjs/internal/stm/opCodes/stm.js +31 -0
  692. package/dist/cjs/internal/stm/opCodes/stm.js.map +1 -0
  693. package/dist/cjs/internal/stm/opCodes/stmState.js +13 -0
  694. package/dist/cjs/internal/stm/opCodes/stmState.js.map +1 -0
  695. package/dist/cjs/internal/stm/opCodes/strategy.js +13 -0
  696. package/dist/cjs/internal/stm/opCodes/strategy.js.map +1 -0
  697. package/dist/cjs/internal/stm/opCodes/tExit.js +17 -0
  698. package/dist/cjs/internal/stm/opCodes/tExit.js.map +1 -0
  699. package/dist/cjs/internal/stm/opCodes/tryCommit.js +11 -0
  700. package/dist/cjs/internal/stm/opCodes/tryCommit.js.map +1 -0
  701. package/dist/cjs/internal/stm/stm/entry.js +81 -0
  702. package/dist/cjs/internal/stm/stm/entry.js.map +1 -0
  703. package/dist/cjs/internal/stm/stm/journal.js +128 -0
  704. package/dist/cjs/internal/stm/stm/journal.js.map +1 -0
  705. package/dist/cjs/internal/stm/stm/opCodes/stm.js +31 -0
  706. package/dist/cjs/internal/stm/stm/opCodes/stm.js.map +1 -0
  707. package/dist/cjs/internal/stm/stm/opCodes/stmState.js +13 -0
  708. package/dist/cjs/internal/stm/stm/opCodes/stmState.js.map +1 -0
  709. package/dist/cjs/internal/stm/stm/opCodes/strategy.js +13 -0
  710. package/dist/cjs/internal/stm/stm/opCodes/strategy.js.map +1 -0
  711. package/dist/cjs/internal/stm/stm/opCodes/tExit.js +17 -0
  712. package/dist/cjs/internal/stm/stm/opCodes/tExit.js.map +1 -0
  713. package/dist/cjs/internal/stm/stm/opCodes/tryCommit.js +11 -0
  714. package/dist/cjs/internal/stm/stm/opCodes/tryCommit.js.map +1 -0
  715. package/dist/cjs/internal/stm/stm/stmState.js +124 -0
  716. package/dist/cjs/internal/stm/stm/stmState.js.map +1 -0
  717. package/dist/cjs/internal/stm/stm/tExit.js +141 -0
  718. package/dist/cjs/internal/stm/stm/tExit.js.map +1 -0
  719. package/dist/cjs/internal/stm/stm/tryCommit.js +49 -0
  720. package/dist/cjs/internal/stm/stm/tryCommit.js.map +1 -0
  721. package/dist/cjs/internal/stm/stm/txnId.js +18 -0
  722. package/dist/cjs/internal/stm/stm/txnId.js.map +1 -0
  723. package/dist/cjs/internal/stm/stm/versioned.js +15 -0
  724. package/dist/cjs/internal/stm/stm/versioned.js.map +1 -0
  725. package/dist/cjs/internal/stm/stm.js +553 -0
  726. package/dist/cjs/internal/stm/stm.js.map +1 -0
  727. package/dist/cjs/internal/stm/tArray.js +282 -0
  728. package/dist/cjs/internal/stm/tArray.js.map +1 -0
  729. package/dist/cjs/internal/stm/tDeferred.js +73 -0
  730. package/dist/cjs/internal/stm/tDeferred.js.map +1 -0
  731. package/dist/cjs/internal/stm/tMap.js +470 -0
  732. package/dist/cjs/internal/stm/tMap.js.map +1 -0
  733. package/dist/cjs/internal/stm/tPriorityQueue.js +180 -0
  734. package/dist/cjs/internal/stm/tPriorityQueue.js.map +1 -0
  735. package/dist/cjs/internal/stm/tPubSub.js +421 -0
  736. package/dist/cjs/internal/stm/tPubSub.js.map +1 -0
  737. package/dist/cjs/internal/stm/tQueue.js +309 -0
  738. package/dist/cjs/internal/stm/tQueue.js.map +1 -0
  739. package/dist/cjs/internal/stm/tRandom.js +116 -0
  740. package/dist/cjs/internal/stm/tRandom.js.map +1 -0
  741. package/dist/cjs/internal/stm/tReentrantLock.js +239 -0
  742. package/dist/cjs/internal/stm/tReentrantLock.js.map +1 -0
  743. package/dist/cjs/internal/stm/tRef.js +130 -0
  744. package/dist/cjs/internal/stm/tRef.js.map +1 -0
  745. package/dist/cjs/internal/stm/tSemaphore.js +96 -0
  746. package/dist/cjs/internal/stm/tSemaphore.js.map +1 -0
  747. package/dist/cjs/internal/stm/tSet.js +128 -0
  748. package/dist/cjs/internal/stm/tSet.js.map +1 -0
  749. package/dist/cjs/internal/stream/debounceState.js +29 -0
  750. package/dist/cjs/internal/stream/debounceState.js.map +1 -0
  751. package/dist/cjs/internal/stream/emit.js +81 -0
  752. package/dist/cjs/internal/stream/emit.js.map +1 -0
  753. package/dist/cjs/internal/stream/haltStrategy.js +99 -0
  754. package/dist/cjs/internal/stream/haltStrategy.js.map +1 -0
  755. package/dist/cjs/internal/stream/handoff.js +89 -0
  756. package/dist/cjs/internal/stream/handoff.js.map +1 -0
  757. package/dist/cjs/internal/stream/handoffSignal.js +31 -0
  758. package/dist/cjs/internal/stream/handoffSignal.js.map +1 -0
  759. package/dist/cjs/internal/stream/pull.js +58 -0
  760. package/dist/cjs/internal/stream/pull.js.map +1 -0
  761. package/dist/cjs/internal/stream/sinkEndReason.js +19 -0
  762. package/dist/cjs/internal/stream/sinkEndReason.js.map +1 -0
  763. package/dist/cjs/internal/stream/zipAllState.js +41 -0
  764. package/dist/cjs/internal/stream/zipAllState.js.map +1 -0
  765. package/dist/cjs/internal/stream/zipChunksState.js +29 -0
  766. package/dist/cjs/internal/stream/zipChunksState.js.map +1 -0
  767. package/dist/cjs/internal/stream.js +2833 -0
  768. package/dist/cjs/internal/stream.js.map +1 -0
  769. package/dist/cjs/internal/string-utils.js +90 -0
  770. package/dist/cjs/internal/string-utils.js.map +1 -0
  771. package/dist/cjs/internal/subscriptionRef.js +89 -0
  772. package/dist/cjs/internal/subscriptionRef.js.map +1 -0
  773. package/dist/cjs/internal/supervisor/patch.js +159 -0
  774. package/dist/cjs/internal/supervisor/patch.js.map +1 -0
  775. package/dist/cjs/internal/supervisor.js +246 -0
  776. package/dist/cjs/internal/supervisor.js.map +1 -0
  777. package/dist/cjs/internal/synchronizedRef.js +75 -0
  778. package/dist/cjs/internal/synchronizedRef.js.map +1 -0
  779. package/dist/cjs/internal/take.js +154 -0
  780. package/dist/cjs/internal/take.js.map +1 -0
  781. package/dist/cjs/internal/testing/sleep.js +14 -0
  782. package/dist/cjs/internal/testing/sleep.js.map +1 -0
  783. package/dist/cjs/internal/testing/suspendedWarningData.js +58 -0
  784. package/dist/cjs/internal/testing/suspendedWarningData.js.map +1 -0
  785. package/dist/cjs/internal/testing/warningData.js +59 -0
  786. package/dist/cjs/internal/testing/warningData.js.map +1 -0
  787. package/dist/cjs/internal/timeout.js +24 -0
  788. package/dist/cjs/internal/timeout.js.map +1 -0
  789. package/dist/cjs/internal/tracer.js +109 -0
  790. package/dist/cjs/internal/tracer.js.map +1 -0
  791. package/dist/cjs/internal/version.js +8 -0
  792. package/dist/cjs/internal/version.js.map +1 -0
  793. package/dist/dts/BigDecimal.d.ts +644 -0
  794. package/dist/dts/BigDecimal.d.ts.map +1 -0
  795. package/dist/dts/BigInt.d.ts +477 -0
  796. package/dist/dts/BigInt.d.ts.map +1 -0
  797. package/dist/dts/Boolean.d.ts +229 -0
  798. package/dist/dts/Boolean.d.ts.map +1 -0
  799. package/dist/dts/Brand.d.ts +230 -0
  800. package/dist/dts/Brand.d.ts.map +1 -0
  801. package/dist/dts/Cache.d.ts +220 -0
  802. package/dist/dts/Cache.d.ts.map +1 -0
  803. package/dist/dts/Cause.d.ts +786 -0
  804. package/dist/dts/Cause.d.ts.map +1 -0
  805. package/dist/dts/Channel.d.ts +1178 -0
  806. package/dist/dts/Channel.d.ts.map +1 -0
  807. package/dist/dts/ChildExecutorDecision.d.ts +123 -0
  808. package/dist/dts/ChildExecutorDecision.d.ts.map +1 -0
  809. package/dist/dts/Chunk.d.ts +793 -0
  810. package/dist/dts/Chunk.d.ts.map +1 -0
  811. package/dist/dts/Clock.d.ts +97 -0
  812. package/dist/dts/Clock.d.ts.map +1 -0
  813. package/dist/dts/Config.d.ts +402 -0
  814. package/dist/dts/Config.d.ts.map +1 -0
  815. package/dist/dts/ConfigError.d.ts +219 -0
  816. package/dist/dts/ConfigError.d.ts.map +1 -0
  817. package/dist/dts/ConfigProvider.d.ts +284 -0
  818. package/dist/dts/ConfigProvider.d.ts.map +1 -0
  819. package/dist/dts/ConfigProviderPathPatch.d.ts +86 -0
  820. package/dist/dts/ConfigProviderPathPatch.d.ts.map +1 -0
  821. package/dist/dts/Console.d.ts +202 -0
  822. package/dist/dts/Console.d.ts.map +1 -0
  823. package/dist/dts/Context.d.ts +340 -0
  824. package/dist/dts/Context.d.ts.map +1 -0
  825. package/dist/dts/Data.d.ts +383 -0
  826. package/dist/dts/Data.d.ts.map +1 -0
  827. package/dist/dts/DefaultServices.d.ts +26 -0
  828. package/dist/dts/DefaultServices.d.ts.map +1 -0
  829. package/dist/dts/Deferred.d.ts +248 -0
  830. package/dist/dts/Deferred.d.ts.map +1 -0
  831. package/dist/dts/Differ.d.ts +341 -0
  832. package/dist/dts/Differ.d.ts.map +1 -0
  833. package/dist/dts/Duration.d.ts +288 -0
  834. package/dist/dts/Duration.d.ts.map +1 -0
  835. package/dist/dts/Effect.d.ts +3861 -0
  836. package/dist/dts/Effect.d.ts.map +1 -0
  837. package/dist/dts/Effectable.d.ts +93 -0
  838. package/dist/dts/Effectable.d.ts.map +1 -0
  839. package/dist/dts/Either.d.ts +505 -0
  840. package/dist/dts/Either.d.ts.map +1 -0
  841. package/dist/dts/Encoding.d.ts +110 -0
  842. package/dist/dts/Encoding.d.ts.map +1 -0
  843. package/dist/dts/Equal.d.ts +34 -0
  844. package/dist/dts/Equal.d.ts.map +1 -0
  845. package/dist/dts/Equivalence.d.ts +134 -0
  846. package/dist/dts/Equivalence.d.ts.map +1 -0
  847. package/dist/dts/ExecutionStrategy.d.ts +100 -0
  848. package/dist/dts/ExecutionStrategy.d.ts.map +1 -0
  849. package/dist/dts/Exit.d.ts +408 -0
  850. package/dist/dts/Exit.d.ts.map +1 -0
  851. package/dist/dts/Fiber.d.ts +570 -0
  852. package/dist/dts/Fiber.d.ts.map +1 -0
  853. package/dist/dts/FiberId.d.ts +165 -0
  854. package/dist/dts/FiberId.d.ts.map +1 -0
  855. package/dist/dts/FiberRef.d.ts +313 -0
  856. package/dist/dts/FiberRef.d.ts.map +1 -0
  857. package/dist/dts/FiberRefs.d.ts +172 -0
  858. package/dist/dts/FiberRefs.d.ts.map +1 -0
  859. package/dist/dts/FiberRefsPatch.d.ts +95 -0
  860. package/dist/dts/FiberRefsPatch.d.ts.map +1 -0
  861. package/dist/dts/FiberStatus.d.ts +94 -0
  862. package/dist/dts/FiberStatus.d.ts.map +1 -0
  863. package/dist/dts/Function.d.ts +371 -0
  864. package/dist/dts/Function.d.ts.map +1 -0
  865. package/dist/dts/GlobalValue.d.ts +5 -0
  866. package/dist/dts/GlobalValue.d.ts.map +1 -0
  867. package/dist/dts/GroupBy.d.ts +87 -0
  868. package/dist/dts/GroupBy.d.ts.map +1 -0
  869. package/dist/dts/HKT.d.ts +41 -0
  870. package/dist/dts/HKT.d.ts.map +1 -0
  871. package/dist/dts/Hash.d.ts +63 -0
  872. package/dist/dts/Hash.d.ts.map +1 -0
  873. package/dist/dts/HashMap.d.ts +377 -0
  874. package/dist/dts/HashMap.d.ts.map +1 -0
  875. package/dist/dts/HashSet.d.ts +267 -0
  876. package/dist/dts/HashSet.d.ts.map +1 -0
  877. package/dist/dts/Inspectable.d.ts +31 -0
  878. package/dist/dts/Inspectable.d.ts.map +1 -0
  879. package/dist/dts/KeyedPool.d.ts +148 -0
  880. package/dist/dts/KeyedPool.d.ts.map +1 -0
  881. package/dist/dts/Layer.d.ts +764 -0
  882. package/dist/dts/Layer.d.ts.map +1 -0
  883. package/dist/dts/List.d.ts +485 -0
  884. package/dist/dts/List.d.ts.map +1 -0
  885. package/dist/dts/LogLevel.d.ts +203 -0
  886. package/dist/dts/LogLevel.d.ts.map +1 -0
  887. package/dist/dts/LogSpan.d.ts +19 -0
  888. package/dist/dts/LogSpan.d.ts.map +1 -0
  889. package/dist/dts/Logger.d.ts +248 -0
  890. package/dist/dts/Logger.d.ts.map +1 -0
  891. package/dist/dts/Match.d.ts +424 -0
  892. package/dist/dts/Match.d.ts.map +1 -0
  893. package/dist/dts/MergeDecision.d.ts +78 -0
  894. package/dist/dts/MergeDecision.d.ts.map +1 -0
  895. package/dist/dts/MergeState.d.ts +122 -0
  896. package/dist/dts/MergeState.d.ts.map +1 -0
  897. package/dist/dts/MergeStrategy.d.ts +92 -0
  898. package/dist/dts/MergeStrategy.d.ts.map +1 -0
  899. package/dist/dts/Metric.d.ts +604 -0
  900. package/dist/dts/Metric.d.ts.map +1 -0
  901. package/dist/dts/MetricBoundaries.d.ts +58 -0
  902. package/dist/dts/MetricBoundaries.d.ts.map +1 -0
  903. package/dist/dts/MetricHook.d.ts +121 -0
  904. package/dist/dts/MetricHook.d.ts.map +1 -0
  905. package/dist/dts/MetricKey.d.ts +171 -0
  906. package/dist/dts/MetricKey.d.ts.map +1 -0
  907. package/dist/dts/MetricKeyType.d.ts +221 -0
  908. package/dist/dts/MetricKeyType.d.ts.map +1 -0
  909. package/dist/dts/MetricLabel.d.ts +42 -0
  910. package/dist/dts/MetricLabel.d.ts.map +1 -0
  911. package/dist/dts/MetricPair.d.ts +54 -0
  912. package/dist/dts/MetricPair.d.ts.map +1 -0
  913. package/dist/dts/MetricPolling.d.ts +111 -0
  914. package/dist/dts/MetricPolling.d.ts.map +1 -0
  915. package/dist/dts/MetricRegistry.d.ts +34 -0
  916. package/dist/dts/MetricRegistry.d.ts.map +1 -0
  917. package/dist/dts/MetricState.d.ts +222 -0
  918. package/dist/dts/MetricState.d.ts.map +1 -0
  919. package/dist/dts/MutableHashMap.d.ts +89 -0
  920. package/dist/dts/MutableHashMap.d.ts.map +1 -0
  921. package/dist/dts/MutableHashSet.d.ts +63 -0
  922. package/dist/dts/MutableHashSet.d.ts.map +1 -0
  923. package/dist/dts/MutableList.d.ts +114 -0
  924. package/dist/dts/MutableList.d.ts.map +1 -0
  925. package/dist/dts/MutableQueue.d.ts +127 -0
  926. package/dist/dts/MutableQueue.d.ts.map +1 -0
  927. package/dist/dts/MutableRef.d.ts +118 -0
  928. package/dist/dts/MutableRef.d.ts.map +1 -0
  929. package/dist/dts/NonEmptyIterable.d.ts +21 -0
  930. package/dist/dts/NonEmptyIterable.d.ts.map +1 -0
  931. package/dist/dts/Number.d.ts +400 -0
  932. package/dist/dts/Number.d.ts.map +1 -0
  933. package/dist/dts/Option.d.ts +982 -0
  934. package/dist/dts/Option.d.ts.map +1 -0
  935. package/dist/dts/Order.d.ts +234 -0
  936. package/dist/dts/Order.d.ts.map +1 -0
  937. package/dist/dts/Ordering.d.ts +83 -0
  938. package/dist/dts/Ordering.d.ts.map +1 -0
  939. package/dist/dts/Pipeable.d.ts +35 -0
  940. package/dist/dts/Pipeable.d.ts.map +1 -0
  941. package/dist/dts/Pool.d.ts +135 -0
  942. package/dist/dts/Pool.d.ts.map +1 -0
  943. package/dist/dts/Predicate.d.ts +629 -0
  944. package/dist/dts/Predicate.d.ts.map +1 -0
  945. package/dist/dts/PrimaryKey.d.ts +21 -0
  946. package/dist/dts/PrimaryKey.d.ts.map +1 -0
  947. package/dist/dts/PubSub.d.ts +158 -0
  948. package/dist/dts/PubSub.d.ts.map +1 -0
  949. package/dist/dts/Queue.d.ts +521 -0
  950. package/dist/dts/Queue.d.ts.map +1 -0
  951. package/dist/dts/Random.d.ts +101 -0
  952. package/dist/dts/Random.d.ts.map +1 -0
  953. package/dist/dts/ReadonlyArray.d.ts +1243 -0
  954. package/dist/dts/ReadonlyArray.d.ts.map +1 -0
  955. package/dist/dts/ReadonlyRecord.d.ts +671 -0
  956. package/dist/dts/ReadonlyRecord.d.ts.map +1 -0
  957. package/dist/dts/RedBlackTree.d.ts +376 -0
  958. package/dist/dts/RedBlackTree.d.ts.map +1 -0
  959. package/dist/dts/Ref.d.ts +142 -0
  960. package/dist/dts/Ref.d.ts.map +1 -0
  961. package/dist/dts/Reloadable.d.ts +102 -0
  962. package/dist/dts/Reloadable.d.ts.map +1 -0
  963. package/dist/dts/Request.d.ts +303 -0
  964. package/dist/dts/Request.d.ts.map +1 -0
  965. package/dist/dts/RequestBlock.d.ts +94 -0
  966. package/dist/dts/RequestBlock.d.ts.map +1 -0
  967. package/dist/dts/RequestResolver.d.ts +235 -0
  968. package/dist/dts/RequestResolver.d.ts.map +1 -0
  969. package/dist/dts/Resource.d.ts +79 -0
  970. package/dist/dts/Resource.d.ts.map +1 -0
  971. package/dist/dts/Runtime.d.ts +180 -0
  972. package/dist/dts/Runtime.d.ts.map +1 -0
  973. package/dist/dts/RuntimeFlags.d.ts +297 -0
  974. package/dist/dts/RuntimeFlags.d.ts.map +1 -0
  975. package/dist/dts/RuntimeFlagsPatch.d.ts +161 -0
  976. package/dist/dts/RuntimeFlagsPatch.d.ts.map +1 -0
  977. package/dist/dts/STM.d.ts +1552 -0
  978. package/dist/dts/STM.d.ts.map +1 -0
  979. package/dist/dts/Schedule.d.ts +1082 -0
  980. package/dist/dts/Schedule.d.ts.map +1 -0
  981. package/dist/dts/ScheduleDecision.d.ts +50 -0
  982. package/dist/dts/ScheduleDecision.d.ts.map +1 -0
  983. package/dist/dts/ScheduleInterval.d.ts +136 -0
  984. package/dist/dts/ScheduleInterval.d.ts.map +1 -0
  985. package/dist/dts/ScheduleIntervals.d.ts +109 -0
  986. package/dist/dts/ScheduleIntervals.d.ts.map +1 -0
  987. package/dist/dts/Scheduler.d.ts +158 -0
  988. package/dist/dts/Scheduler.d.ts.map +1 -0
  989. package/dist/dts/Scope.d.ts +131 -0
  990. package/dist/dts/Scope.d.ts.map +1 -0
  991. package/dist/dts/ScopedCache.d.ts +127 -0
  992. package/dist/dts/ScopedCache.d.ts.map +1 -0
  993. package/dist/dts/ScopedRef.d.ts +83 -0
  994. package/dist/dts/ScopedRef.d.ts.map +1 -0
  995. package/dist/dts/Secret.d.ts +63 -0
  996. package/dist/dts/Secret.d.ts.map +1 -0
  997. package/dist/dts/SingleProducerAsyncInput.d.ts +57 -0
  998. package/dist/dts/SingleProducerAsyncInput.d.ts.map +1 -0
  999. package/dist/dts/Sink.d.ts +1131 -0
  1000. package/dist/dts/Sink.d.ts.map +1 -0
  1001. package/dist/dts/SortedMap.d.ts +145 -0
  1002. package/dist/dts/SortedMap.d.ts.map +1 -0
  1003. package/dist/dts/SortedSet.d.ts +185 -0
  1004. package/dist/dts/SortedSet.d.ts.map +1 -0
  1005. package/dist/dts/Stream.d.ts +3601 -0
  1006. package/dist/dts/Stream.d.ts.map +1 -0
  1007. package/dist/dts/StreamEmit.d.ts +73 -0
  1008. package/dist/dts/StreamEmit.d.ts.map +1 -0
  1009. package/dist/dts/StreamHaltStrategy.d.ts +92 -0
  1010. package/dist/dts/StreamHaltStrategy.d.ts.map +1 -0
  1011. package/dist/dts/Streamable.d.ts +27 -0
  1012. package/dist/dts/Streamable.d.ts.map +1 -0
  1013. package/dist/dts/String.d.ts +515 -0
  1014. package/dist/dts/String.d.ts.map +1 -0
  1015. package/dist/dts/Struct.d.ts +110 -0
  1016. package/dist/dts/Struct.d.ts.map +1 -0
  1017. package/dist/dts/SubscriptionRef.d.ts +212 -0
  1018. package/dist/dts/SubscriptionRef.d.ts.map +1 -0
  1019. package/dist/dts/Supervisor.d.ts +171 -0
  1020. package/dist/dts/Supervisor.d.ts.map +1 -0
  1021. package/dist/dts/Symbol.d.ts +25 -0
  1022. package/dist/dts/Symbol.d.ts.map +1 -0
  1023. package/dist/dts/SynchronizedRef.d.ts +206 -0
  1024. package/dist/dts/SynchronizedRef.d.ts.map +1 -0
  1025. package/dist/dts/TArray.d.ts +431 -0
  1026. package/dist/dts/TArray.d.ts.map +1 -0
  1027. package/dist/dts/TDeferred.d.ts +80 -0
  1028. package/dist/dts/TDeferred.d.ts.map +1 -0
  1029. package/dist/dts/TMap.d.ts +414 -0
  1030. package/dist/dts/TMap.d.ts.map +1 -0
  1031. package/dist/dts/TPriorityQueue.d.ts +190 -0
  1032. package/dist/dts/TPriorityQueue.d.ts.map +1 -0
  1033. package/dist/dts/TPubSub.d.ts +150 -0
  1034. package/dist/dts/TPubSub.d.ts.map +1 -0
  1035. package/dist/dts/TQueue.d.ts +384 -0
  1036. package/dist/dts/TQueue.d.ts.map +1 -0
  1037. package/dist/dts/TRandom.d.ts +108 -0
  1038. package/dist/dts/TRandom.d.ts.map +1 -0
  1039. package/dist/dts/TReentrantLock.d.ts +194 -0
  1040. package/dist/dts/TReentrantLock.d.ts.map +1 -0
  1041. package/dist/dts/TRef.d.ts +146 -0
  1042. package/dist/dts/TRef.d.ts.map +1 -0
  1043. package/dist/dts/TSemaphore.d.ts +105 -0
  1044. package/dist/dts/TSemaphore.d.ts.map +1 -0
  1045. package/dist/dts/TSet.d.ts +310 -0
  1046. package/dist/dts/TSet.d.ts.map +1 -0
  1047. package/dist/dts/Take.d.ts +215 -0
  1048. package/dist/dts/Take.d.ts.map +1 -0
  1049. package/dist/dts/TestAnnotation.d.ts +73 -0
  1050. package/dist/dts/TestAnnotation.d.ts.map +1 -0
  1051. package/dist/dts/TestAnnotationMap.d.ts +55 -0
  1052. package/dist/dts/TestAnnotationMap.d.ts.map +1 -0
  1053. package/dist/dts/TestAnnotations.d.ts +59 -0
  1054. package/dist/dts/TestAnnotations.d.ts.map +1 -0
  1055. package/dist/dts/TestClock.d.ts +149 -0
  1056. package/dist/dts/TestClock.d.ts.map +1 -0
  1057. package/dist/dts/TestConfig.d.ts +45 -0
  1058. package/dist/dts/TestConfig.d.ts.map +1 -0
  1059. package/dist/dts/TestContext.d.ts +15 -0
  1060. package/dist/dts/TestContext.d.ts.map +1 -0
  1061. package/dist/dts/TestLive.d.ts +35 -0
  1062. package/dist/dts/TestLive.d.ts.map +1 -0
  1063. package/dist/dts/TestServices.d.ts +231 -0
  1064. package/dist/dts/TestServices.d.ts.map +1 -0
  1065. package/dist/dts/TestSized.d.ts +36 -0
  1066. package/dist/dts/TestSized.d.ts.map +1 -0
  1067. package/dist/dts/Tracer.d.ts +112 -0
  1068. package/dist/dts/Tracer.d.ts.map +1 -0
  1069. package/dist/dts/Tuple.d.ts +173 -0
  1070. package/dist/dts/Tuple.d.ts.map +1 -0
  1071. package/dist/dts/Types.d.ts +161 -0
  1072. package/dist/dts/Types.d.ts.map +1 -0
  1073. package/dist/dts/Unify.d.ts +62 -0
  1074. package/dist/dts/Unify.d.ts.map +1 -0
  1075. package/dist/dts/UpstreamPullRequest.d.ts +97 -0
  1076. package/dist/dts/UpstreamPullRequest.d.ts.map +1 -0
  1077. package/dist/dts/UpstreamPullStrategy.d.ts +98 -0
  1078. package/dist/dts/UpstreamPullStrategy.d.ts.map +1 -0
  1079. package/dist/dts/Utils.d.ts +225 -0
  1080. package/dist/dts/Utils.d.ts.map +1 -0
  1081. package/dist/dts/index.d.ts +722 -0
  1082. package/dist/dts/index.d.ts.map +1 -0
  1083. package/dist/dts/internal/Iterable.d.ts +2 -0
  1084. package/dist/dts/internal/Iterable.d.ts.map +1 -0
  1085. package/dist/dts/internal/blockedRequests.d.ts +2 -0
  1086. package/dist/dts/internal/blockedRequests.d.ts.map +1 -0
  1087. package/dist/dts/internal/cache.d.ts +2 -0
  1088. package/dist/dts/internal/cache.d.ts.map +1 -0
  1089. package/dist/dts/internal/cause.d.ts +2 -0
  1090. package/dist/dts/internal/cause.d.ts.map +1 -0
  1091. package/dist/dts/internal/channel/channelExecutor.d.ts +3 -0
  1092. package/dist/dts/internal/channel/channelExecutor.d.ts.map +1 -0
  1093. package/dist/dts/internal/channel/channelState.d.ts +2 -0
  1094. package/dist/dts/internal/channel/channelState.d.ts.map +1 -0
  1095. package/dist/dts/internal/channel/childExecutorDecision.d.ts +2 -0
  1096. package/dist/dts/internal/channel/childExecutorDecision.d.ts.map +1 -0
  1097. package/dist/dts/internal/channel/continuation.d.ts +2 -0
  1098. package/dist/dts/internal/channel/continuation.d.ts.map +1 -0
  1099. package/dist/dts/internal/channel/mergeDecision.d.ts +2 -0
  1100. package/dist/dts/internal/channel/mergeDecision.d.ts.map +1 -0
  1101. package/dist/dts/internal/channel/mergeState.d.ts +2 -0
  1102. package/dist/dts/internal/channel/mergeState.d.ts.map +1 -0
  1103. package/dist/dts/internal/channel/mergeStrategy.d.ts +2 -0
  1104. package/dist/dts/internal/channel/mergeStrategy.d.ts.map +1 -0
  1105. package/dist/dts/internal/channel/singleProducerAsyncInput.d.ts +2 -0
  1106. package/dist/dts/internal/channel/singleProducerAsyncInput.d.ts.map +1 -0
  1107. package/dist/dts/internal/channel/subexecutor.d.ts +2 -0
  1108. package/dist/dts/internal/channel/subexecutor.d.ts.map +1 -0
  1109. package/dist/dts/internal/channel/upstreamPullRequest.d.ts +2 -0
  1110. package/dist/dts/internal/channel/upstreamPullRequest.d.ts.map +1 -0
  1111. package/dist/dts/internal/channel/upstreamPullStrategy.d.ts +2 -0
  1112. package/dist/dts/internal/channel/upstreamPullStrategy.d.ts.map +1 -0
  1113. package/dist/dts/internal/channel.d.ts +2 -0
  1114. package/dist/dts/internal/channel.d.ts.map +1 -0
  1115. package/dist/dts/internal/clock.d.ts +2 -0
  1116. package/dist/dts/internal/clock.d.ts.map +1 -0
  1117. package/dist/dts/internal/completedRequestMap.d.ts +2 -0
  1118. package/dist/dts/internal/completedRequestMap.d.ts.map +1 -0
  1119. package/dist/dts/internal/concurrency.d.ts +2 -0
  1120. package/dist/dts/internal/concurrency.d.ts.map +1 -0
  1121. package/dist/dts/internal/config.d.ts +2 -0
  1122. package/dist/dts/internal/config.d.ts.map +1 -0
  1123. package/dist/dts/internal/configError.d.ts +2 -0
  1124. package/dist/dts/internal/configError.d.ts.map +1 -0
  1125. package/dist/dts/internal/configProvider/pathPatch.d.ts +2 -0
  1126. package/dist/dts/internal/configProvider/pathPatch.d.ts.map +1 -0
  1127. package/dist/dts/internal/configProvider.d.ts +2 -0
  1128. package/dist/dts/internal/configProvider.d.ts.map +1 -0
  1129. package/dist/dts/internal/console.d.ts +2 -0
  1130. package/dist/dts/internal/console.d.ts.map +1 -0
  1131. package/dist/dts/internal/context.d.ts +2 -0
  1132. package/dist/dts/internal/context.d.ts.map +1 -0
  1133. package/dist/dts/internal/core-effect.d.ts +2 -0
  1134. package/dist/dts/internal/core-effect.d.ts.map +1 -0
  1135. package/dist/dts/internal/core-stream.d.ts +5 -0
  1136. package/dist/dts/internal/core-stream.d.ts.map +1 -0
  1137. package/dist/dts/internal/core.d.ts +2 -0
  1138. package/dist/dts/internal/core.d.ts.map +1 -0
  1139. package/dist/dts/internal/data.d.ts +2 -0
  1140. package/dist/dts/internal/data.d.ts.map +1 -0
  1141. package/dist/dts/internal/dataSource.d.ts +2 -0
  1142. package/dist/dts/internal/dataSource.d.ts.map +1 -0
  1143. package/dist/dts/internal/defaultServices/console.d.ts +2 -0
  1144. package/dist/dts/internal/defaultServices/console.d.ts.map +1 -0
  1145. package/dist/dts/internal/defaultServices.d.ts +10 -0
  1146. package/dist/dts/internal/defaultServices.d.ts.map +1 -0
  1147. package/dist/dts/internal/deferred.d.ts +2 -0
  1148. package/dist/dts/internal/deferred.d.ts.map +1 -0
  1149. package/dist/dts/internal/differ/chunkPatch.d.ts +2 -0
  1150. package/dist/dts/internal/differ/chunkPatch.d.ts.map +1 -0
  1151. package/dist/dts/internal/differ/contextPatch.d.ts +2 -0
  1152. package/dist/dts/internal/differ/contextPatch.d.ts.map +1 -0
  1153. package/dist/dts/internal/differ/hashMapPatch.d.ts +2 -0
  1154. package/dist/dts/internal/differ/hashMapPatch.d.ts.map +1 -0
  1155. package/dist/dts/internal/differ/hashSetPatch.d.ts +2 -0
  1156. package/dist/dts/internal/differ/hashSetPatch.d.ts.map +1 -0
  1157. package/dist/dts/internal/differ/orPatch.d.ts +2 -0
  1158. package/dist/dts/internal/differ/orPatch.d.ts.map +1 -0
  1159. package/dist/dts/internal/differ/readonlyArrayPatch.d.ts +2 -0
  1160. package/dist/dts/internal/differ/readonlyArrayPatch.d.ts.map +1 -0
  1161. package/dist/dts/internal/differ.d.ts +2 -0
  1162. package/dist/dts/internal/differ.d.ts.map +1 -0
  1163. package/dist/dts/internal/effect/circular.d.ts +2 -0
  1164. package/dist/dts/internal/effect/circular.d.ts.map +1 -0
  1165. package/dist/dts/internal/effectable.d.ts +2 -0
  1166. package/dist/dts/internal/effectable.d.ts.map +1 -0
  1167. package/dist/dts/internal/either.d.ts +5 -0
  1168. package/dist/dts/internal/either.d.ts.map +1 -0
  1169. package/dist/dts/internal/encoding/base64.d.ts +2 -0
  1170. package/dist/dts/internal/encoding/base64.d.ts.map +1 -0
  1171. package/dist/dts/internal/encoding/base64Url.d.ts +2 -0
  1172. package/dist/dts/internal/encoding/base64Url.d.ts.map +1 -0
  1173. package/dist/dts/internal/encoding/common.d.ts +5 -0
  1174. package/dist/dts/internal/encoding/common.d.ts.map +1 -0
  1175. package/dist/dts/internal/encoding/hex.d.ts +2 -0
  1176. package/dist/dts/internal/encoding/hex.d.ts.map +1 -0
  1177. package/dist/dts/internal/executionStrategy.d.ts +2 -0
  1178. package/dist/dts/internal/executionStrategy.d.ts.map +1 -0
  1179. package/dist/dts/internal/fiber.d.ts +2 -0
  1180. package/dist/dts/internal/fiber.d.ts.map +1 -0
  1181. package/dist/dts/internal/fiberId.d.ts +2 -0
  1182. package/dist/dts/internal/fiberId.d.ts.map +1 -0
  1183. package/dist/dts/internal/fiberMessage.d.ts +2 -0
  1184. package/dist/dts/internal/fiberMessage.d.ts.map +1 -0
  1185. package/dist/dts/internal/fiberRefs/patch.d.ts +2 -0
  1186. package/dist/dts/internal/fiberRefs/patch.d.ts.map +1 -0
  1187. package/dist/dts/internal/fiberRefs.d.ts +2 -0
  1188. package/dist/dts/internal/fiberRefs.d.ts.map +1 -0
  1189. package/dist/dts/internal/fiberRuntime.d.ts +2 -0
  1190. package/dist/dts/internal/fiberRuntime.d.ts.map +1 -0
  1191. package/dist/dts/internal/fiberScope.d.ts +18 -0
  1192. package/dist/dts/internal/fiberScope.d.ts.map +1 -0
  1193. package/dist/dts/internal/fiberStatus.d.ts +2 -0
  1194. package/dist/dts/internal/fiberStatus.d.ts.map +1 -0
  1195. package/dist/dts/internal/groupBy.d.ts +2 -0
  1196. package/dist/dts/internal/groupBy.d.ts.map +1 -0
  1197. package/dist/dts/internal/hashMap/array.d.ts +2 -0
  1198. package/dist/dts/internal/hashMap/array.d.ts.map +1 -0
  1199. package/dist/dts/internal/hashMap/bitwise.d.ts +2 -0
  1200. package/dist/dts/internal/hashMap/bitwise.d.ts.map +1 -0
  1201. package/dist/dts/internal/hashMap/config.d.ts +2 -0
  1202. package/dist/dts/internal/hashMap/config.d.ts.map +1 -0
  1203. package/dist/dts/internal/hashMap/keySet.d.ts +2 -0
  1204. package/dist/dts/internal/hashMap/keySet.d.ts.map +1 -0
  1205. package/dist/dts/internal/hashMap/node.d.ts +2 -0
  1206. package/dist/dts/internal/hashMap/node.d.ts.map +1 -0
  1207. package/dist/dts/internal/hashMap.d.ts +9 -0
  1208. package/dist/dts/internal/hashMap.d.ts.map +1 -0
  1209. package/dist/dts/internal/hashSet.d.ts +2 -0
  1210. package/dist/dts/internal/hashSet.d.ts.map +1 -0
  1211. package/dist/dts/internal/internalize.d.ts +2 -0
  1212. package/dist/dts/internal/internalize.d.ts.map +1 -0
  1213. package/dist/dts/internal/keyedPool.d.ts +2 -0
  1214. package/dist/dts/internal/keyedPool.d.ts.map +1 -0
  1215. package/dist/dts/internal/layer/circular.d.ts +2 -0
  1216. package/dist/dts/internal/layer/circular.d.ts.map +1 -0
  1217. package/dist/dts/internal/layer.d.ts +2 -0
  1218. package/dist/dts/internal/layer.d.ts.map +1 -0
  1219. package/dist/dts/internal/logSpan.d.ts +2 -0
  1220. package/dist/dts/internal/logSpan.d.ts.map +1 -0
  1221. package/dist/dts/internal/logger-circular.d.ts +2 -0
  1222. package/dist/dts/internal/logger-circular.d.ts.map +1 -0
  1223. package/dist/dts/internal/logger.d.ts +2 -0
  1224. package/dist/dts/internal/logger.d.ts.map +1 -0
  1225. package/dist/dts/internal/matcher.d.ts +2 -0
  1226. package/dist/dts/internal/matcher.d.ts.map +1 -0
  1227. package/dist/dts/internal/metric/boundaries.d.ts +2 -0
  1228. package/dist/dts/internal/metric/boundaries.d.ts.map +1 -0
  1229. package/dist/dts/internal/metric/hook.d.ts +2 -0
  1230. package/dist/dts/internal/metric/hook.d.ts.map +1 -0
  1231. package/dist/dts/internal/metric/key.d.ts +2 -0
  1232. package/dist/dts/internal/metric/key.d.ts.map +1 -0
  1233. package/dist/dts/internal/metric/keyType.d.ts +88 -0
  1234. package/dist/dts/internal/metric/keyType.d.ts.map +1 -0
  1235. package/dist/dts/internal/metric/label.d.ts +2 -0
  1236. package/dist/dts/internal/metric/label.d.ts.map +1 -0
  1237. package/dist/dts/internal/metric/pair.d.ts +2 -0
  1238. package/dist/dts/internal/metric/pair.d.ts.map +1 -0
  1239. package/dist/dts/internal/metric/polling.d.ts +2 -0
  1240. package/dist/dts/internal/metric/polling.d.ts.map +1 -0
  1241. package/dist/dts/internal/metric/registry.d.ts +2 -0
  1242. package/dist/dts/internal/metric/registry.d.ts.map +1 -0
  1243. package/dist/dts/internal/metric/state.d.ts +22 -0
  1244. package/dist/dts/internal/metric/state.d.ts.map +1 -0
  1245. package/dist/dts/internal/metric.d.ts +2 -0
  1246. package/dist/dts/internal/metric.d.ts.map +1 -0
  1247. package/dist/dts/internal/opCodes/cause.d.ts +2 -0
  1248. package/dist/dts/internal/opCodes/cause.d.ts.map +1 -0
  1249. package/dist/dts/internal/opCodes/channel.d.ts +2 -0
  1250. package/dist/dts/internal/opCodes/channel.d.ts.map +1 -0
  1251. package/dist/dts/internal/opCodes/channelChildExecutorDecision.d.ts +2 -0
  1252. package/dist/dts/internal/opCodes/channelChildExecutorDecision.d.ts.map +1 -0
  1253. package/dist/dts/internal/opCodes/channelMergeDecision.d.ts +2 -0
  1254. package/dist/dts/internal/opCodes/channelMergeDecision.d.ts.map +1 -0
  1255. package/dist/dts/internal/opCodes/channelMergeState.d.ts +2 -0
  1256. package/dist/dts/internal/opCodes/channelMergeState.d.ts.map +1 -0
  1257. package/dist/dts/internal/opCodes/channelMergeStrategy.d.ts +2 -0
  1258. package/dist/dts/internal/opCodes/channelMergeStrategy.d.ts.map +1 -0
  1259. package/dist/dts/internal/opCodes/channelState.d.ts +2 -0
  1260. package/dist/dts/internal/opCodes/channelState.d.ts.map +1 -0
  1261. package/dist/dts/internal/opCodes/channelUpstreamPullRequest.d.ts +2 -0
  1262. package/dist/dts/internal/opCodes/channelUpstreamPullRequest.d.ts.map +1 -0
  1263. package/dist/dts/internal/opCodes/channelUpstreamPullStrategy.d.ts +2 -0
  1264. package/dist/dts/internal/opCodes/channelUpstreamPullStrategy.d.ts.map +1 -0
  1265. package/dist/dts/internal/opCodes/config.d.ts +2 -0
  1266. package/dist/dts/internal/opCodes/config.d.ts.map +1 -0
  1267. package/dist/dts/internal/opCodes/configError.d.ts +2 -0
  1268. package/dist/dts/internal/opCodes/configError.d.ts.map +1 -0
  1269. package/dist/dts/internal/opCodes/continuation.d.ts +2 -0
  1270. package/dist/dts/internal/opCodes/continuation.d.ts.map +1 -0
  1271. package/dist/dts/internal/opCodes/deferred.d.ts +2 -0
  1272. package/dist/dts/internal/opCodes/deferred.d.ts.map +1 -0
  1273. package/dist/dts/internal/opCodes/effect.d.ts +2 -0
  1274. package/dist/dts/internal/opCodes/effect.d.ts.map +1 -0
  1275. package/dist/dts/internal/opCodes/layer.d.ts +2 -0
  1276. package/dist/dts/internal/opCodes/layer.d.ts.map +1 -0
  1277. package/dist/dts/internal/opCodes/streamHaltStrategy.d.ts +2 -0
  1278. package/dist/dts/internal/opCodes/streamHaltStrategy.d.ts.map +1 -0
  1279. package/dist/dts/internal/option.d.ts +5 -0
  1280. package/dist/dts/internal/option.d.ts.map +1 -0
  1281. package/dist/dts/internal/pool.d.ts +2 -0
  1282. package/dist/dts/internal/pool.d.ts.map +1 -0
  1283. package/dist/dts/internal/pubsub.d.ts +2 -0
  1284. package/dist/dts/internal/pubsub.d.ts.map +1 -0
  1285. package/dist/dts/internal/query.d.ts +2 -0
  1286. package/dist/dts/internal/query.d.ts.map +1 -0
  1287. package/dist/dts/internal/queue.d.ts +2 -0
  1288. package/dist/dts/internal/queue.d.ts.map +1 -0
  1289. package/dist/dts/internal/random.d.ts +3 -0
  1290. package/dist/dts/internal/random.d.ts.map +1 -0
  1291. package/dist/dts/internal/readonlyArray.d.ts +5 -0
  1292. package/dist/dts/internal/readonlyArray.d.ts.map +1 -0
  1293. package/dist/dts/internal/redBlackTree/iterator.d.ts +2 -0
  1294. package/dist/dts/internal/redBlackTree/iterator.d.ts.map +1 -0
  1295. package/dist/dts/internal/redBlackTree/node.d.ts +6 -0
  1296. package/dist/dts/internal/redBlackTree/node.d.ts.map +1 -0
  1297. package/dist/dts/internal/redBlackTree.d.ts +2 -0
  1298. package/dist/dts/internal/redBlackTree.d.ts.map +1 -0
  1299. package/dist/dts/internal/ref.d.ts +2 -0
  1300. package/dist/dts/internal/ref.d.ts.map +1 -0
  1301. package/dist/dts/internal/reloadable.d.ts +2 -0
  1302. package/dist/dts/internal/reloadable.d.ts.map +1 -0
  1303. package/dist/dts/internal/request.d.ts +2 -0
  1304. package/dist/dts/internal/request.d.ts.map +1 -0
  1305. package/dist/dts/internal/resource.d.ts +2 -0
  1306. package/dist/dts/internal/resource.d.ts.map +1 -0
  1307. package/dist/dts/internal/ringBuffer.d.ts +2 -0
  1308. package/dist/dts/internal/ringBuffer.d.ts.map +1 -0
  1309. package/dist/dts/internal/runtime.d.ts +2 -0
  1310. package/dist/dts/internal/runtime.d.ts.map +1 -0
  1311. package/dist/dts/internal/runtimeFlags.d.ts +3 -0
  1312. package/dist/dts/internal/runtimeFlags.d.ts.map +1 -0
  1313. package/dist/dts/internal/runtimeFlagsPatch.d.ts +2 -0
  1314. package/dist/dts/internal/runtimeFlagsPatch.d.ts.map +1 -0
  1315. package/dist/dts/internal/schedule/decision.d.ts +2 -0
  1316. package/dist/dts/internal/schedule/decision.d.ts.map +1 -0
  1317. package/dist/dts/internal/schedule/interval.d.ts +2 -0
  1318. package/dist/dts/internal/schedule/interval.d.ts.map +1 -0
  1319. package/dist/dts/internal/schedule/intervals.d.ts +2 -0
  1320. package/dist/dts/internal/schedule/intervals.d.ts.map +1 -0
  1321. package/dist/dts/internal/schedule.d.ts +2 -0
  1322. package/dist/dts/internal/schedule.d.ts.map +1 -0
  1323. package/dist/dts/internal/scopedCache.d.ts +2 -0
  1324. package/dist/dts/internal/scopedCache.d.ts.map +1 -0
  1325. package/dist/dts/internal/scopedRef.d.ts +2 -0
  1326. package/dist/dts/internal/scopedRef.d.ts.map +1 -0
  1327. package/dist/dts/internal/secret.d.ts +2 -0
  1328. package/dist/dts/internal/secret.d.ts.map +1 -0
  1329. package/dist/dts/internal/singleShotGen.d.ts +2 -0
  1330. package/dist/dts/internal/singleShotGen.d.ts.map +1 -0
  1331. package/dist/dts/internal/sink.d.ts +2 -0
  1332. package/dist/dts/internal/sink.d.ts.map +1 -0
  1333. package/dist/dts/internal/stack.d.ts +2 -0
  1334. package/dist/dts/internal/stack.d.ts.map +1 -0
  1335. package/dist/dts/internal/stm/core.d.ts +2 -0
  1336. package/dist/dts/internal/stm/core.d.ts.map +1 -0
  1337. package/dist/dts/internal/stm/opCodes/stm.d.ts +2 -0
  1338. package/dist/dts/internal/stm/opCodes/stm.d.ts.map +1 -0
  1339. package/dist/dts/internal/stm/opCodes/stmState.d.ts +2 -0
  1340. package/dist/dts/internal/stm/opCodes/stmState.d.ts.map +1 -0
  1341. package/dist/dts/internal/stm/opCodes/strategy.d.ts +2 -0
  1342. package/dist/dts/internal/stm/opCodes/strategy.d.ts.map +1 -0
  1343. package/dist/dts/internal/stm/opCodes/tExit.d.ts +2 -0
  1344. package/dist/dts/internal/stm/opCodes/tExit.d.ts.map +1 -0
  1345. package/dist/dts/internal/stm/opCodes/tryCommit.d.ts +2 -0
  1346. package/dist/dts/internal/stm/opCodes/tryCommit.d.ts.map +1 -0
  1347. package/dist/dts/internal/stm/stm/entry.d.ts +2 -0
  1348. package/dist/dts/internal/stm/stm/entry.d.ts.map +1 -0
  1349. package/dist/dts/internal/stm/stm/journal.d.ts +2 -0
  1350. package/dist/dts/internal/stm/stm/journal.d.ts.map +1 -0
  1351. package/dist/dts/internal/stm/stm/opCodes/stm.d.ts +2 -0
  1352. package/dist/dts/internal/stm/stm/opCodes/stm.d.ts.map +1 -0
  1353. package/dist/dts/internal/stm/stm/opCodes/stmState.d.ts +2 -0
  1354. package/dist/dts/internal/stm/stm/opCodes/stmState.d.ts.map +1 -0
  1355. package/dist/dts/internal/stm/stm/opCodes/strategy.d.ts +2 -0
  1356. package/dist/dts/internal/stm/stm/opCodes/strategy.d.ts.map +1 -0
  1357. package/dist/dts/internal/stm/stm/opCodes/tExit.d.ts +2 -0
  1358. package/dist/dts/internal/stm/stm/opCodes/tExit.d.ts.map +1 -0
  1359. package/dist/dts/internal/stm/stm/opCodes/tryCommit.d.ts +2 -0
  1360. package/dist/dts/internal/stm/stm/opCodes/tryCommit.d.ts.map +1 -0
  1361. package/dist/dts/internal/stm/stm/stmState.d.ts +2 -0
  1362. package/dist/dts/internal/stm/stm/stmState.d.ts.map +1 -0
  1363. package/dist/dts/internal/stm/stm/tExit.d.ts +2 -0
  1364. package/dist/dts/internal/stm/stm/tExit.d.ts.map +1 -0
  1365. package/dist/dts/internal/stm/stm/tryCommit.d.ts +2 -0
  1366. package/dist/dts/internal/stm/stm/tryCommit.d.ts.map +1 -0
  1367. package/dist/dts/internal/stm/stm/txnId.d.ts +2 -0
  1368. package/dist/dts/internal/stm/stm/txnId.d.ts.map +1 -0
  1369. package/dist/dts/internal/stm/stm/versioned.d.ts +2 -0
  1370. package/dist/dts/internal/stm/stm/versioned.d.ts.map +1 -0
  1371. package/dist/dts/internal/stm/stm.d.ts +17 -0
  1372. package/dist/dts/internal/stm/stm.d.ts.map +1 -0
  1373. package/dist/dts/internal/stm/tArray.d.ts +2 -0
  1374. package/dist/dts/internal/stm/tArray.d.ts.map +1 -0
  1375. package/dist/dts/internal/stm/tDeferred.d.ts +2 -0
  1376. package/dist/dts/internal/stm/tDeferred.d.ts.map +1 -0
  1377. package/dist/dts/internal/stm/tMap.d.ts +2 -0
  1378. package/dist/dts/internal/stm/tMap.d.ts.map +1 -0
  1379. package/dist/dts/internal/stm/tPriorityQueue.d.ts +2 -0
  1380. package/dist/dts/internal/stm/tPriorityQueue.d.ts.map +1 -0
  1381. package/dist/dts/internal/stm/tPubSub.d.ts +2 -0
  1382. package/dist/dts/internal/stm/tPubSub.d.ts.map +1 -0
  1383. package/dist/dts/internal/stm/tQueue.d.ts +2 -0
  1384. package/dist/dts/internal/stm/tQueue.d.ts.map +1 -0
  1385. package/dist/dts/internal/stm/tRandom.d.ts +2 -0
  1386. package/dist/dts/internal/stm/tRandom.d.ts.map +1 -0
  1387. package/dist/dts/internal/stm/tReentrantLock.d.ts +2 -0
  1388. package/dist/dts/internal/stm/tReentrantLock.d.ts.map +1 -0
  1389. package/dist/dts/internal/stm/tRef.d.ts +2 -0
  1390. package/dist/dts/internal/stm/tRef.d.ts.map +1 -0
  1391. package/dist/dts/internal/stm/tSemaphore.d.ts +2 -0
  1392. package/dist/dts/internal/stm/tSemaphore.d.ts.map +1 -0
  1393. package/dist/dts/internal/stm/tSet.d.ts +2 -0
  1394. package/dist/dts/internal/stm/tSet.d.ts.map +1 -0
  1395. package/dist/dts/internal/stream/debounceState.d.ts +4 -0
  1396. package/dist/dts/internal/stream/debounceState.d.ts.map +1 -0
  1397. package/dist/dts/internal/stream/emit.d.ts +2 -0
  1398. package/dist/dts/internal/stream/emit.d.ts.map +1 -0
  1399. package/dist/dts/internal/stream/haltStrategy.d.ts +2 -0
  1400. package/dist/dts/internal/stream/haltStrategy.d.ts.map +1 -0
  1401. package/dist/dts/internal/stream/handoff.d.ts +2 -0
  1402. package/dist/dts/internal/stream/handoff.d.ts.map +1 -0
  1403. package/dist/dts/internal/stream/handoffSignal.d.ts +6 -0
  1404. package/dist/dts/internal/stream/handoffSignal.d.ts.map +1 -0
  1405. package/dist/dts/internal/stream/pull.d.ts +2 -0
  1406. package/dist/dts/internal/stream/pull.d.ts.map +1 -0
  1407. package/dist/dts/internal/stream/sinkEndReason.d.ts +2 -0
  1408. package/dist/dts/internal/stream/sinkEndReason.d.ts.map +1 -0
  1409. package/dist/dts/internal/stream/zipAllState.d.ts +2 -0
  1410. package/dist/dts/internal/stream/zipAllState.d.ts.map +1 -0
  1411. package/dist/dts/internal/stream/zipChunksState.d.ts +2 -0
  1412. package/dist/dts/internal/stream/zipChunksState.d.ts.map +1 -0
  1413. package/dist/dts/internal/stream.d.ts +2 -0
  1414. package/dist/dts/internal/stream.d.ts.map +1 -0
  1415. package/dist/dts/internal/string-utils.d.ts +7 -0
  1416. package/dist/dts/internal/string-utils.d.ts.map +1 -0
  1417. package/dist/dts/internal/subscriptionRef.d.ts +2 -0
  1418. package/dist/dts/internal/subscriptionRef.d.ts.map +1 -0
  1419. package/dist/dts/internal/supervisor/patch.d.ts +2 -0
  1420. package/dist/dts/internal/supervisor/patch.d.ts.map +1 -0
  1421. package/dist/dts/internal/supervisor.d.ts +2 -0
  1422. package/dist/dts/internal/supervisor.d.ts.map +1 -0
  1423. package/dist/dts/internal/synchronizedRef.d.ts +2 -0
  1424. package/dist/dts/internal/synchronizedRef.d.ts.map +1 -0
  1425. package/dist/dts/internal/take.d.ts +2 -0
  1426. package/dist/dts/internal/take.d.ts.map +1 -0
  1427. package/dist/dts/internal/testing/sleep.d.ts +2 -0
  1428. package/dist/dts/internal/testing/sleep.d.ts.map +1 -0
  1429. package/dist/dts/internal/testing/suspendedWarningData.d.ts +2 -0
  1430. package/dist/dts/internal/testing/suspendedWarningData.d.ts.map +1 -0
  1431. package/dist/dts/internal/testing/warningData.d.ts +2 -0
  1432. package/dist/dts/internal/testing/warningData.d.ts.map +1 -0
  1433. package/dist/dts/internal/timeout.d.ts +7 -0
  1434. package/dist/dts/internal/timeout.d.ts.map +1 -0
  1435. package/dist/dts/internal/tracer.d.ts +2 -0
  1436. package/dist/dts/internal/tracer.d.ts.map +1 -0
  1437. package/dist/dts/internal/version.d.ts +2 -0
  1438. package/dist/dts/internal/version.d.ts.map +1 -0
  1439. package/dist/esm/BigDecimal.js +838 -0
  1440. package/dist/esm/BigDecimal.js.map +1 -0
  1441. package/dist/esm/BigInt.js +458 -0
  1442. package/dist/esm/BigInt.js.map +1 -0
  1443. package/dist/esm/Boolean.js +214 -0
  1444. package/dist/esm/Boolean.js.map +1 -0
  1445. package/dist/esm/Brand.js +170 -0
  1446. package/dist/esm/Brand.js.map +1 -0
  1447. package/dist/esm/Cache.js +38 -0
  1448. package/dist/esm/Cache.js.map +1 -0
  1449. package/dist/esm/Cause.js +468 -0
  1450. package/dist/esm/Cause.js.map +1 -0
  1451. package/dist/esm/Channel.js +834 -0
  1452. package/dist/esm/Channel.js.map +1 -0
  1453. package/dist/esm/ChildExecutorDecision.js +64 -0
  1454. package/dist/esm/ChildExecutorDecision.js.map +1 -0
  1455. package/dist/esm/Chunk.js +1006 -0
  1456. package/dist/esm/Chunk.js.map +1 -0
  1457. package/dist/esm/Clock.js +38 -0
  1458. package/dist/esm/Clock.js.map +1 -0
  1459. package/dist/esm/Config.js +280 -0
  1460. package/dist/esm/Config.js.map +1 -0
  1461. package/dist/esm/ConfigError.js +107 -0
  1462. package/dist/esm/ConfigError.js.map +1 -0
  1463. package/dist/esm/ConfigProvider.js +161 -0
  1464. package/dist/esm/ConfigProvider.js.map +1 -0
  1465. package/dist/esm/ConfigProviderPathPatch.js +30 -0
  1466. package/dist/esm/ConfigProviderPathPatch.js.map +1 -0
  1467. package/dist/esm/Console.js +118 -0
  1468. package/dist/esm/Console.js.map +1 -0
  1469. package/dist/esm/Context.js +234 -0
  1470. package/dist/esm/Context.js.map +1 -0
  1471. package/dist/esm/Data.js +254 -0
  1472. package/dist/esm/Data.js.map +1 -0
  1473. package/dist/esm/DefaultServices.js +12 -0
  1474. package/dist/esm/DefaultServices.js.map +1 -0
  1475. package/dist/esm/Deferred.js +169 -0
  1476. package/dist/esm/Deferred.js.map +1 -0
  1477. package/dist/esm/Differ.js +132 -0
  1478. package/dist/esm/Differ.js.map +1 -0
  1479. package/dist/esm/Duration.js +427 -0
  1480. package/dist/esm/Duration.js.map +1 -0
  1481. package/dist/esm/Effect.js +2708 -0
  1482. package/dist/esm/Effect.js.map +1 -0
  1483. package/dist/esm/Effectable.js +49 -0
  1484. package/dist/esm/Effectable.js.map +1 -0
  1485. package/dist/esm/Either.js +438 -0
  1486. package/dist/esm/Either.js.map +1 -0
  1487. package/dist/esm/Encoding.js +97 -0
  1488. package/dist/esm/Encoding.js.map +1 -0
  1489. package/dist/esm/Equal.js +39 -0
  1490. package/dist/esm/Equal.js.map +1 -0
  1491. package/dist/esm/Equivalence.js +166 -0
  1492. package/dist/esm/Equivalence.js.map +1 -0
  1493. package/dist/esm/ExecutionStrategy.js +55 -0
  1494. package/dist/esm/ExecutionStrategy.js.map +1 -0
  1495. package/dist/esm/Exit.js +255 -0
  1496. package/dist/esm/Exit.js.map +1 -0
  1497. package/dist/esm/Fiber.js +348 -0
  1498. package/dist/esm/Fiber.js.map +1 -0
  1499. package/dist/esm/FiberId.js +115 -0
  1500. package/dist/esm/FiberId.js.map +1 -0
  1501. package/dist/esm/FiberRef.js +232 -0
  1502. package/dist/esm/FiberRef.js.map +1 -0
  1503. package/dist/esm/FiberRefs.js +92 -0
  1504. package/dist/esm/FiberRefs.js.map +1 -0
  1505. package/dist/esm/FiberRefsPatch.js +32 -0
  1506. package/dist/esm/FiberRefsPatch.js.map +1 -0
  1507. package/dist/esm/FiberStatus.js +52 -0
  1508. package/dist/esm/FiberStatus.js.map +1 -0
  1509. package/dist/esm/Function.js +397 -0
  1510. package/dist/esm/Function.js.map +1 -0
  1511. package/dist/esm/GlobalValue.js +20 -0
  1512. package/dist/esm/GlobalValue.js.map +1 -0
  1513. package/dist/esm/GroupBy.js +39 -0
  1514. package/dist/esm/GroupBy.js.map +1 -0
  1515. package/dist/esm/HKT.js +2 -0
  1516. package/dist/esm/HKT.js.map +1 -0
  1517. package/dist/esm/Hash.js +132 -0
  1518. package/dist/esm/Hash.js.map +1 -0
  1519. package/dist/esm/HashMap.js +254 -0
  1520. package/dist/esm/HashMap.js.map +1 -0
  1521. package/dist/esm/HashSet.js +191 -0
  1522. package/dist/esm/HashSet.js.map +1 -0
  1523. package/dist/esm/Inspectable.js +25 -0
  1524. package/dist/esm/Inspectable.js.map +1 -0
  1525. package/dist/esm/KeyedPool.js +76 -0
  1526. package/dist/esm/KeyedPool.js.map +1 -0
  1527. package/dist/esm/Layer.js +556 -0
  1528. package/dist/esm/Layer.js.map +1 -0
  1529. package/dist/esm/List.js +750 -0
  1530. package/dist/esm/List.js.map +1 -0
  1531. package/dist/esm/LogLevel.js +107 -0
  1532. package/dist/esm/LogLevel.js.map +1 -0
  1533. package/dist/esm/LogSpan.js +15 -0
  1534. package/dist/esm/LogSpan.js.map +1 -0
  1535. package/dist/esm/Logger.js +158 -0
  1536. package/dist/esm/Logger.js.map +1 -0
  1537. package/dist/esm/Match.js +198 -0
  1538. package/dist/esm/Match.js.map +1 -0
  1539. package/dist/esm/MergeDecision.js +35 -0
  1540. package/dist/esm/MergeDecision.js.map +1 -0
  1541. package/dist/esm/MergeState.js +58 -0
  1542. package/dist/esm/MergeState.js.map +1 -0
  1543. package/dist/esm/MergeStrategy.js +51 -0
  1544. package/dist/esm/MergeStrategy.js.map +1 -0
  1545. package/dist/esm/Metric.js +395 -0
  1546. package/dist/esm/Metric.js.map +1 -0
  1547. package/dist/esm/MetricBoundaries.js +33 -0
  1548. package/dist/esm/MetricBoundaries.js.map +1 -0
  1549. package/dist/esm/MetricHook.js +42 -0
  1550. package/dist/esm/MetricHook.js.map +1 -0
  1551. package/dist/esm/MetricKey.js +63 -0
  1552. package/dist/esm/MetricKey.js.map +1 -0
  1553. package/dist/esm/MetricKeyType.js +87 -0
  1554. package/dist/esm/MetricKeyType.js.map +1 -0
  1555. package/dist/esm/MetricLabel.js +17 -0
  1556. package/dist/esm/MetricLabel.js.map +1 -0
  1557. package/dist/esm/MetricPair.js +20 -0
  1558. package/dist/esm/MetricPair.js.map +1 -0
  1559. package/dist/esm/MetricPolling.js +59 -0
  1560. package/dist/esm/MetricPolling.js.map +1 -0
  1561. package/dist/esm/MetricRegistry.js +15 -0
  1562. package/dist/esm/MetricRegistry.js.map +1 -0
  1563. package/dist/esm/MetricState.js +87 -0
  1564. package/dist/esm/MetricState.js.map +1 -0
  1565. package/dist/esm/MutableHashMap.js +252 -0
  1566. package/dist/esm/MutableHashMap.js.map +1 -0
  1567. package/dist/esm/MutableHashSet.js +72 -0
  1568. package/dist/esm/MutableHashSet.js.map +1 -0
  1569. package/dist/esm/MutableList.js +243 -0
  1570. package/dist/esm/MutableList.js.map +1 -0
  1571. package/dist/esm/MutableQueue.js +159 -0
  1572. package/dist/esm/MutableQueue.js.map +1 -0
  1573. package/dist/esm/MutableRef.js +127 -0
  1574. package/dist/esm/MutableRef.js.map +1 -0
  1575. package/dist/esm/NonEmptyIterable.js +16 -0
  1576. package/dist/esm/NonEmptyIterable.js.map +1 -0
  1577. package/dist/esm/Number.js +370 -0
  1578. package/dist/esm/Number.js.map +1 -0
  1579. package/dist/esm/Option.js +908 -0
  1580. package/dist/esm/Option.js.map +1 -0
  1581. package/dist/esm/Order.js +235 -0
  1582. package/dist/esm/Order.js.map +1 -0
  1583. package/dist/esm/Ordering.js +73 -0
  1584. package/dist/esm/Ordering.js.map +1 -0
  1585. package/dist/esm/Pipeable.js +37 -0
  1586. package/dist/esm/Pipeable.js.map +1 -0
  1587. package/dist/esm/Pool.js +74 -0
  1588. package/dist/esm/Pool.js.map +1 -0
  1589. package/dist/esm/Predicate.js +605 -0
  1590. package/dist/esm/Predicate.js.map +1 -0
  1591. package/dist/esm/PrimaryKey.js +14 -0
  1592. package/dist/esm/PrimaryKey.js.map +1 -0
  1593. package/dist/esm/PubSub.js +120 -0
  1594. package/dist/esm/PubSub.js.map +1 -0
  1595. package/dist/esm/Queue.js +248 -0
  1596. package/dist/esm/Queue.js.map +1 -0
  1597. package/dist/esm/Random.js +60 -0
  1598. package/dist/esm/Random.js.map +1 -0
  1599. package/dist/esm/ReadonlyArray.js +1343 -0
  1600. package/dist/esm/ReadonlyArray.js.map +1 -0
  1601. package/dist/esm/ReadonlyRecord.js +786 -0
  1602. package/dist/esm/ReadonlyRecord.js.map +1 -0
  1603. package/dist/esm/RedBlackTree.js +259 -0
  1604. package/dist/esm/RedBlackTree.js.map +1 -0
  1605. package/dist/esm/Ref.js +77 -0
  1606. package/dist/esm/Ref.js.map +1 -0
  1607. package/dist/esm/Reloadable.js +59 -0
  1608. package/dist/esm/Reloadable.js.map +1 -0
  1609. package/dist/esm/Request.js +136 -0
  1610. package/dist/esm/Request.js.map +1 -0
  1611. package/dist/esm/RequestBlock.js +35 -0
  1612. package/dist/esm/RequestBlock.js.map +1 -0
  1613. package/dist/esm/RequestResolver.js +148 -0
  1614. package/dist/esm/RequestResolver.js.map +1 -0
  1615. package/dist/esm/Resource.js +44 -0
  1616. package/dist/esm/Resource.js.map +1 -0
  1617. package/dist/esm/Runtime.js +104 -0
  1618. package/dist/esm/Runtime.js.map +1 -0
  1619. package/dist/esm/RuntimeFlags.js +251 -0
  1620. package/dist/esm/RuntimeFlags.js.map +1 -0
  1621. package/dist/esm/RuntimeFlagsPatch.js +134 -0
  1622. package/dist/esm/RuntimeFlagsPatch.js.map +1 -0
  1623. package/dist/esm/STM.js +1002 -0
  1624. package/dist/esm/STM.js.map +1 -0
  1625. package/dist/esm/Schedule.js +807 -0
  1626. package/dist/esm/Schedule.js.map +1 -0
  1627. package/dist/esm/ScheduleDecision.js +32 -0
  1628. package/dist/esm/ScheduleDecision.js.map +1 -0
  1629. package/dist/esm/ScheduleInterval.js +100 -0
  1630. package/dist/esm/ScheduleInterval.js.map +1 -0
  1631. package/dist/esm/ScheduleIntervals.js +78 -0
  1632. package/dist/esm/ScheduleIntervals.js.map +1 -0
  1633. package/dist/esm/Scheduler.js +290 -0
  1634. package/dist/esm/Scheduler.js.map +1 -0
  1635. package/dist/esm/Scope.js +82 -0
  1636. package/dist/esm/Scope.js.map +1 -0
  1637. package/dist/esm/ScopedCache.js +24 -0
  1638. package/dist/esm/ScopedCache.js.map +1 -0
  1639. package/dist/esm/ScopedRef.js +42 -0
  1640. package/dist/esm/ScopedRef.js.map +1 -0
  1641. package/dist/esm/Secret.js +37 -0
  1642. package/dist/esm/Secret.js.map +1 -0
  1643. package/dist/esm/SingleProducerAsyncInput.js +7 -0
  1644. package/dist/esm/SingleProducerAsyncInput.js.map +1 -0
  1645. package/dist/esm/Sink.js +852 -0
  1646. package/dist/esm/Sink.js.map +1 -0
  1647. package/dist/esm/SortedMap.js +147 -0
  1648. package/dist/esm/SortedMap.js.map +1 -0
  1649. package/dist/esm/SortedSet.js +232 -0
  1650. package/dist/esm/SortedSet.js.map +1 -0
  1651. package/dist/esm/Stream.js +2566 -0
  1652. package/dist/esm/Stream.js.map +1 -0
  1653. package/dist/esm/StreamEmit.js +2 -0
  1654. package/dist/esm/StreamEmit.js.map +1 -0
  1655. package/dist/esm/StreamHaltStrategy.js +55 -0
  1656. package/dist/esm/StreamHaltStrategy.js.map +1 -0
  1657. package/dist/esm/Streamable.js +36 -0
  1658. package/dist/esm/Streamable.js.map +1 -0
  1659. package/dist/esm/String.js +538 -0
  1660. package/dist/esm/String.js.map +1 -0
  1661. package/dist/esm/Struct.js +119 -0
  1662. package/dist/esm/Struct.js.map +1 -0
  1663. package/dist/esm/SubscriptionRef.js +116 -0
  1664. package/dist/esm/SubscriptionRef.js.map +1 -0
  1665. package/dist/esm/Supervisor.js +107 -0
  1666. package/dist/esm/Supervisor.js.map +1 -0
  1667. package/dist/esm/Symbol.js +26 -0
  1668. package/dist/esm/Symbol.js.map +1 -0
  1669. package/dist/esm/SynchronizedRef.js +119 -0
  1670. package/dist/esm/SynchronizedRef.js.map +1 -0
  1671. package/dist/esm/TArray.js +306 -0
  1672. package/dist/esm/TArray.js.map +1 -0
  1673. package/dist/esm/TDeferred.js +39 -0
  1674. package/dist/esm/TDeferred.js.map +1 -0
  1675. package/dist/esm/TMap.js +279 -0
  1676. package/dist/esm/TMap.js.map +1 -0
  1677. package/dist/esm/TPriorityQueue.js +136 -0
  1678. package/dist/esm/TPriorityQueue.js.map +1 -0
  1679. package/dist/esm/TPubSub.js +123 -0
  1680. package/dist/esm/TPubSub.js.map +1 -0
  1681. package/dist/esm/TQueue.js +229 -0
  1682. package/dist/esm/TQueue.js.map +1 -0
  1683. package/dist/esm/TRandom.js +65 -0
  1684. package/dist/esm/TRandom.js.map +1 -0
  1685. package/dist/esm/TReentrantLock.js +142 -0
  1686. package/dist/esm/TReentrantLock.js.map +1 -0
  1687. package/dist/esm/TRef.js +75 -0
  1688. package/dist/esm/TRef.js.map +1 -0
  1689. package/dist/esm/TSemaphore.js +65 -0
  1690. package/dist/esm/TSemaphore.js.map +1 -0
  1691. package/dist/esm/TSet.js +201 -0
  1692. package/dist/esm/TSet.js.map +1 -0
  1693. package/dist/esm/Take.js +148 -0
  1694. package/dist/esm/Take.js.map +1 -0
  1695. package/dist/esm/TestAnnotation.js +96 -0
  1696. package/dist/esm/TestAnnotation.js.map +1 -0
  1697. package/dist/esm/TestAnnotationMap.js +80 -0
  1698. package/dist/esm/TestAnnotationMap.js.map +1 -0
  1699. package/dist/esm/TestAnnotations.js +61 -0
  1700. package/dist/esm/TestAnnotations.js.map +1 -0
  1701. package/dist/esm/TestClock.js +347 -0
  1702. package/dist/esm/TestClock.js.map +1 -0
  1703. package/dist/esm/TestConfig.js +13 -0
  1704. package/dist/esm/TestConfig.js.map +1 -0
  1705. package/dist/esm/TestContext.js +21 -0
  1706. package/dist/esm/TestContext.js.map +1 -0
  1707. package/dist/esm/TestLive.js +30 -0
  1708. package/dist/esm/TestLive.js.map +1 -0
  1709. package/dist/esm/TestServices.js +230 -0
  1710. package/dist/esm/TestServices.js.map +1 -0
  1711. package/dist/esm/TestSized.js +36 -0
  1712. package/dist/esm/TestSized.js.map +1 -0
  1713. package/dist/esm/Tracer.js +32 -0
  1714. package/dist/esm/Tracer.js.map +1 -0
  1715. package/dist/esm/Tuple.js +155 -0
  1716. package/dist/esm/Tuple.js.map +1 -0
  1717. package/dist/esm/Types.js +7 -0
  1718. package/dist/esm/Types.js.map +1 -0
  1719. package/dist/esm/Unify.js +9 -0
  1720. package/dist/esm/Unify.js.map +1 -0
  1721. package/dist/esm/UpstreamPullRequest.js +51 -0
  1722. package/dist/esm/UpstreamPullRequest.js.map +1 -0
  1723. package/dist/esm/UpstreamPullStrategy.js +51 -0
  1724. package/dist/esm/UpstreamPullStrategy.js.map +1 -0
  1725. package/dist/esm/Utils.js +276 -0
  1726. package/dist/esm/Utils.js.map +1 -0
  1727. package/dist/esm/index.js +722 -0
  1728. package/dist/esm/index.js.map +1 -0
  1729. package/dist/esm/internal/Iterable.js +53 -0
  1730. package/dist/esm/internal/Iterable.js.map +1 -0
  1731. package/dist/esm/internal/blockedRequests.js +338 -0
  1732. package/dist/esm/internal/blockedRequests.js.map +1 -0
  1733. package/dist/esm/internal/cache.js +467 -0
  1734. package/dist/esm/internal/cache.js.map +1 -0
  1735. package/dist/esm/internal/cause.js +865 -0
  1736. package/dist/esm/internal/cause.js.map +1 -0
  1737. package/dist/esm/internal/channel/channelExecutor.js +687 -0
  1738. package/dist/esm/internal/channel/channelExecutor.js.map +1 -0
  1739. package/dist/esm/internal/channel/channelState.js +59 -0
  1740. package/dist/esm/internal/channel/channelState.js.map +1 -0
  1741. package/dist/esm/internal/channel/childExecutorDecision.js +60 -0
  1742. package/dist/esm/internal/channel/childExecutorDecision.js.map +1 -0
  1743. package/dist/esm/internal/channel/continuation.js +48 -0
  1744. package/dist/esm/internal/channel/continuation.js.map +1 -0
  1745. package/dist/esm/internal/channel/mergeDecision.js +53 -0
  1746. package/dist/esm/internal/channel/mergeDecision.js.map +1 -0
  1747. package/dist/esm/internal/channel/mergeState.js +69 -0
  1748. package/dist/esm/internal/channel/mergeState.js.map +1 -0
  1749. package/dist/esm/internal/channel/mergeStrategy.js +46 -0
  1750. package/dist/esm/internal/channel/mergeStrategy.js.map +1 -0
  1751. package/dist/esm/internal/channel/singleProducerAsyncInput.js +163 -0
  1752. package/dist/esm/internal/channel/singleProducerAsyncInput.js.map +1 -0
  1753. package/dist/esm/internal/channel/subexecutor.js +152 -0
  1754. package/dist/esm/internal/channel/subexecutor.js.map +1 -0
  1755. package/dist/esm/internal/channel/upstreamPullRequest.js +52 -0
  1756. package/dist/esm/internal/channel/upstreamPullRequest.js.map +1 -0
  1757. package/dist/esm/internal/channel/upstreamPullStrategy.js +52 -0
  1758. package/dist/esm/internal/channel/upstreamPullStrategy.js.map +1 -0
  1759. package/dist/esm/internal/channel.js +573 -0
  1760. package/dist/esm/internal/channel.js.map +1 -0
  1761. package/dist/esm/internal/clock.js +74 -0
  1762. package/dist/esm/internal/clock.js.map +1 -0
  1763. package/dist/esm/internal/completedRequestMap.js +5 -0
  1764. package/dist/esm/internal/completedRequestMap.js.map +1 -0
  1765. package/dist/esm/internal/concurrency.js +28 -0
  1766. package/dist/esm/internal/concurrency.js.map +1 -0
  1767. package/dist/esm/internal/config.js +318 -0
  1768. package/dist/esm/internal/config.js.map +1 -0
  1769. package/dist/esm/internal/configError.js +250 -0
  1770. package/dist/esm/internal/configError.js.map +1 -0
  1771. package/dist/esm/internal/configProvider/pathPatch.js +76 -0
  1772. package/dist/esm/internal/configProvider/pathPatch.js.map +1 -0
  1773. package/dist/esm/internal/configProvider.js +427 -0
  1774. package/dist/esm/internal/configProvider.js.map +1 -0
  1775. package/dist/esm/internal/console.js +54 -0
  1776. package/dist/esm/internal/console.js.map +1 -0
  1777. package/dist/esm/internal/context.js +189 -0
  1778. package/dist/esm/internal/context.js.map +1 -0
  1779. package/dist/esm/internal/core-effect.js +767 -0
  1780. package/dist/esm/internal/core-effect.js.map +1 -0
  1781. package/dist/esm/internal/core-stream.js +235 -0
  1782. package/dist/esm/internal/core-stream.js.map +1 -0
  1783. package/dist/esm/internal/core.js +1646 -0
  1784. package/dist/esm/internal/core.js.map +1 -0
  1785. package/dist/esm/internal/data.js +29 -0
  1786. package/dist/esm/internal/data.js.map +1 -0
  1787. package/dist/esm/internal/dataSource.js +71 -0
  1788. package/dist/esm/internal/dataSource.js.map +1 -0
  1789. package/dist/esm/internal/defaultServices/console.js +92 -0
  1790. package/dist/esm/internal/defaultServices/console.js.map +1 -0
  1791. package/dist/esm/internal/defaultServices.js +63 -0
  1792. package/dist/esm/internal/defaultServices.js.map +1 -0
  1793. package/dist/esm/internal/deferred.js +27 -0
  1794. package/dist/esm/internal/deferred.js.map +1 -0
  1795. package/dist/esm/internal/differ/chunkPatch.js +130 -0
  1796. package/dist/esm/internal/differ/chunkPatch.js.map +1 -0
  1797. package/dist/esm/internal/differ/contextPatch.js +143 -0
  1798. package/dist/esm/internal/differ/contextPatch.js.map +1 -0
  1799. package/dist/esm/internal/differ/hashMapPatch.js +130 -0
  1800. package/dist/esm/internal/differ/hashMapPatch.js.map +1 -0
  1801. package/dist/esm/internal/differ/hashSetPatch.js +101 -0
  1802. package/dist/esm/internal/differ/hashSetPatch.js.map +1 -0
  1803. package/dist/esm/internal/differ/orPatch.js +170 -0
  1804. package/dist/esm/internal/differ/orPatch.js.map +1 -0
  1805. package/dist/esm/internal/differ/readonlyArrayPatch.js +127 -0
  1806. package/dist/esm/internal/differ/readonlyArrayPatch.js.map +1 -0
  1807. package/dist/esm/internal/differ.js +130 -0
  1808. package/dist/esm/internal/differ.js.map +1 -0
  1809. package/dist/esm/internal/effect/circular.js +281 -0
  1810. package/dist/esm/internal/effect/circular.js.map +1 -0
  1811. package/dist/esm/internal/effectable.js +109 -0
  1812. package/dist/esm/internal/effectable.js.map +1 -0
  1813. package/dist/esm/internal/either.js +85 -0
  1814. package/dist/esm/internal/either.js.map +1 -0
  1815. package/dist/esm/internal/encoding/base64.js +68 -0
  1816. package/dist/esm/internal/encoding/base64.js.map +1 -0
  1817. package/dist/esm/internal/encoding/base64Url.js +20 -0
  1818. package/dist/esm/internal/encoding/base64Url.js.map +1 -0
  1819. package/dist/esm/internal/encoding/common.js +22 -0
  1820. package/dist/esm/internal/encoding/common.js.map +1 -0
  1821. package/dist/esm/internal/encoding/hex.js +48 -0
  1822. package/dist/esm/internal/encoding/hex.js.map +1 -0
  1823. package/dist/esm/internal/executionStrategy.js +44 -0
  1824. package/dist/esm/internal/executionStrategy.js.map +1 -0
  1825. package/dist/esm/internal/fiber.js +217 -0
  1826. package/dist/esm/internal/fiber.js.map +1 -0
  1827. package/dist/esm/internal/fiberId.js +215 -0
  1828. package/dist/esm/internal/fiberId.js.map +1 -0
  1829. package/dist/esm/internal/fiberMessage.js +28 -0
  1830. package/dist/esm/internal/fiberMessage.js.map +1 -0
  1831. package/dist/esm/internal/fiberRefs/patch.js +107 -0
  1832. package/dist/esm/internal/fiberRefs/patch.js.map +1 -0
  1833. package/dist/esm/internal/fiberRefs.js +189 -0
  1834. package/dist/esm/internal/fiberRefs.js.map +1 -0
  1835. package/dist/esm/internal/fiberRuntime.js +1845 -0
  1836. package/dist/esm/internal/fiberRuntime.js.map +1 -0
  1837. package/dist/esm/internal/fiberScope.js +44 -0
  1838. package/dist/esm/internal/fiberScope.js.map +1 -0
  1839. package/dist/esm/internal/fiberStatus.js +71 -0
  1840. package/dist/esm/internal/fiberStatus.js.map +1 -0
  1841. package/dist/esm/internal/groupBy.js +202 -0
  1842. package/dist/esm/internal/groupBy.js.map +1 -0
  1843. package/dist/esm/internal/hashMap/array.js +49 -0
  1844. package/dist/esm/internal/hashMap/array.js.map +1 -0
  1845. package/dist/esm/internal/hashMap/bitwise.js +29 -0
  1846. package/dist/esm/internal/hashMap/bitwise.js.map +1 -0
  1847. package/dist/esm/internal/hashMap/config.js +11 -0
  1848. package/dist/esm/internal/hashMap/config.js.map +1 -0
  1849. package/dist/esm/internal/hashMap/keySet.js +6 -0
  1850. package/dist/esm/internal/hashMap/keySet.js.map +1 -0
  1851. package/dist/esm/internal/hashMap/node.js +258 -0
  1852. package/dist/esm/internal/hashMap/node.js.map +1 -0
  1853. package/dist/esm/internal/hashMap.js +338 -0
  1854. package/dist/esm/internal/hashMap.js.map +1 -0
  1855. package/dist/esm/internal/hashSet.js +182 -0
  1856. package/dist/esm/internal/hashSet.js.map +1 -0
  1857. package/dist/esm/internal/internalize.js +8 -0
  1858. package/dist/esm/internal/internalize.js.map +1 -0
  1859. package/dist/esm/internal/keyedPool.js +159 -0
  1860. package/dist/esm/internal/keyedPool.js.map +1 -0
  1861. package/dist/esm/internal/layer/circular.js +60 -0
  1862. package/dist/esm/internal/layer/circular.js.map +1 -0
  1863. package/dist/esm/internal/layer.js +462 -0
  1864. package/dist/esm/internal/layer.js.map +1 -0
  1865. package/dist/esm/internal/logSpan.js +13 -0
  1866. package/dist/esm/internal/logSpan.js.map +1 -0
  1867. package/dist/esm/internal/logger-circular.js +19 -0
  1868. package/dist/esm/internal/logger-circular.js.map +1 -0
  1869. package/dist/esm/internal/logger.js +193 -0
  1870. package/dist/esm/internal/logger.js.map +1 -0
  1871. package/dist/esm/internal/matcher.js +284 -0
  1872. package/dist/esm/internal/matcher.js.map +1 -0
  1873. package/dist/esm/internal/metric/boundaries.js +42 -0
  1874. package/dist/esm/internal/metric/boundaries.js.map +1 -0
  1875. package/dist/esm/internal/metric/hook.js +350 -0
  1876. package/dist/esm/internal/metric/hook.js.map +1 -0
  1877. package/dist/esm/internal/metric/key.js +60 -0
  1878. package/dist/esm/internal/metric/key.js.map +1 -0
  1879. package/dist/esm/internal/metric/keyType.js +201 -0
  1880. package/dist/esm/internal/metric/keyType.js.map +1 -0
  1881. package/dist/esm/internal/metric/label.js +36 -0
  1882. package/dist/esm/internal/metric/label.js.map +1 -0
  1883. package/dist/esm/internal/metric/pair.js +32 -0
  1884. package/dist/esm/internal/metric/pair.js.map +1 -0
  1885. package/dist/esm/internal/metric/polling.js +64 -0
  1886. package/dist/esm/internal/metric/polling.js.map +1 -0
  1887. package/dist/esm/internal/metric/registry.js +105 -0
  1888. package/dist/esm/internal/metric/registry.js.map +1 -0
  1889. package/dist/esm/internal/metric/state.js +185 -0
  1890. package/dist/esm/internal/metric/state.js.map +1 -0
  1891. package/dist/esm/internal/metric.js +180 -0
  1892. package/dist/esm/internal/metric.js.map +1 -0
  1893. package/dist/esm/internal/opCodes/cause.js +13 -0
  1894. package/dist/esm/internal/opCodes/cause.js.map +1 -0
  1895. package/dist/esm/internal/opCodes/channel.js +29 -0
  1896. package/dist/esm/internal/opCodes/channel.js.map +1 -0
  1897. package/dist/esm/internal/opCodes/channelChildExecutorDecision.js +7 -0
  1898. package/dist/esm/internal/opCodes/channelChildExecutorDecision.js.map +1 -0
  1899. package/dist/esm/internal/opCodes/channelMergeDecision.js +5 -0
  1900. package/dist/esm/internal/opCodes/channelMergeDecision.js.map +1 -0
  1901. package/dist/esm/internal/opCodes/channelMergeState.js +7 -0
  1902. package/dist/esm/internal/opCodes/channelMergeState.js.map +1 -0
  1903. package/dist/esm/internal/opCodes/channelMergeStrategy.js +5 -0
  1904. package/dist/esm/internal/opCodes/channelMergeStrategy.js.map +1 -0
  1905. package/dist/esm/internal/opCodes/channelState.js +9 -0
  1906. package/dist/esm/internal/opCodes/channelState.js.map +1 -0
  1907. package/dist/esm/internal/opCodes/channelUpstreamPullRequest.js +5 -0
  1908. package/dist/esm/internal/opCodes/channelUpstreamPullRequest.js.map +1 -0
  1909. package/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js +5 -0
  1910. package/dist/esm/internal/opCodes/channelUpstreamPullStrategy.js.map +1 -0
  1911. package/dist/esm/internal/opCodes/config.js +23 -0
  1912. package/dist/esm/internal/opCodes/config.js.map +1 -0
  1913. package/dist/esm/internal/opCodes/configError.js +13 -0
  1914. package/dist/esm/internal/opCodes/configError.js.map +1 -0
  1915. package/dist/esm/internal/opCodes/continuation.js +5 -0
  1916. package/dist/esm/internal/opCodes/continuation.js.map +1 -0
  1917. package/dist/esm/internal/opCodes/deferred.js +5 -0
  1918. package/dist/esm/internal/opCodes/deferred.js.map +1 -0
  1919. package/dist/esm/internal/opCodes/effect.js +29 -0
  1920. package/dist/esm/internal/opCodes/effect.js.map +1 -0
  1921. package/dist/esm/internal/opCodes/layer.js +19 -0
  1922. package/dist/esm/internal/opCodes/layer.js.map +1 -0
  1923. package/dist/esm/internal/opCodes/streamHaltStrategy.js +9 -0
  1924. package/dist/esm/internal/opCodes/streamHaltStrategy.js.map +1 -0
  1925. package/dist/esm/internal/option.js +69 -0
  1926. package/dist/esm/internal/option.js.map +1 -0
  1927. package/dist/esm/internal/pool.js +261 -0
  1928. package/dist/esm/internal/pool.js.map +1 -0
  1929. package/dist/esm/internal/pubsub.js +1077 -0
  1930. package/dist/esm/internal/pubsub.js.map +1 -0
  1931. package/dist/esm/internal/query.js +93 -0
  1932. package/dist/esm/internal/query.js.map +1 -0
  1933. package/dist/esm/internal/queue.js +481 -0
  1934. package/dist/esm/internal/queue.js.map +1 -0
  1935. package/dist/esm/internal/random.js +56 -0
  1936. package/dist/esm/internal/random.js.map +1 -0
  1937. package/dist/esm/internal/readonlyArray.js +6 -0
  1938. package/dist/esm/internal/readonlyArray.js.map +1 -0
  1939. package/dist/esm/internal/redBlackTree/iterator.js +192 -0
  1940. package/dist/esm/internal/redBlackTree/iterator.js.map +1 -0
  1941. package/dist/esm/internal/redBlackTree/node.js +44 -0
  1942. package/dist/esm/internal/redBlackTree/node.js.map +1 -0
  1943. package/dist/esm/internal/redBlackTree.js +1013 -0
  1944. package/dist/esm/internal/redBlackTree.js.map +1 -0
  1945. package/dist/esm/internal/ref.js +105 -0
  1946. package/dist/esm/internal/ref.js.map +1 -0
  1947. package/dist/esm/internal/reloadable.js +50 -0
  1948. package/dist/esm/internal/reloadable.js.map +1 -0
  1949. package/dist/esm/internal/request.js +90 -0
  1950. package/dist/esm/internal/request.js.map +1 -0
  1951. package/dist/esm/internal/resource.js +28 -0
  1952. package/dist/esm/internal/resource.js.map +1 -0
  1953. package/dist/esm/internal/ringBuffer.js +56 -0
  1954. package/dist/esm/internal/ringBuffer.js.map +1 -0
  1955. package/dist/esm/internal/runtime.js +244 -0
  1956. package/dist/esm/internal/runtime.js.map +1 -0
  1957. package/dist/esm/internal/runtimeFlags.js +107 -0
  1958. package/dist/esm/internal/runtimeFlags.js.map +1 -0
  1959. package/dist/esm/internal/runtimeFlagsPatch.js +38 -0
  1960. package/dist/esm/internal/runtimeFlagsPatch.js.map +1 -0
  1961. package/dist/esm/internal/schedule/decision.js +33 -0
  1962. package/dist/esm/internal/schedule/decision.js.map +1 -0
  1963. package/dist/esm/internal/schedule/interval.js +70 -0
  1964. package/dist/esm/internal/schedule/interval.js.map +1 -0
  1965. package/dist/esm/internal/schedule/intervals.js +121 -0
  1966. package/dist/esm/internal/schedule/intervals.js.map +1 -0
  1967. package/dist/esm/internal/schedule.js +715 -0
  1968. package/dist/esm/internal/schedule.js.map +1 -0
  1969. package/dist/esm/internal/scopedCache.js +382 -0
  1970. package/dist/esm/internal/scopedCache.js.map +1 -0
  1971. package/dist/esm/internal/scopedRef.js +41 -0
  1972. package/dist/esm/internal/scopedRef.js.map +1 -0
  1973. package/dist/esm/internal/secret.js +53 -0
  1974. package/dist/esm/internal/secret.js.map +1 -0
  1975. package/dist/esm/internal/singleShotGen.js +30 -0
  1976. package/dist/esm/internal/singleShotGen.js.map +1 -0
  1977. package/dist/esm/internal/sink.js +796 -0
  1978. package/dist/esm/internal/sink.js.map +1 -0
  1979. package/dist/esm/internal/stack.js +10 -0
  1980. package/dist/esm/internal/stack.js.map +1 -0
  1981. package/dist/esm/internal/stm/core.js +498 -0
  1982. package/dist/esm/internal/stm/core.js.map +1 -0
  1983. package/dist/esm/internal/stm/opCodes/stm.js +25 -0
  1984. package/dist/esm/internal/stm/opCodes/stm.js.map +1 -0
  1985. package/dist/esm/internal/stm/opCodes/stmState.js +7 -0
  1986. package/dist/esm/internal/stm/opCodes/stmState.js.map +1 -0
  1987. package/dist/esm/internal/stm/opCodes/strategy.js +7 -0
  1988. package/dist/esm/internal/stm/opCodes/strategy.js.map +1 -0
  1989. package/dist/esm/internal/stm/opCodes/tExit.js +11 -0
  1990. package/dist/esm/internal/stm/opCodes/tExit.js.map +1 -0
  1991. package/dist/esm/internal/stm/opCodes/tryCommit.js +5 -0
  1992. package/dist/esm/internal/stm/opCodes/tryCommit.js.map +1 -0
  1993. package/dist/esm/internal/stm/stm/entry.js +42 -0
  1994. package/dist/esm/internal/stm/stm/entry.js.map +1 -0
  1995. package/dist/esm/internal/stm/stm/journal.js +89 -0
  1996. package/dist/esm/internal/stm/stm/journal.js.map +1 -0
  1997. package/dist/esm/internal/stm/stm/opCodes/stm.js +25 -0
  1998. package/dist/esm/internal/stm/stm/opCodes/stm.js.map +1 -0
  1999. package/dist/esm/internal/stm/stm/opCodes/stmState.js +7 -0
  2000. package/dist/esm/internal/stm/stm/opCodes/stmState.js.map +1 -0
  2001. package/dist/esm/internal/stm/stm/opCodes/strategy.js +7 -0
  2002. package/dist/esm/internal/stm/stm/opCodes/strategy.js.map +1 -0
  2003. package/dist/esm/internal/stm/stm/opCodes/tExit.js +11 -0
  2004. package/dist/esm/internal/stm/stm/opCodes/tExit.js.map +1 -0
  2005. package/dist/esm/internal/stm/stm/opCodes/tryCommit.js +5 -0
  2006. package/dist/esm/internal/stm/stm/opCodes/tryCommit.js.map +1 -0
  2007. package/dist/esm/internal/stm/stm/stmState.js +87 -0
  2008. package/dist/esm/internal/stm/stm/stmState.js.map +1 -0
  2009. package/dist/esm/internal/stm/stm/tExit.js +99 -0
  2010. package/dist/esm/internal/stm/stm/tExit.js.map +1 -0
  2011. package/dist/esm/internal/stm/stm/tryCommit.js +16 -0
  2012. package/dist/esm/internal/stm/stm/tryCommit.js.map +1 -0
  2013. package/dist/esm/internal/stm/stm/txnId.js +11 -0
  2014. package/dist/esm/internal/stm/stm/txnId.js.map +1 -0
  2015. package/dist/esm/internal/stm/stm/versioned.js +8 -0
  2016. package/dist/esm/internal/stm/stm/versioned.js.map +1 -0
  2017. package/dist/esm/internal/stm/stm.js +491 -0
  2018. package/dist/esm/internal/stm/stm.js.map +1 -0
  2019. package/dist/esm/internal/stm/tArray.js +243 -0
  2020. package/dist/esm/internal/stm/tArray.js.map +1 -0
  2021. package/dist/esm/internal/stm/tDeferred.js +39 -0
  2022. package/dist/esm/internal/stm/tDeferred.js.map +1 -0
  2023. package/dist/esm/internal/stm/tMap.js +428 -0
  2024. package/dist/esm/internal/stm/tMap.js.map +1 -0
  2025. package/dist/esm/internal/stm/tPriorityQueue.js +135 -0
  2026. package/dist/esm/internal/stm/tPriorityQueue.js.map +1 -0
  2027. package/dist/esm/internal/stm/tPubSub.js +376 -0
  2028. package/dist/esm/internal/stm/tPubSub.js.map +1 -0
  2029. package/dist/esm/internal/stm/tQueue.js +259 -0
  2030. package/dist/esm/internal/stm/tQueue.js.map +1 -0
  2031. package/dist/esm/internal/stm/tRandom.js +82 -0
  2032. package/dist/esm/internal/stm/tRandom.js.map +1 -0
  2033. package/dist/esm/internal/stm/tReentrantLock.js +192 -0
  2034. package/dist/esm/internal/stm/tReentrantLock.js.map +1 -0
  2035. package/dist/esm/internal/stm/tRef.js +96 -0
  2036. package/dist/esm/internal/stm/tRef.js.map +1 -0
  2037. package/dist/esm/internal/stm/tSemaphore.js +59 -0
  2038. package/dist/esm/internal/stm/tSemaphore.js.map +1 -0
  2039. package/dist/esm/internal/stm/tSet.js +88 -0
  2040. package/dist/esm/internal/stm/tSet.js.map +1 -0
  2041. package/dist/esm/internal/stream/debounceState.js +21 -0
  2042. package/dist/esm/internal/stream/debounceState.js.map +1 -0
  2043. package/dist/esm/internal/stream/emit.js +49 -0
  2044. package/dist/esm/internal/stream/emit.js.map +1 -0
  2045. package/dist/esm/internal/stream/haltStrategy.js +63 -0
  2046. package/dist/esm/internal/stream/haltStrategy.js.map +1 -0
  2047. package/dist/esm/internal/stream/handoff.js +55 -0
  2048. package/dist/esm/internal/stream/handoff.js.map +1 -0
  2049. package/dist/esm/internal/stream/handoffSignal.js +22 -0
  2050. package/dist/esm/internal/stream/handoffSignal.js.map +1 -0
  2051. package/dist/esm/internal/stream/pull.js +20 -0
  2052. package/dist/esm/internal/stream/pull.js.map +1 -0
  2053. package/dist/esm/internal/stream/sinkEndReason.js +13 -0
  2054. package/dist/esm/internal/stream/sinkEndReason.js.map +1 -0
  2055. package/dist/esm/internal/stream/zipAllState.js +33 -0
  2056. package/dist/esm/internal/stream/zipAllState.js.map +1 -0
  2057. package/dist/esm/internal/stream/zipChunksState.js +21 -0
  2058. package/dist/esm/internal/stream/zipChunksState.js.map +1 -0
  2059. package/dist/esm/internal/stream.js +2703 -0
  2060. package/dist/esm/internal/stream.js.map +1 -0
  2061. package/dist/esm/internal/string-utils.js +77 -0
  2062. package/dist/esm/internal/string-utils.js.map +1 -0
  2063. package/dist/esm/internal/subscriptionRef.js +56 -0
  2064. package/dist/esm/internal/subscriptionRef.js.map +1 -0
  2065. package/dist/esm/internal/supervisor/patch.js +125 -0
  2066. package/dist/esm/internal/supervisor/patch.js.map +1 -0
  2067. package/dist/esm/internal/supervisor.js +207 -0
  2068. package/dist/esm/internal/supervisor.js.map +1 -0
  2069. package/dist/esm/internal/synchronizedRef.js +44 -0
  2070. package/dist/esm/internal/synchronizedRef.js.map +1 -0
  2071. package/dist/esm/internal/take.js +108 -0
  2072. package/dist/esm/internal/take.js.map +1 -0
  2073. package/dist/esm/internal/testing/sleep.js +7 -0
  2074. package/dist/esm/internal/testing/sleep.js.map +1 -0
  2075. package/dist/esm/internal/testing/suspendedWarningData.js +48 -0
  2076. package/dist/esm/internal/testing/suspendedWarningData.js.map +1 -0
  2077. package/dist/esm/internal/testing/warningData.js +49 -0
  2078. package/dist/esm/internal/testing/warningData.js.map +1 -0
  2079. package/dist/esm/internal/timeout.js +18 -0
  2080. package/dist/esm/internal/timeout.js.map +1 -0
  2081. package/dist/esm/internal/tracer.js +74 -0
  2082. package/dist/esm/internal/tracer.js.map +1 -0
  2083. package/dist/esm/internal/version.js +2 -0
  2084. package/dist/esm/internal/version.js.map +1 -0
  2085. package/dist/esm/package.json +4 -0
  2086. package/package.json +1166 -31
  2087. package/src/BigDecimal.ts +1012 -0
  2088. package/src/BigInt.ts +547 -0
  2089. package/src/Boolean.ts +261 -0
  2090. package/src/Brand.ts +333 -0
  2091. package/src/Cache.ts +252 -0
  2092. package/src/Cause.ts +896 -0
  2093. package/src/Channel.ts +2267 -0
  2094. package/src/ChildExecutorDecision.ts +146 -0
  2095. package/src/Chunk.ts +1390 -0
  2096. package/src/Clock.ts +111 -0
  2097. package/src/Config.ts +462 -0
  2098. package/src/ConfigError.ts +267 -0
  2099. package/src/ConfigProvider.ts +328 -0
  2100. package/src/ConfigProviderPathPatch.ts +100 -0
  2101. package/src/Console.ts +232 -0
  2102. package/src/Context.ts +369 -0
  2103. package/src/Data.ts +476 -0
  2104. package/src/DefaultServices.ts +34 -0
  2105. package/src/Deferred.ts +284 -0
  2106. package/src/Differ.ts +449 -0
  2107. package/src/Duration.ts +642 -0
  2108. package/src/Effect.ts +5292 -0
  2109. package/src/Effectable.ts +107 -0
  2110. package/src/Either.ts +708 -0
  2111. package/src/Encoding.ts +130 -0
  2112. package/src/Equal.ts +65 -0
  2113. package/src/Equivalence.ts +235 -0
  2114. package/src/ExecutionStrategy.ts +111 -0
  2115. package/src/Exit.ts +480 -0
  2116. package/src/Fiber.ts +657 -0
  2117. package/src/FiberId.ts +187 -0
  2118. package/src/FiberRef.ts +399 -0
  2119. package/src/FiberRefs.ts +204 -0
  2120. package/src/FiberRefsPatch.ts +105 -0
  2121. package/src/FiberStatus.ts +108 -0
  2122. package/src/Function.ts +825 -0
  2123. package/src/GlobalValue.ts +22 -0
  2124. package/src/GroupBy.ts +107 -0
  2125. package/src/HKT.ts +45 -0
  2126. package/src/Hash.ts +158 -0
  2127. package/src/HashMap.ts +421 -0
  2128. package/src/HashSet.ts +300 -0
  2129. package/src/Inspectable.ts +47 -0
  2130. package/src/KeyedPool.ts +167 -0
  2131. package/src/Layer.ts +1051 -0
  2132. package/src/List.ts +968 -0
  2133. package/src/LogLevel.ts +256 -0
  2134. package/src/LogSpan.ts +25 -0
  2135. package/src/Logger.ts +329 -0
  2136. package/src/Match.ts +774 -0
  2137. package/src/MergeDecision.ts +95 -0
  2138. package/src/MergeState.ts +172 -0
  2139. package/src/MergeStrategy.ts +107 -0
  2140. package/src/Metric.ts +755 -0
  2141. package/src/MetricBoundaries.ts +69 -0
  2142. package/src/MetricHook.ts +140 -0
  2143. package/src/MetricKey.ts +216 -0
  2144. package/src/MetricKeyType.ts +257 -0
  2145. package/src/MetricLabel.ts +47 -0
  2146. package/src/MetricPair.ts +71 -0
  2147. package/src/MetricPolling.ts +148 -0
  2148. package/src/MetricRegistry.ts +48 -0
  2149. package/src/MetricState.ts +257 -0
  2150. package/src/MutableHashMap.ts +353 -0
  2151. package/src/MutableHashSet.ts +120 -0
  2152. package/src/MutableList.ts +289 -0
  2153. package/src/MutableQueue.ts +227 -0
  2154. package/src/MutableRef.ts +204 -0
  2155. package/src/NonEmptyIterable.ts +32 -0
  2156. package/src/Number.ts +450 -0
  2157. package/src/Option.ts +1235 -0
  2158. package/src/Order.ts +356 -0
  2159. package/src/Ordering.ts +112 -0
  2160. package/src/Pipeable.ts +318 -0
  2161. package/src/Pool.ts +147 -0
  2162. package/src/Predicate.ts +743 -0
  2163. package/src/PrimaryKey.ts +23 -0
  2164. package/src/PubSub.ts +175 -0
  2165. package/src/Queue.ts +606 -0
  2166. package/src/Random.ts +115 -0
  2167. package/src/ReadonlyArray.ts +2069 -0
  2168. package/src/ReadonlyRecord.ts +1011 -0
  2169. package/src/RedBlackTree.ts +421 -0
  2170. package/src/Ref.ts +160 -0
  2171. package/src/Reloadable.ts +137 -0
  2172. package/src/Request.ts +342 -0
  2173. package/src/RequestBlock.ts +118 -0
  2174. package/src/RequestResolver.ts +328 -0
  2175. package/src/Resource.ts +98 -0
  2176. package/src/Runtime.ts +215 -0
  2177. package/src/RuntimeFlags.ts +336 -0
  2178. package/src/RuntimeFlagsPatch.ts +183 -0
  2179. package/src/STM.ts +2098 -0
  2180. package/src/Schedule.ts +1405 -0
  2181. package/src/ScheduleDecision.ts +62 -0
  2182. package/src/ScheduleInterval.ts +151 -0
  2183. package/src/ScheduleIntervals.ts +122 -0
  2184. package/src/Scheduler.ts +359 -0
  2185. package/src/Scope.ts +171 -0
  2186. package/src/ScopedCache.ts +149 -0
  2187. package/src/ScopedRef.ts +96 -0
  2188. package/src/Secret.ts +75 -0
  2189. package/src/SingleProducerAsyncInput.ts +68 -0
  2190. package/src/Sink.ts +1470 -0
  2191. package/src/SortedMap.ts +248 -0
  2192. package/src/SortedSet.ts +379 -0
  2193. package/src/Stream.ts +4662 -0
  2194. package/src/StreamEmit.ts +83 -0
  2195. package/src/StreamHaltStrategy.ts +111 -0
  2196. package/src/Streamable.ts +45 -0
  2197. package/src/String.ts +682 -0
  2198. package/src/Struct.ts +152 -0
  2199. package/src/SubscriptionRef.ts +276 -0
  2200. package/src/Supervisor.ts +240 -0
  2201. package/src/Symbol.ts +28 -0
  2202. package/src/SynchronizedRef.ts +250 -0
  2203. package/src/TArray.ts +495 -0
  2204. package/src/TDeferred.ts +100 -0
  2205. package/src/TMap.ts +515 -0
  2206. package/src/TPriorityQueue.ts +224 -0
  2207. package/src/TPubSub.ts +191 -0
  2208. package/src/TQueue.ts +432 -0
  2209. package/src/TRandom.ts +129 -0
  2210. package/src/TReentrantLock.ts +224 -0
  2211. package/src/TRef.ts +177 -0
  2212. package/src/TSemaphore.ts +129 -0
  2213. package/src/TSet.ts +365 -0
  2214. package/src/Take.ts +258 -0
  2215. package/src/TestAnnotation.ts +169 -0
  2216. package/src/TestAnnotationMap.ts +123 -0
  2217. package/src/TestAnnotations.ts +116 -0
  2218. package/src/TestClock.ts +550 -0
  2219. package/src/TestConfig.ts +49 -0
  2220. package/src/TestContext.ts +36 -0
  2221. package/src/TestLive.ts +55 -0
  2222. package/src/TestServices.ts +392 -0
  2223. package/src/TestSized.ts +55 -0
  2224. package/src/Tracer.ts +135 -0
  2225. package/src/Tuple.ts +204 -0
  2226. package/src/Types.ts +176 -0
  2227. package/src/Unify.ts +118 -0
  2228. package/src/UpstreamPullRequest.ts +117 -0
  2229. package/src/UpstreamPullStrategy.ts +121 -0
  2230. package/src/Utils.ts +700 -0
  2231. package/src/index.ts +867 -0
  2232. package/src/internal/Iterable.ts +54 -0
  2233. package/src/internal/blockedRequests.ts +504 -0
  2234. package/src/internal/cache.ts +714 -0
  2235. package/src/internal/cause.ts +1072 -0
  2236. package/src/internal/channel/channelExecutor.ts +1194 -0
  2237. package/src/internal/channel/channelState.ts +134 -0
  2238. package/src/internal/channel/childExecutorDecision.ts +96 -0
  2239. package/src/internal/channel/continuation.ts +200 -0
  2240. package/src/internal/channel/mergeDecision.ts +115 -0
  2241. package/src/internal/channel/mergeState.ts +120 -0
  2242. package/src/internal/channel/mergeStrategy.ts +72 -0
  2243. package/src/internal/channel/singleProducerAsyncInput.ts +261 -0
  2244. package/src/internal/channel/subexecutor.ts +229 -0
  2245. package/src/internal/channel/upstreamPullRequest.ts +84 -0
  2246. package/src/internal/channel/upstreamPullStrategy.ts +87 -0
  2247. package/src/internal/channel.ts +2539 -0
  2248. package/src/internal/clock.ts +97 -0
  2249. package/src/internal/completedRequestMap.ts +9 -0
  2250. package/src/internal/concurrency.ts +54 -0
  2251. package/src/internal/config.ts +615 -0
  2252. package/src/internal/configError.ts +291 -0
  2253. package/src/internal/configProvider/pathPatch.ts +97 -0
  2254. package/src/internal/configProvider.ts +807 -0
  2255. package/src/internal/console.ts +153 -0
  2256. package/src/internal/context.ts +253 -0
  2257. package/src/internal/core-effect.ts +2159 -0
  2258. package/src/internal/core-stream.ts +1003 -0
  2259. package/src/internal/core.ts +3004 -0
  2260. package/src/internal/data.ts +37 -0
  2261. package/src/internal/dataSource.ts +302 -0
  2262. package/src/internal/defaultServices/console.ts +97 -0
  2263. package/src/internal/defaultServices.ts +140 -0
  2264. package/src/internal/deferred.ts +46 -0
  2265. package/src/internal/differ/chunkPatch.ts +211 -0
  2266. package/src/internal/differ/contextPatch.ts +232 -0
  2267. package/src/internal/differ/hashMapPatch.ts +220 -0
  2268. package/src/internal/differ/hashSetPatch.ts +176 -0
  2269. package/src/internal/differ/orPatch.ts +311 -0
  2270. package/src/internal/differ/readonlyArrayPatch.ts +208 -0
  2271. package/src/internal/differ.ts +196 -0
  2272. package/src/internal/effect/circular.ts +672 -0
  2273. package/src/internal/effectable.ts +127 -0
  2274. package/src/internal/either.ts +107 -0
  2275. package/src/internal/encoding/base64.ts +282 -0
  2276. package/src/internal/encoding/base64Url.ts +28 -0
  2277. package/src/internal/encoding/common.ts +30 -0
  2278. package/src/internal/encoding/hex.ts +315 -0
  2279. package/src/internal/executionStrategy.ts +72 -0
  2280. package/src/internal/fiber.ts +349 -0
  2281. package/src/internal/fiberId.ts +269 -0
  2282. package/src/internal/fiberMessage.ts +82 -0
  2283. package/src/internal/fiberRefs/patch.ts +144 -0
  2284. package/src/internal/fiberRefs.ts +298 -0
  2285. package/src/internal/fiberRuntime.ts +3491 -0
  2286. package/src/internal/fiberScope.ts +72 -0
  2287. package/src/internal/fiberStatus.ts +118 -0
  2288. package/src/internal/groupBy.ts +541 -0
  2289. package/src/internal/hashMap/array.ts +49 -0
  2290. package/src/internal/hashMap/bitwise.ts +32 -0
  2291. package/src/internal/hashMap/config.ts +14 -0
  2292. package/src/internal/hashMap/keySet.ts +8 -0
  2293. package/src/internal/hashMap/node.ts +391 -0
  2294. package/src/internal/hashMap.ts +540 -0
  2295. package/src/internal/hashSet.ts +319 -0
  2296. package/src/internal/internalize.ts +5 -0
  2297. package/src/internal/keyedPool.ts +242 -0
  2298. package/src/internal/layer/circular.ts +217 -0
  2299. package/src/internal/layer.ts +1231 -0
  2300. package/src/internal/logSpan.ts +15 -0
  2301. package/src/internal/logger-circular.ts +24 -0
  2302. package/src/internal/logger.ts +305 -0
  2303. package/src/internal/matcher.ts +594 -0
  2304. package/src/internal/metric/boundaries.ts +75 -0
  2305. package/src/internal/metric/hook.ts +449 -0
  2306. package/src/internal/metric/key.ts +164 -0
  2307. package/src/internal/metric/keyType.ts +269 -0
  2308. package/src/internal/metric/label.ts +41 -0
  2309. package/src/internal/metric/pair.ts +48 -0
  2310. package/src/internal/metric/polling.ts +143 -0
  2311. package/src/internal/metric/registry.ts +187 -0
  2312. package/src/internal/metric/state.ts +289 -0
  2313. package/src/internal/metric.ts +548 -0
  2314. package/src/internal/opCodes/cause.ts +35 -0
  2315. package/src/internal/opCodes/channel.ts +83 -0
  2316. package/src/internal/opCodes/channelChildExecutorDecision.ts +17 -0
  2317. package/src/internal/opCodes/channelMergeDecision.ts +11 -0
  2318. package/src/internal/opCodes/channelMergeState.ts +17 -0
  2319. package/src/internal/opCodes/channelMergeStrategy.ts +11 -0
  2320. package/src/internal/opCodes/channelState.ts +23 -0
  2321. package/src/internal/opCodes/channelUpstreamPullRequest.ts +11 -0
  2322. package/src/internal/opCodes/channelUpstreamPullStrategy.ts +11 -0
  2323. package/src/internal/opCodes/config.ts +65 -0
  2324. package/src/internal/opCodes/configError.ts +35 -0
  2325. package/src/internal/opCodes/continuation.ts +11 -0
  2326. package/src/internal/opCodes/deferred.ts +11 -0
  2327. package/src/internal/opCodes/effect.ts +83 -0
  2328. package/src/internal/opCodes/layer.ts +53 -0
  2329. package/src/internal/opCodes/streamHaltStrategy.ts +23 -0
  2330. package/src/internal/option.ts +79 -0
  2331. package/src/internal/pool.ts +496 -0
  2332. package/src/internal/pubsub.ts +1561 -0
  2333. package/src/internal/query.ts +203 -0
  2334. package/src/internal/queue.ts +765 -0
  2335. package/src/internal/random.ts +88 -0
  2336. package/src/internal/readonlyArray.ts +8 -0
  2337. package/src/internal/redBlackTree/iterator.ts +200 -0
  2338. package/src/internal/redBlackTree/node.ts +48 -0
  2339. package/src/internal/redBlackTree.ts +1210 -0
  2340. package/src/internal/ref.ts +165 -0
  2341. package/src/internal/reloadable.ts +163 -0
  2342. package/src/internal/request.ts +176 -0
  2343. package/src/internal/resource.ts +65 -0
  2344. package/src/internal/ringBuffer.ts +68 -0
  2345. package/src/internal/runtime.ts +346 -0
  2346. package/src/internal/runtimeFlags.ts +178 -0
  2347. package/src/internal/runtimeFlagsPatch.ts +103 -0
  2348. package/src/internal/schedule/decision.ts +47 -0
  2349. package/src/internal/schedule/interval.ts +101 -0
  2350. package/src/internal/schedule/intervals.ts +179 -0
  2351. package/src/internal/schedule.ts +2103 -0
  2352. package/src/internal/scopedCache.ts +641 -0
  2353. package/src/internal/scopedRef.ts +134 -0
  2354. package/src/internal/secret.ts +69 -0
  2355. package/src/internal/singleShotGen.ts +35 -0
  2356. package/src/internal/sink.ts +2159 -0
  2357. package/src/internal/stack.ts +4 -0
  2358. package/src/internal/stm/core.ts +809 -0
  2359. package/src/internal/stm/opCodes/stm.ts +71 -0
  2360. package/src/internal/stm/opCodes/stmState.ts +17 -0
  2361. package/src/internal/stm/opCodes/strategy.ts +17 -0
  2362. package/src/internal/stm/opCodes/tExit.ts +29 -0
  2363. package/src/internal/stm/opCodes/tryCommit.ts +11 -0
  2364. package/src/internal/stm/stm/entry.ts +59 -0
  2365. package/src/internal/stm/stm/journal.ts +123 -0
  2366. package/src/internal/stm/stm/opCodes/stm.ts +71 -0
  2367. package/src/internal/stm/stm/opCodes/stmState.ts +17 -0
  2368. package/src/internal/stm/stm/opCodes/strategy.ts +17 -0
  2369. package/src/internal/stm/stm/opCodes/tExit.ts +29 -0
  2370. package/src/internal/stm/stm/opCodes/tryCommit.ts +11 -0
  2371. package/src/internal/stm/stm/stmState.ts +131 -0
  2372. package/src/internal/stm/stm/tExit.ts +181 -0
  2373. package/src/internal/stm/stm/tryCommit.ts +34 -0
  2374. package/src/internal/stm/stm/txnId.ts +14 -0
  2375. package/src/internal/stm/stm/versioned.ts +4 -0
  2376. package/src/internal/stm/stm.ts +1491 -0
  2377. package/src/internal/stm/tArray.ts +550 -0
  2378. package/src/internal/stm/tDeferred.ts +79 -0
  2379. package/src/internal/stm/tMap.ts +823 -0
  2380. package/src/internal/stm/tPriorityQueue.ts +260 -0
  2381. package/src/internal/stm/tPubSub.ts +551 -0
  2382. package/src/internal/stm/tQueue.ts +397 -0
  2383. package/src/internal/stm/tRandom.ts +140 -0
  2384. package/src/internal/stm/tReentrantLock.ts +352 -0
  2385. package/src/internal/stm/tRef.ts +190 -0
  2386. package/src/internal/stm/tSemaphore.ts +113 -0
  2387. package/src/internal/stm/tSet.ts +260 -0
  2388. package/src/internal/stream/debounceState.ts +57 -0
  2389. package/src/internal/stream/emit.ts +46 -0
  2390. package/src/internal/stream/haltStrategy.ts +85 -0
  2391. package/src/internal/stream/handoff.ts +187 -0
  2392. package/src/internal/stream/handoffSignal.ts +59 -0
  2393. package/src/internal/stream/pull.ts +35 -0
  2394. package/src/internal/stream/sinkEndReason.ts +30 -0
  2395. package/src/internal/stream/zipAllState.ts +88 -0
  2396. package/src/internal/stream/zipChunksState.ts +56 -0
  2397. package/src/internal/stream.ts +8171 -0
  2398. package/src/internal/string-utils.ts +107 -0
  2399. package/src/internal/subscriptionRef.ts +131 -0
  2400. package/src/internal/supervisor/patch.ts +190 -0
  2401. package/src/internal/supervisor.ts +310 -0
  2402. package/src/internal/synchronizedRef.ts +115 -0
  2403. package/src/internal/take.ts +199 -0
  2404. package/src/internal/testing/sleep.ts +27 -0
  2405. package/src/internal/testing/suspendedWarningData.ts +85 -0
  2406. package/src/internal/testing/warningData.ts +94 -0
  2407. package/src/internal/timeout.ts +23 -0
  2408. package/src/internal/tracer.ts +101 -0
  2409. package/src/internal/version.ts +1 -0
  2410. package/Debug.d.ts +0 -31
  2411. package/Debug.d.ts.map +0 -1
  2412. package/Debug.js +0 -31
  2413. package/Debug.js.map +0 -1
  2414. package/Differ.d.ts +0 -61
  2415. package/Differ.d.ts.map +0 -1
  2416. package/Differ.js +0 -38
  2417. package/Differ.js.map +0 -1
  2418. package/Fiber.d.ts +0 -51
  2419. package/Fiber.d.ts.map +0 -1
  2420. package/Fiber.js +0 -35
  2421. package/Fiber.js.map +0 -1
  2422. package/FiberRefs.d.ts +0 -21
  2423. package/FiberRefs.d.ts.map +0 -1
  2424. package/FiberRefs.js +0 -26
  2425. package/FiberRefs.js.map +0 -1
  2426. package/Logger/LogLevel.d.ts +0 -10
  2427. package/Logger/LogLevel.d.ts.map +0 -1
  2428. package/Logger/LogLevel.js +0 -17
  2429. package/Logger/LogLevel.js.map +0 -1
  2430. package/Logger.d.ts +0 -31
  2431. package/Logger.d.ts.map +0 -1
  2432. package/Logger.js +0 -29
  2433. package/Logger.js.map +0 -1
  2434. package/Metric.d.ts +0 -101
  2435. package/Metric.d.ts.map +0 -1
  2436. package/Metric.js +0 -50
  2437. package/Metric.js.map +0 -1
  2438. package/Optic.d.ts +0 -62
  2439. package/Optic.d.ts.map +0 -1
  2440. package/Optic.js +0 -70
  2441. package/Optic.js.map +0 -1
  2442. package/Ref.d.ts +0 -31
  2443. package/Ref.d.ts.map +0 -1
  2444. package/Ref.js +0 -29
  2445. package/Ref.js.map +0 -1
  2446. package/Schedule.d.ts +0 -41
  2447. package/Schedule.d.ts.map +0 -1
  2448. package/Schedule.js +0 -32
  2449. package/Schedule.js.map +0 -1
  2450. package/_mjs/Debug.mjs +0 -27
  2451. package/_mjs/Debug.mjs.map +0 -1
  2452. package/_mjs/Differ.mjs +0 -61
  2453. package/_mjs/Differ.mjs.map +0 -1
  2454. package/_mjs/Fiber.mjs +0 -51
  2455. package/_mjs/Fiber.mjs.map +0 -1
  2456. package/_mjs/FiberRefs.mjs +0 -21
  2457. package/_mjs/FiberRefs.mjs.map +0 -1
  2458. package/_mjs/Logger/LogLevel.mjs +0 -10
  2459. package/_mjs/Logger/LogLevel.mjs.map +0 -1
  2460. package/_mjs/Logger.mjs +0 -31
  2461. package/_mjs/Logger.mjs.map +0 -1
  2462. package/_mjs/Metric.mjs +0 -101
  2463. package/_mjs/Metric.mjs.map +0 -1
  2464. package/_mjs/Optic.mjs +0 -62
  2465. package/_mjs/Optic.mjs.map +0 -1
  2466. package/_mjs/Ref.mjs +0 -31
  2467. package/_mjs/Ref.mjs.map +0 -1
  2468. package/_mjs/Schedule.mjs +0 -41
  2469. package/_mjs/Schedule.mjs.map +0 -1
  2470. package/_mjs/index.mjs +0 -939
  2471. package/_mjs/index.mjs.map +0 -1
  2472. package/index.d.ts +0 -939
  2473. package/index.d.ts.map +0 -1
  2474. package/index.js +0 -217
  2475. package/index.js.map +0 -1
@@ -0,0 +1,2708 @@
1
+ import { dual, identity } from "./Function.js";
2
+ import * as _console from "./internal/console.js";
3
+ import * as effect from "./internal/core-effect.js";
4
+ import * as core from "./internal/core.js";
5
+ import * as defaultServices from "./internal/defaultServices.js";
6
+ import * as circular from "./internal/effect/circular.js";
7
+ import * as fiberRuntime from "./internal/fiberRuntime.js";
8
+ import * as layer from "./internal/layer.js";
9
+ import * as query from "./internal/query.js";
10
+ import * as _runtime from "./internal/runtime.js";
11
+ import * as _schedule from "./internal/schedule.js";
12
+ import * as Scheduler from "./Scheduler.js";
13
+ /**
14
+ * @since 2.0.0
15
+ * @category symbols
16
+ */
17
+ export const EffectTypeId = core.EffectTypeId;
18
+ // -------------------------------------------------------------------------------------
19
+ // refinements
20
+ // -------------------------------------------------------------------------------------
21
+ /**
22
+ * This function returns `true` if the specified value is an `Effect` value,
23
+ * `false` otherwise.
24
+ *
25
+ * This function can be useful for checking the type of a value before
26
+ * attempting to operate on it as an `Effect` value. For example, you could
27
+ * use `isEffect` to check the type of a value before using it as an
28
+ * argument to a function that expects an `Effect` value.
29
+ *
30
+ * @param u - The value to check for being an `Effect` value.
31
+ *
32
+ * @returns `true` if the specified value is an `Effect` value, `false`
33
+ * otherwise.
34
+ *
35
+ * @since 2.0.0
36
+ * @category refinements
37
+ */
38
+ export const isEffect = core.isEffect;
39
+ // -------------------------------------------------------------------------------------
40
+ // caching
41
+ // -------------------------------------------------------------------------------------
42
+ /**
43
+ * Returns an effect that, if evaluated, will return the cached result of this
44
+ * effect. Cached results will expire after `timeToLive` duration.
45
+ *
46
+ * @since 2.0.0
47
+ * @category caching
48
+ */
49
+ export const cachedWithTTL = circular.cached;
50
+ /**
51
+ * Returns an effect that, if evaluated, will return the cached result of this
52
+ * effect. Cached results will expire after `timeToLive` duration. In
53
+ * addition, returns an effect that can be used to invalidate the current
54
+ * cached value before the `timeToLive` duration expires.
55
+ *
56
+ * @since 2.0.0
57
+ * @category caching
58
+ */
59
+ export const cachedInvalidateWithTTL = circular.cachedInvalidate;
60
+ /**
61
+ * Returns an effect that, if evaluated, will return the lazily computed
62
+ * result of this effect.
63
+ *
64
+ * @since 2.0.0
65
+ * @category caching
66
+ */
67
+ export const cached = effect.memoize;
68
+ /**
69
+ * Returns a memoized version of the specified effectual function.
70
+ *
71
+ * @since 2.0.0
72
+ * @category caching
73
+ */
74
+ export const cachedFunction = circular.memoizeFunction;
75
+ /**
76
+ * Returns an effect that will be executed at most once, even if it is
77
+ * evaluated multiple times.
78
+ *
79
+ * @example
80
+ * import * as Effect from "effect/Effect"
81
+ * import * as Console from "effect/Console"
82
+ *
83
+ * const program = Effect.gen(function* (_) {
84
+ * const twice = Console.log("twice")
85
+ * yield* _(twice, Effect.repeatN(1))
86
+ * const once = yield* _(Console.log("once"), Effect.once)
87
+ * yield* _(once, Effect.repeatN(1))
88
+ * })
89
+ *
90
+ * Effect.runFork(program)
91
+ * // Output:
92
+ * // twice
93
+ * // twice
94
+ * // once
95
+ *
96
+ * @since 2.0.0
97
+ * @category caching
98
+ */
99
+ export const once = effect.once;
100
+ // -------------------------------------------------------------------------------------
101
+ // collecting & elements
102
+ // -------------------------------------------------------------------------------------
103
+ /**
104
+ * Runs all the provided effects in sequence respecting the structure provided in input.
105
+ *
106
+ * Supports multiple arguments, a single argument tuple / array or record / struct.
107
+ *
108
+ * @since 2.0.0
109
+ * @category collecting & elements
110
+ */
111
+ export const all = fiberRuntime.all;
112
+ /**
113
+ * Data-last variant of `Effect.all`.
114
+ *
115
+ * Runs all the provided effects in sequence respecting the structure provided in input.
116
+ *
117
+ * Supports multiple arguments, a single argument tuple / array or record / struct.
118
+ *
119
+ * @since 2.0.0
120
+ * @category collecting & elements
121
+ */
122
+ export const allWith = fiberRuntime.allWith;
123
+ /**
124
+ * Evaluate and run each effect in the structure and collect the results,
125
+ * discarding results from failed effects.
126
+ *
127
+ * @since 2.0.0
128
+ * @category collecting & elements
129
+ */
130
+ export const allSuccesses = fiberRuntime.allSuccesses;
131
+ /**
132
+ * Drops all elements until the effectful predicate returns true.
133
+ *
134
+ * @since 2.0.0
135
+ * @category collecting & elements
136
+ */
137
+ export const dropUntil = effect.dropUntil;
138
+ /**
139
+ * Drops all elements so long as the predicate returns true.
140
+ *
141
+ * @since 2.0.0
142
+ * @category collecting & elements
143
+ */
144
+ export const dropWhile = effect.dropWhile;
145
+ /**
146
+ * Determines whether all elements of the `Collection<A>` satisfies the effectual
147
+ * predicate `f`.
148
+ *
149
+ * @since 2.0.0
150
+ * @category collecting & elements
151
+ */
152
+ export const every = effect.every;
153
+ /**
154
+ * Determines whether any element of the `Iterable<A>` satisfies the effectual
155
+ * predicate `f`.
156
+ *
157
+ * @since 2.0.0
158
+ * @category collecting & elements
159
+ */
160
+ export const exists = fiberRuntime.exists;
161
+ /**
162
+ * Filters the collection using the specified effectful predicate.
163
+ *
164
+ * @since 2.0.0
165
+ * @category collecting & elements
166
+ */
167
+ export const filter = fiberRuntime.filter;
168
+ /**
169
+ * Returns the first element that satisfies the effectful predicate.
170
+ *
171
+ * @since 2.0.0
172
+ * @category collecting & elements
173
+ */
174
+ export const findFirst = effect.findFirst;
175
+ /**
176
+ * This function takes an iterable of `Effect` values and returns a new
177
+ * `Effect` value that represents the first `Effect` value in the iterable
178
+ * that succeeds. If all of the `Effect` values in the iterable fail, then
179
+ * the resulting `Effect` value will fail as well.
180
+ *
181
+ * This function is sequential, meaning that the `Effect` values in the
182
+ * iterable will be executed in sequence, and the first one that succeeds
183
+ * will determine the outcome of the resulting `Effect` value.
184
+ *
185
+ * @param effects - The iterable of `Effect` values to evaluate.
186
+ *
187
+ * @returns A new `Effect` value that represents the first successful
188
+ * `Effect` value in the iterable, or a failed `Effect` value if all of the
189
+ * `Effect` values in the iterable fail.
190
+ *
191
+ * @since 2.0.0
192
+ * @category collecting & elements
193
+ */
194
+ export const firstSuccessOf = effect.firstSuccessOf;
195
+ /**
196
+ * @since 2.0.0
197
+ * @category collecting & elements
198
+ */
199
+ export const forEach = fiberRuntime.forEach;
200
+ /**
201
+ * Returns a successful effect with the head of the collection if the collection
202
+ * is non-empty, or fails with the error `None` if the collection is empty.
203
+ *
204
+ * @since 2.0.0
205
+ * @category collecting & elements
206
+ */
207
+ export const head = effect.head;
208
+ /**
209
+ * Merges an `Iterable<Effect<R, E, A>>` to a single effect, working
210
+ * sequentially.
211
+ *
212
+ * @since 2.0.0
213
+ * @category collecting & elements
214
+ */
215
+ export const mergeAll = fiberRuntime.mergeAll;
216
+ /**
217
+ * Feeds elements of type `A` to a function `f` that returns an effect.
218
+ * Collects all successes and failures in a tupled fashion.
219
+ *
220
+ * @since 2.0.0
221
+ * @category collecting & elements
222
+ */
223
+ export const partition = fiberRuntime.partition;
224
+ /**
225
+ * Folds an `Iterable<A>` using an effectual function f, working sequentially
226
+ * from left to right.
227
+ *
228
+ * @since 2.0.0
229
+ * @category collecting & elements
230
+ */
231
+ export const reduce = effect.reduce;
232
+ /**
233
+ * Reduces an `Iterable<Effect<R, E, A>>` to a single effect.
234
+ *
235
+ * @since 2.0.0
236
+ * @category collecting & elements
237
+ */
238
+ export const reduceEffect = fiberRuntime.reduceEffect;
239
+ /**
240
+ * Folds an `Iterable<A>` using an effectual function f, working sequentially from left to right.
241
+ *
242
+ * @since 2.0.0
243
+ * @category collecting & elements
244
+ */
245
+ export const reduceRight = effect.reduceRight;
246
+ /**
247
+ * Folds over the elements in this chunk from the left, stopping the fold early
248
+ * when the predicate is not satisfied.
249
+ *
250
+ * @since 2.0.0
251
+ * @category collecting & elements
252
+ */
253
+ export const reduceWhile = effect.reduceWhile;
254
+ /**
255
+ * Replicates the given effect `n` times.
256
+ *
257
+ * @since 2.0.0
258
+ * @category collecting & elements
259
+ */
260
+ export const replicate = fiberRuntime.replicate;
261
+ /**
262
+ * Performs this effect the specified number of times and collects the
263
+ * results.
264
+ *
265
+ * @since 2.0.0
266
+ * @category collecting & elements
267
+ */
268
+ export const replicateEffect = fiberRuntime.replicateEffect;
269
+ /**
270
+ * Takes elements until the effectual predicate returns true.
271
+ *
272
+ * @since 2.0.0
273
+ * @category collecting & elements
274
+ */
275
+ export const takeUntil = effect.takeUntil;
276
+ /**
277
+ * Takes all elements so long as the effectual predicate returns true.
278
+ *
279
+ * @since 2.0.0
280
+ * @category collecting & elements
281
+ */
282
+ export const takeWhile = effect.takeWhile;
283
+ /**
284
+ * Feeds elements of type `A` to `f` and accumulates all errors in error
285
+ * channel or successes in success channel.
286
+ *
287
+ * This combinator is lossy meaning that if there are errors all successes
288
+ * will be lost. To retain all information please use `partition`.
289
+ *
290
+ * @since 2.0.0
291
+ * @category collecting & elements
292
+ */
293
+ export const validateAll = fiberRuntime.validateAll;
294
+ /**
295
+ * Feeds elements of type `A` to `f` until it succeeds. Returns first success
296
+ * or the accumulation of all errors.
297
+ *
298
+ * If `elements` is empty then `Effect.fail([])` is returned.
299
+ *
300
+ * @example
301
+ * import * as Effect from "effect/Effect"
302
+ * import * as Exit from "effect/Exit"
303
+ *
304
+ * const f = (n: number) => (n > 0 ? Effect.succeed(n) : Effect.fail(`${n} is negative`))
305
+ *
306
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([], f)), Exit.fail([]))
307
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([1, 2], f)), Exit.succeed(1))
308
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([1, -1], f)), Exit.succeed(1))
309
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([-1, 2], f)), Exit.succeed(2))
310
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([-1, -2], f)), Exit.fail(['-1 is negative', '-2 is negative']))
311
+ *
312
+ * @since 2.0.0
313
+ * @category collecting & elements
314
+ */
315
+ export const validateFirst = fiberRuntime.validateFirst;
316
+ // -------------------------------------------------------------------------------------
317
+ // constructors
318
+ // -------------------------------------------------------------------------------------
319
+ /**
320
+ * Imports an asynchronous side-effect into a pure `Effect` value.
321
+ * The callback function `Effect<R, E, A> => void` must be called at most once.
322
+ *
323
+ * If an Effect is returned by the registration function, it will be executed
324
+ * if the fiber executing the effect is interrupted.
325
+ *
326
+ * The registration function can also receive an `AbortSignal` if required for
327
+ * interruption.
328
+ *
329
+ * The `FiberId` of the fiber that may complete the async callback may be
330
+ * provided to allow for better diagnostics.
331
+ *
332
+ * @since 2.0.0
333
+ * @category constructors
334
+ */
335
+ export const async = core.async;
336
+ /**
337
+ * Converts an asynchronous, callback-style API into an `Effect`, which will
338
+ * be executed asynchronously.
339
+ *
340
+ * With this variant, the registration function may return a an `Effect`.
341
+ *
342
+ * @since 2.0.0
343
+ * @category constructors
344
+ */
345
+ export const asyncEffect = _runtime.asyncEffect;
346
+ /**
347
+ * Imports an asynchronous effect into a pure `Effect` value, possibly returning
348
+ * the value synchronously.
349
+ *
350
+ * If the register function returns a value synchronously, then the callback
351
+ * function `Effect<R, E, A> => void` must not be called. Otherwise the callback
352
+ * function must be called at most once.
353
+ *
354
+ * The `FiberId` of the fiber that may complete the async callback may be
355
+ * provided to allow for better diagnostics.
356
+ *
357
+ * @since 2.0.0
358
+ * @category constructors
359
+ */
360
+ export const asyncOption = effect.asyncOption;
361
+ /**
362
+ * Imports an asynchronous side-effect into an effect. It has the option of
363
+ * returning the value synchronously, which is useful in cases where it cannot
364
+ * be determined if the effect is synchronous or asynchronous until the register
365
+ * is actually executed. It also has the option of returning a canceler,
366
+ * which will be used by the runtime to cancel the asynchronous effect if the fiber
367
+ * executing the effect is interrupted.
368
+ *
369
+ * If the register function returns a value synchronously, then the callback
370
+ * function `Effect<R, E, A> => void` must not be called. Otherwise the callback
371
+ * function must be called at most once.
372
+ *
373
+ * The `FiberId` of the fiber that may complete the async callback may be
374
+ * provided to allow for better diagnostics.
375
+ *
376
+ * @since 2.0.0
377
+ * @category constructors
378
+ */
379
+ export const asyncEither = core.asyncEither;
380
+ /**
381
+ * @since 2.0.0
382
+ * @category constructors
383
+ */
384
+ export const fail = core.fail;
385
+ /**
386
+ * @since 2.0.0
387
+ * @category constructors
388
+ */
389
+ export const failSync = core.failSync;
390
+ /**
391
+ * @since 2.0.0
392
+ * @category constructors
393
+ */
394
+ export const failCause = core.failCause;
395
+ /**
396
+ * @since 2.0.0
397
+ * @category constructors
398
+ */
399
+ export const failCauseSync = core.failCauseSync;
400
+ /**
401
+ * @since 2.0.0
402
+ * @category constructors
403
+ */
404
+ export const die = core.die;
405
+ /**
406
+ * Returns an effect that dies with a `RuntimeException` having the specified
407
+ * text message. This method can be used for terminating a fiber because a
408
+ * defect has been detected in the code.
409
+ *
410
+ * @since 2.0.0
411
+ * @category constructors
412
+ */
413
+ export const dieMessage = core.dieMessage;
414
+ /**
415
+ * @since 2.0.0
416
+ * @category constructors
417
+ */
418
+ export const dieSync = core.dieSync;
419
+ /**
420
+ * @since 2.0.0
421
+ * @category constructors
422
+ */
423
+ export const gen = effect.gen;
424
+ /**
425
+ * Returns a effect that will never produce anything. The moral equivalent of
426
+ * `while(true) {}`, only without the wasted CPU cycles.
427
+ *
428
+ * @since 2.0.0
429
+ * @category constructors
430
+ */
431
+ export const never = core.never;
432
+ /**
433
+ * Requires the option produced by this value to be `None`.
434
+ *
435
+ * @since 2.0.0
436
+ * @category constructors
437
+ */
438
+ export const none = effect.none;
439
+ /**
440
+ * Like `tryPromise` but produces a defect in case of errors.
441
+ *
442
+ * An optional `AbortSignal` can be provided to allow for interruption of the
443
+ * wrapped Promise api.
444
+ *
445
+ * @since 2.0.0
446
+ * @category constructors
447
+ */
448
+ export const promise = effect.promise;
449
+ /**
450
+ * @since 2.0.0
451
+ * @category constructors
452
+ */
453
+ export const succeed = core.succeed;
454
+ /**
455
+ * Returns an effect which succeeds with `None`.
456
+ *
457
+ * @since 2.0.0
458
+ * @category constructors
459
+ */
460
+ export const succeedNone = effect.succeedNone;
461
+ /**
462
+ * Returns an effect which succeeds with the value wrapped in a `Some`.
463
+ *
464
+ * @since 2.0.0
465
+ * @category constructors
466
+ */
467
+ export const succeedSome = effect.succeedSome;
468
+ /**
469
+ * @since 2.0.0
470
+ * @category constructors
471
+ */
472
+ export const suspend = core.suspend;
473
+ /**
474
+ * @since 2.0.0
475
+ * @category constructors
476
+ */
477
+ export const sync = core.sync;
478
+ /**
479
+ * @since 2.0.0
480
+ * @category constructors
481
+ */
482
+ export const unit = core.unit;
483
+ /**
484
+ * @since 2.0.0
485
+ * @category constructors
486
+ */
487
+ export const yieldNow = core.yieldNow;
488
+ // -------------------------------------------------------------------------------------
489
+ // error handling
490
+ // -------------------------------------------------------------------------------------
491
+ const _catch = effect._catch;
492
+ export {
493
+ /**
494
+ * Recovers from specified error.
495
+ *
496
+ * @since 2.0.0
497
+ * @category error handling
498
+ */
499
+ _catch as catch };
500
+ /**
501
+ * Recovers from all recoverable errors.
502
+ *
503
+ * **Note**: that `Effect.catchAll` will not recover from unrecoverable defects. To
504
+ * recover from both recoverable and unrecoverable errors use
505
+ * `Effect.catchAllCause`.
506
+ *
507
+ * @since 2.0.0
508
+ * @category error handling
509
+ */
510
+ export const catchAll = core.catchAll;
511
+ /**
512
+ * Recovers from both recoverable and unrecoverable errors.
513
+ *
514
+ * See `sandbox`, `mapErrorCause` for other functions that can
515
+ * recover from defects.
516
+ *
517
+ * @since 2.0.0
518
+ * @category error handling
519
+ */
520
+ export const catchAllCause = core.catchAllCause;
521
+ /**
522
+ * Recovers from all defects with provided function.
523
+ *
524
+ * **WARNING**: There is no sensible way to recover from defects. This
525
+ * method should be used only at the boundary between Effect and an external
526
+ * system, to transmit information on a defect for diagnostic or explanatory
527
+ * purposes.
528
+ *
529
+ * @since 2.0.0
530
+ * @category error handling
531
+ */
532
+ export const catchAllDefect = effect.catchAllDefect;
533
+ /**
534
+ * Recovers from errors that match the given predicate.
535
+ *
536
+ * @since 2.0.0
537
+ * @category error handling
538
+ */
539
+ export const catchIf = core.catchIf;
540
+ /**
541
+ * Recovers from some or all of the error cases.
542
+ *
543
+ * @since 2.0.0
544
+ * @category error handling
545
+ */
546
+ export const catchSome = core.catchSome;
547
+ /**
548
+ * Recovers from some or all of the error cases with provided cause.
549
+ *
550
+ * @since 2.0.0
551
+ * @category error handling
552
+ */
553
+ export const catchSomeCause = effect.catchSomeCause;
554
+ /**
555
+ * Recovers from some or all of the defects with provided partial function.
556
+ *
557
+ * **WARNING**: There is no sensible way to recover from defects. This
558
+ * method should be used only at the boundary between Effect and an external
559
+ * system, to transmit information on a defect for diagnostic or explanatory
560
+ * purposes.
561
+ *
562
+ * @since 2.0.0
563
+ * @category error handling
564
+ */
565
+ export const catchSomeDefect = effect.catchSomeDefect;
566
+ /**
567
+ * Recovers from the specified tagged error.
568
+ *
569
+ * @since 2.0.0
570
+ * @category error handling
571
+ */
572
+ export const catchTag = effect.catchTag;
573
+ /**
574
+ * Recovers from the specified tagged errors.
575
+ *
576
+ * @since 2.0.0
577
+ * @category error handling
578
+ */
579
+ export const catchTags = effect.catchTags;
580
+ /**
581
+ * Returns an effect that succeeds with the cause of failure of this effect,
582
+ * or `Cause.empty` if the effect did succeed.
583
+ *
584
+ * @since 2.0.0
585
+ * @category error handling
586
+ */
587
+ export const cause = effect.cause;
588
+ /**
589
+ * Returns an effect that ignores errors and runs repeatedly until it
590
+ * eventually succeeds.
591
+ *
592
+ * @since 2.0.0
593
+ * @category error handling
594
+ */
595
+ export const eventually = effect.eventually;
596
+ /**
597
+ * Returns a new effect that ignores the success or failure of this effect.
598
+ *
599
+ * @since 2.0.0
600
+ * @category error handling
601
+ */
602
+ export const ignore = effect.ignore;
603
+ /**
604
+ * Returns a new effect that ignores the success or failure of this effect,
605
+ * but which also logs failures at the Debug level, just in case the failure
606
+ * turns out to be important.
607
+ *
608
+ * @since 2.0.0
609
+ * @category error handling
610
+ */
611
+ export const ignoreLogged = effect.ignoreLogged;
612
+ /**
613
+ * Exposes all parallel errors in a single call.
614
+ *
615
+ * @since 2.0.0
616
+ * @category error handling
617
+ */
618
+ export const parallelErrors = effect.parallelErrors;
619
+ /**
620
+ * Exposes the full `Cause` of failure for the specified effect.
621
+ *
622
+ * @since 2.0.0
623
+ * @category error handling
624
+ */
625
+ export const sandbox = effect.sandbox;
626
+ /**
627
+ * Retries with the specified retry policy. Retries are done following the
628
+ * failure of the original `io` (up to a fixed maximum with `once` or `recurs`
629
+ * for example), so that that `io.retry(Schedule.once)` means "execute `io`
630
+ * and in case of failure, try again once".
631
+ *
632
+ * @since 2.0.0
633
+ * @category error handling
634
+ */
635
+ export const retry = _schedule.retry_Effect;
636
+ /**
637
+ * Retries this effect the specified number of times.
638
+ *
639
+ * @since 2.0.0
640
+ * @category error handling
641
+ */
642
+ export const retryN = _schedule.retryN_Effect;
643
+ /**
644
+ * Retries with the specified schedule, until it fails, and then both the
645
+ * value produced by the schedule together with the last error are passed to
646
+ * the recovery function.
647
+ *
648
+ * @since 2.0.0
649
+ * @category error handling
650
+ */
651
+ export const retryOrElse = _schedule.retryOrElse_Effect;
652
+ /**
653
+ * Retries this effect until its error satisfies the specified predicate.
654
+ *
655
+ * @since 2.0.0
656
+ * @category error handling
657
+ */
658
+ export const retryUntil = _schedule.retryUntil_Effect;
659
+ /**
660
+ * Retries this effect until its error satisfies the specified effectful
661
+ * predicate.
662
+ *
663
+ * @since 2.0.0
664
+ * @category error handling
665
+ */
666
+ export const retryUntilEffect = _schedule.retryUntilEffect_Effect;
667
+ /**
668
+ * Retries this effect while its error satisfies the specified predicate.
669
+ *
670
+ * @since 2.0.0
671
+ * @category error handling
672
+ */
673
+ export const retryWhile = _schedule.retryWhile_Effect;
674
+ /**
675
+ * Retries this effect while its error satisfies the specified effectful
676
+ * predicate.
677
+ *
678
+ * @since 2.0.0
679
+ * @category error handling
680
+ */
681
+ export const retryWhileEffect = _schedule.retryWhileEffect_Effect;
682
+ const try_ = effect.try_;
683
+ export {
684
+ /**
685
+ * Imports a synchronous side-effect into a pure `Effect` value, translating any
686
+ * thrown exceptions into typed failed effects creating with `Effect.fail`.
687
+ *
688
+ * @since 2.0.0
689
+ * @category error handling
690
+ */
691
+ try_ as try };
692
+ /**
693
+ * Returns an effect whose success is mapped by the specified side effecting
694
+ * `try` function, translating any promise rejections into typed failed effects
695
+ * via the `catch` function.
696
+ *
697
+ * @since 2.0.0
698
+ * @category error handling
699
+ */
700
+ export const tryMap = effect.tryMap;
701
+ /**
702
+ * Returns an effect whose success is mapped by the specified side effecting
703
+ * `try` function, translating any promise rejections into typed failed effects
704
+ * via the `catch` function.
705
+ *
706
+ * An optional `AbortSignal` can be provided to allow for interruption of the
707
+ * wrapped Promise api.
708
+ *
709
+ * @since 2.0.0
710
+ * @category error handling
711
+ */
712
+ export const tryMapPromise = effect.tryMapPromise;
713
+ /**
714
+ * Create an `Effect` that when executed will construct `promise` and wait for
715
+ * its result, errors will produce failure as `unknown`.
716
+ *
717
+ * An optional `AbortSignal` can be provided to allow for interruption of the
718
+ * wrapped Promise api.
719
+ *
720
+ * @since 2.0.0
721
+ * @category error handling
722
+ */
723
+ export const tryPromise = effect.tryPromise;
724
+ /**
725
+ * The inverse operation `sandbox(effect)`
726
+ *
727
+ * Terminates with exceptions on the `Left` side of the `Either` error, if it
728
+ * exists. Otherwise extracts the contained `Effect<R, E, A>`
729
+ *
730
+ * @since 2.0.0
731
+ * @category error handling
732
+ */
733
+ export const unsandbox = effect.unsandbox;
734
+ // -------------------------------------------------------------------------------------
735
+ // interuption
736
+ // -------------------------------------------------------------------------------------
737
+ /**
738
+ * This function checks if any fibers are attempting to interrupt the current
739
+ * fiber, and if so, performs self-interruption.
740
+ *
741
+ * Note that this allows for interruption to occur in uninterruptible regions.
742
+ *
743
+ * @returns A new `Effect` value that represents the check for interruption
744
+ * and the potential self-interruption of the current fiber.
745
+ *
746
+ * @since 2.0.0
747
+ * @category interruption
748
+ */
749
+ export const allowInterrupt = effect.allowInterrupt;
750
+ /**
751
+ * Checks the interrupt status, and produces the effect returned by the
752
+ * specified callback.
753
+ *
754
+ * @since 2.0.0
755
+ * @category interruption
756
+ */
757
+ export const checkInterruptible = core.checkInterruptible;
758
+ /**
759
+ * Returns an effect whose interruption will be disconnected from the
760
+ * fiber's own interruption, being performed in the background without
761
+ * slowing down the fiber's interruption.
762
+ *
763
+ * This method is useful to create "fast interrupting" effects. For
764
+ * example, if you call this on a bracketed effect, then even if the
765
+ * effect is "stuck" in acquire or release, its interruption will return
766
+ * immediately, while the acquire / release are performed in the
767
+ * background.
768
+ *
769
+ * See timeout and race for other applications.
770
+ *
771
+ * @since 2.0.0
772
+ * @category interruption
773
+ */
774
+ export const disconnect = fiberRuntime.disconnect;
775
+ /**
776
+ * @since 2.0.0
777
+ * @category interruption
778
+ */
779
+ export const interrupt = core.interrupt;
780
+ /**
781
+ * @since 2.0.0
782
+ * @category interruption
783
+ */
784
+ export const interruptWith = core.interruptWith;
785
+ /**
786
+ * @since 2.0.0
787
+ * @category interruption
788
+ */
789
+ export const interruptible = core.interruptible;
790
+ /**
791
+ * @since 2.0.0
792
+ * @category interruption
793
+ */
794
+ export const interruptibleMask = core.interruptibleMask;
795
+ /**
796
+ * @since 2.0.0
797
+ * @category interruption
798
+ */
799
+ export const onInterrupt = core.onInterrupt;
800
+ /**
801
+ * @since 2.0.0
802
+ * @category interruption
803
+ */
804
+ export const uninterruptible = core.uninterruptible;
805
+ /**
806
+ * @since 2.0.0
807
+ * @category interruption
808
+ */
809
+ export const uninterruptibleMask = core.uninterruptibleMask;
810
+ // -------------------------------------------------------------------------------------
811
+ // mapping
812
+ // -------------------------------------------------------------------------------------
813
+ /**
814
+ * This function maps the success value of an `Effect` value to a specified
815
+ * constant value.
816
+ *
817
+ * @param value - The constant value that the success value of the `Effect`
818
+ * value will be mapped to.
819
+ * @param self - The `Effect` value whose success value will be mapped to the
820
+ * specified constant value.
821
+ *
822
+ * @returns A new `Effect` value that represents the mapping of the success
823
+ * value of the original `Effect` value to the specified constant value.
824
+ *
825
+ * @since 2.0.0
826
+ * @category mapping
827
+ */
828
+ export const as = core.as;
829
+ /**
830
+ * This function maps the success value of an `Effect` value to a `Some` value
831
+ * in an `Option` value. If the original `Effect` value fails, the returned
832
+ * `Effect` value will also fail.
833
+ *
834
+ * @param self - The `Effect` value whose success value will be mapped to a
835
+ * `Some` value in an `Option` value.
836
+ *
837
+ * @returns A new `Effect` value that represents the mapping of the success
838
+ * value of the original `Effect` value to a `Some` value in an `Option`
839
+ * value. The returned `Effect` value may fail if the original `Effect` value
840
+ * fails.
841
+ *
842
+ * @category mapping
843
+ * @since 2.0.0
844
+ */
845
+ export const asSome = effect.asSome;
846
+ /**
847
+ * This function maps the error value of an `Effect` value to a `Some` value
848
+ * in an `Option` value. If the original `Effect` value succeeds, the returned
849
+ * `Effect` value will also succeed.
850
+ *
851
+ * @param self - The `Effect` value whose error value will be mapped to a
852
+ * `Some` value in an `Option` value.
853
+ *
854
+ * @returns A new `Effect` value that represents the mapping of the error
855
+ * value of the original `Effect` value to a `Some` value in an `Option`
856
+ * value. The returned `Effect` value may succeed if the original `Effect`
857
+ * value succeeds.
858
+ *
859
+ * @category mapping
860
+ * @since 2.0.0
861
+ */
862
+ export const asSomeError = effect.asSomeError;
863
+ /**
864
+ * This function maps the success value of an `Effect` value to `void`. If the
865
+ * original `Effect` value succeeds, the returned `Effect` value will also
866
+ * succeed. If the original `Effect` value fails, the returned `Effect` value
867
+ * will fail with the same error.
868
+ *
869
+ * @param self - The `Effect` value whose success value will be mapped to `void`.
870
+ *
871
+ * @returns A new `Effect` value that represents the mapping of the success
872
+ * value of the original `Effect` value to `void`.
873
+ *
874
+ * @since 2.0.0
875
+ * @category mapping
876
+ */
877
+ export const asUnit = core.asUnit;
878
+ /**
879
+ * Returns an effect that swaps the error/success cases. This allows you to
880
+ * use all methods on the error channel, possibly before flipping back.
881
+ *
882
+ * @since 2.0.0
883
+ * @category mapping
884
+ */
885
+ export const flip = core.flip;
886
+ /**
887
+ * Swaps the error/value parameters, applies the function `f` and flips the
888
+ * parameters back
889
+ *
890
+ * @since 2.0.0
891
+ * @category mapping
892
+ */
893
+ export const flipWith = effect.flipWith;
894
+ /**
895
+ * @since 2.0.0
896
+ * @category mapping
897
+ */
898
+ export const map = core.map;
899
+ /**
900
+ * Statefully and effectfully maps over the elements of this chunk to produce
901
+ * new elements.
902
+ *
903
+ * @since 2.0.0
904
+ * @category mapping
905
+ */
906
+ export const mapAccum = effect.mapAccum;
907
+ /**
908
+ * Returns an effect whose failure and success channels have been mapped by
909
+ * the specified `onFailure` and `onSuccess` functions.
910
+ *
911
+ * @since 2.0.0
912
+ * @category mapping
913
+ */
914
+ export const mapBoth = core.mapBoth;
915
+ /**
916
+ * Returns an effect with its error channel mapped using the specified function.
917
+ *
918
+ * @since 2.0.0
919
+ * @category mapping
920
+ */
921
+ export const mapError = core.mapError;
922
+ /**
923
+ * Returns an effect with its full cause of failure mapped using the specified
924
+ * function. This can be used to transform errors while preserving the
925
+ * original structure of `Cause`.
926
+ *
927
+ * See `sandbox`, `catchAllCause` for other functions for dealing
928
+ * with defects.
929
+ *
930
+ * @since 2.0.0
931
+ * @category mapping
932
+ */
933
+ export const mapErrorCause = effect.mapErrorCause;
934
+ /**
935
+ * Returns a new effect where the error channel has been merged into the
936
+ * success channel to their common combined type.
937
+ *
938
+ * @since 2.0.0
939
+ * @category mapping
940
+ */
941
+ export const merge = effect.merge;
942
+ /**
943
+ * Returns a new effect where boolean value of this effect is negated.
944
+ *
945
+ * @since 2.0.0
946
+ * @category mapping
947
+ */
948
+ export const negate = effect.negate;
949
+ // -------------------------------------------------------------------------------------
950
+ // scoping, resources & finalization
951
+ // -------------------------------------------------------------------------------------
952
+ /**
953
+ * This function constructs a scoped resource from an `acquire` and `release`
954
+ * `Effect` value.
955
+ *
956
+ * If the `acquire` `Effect` value successfully completes execution, then the
957
+ * `release` `Effect` value will be added to the finalizers associated with the
958
+ * scope of this `Effect` value, and it is guaranteed to be run when the scope
959
+ * is closed.
960
+ *
961
+ * The `acquire` and `release` `Effect` values will be run uninterruptibly.
962
+ * Additionally, the `release` `Effect` value may depend on the `Exit` value
963
+ * specified when the scope is closed.
964
+ *
965
+ * @param acquire - The `Effect` value that acquires the resource.
966
+ * @param release - The `Effect` value that releases the resource.
967
+ *
968
+ * @returns A new `Effect` value that represents the scoped resource.
969
+ *
970
+ * @since 2.0.0
971
+ * @category scoping, resources & finalization
972
+ */
973
+ export const acquireRelease = fiberRuntime.acquireRelease;
974
+ /**
975
+ * This function constructs a scoped resource from an `acquire` and `release`
976
+ * `Effect` value.
977
+ *
978
+ * If the `acquire` `Effect` value successfully completes execution, then the
979
+ * `release` `Effect` value will be added to the finalizers associated with the
980
+ * scope of this `Effect` value, and it is guaranteed to be run when the scope
981
+ * is closed.
982
+ *
983
+ * The `acquire` `Effect` values will be run interruptibly.
984
+ * The `release` `Effect` values will be run uninterruptibly.
985
+ *
986
+ * Additionally, the `release` `Effect` value may depend on the `Exit` value
987
+ * specified when the scope is closed.
988
+ *
989
+ * @param acquire - The `Effect` value that acquires the resource.
990
+ * @param release - The `Effect` value that releases the resource.
991
+ *
992
+ * @returns A new `Effect` value that represents the scoped resource.
993
+ *
994
+ * @since 2.0.0
995
+ * @category scoping, resources & finalization
996
+ */
997
+ export const acquireReleaseInterruptible = fiberRuntime.acquireReleaseInterruptible;
998
+ /**
999
+ * This function is used to ensure that an `Effect` value that represents the
1000
+ * acquisition of a resource (for example, opening a file, launching a thread,
1001
+ * etc.) will not be interrupted, and that the resource will always be released
1002
+ * when the `Effect` value completes execution.
1003
+ *
1004
+ * `acquireUseRelease` does the following:
1005
+ *
1006
+ * 1. Ensures that the `Effect` value that acquires the resource will not be
1007
+ * interrupted. Note that acquisition may still fail due to internal
1008
+ * reasons (such as an uncaught exception).
1009
+ * 2. Ensures that the `release` `Effect` value will not be interrupted,
1010
+ * and will be executed as long as the acquisition `Effect` value
1011
+ * successfully acquires the resource.
1012
+ *
1013
+ * During the time period between the acquisition and release of the resource,
1014
+ * the `use` `Effect` value will be executed.
1015
+ *
1016
+ * If the `release` `Effect` value fails, then the entire `Effect` value will
1017
+ * fail, even if the `use` `Effect` value succeeds. If this fail-fast behavior
1018
+ * is not desired, errors produced by the `release` `Effect` value can be caught
1019
+ * and ignored.
1020
+ *
1021
+ * @param acquire - The `Effect` value that acquires the resource.
1022
+ * @param use - The `Effect` value that is executed between the acquisition
1023
+ * and release of the resource.
1024
+ * @param release - The `Effect` value that releases the resource.
1025
+ *
1026
+ * @returns A new `Effect` value that represents the acquisition, use, and
1027
+ * release of the resource.
1028
+ *
1029
+ * @since 2.0.0
1030
+ * @category scoping, resources & finalization
1031
+ */
1032
+ export const acquireUseRelease = core.acquireUseRelease;
1033
+ /**
1034
+ * This function adds a finalizer to the scope of the calling `Effect` value.
1035
+ * The finalizer is guaranteed to be run when the scope is closed, and it may
1036
+ * depend on the `Exit` value that the scope is closed with.
1037
+ *
1038
+ * @param finalizer - The finalizer to add to the scope of the calling
1039
+ * `Effect` value. This function must take an `Exit` value as its parameter,
1040
+ * and return a new `Effect` value.
1041
+ *
1042
+ * @returns A new `Effect` value that represents the addition of the finalizer
1043
+ * to the scope of the calling `Effect` value.
1044
+ *
1045
+ * @since 2.0.0
1046
+ * @category scoping, resources & finalization
1047
+ */
1048
+ export const addFinalizer = fiberRuntime.addFinalizer;
1049
+ /**
1050
+ * Returns an effect that, if this effect _starts_ execution, then the
1051
+ * specified `finalizer` is guaranteed to be executed, whether this effect
1052
+ * succeeds, fails, or is interrupted.
1053
+ *
1054
+ * For use cases that need access to the effect's result, see `onExit`.
1055
+ *
1056
+ * Finalizers offer very powerful guarantees, but they are low-level, and
1057
+ * should generally not be used for releasing resources. For higher-level
1058
+ * logic built on `ensuring`, see the `acquireRelease` family of methods.
1059
+ *
1060
+ * @since 2.0.0
1061
+ * @category scoping, resources & finalization
1062
+ */
1063
+ export const ensuring = fiberRuntime.ensuring;
1064
+ /**
1065
+ * Runs the specified effect if this effect fails, providing the error to the
1066
+ * effect if it exists. The provided effect will not be interrupted.
1067
+ *
1068
+ * @since 2.0.0
1069
+ * @category scoping, resources & finalization
1070
+ */
1071
+ export const onError = core.onError;
1072
+ /**
1073
+ * Ensures that a cleanup functions runs, whether this effect succeeds, fails,
1074
+ * or is interrupted.
1075
+ *
1076
+ * @since 2.0.0
1077
+ * @category scoping, resources & finalization
1078
+ */
1079
+ export const onExit = core.onExit;
1080
+ /**
1081
+ * @since 2.0.0
1082
+ * @category scoping, resources & finalization
1083
+ */
1084
+ export const parallelFinalizers = fiberRuntime.parallelFinalizers;
1085
+ /**
1086
+ * @since 2.0.0
1087
+ * @category scoping, resources & finalization
1088
+ */
1089
+ export const finalizersMask = fiberRuntime.finalizersMask;
1090
+ /**
1091
+ * Returns a new scoped workflow that runs finalizers added to the scope of
1092
+ * this workflow sequentially in the reverse of the order in which they were
1093
+ * added. Note that finalizers are run sequentially by default so this only
1094
+ * has meaning if used within a scope where finalizers are being run in
1095
+ * parallel.
1096
+ *
1097
+ * @since 2.0.0
1098
+ * @category scoping, resources & finalization
1099
+ */
1100
+ export const sequentialFinalizers = fiberRuntime.sequentialFinalizers;
1101
+ /**
1102
+ * @since 2.0.0
1103
+ * @category scoping, resources & finalization
1104
+ */
1105
+ export const scope = fiberRuntime.scope;
1106
+ /**
1107
+ * Accesses the current scope and uses it to perform the specified effect.
1108
+ *
1109
+ * @since 2.0.0
1110
+ * @category scoping, resources & finalization
1111
+ */
1112
+ export const scopeWith = fiberRuntime.scopeWith;
1113
+ /**
1114
+ * Scopes all resources uses in this workflow to the lifetime of the workflow,
1115
+ * ensuring that their finalizers are run as soon as this workflow completes
1116
+ * execution, whether by success, failure, or interruption.
1117
+ *
1118
+ * @since 2.0.0
1119
+ * @category scoping, resources & finalization
1120
+ */
1121
+ export const scoped = fiberRuntime.scopedEffect;
1122
+ /**
1123
+ * Scopes all resources acquired by `resource` to the lifetime of `use`
1124
+ * without effecting the scope of any resources acquired by `use`.
1125
+ *
1126
+ * @since 2.0.0
1127
+ * @category scoping, resources & finalization
1128
+ */
1129
+ export const using = fiberRuntime.using;
1130
+ /**
1131
+ * Returns a new scoped workflow that returns the result of this workflow as
1132
+ * well as a finalizer that can be run to close the scope of this workflow.
1133
+ *
1134
+ * @since 2.0.0
1135
+ * @category scoping, resources & finalization
1136
+ */
1137
+ export const withEarlyRelease = fiberRuntime.withEarlyRelease;
1138
+ // -------------------------------------------------------------------------------------
1139
+ // supervision & fibers
1140
+ // -------------------------------------------------------------------------------------
1141
+ /**
1142
+ * Returns a new effect that will not succeed with its value before first
1143
+ * waiting for the end of all child fibers forked by the effect.
1144
+ *
1145
+ * @since 2.0.0
1146
+ * @category supervision & fibers
1147
+ */
1148
+ export const awaitAllChildren = circular.awaitAllChildren;
1149
+ /**
1150
+ * Returns a new workflow that will not supervise any fibers forked by this
1151
+ * workflow.
1152
+ *
1153
+ * @since 2.0.0
1154
+ * @category supervision & fibers
1155
+ */
1156
+ export const daemonChildren = fiberRuntime.daemonChildren;
1157
+ /**
1158
+ * Constructs an effect with information about the current `Fiber`.
1159
+ *
1160
+ * @since 2.0.0
1161
+ * @category supervision & fibers
1162
+ */
1163
+ export const descriptor = effect.descriptor;
1164
+ /**
1165
+ * Constructs an effect based on information about the current `Fiber`.
1166
+ *
1167
+ * @since 2.0.0
1168
+ * @category supervision & fibers
1169
+ */
1170
+ export const descriptorWith = effect.descriptorWith;
1171
+ /**
1172
+ * Returns a new workflow that executes this one and captures the changes in
1173
+ * `FiberRef` values.
1174
+ *
1175
+ * @since 2.0.0
1176
+ * @category supervision & fibers
1177
+ */
1178
+ export const diffFiberRefs = effect.diffFiberRefs;
1179
+ /**
1180
+ * Acts on the children of this fiber (collected into a single fiber),
1181
+ * guaranteeing the specified callback will be invoked, whether or not this
1182
+ * effect succeeds.
1183
+ *
1184
+ * @since 2.0.0
1185
+ * @category supervision & fibers
1186
+ */
1187
+ export const ensuringChild = circular.ensuringChild;
1188
+ /**
1189
+ * Acts on the children of this fiber, guaranteeing the specified callback
1190
+ * will be invoked, whether or not this effect succeeds.
1191
+ *
1192
+ * @since 2.0.0
1193
+ * @category supervision & fibers
1194
+ */
1195
+ export const ensuringChildren = circular.ensuringChildren;
1196
+ /**
1197
+ * @since 2.0.0
1198
+ * @category supervision & fibers
1199
+ */
1200
+ export const fiberId = core.fiberId;
1201
+ /**
1202
+ * @since 2.0.0
1203
+ * @category supervision & fibers
1204
+ */
1205
+ export const fiberIdWith = core.fiberIdWith;
1206
+ /**
1207
+ * Returns an effect that forks this effect into its own separate fiber,
1208
+ * returning the fiber immediately, without waiting for it to begin executing
1209
+ * the effect.
1210
+ *
1211
+ * You can use the `fork` method whenever you want to execute an effect in a
1212
+ * new fiber, concurrently and without "blocking" the fiber executing other
1213
+ * effects. Using fibers can be tricky, so instead of using this method
1214
+ * directly, consider other higher-level methods, such as `raceWith`,
1215
+ * `zipPar`, and so forth.
1216
+ *
1217
+ * The fiber returned by this method has methods to interrupt the fiber and to
1218
+ * wait for it to finish executing the effect. See `Fiber` for more
1219
+ * information.
1220
+ *
1221
+ * Whenever you use this method to launch a new fiber, the new fiber is
1222
+ * attached to the parent fiber's scope. This means when the parent fiber
1223
+ * terminates, the child fiber will be terminated as well, ensuring that no
1224
+ * fibers leak. This behavior is called "auto supervision", and if this
1225
+ * behavior is not desired, you may use the `forkDaemon` or `forkIn` methods.
1226
+ *
1227
+ * @since 2.0.0
1228
+ * @category supervision & fibers
1229
+ */
1230
+ export const fork = fiberRuntime.fork;
1231
+ /**
1232
+ * Forks the effect into a new fiber attached to the global scope. Because the
1233
+ * new fiber is attached to the global scope, when the fiber executing the
1234
+ * returned effect terminates, the forked fiber will continue running.
1235
+ *
1236
+ * @since 2.0.0
1237
+ * @category supervision & fibers
1238
+ */
1239
+ export const forkDaemon = fiberRuntime.forkDaemon;
1240
+ /**
1241
+ * Returns an effect that forks all of the specified values, and returns a
1242
+ * composite fiber that produces a list of their results, in order.
1243
+ *
1244
+ * @since 2.0.0
1245
+ * @category supervision & fibers
1246
+ */
1247
+ export const forkAll = circular.forkAll;
1248
+ /**
1249
+ * Forks the effect in the specified scope. The fiber will be interrupted
1250
+ * when the scope is closed.
1251
+ *
1252
+ * @since 2.0.0
1253
+ * @category supervision & fibers
1254
+ */
1255
+ export const forkIn = circular.forkIn;
1256
+ /**
1257
+ * Forks the fiber in a `Scope`, interrupting it when the scope is closed.
1258
+ *
1259
+ * @since 2.0.0
1260
+ * @category supervision & fibers
1261
+ */
1262
+ export const forkScoped = circular.forkScoped;
1263
+ /**
1264
+ * Like fork but handles an error with the provided handler.
1265
+ *
1266
+ * @since 2.0.0
1267
+ * @category supervision & fibers
1268
+ */
1269
+ export const forkWithErrorHandler = fiberRuntime.forkWithErrorHandler;
1270
+ /**
1271
+ * Creates an `Effect` value that represents the exit value of the specified
1272
+ * fiber.
1273
+ *
1274
+ * @since 2.0.0
1275
+ * @category supervision & fibers
1276
+ */
1277
+ export const fromFiber = circular.fromFiber;
1278
+ /**
1279
+ * Creates an `Effect` value that represents the exit value of the specified
1280
+ * fiber.
1281
+ *
1282
+ * @since 2.0.0
1283
+ * @category supervision & fibers
1284
+ */
1285
+ export const fromFiberEffect = circular.fromFiberEffect;
1286
+ /**
1287
+ * Returns an effect with the behavior of this one, but where all child fibers
1288
+ * forked in the effect are reported to the specified supervisor.
1289
+ *
1290
+ * @since 2.0.0
1291
+ * @category supervision & fibers
1292
+ */
1293
+ export const supervised = circular.supervised;
1294
+ /**
1295
+ * Transplants specified effects so that when those effects fork other
1296
+ * effects, the forked effects will be governed by the scope of the fiber that
1297
+ * executes this effect.
1298
+ *
1299
+ * This can be used to "graft" deep grandchildren onto a higher-level scope,
1300
+ * effectively extending their lifespans into the parent scope.
1301
+ *
1302
+ * @since 2.0.0
1303
+ * @category supervision & fibers
1304
+ */
1305
+ export const transplant = core.transplant;
1306
+ /**
1307
+ * @since 2.0.0
1308
+ * @category supervision & fibers
1309
+ */
1310
+ export const withConcurrency = core.withConcurrency;
1311
+ // ---------------------------------------------------------------------------------------
1312
+ // scheduler
1313
+ // ---------------------------------------------------------------------------------------
1314
+ /**
1315
+ * Sets the provided scheduler for usage in the wrapped effect
1316
+ *
1317
+ * @since 2.0.0
1318
+ * @category scheduler
1319
+ */
1320
+ export const withScheduler = Scheduler.withScheduler;
1321
+ /**
1322
+ * Sets the scheduling priority used when yielding
1323
+ *
1324
+ * @since 2.0.0
1325
+ * @category utils
1326
+ */
1327
+ export const withSchedulingPriority = core.withSchedulingPriority;
1328
+ /**
1329
+ * Sets the maximum number of operations before yield by the default schedulers
1330
+ *
1331
+ * @since 2.0.0
1332
+ * @category utils
1333
+ */
1334
+ export const withMaxOpsBeforeYield = core.withMaxOpsBeforeYield;
1335
+ // ---------------------------------------------------------------------------------------
1336
+ // clock
1337
+ // ---------------------------------------------------------------------------------------
1338
+ /**
1339
+ * Retreives the `Clock` service from the context
1340
+ *
1341
+ * @since 2.0.0
1342
+ * @category clock
1343
+ */
1344
+ export const clock = effect.clock;
1345
+ /**
1346
+ * Retreives the `Clock` service from the context and provides it to the
1347
+ * specified effectful function.
1348
+ *
1349
+ * @since 2.0.0
1350
+ * @category clock
1351
+ */
1352
+ export const clockWith = effect.clockWith;
1353
+ /**
1354
+ * Sets the implementation of the clock service to the specified value and
1355
+ * restores it to its original value when the scope is closed.
1356
+ *
1357
+ * @since 2.0.0
1358
+ * @category constructors
1359
+ */
1360
+ export const withClockScoped = fiberRuntime.withClockScoped;
1361
+ /**
1362
+ * Executes the specified workflow with the specified implementation of the
1363
+ * clock service.
1364
+ *
1365
+ * @since 2.0.0
1366
+ * @category clock
1367
+ */
1368
+ export const withClock = defaultServices.withClock;
1369
+ // -------------------------------------------------------------------------------------
1370
+ // console
1371
+ // -------------------------------------------------------------------------------------
1372
+ /**
1373
+ * Retreives the `Console` service from the context
1374
+ *
1375
+ * @since 2.0.0
1376
+ * @category console
1377
+ */
1378
+ export const console = _console.console;
1379
+ /**
1380
+ * Retreives the `Console` service from the context and provides it to the
1381
+ * specified effectful function.
1382
+ *
1383
+ * @since 2.0.0
1384
+ * @category console
1385
+ */
1386
+ export const consoleWith = _console.consoleWith;
1387
+ /**
1388
+ * Sets the implementation of the console service to the specified value and
1389
+ * restores it to its original value when the scope is closed.
1390
+ *
1391
+ * @since 2.0.0
1392
+ * @category constructors
1393
+ */
1394
+ export const withConsoleScoped = _console.withConsoleScoped;
1395
+ /**
1396
+ * Executes the specified workflow with the specified implementation of the
1397
+ * console service.
1398
+ *
1399
+ * @since 2.0.0
1400
+ * @category console
1401
+ */
1402
+ export const withConsole = _console.withConsole;
1403
+ // ---------------------------------------------------------------------------------------
1404
+ // delays & timeouts
1405
+ // ---------------------------------------------------------------------------------------
1406
+ /**
1407
+ * Returns an effect that is delayed from this effect by the specified
1408
+ * `Duration`.
1409
+ *
1410
+ * @since 2.0.0
1411
+ * @category delays & timeouts
1412
+ */
1413
+ export const delay = effect.delay;
1414
+ /**
1415
+ * Returns an effect that suspends for the specified duration. This method is
1416
+ * asynchronous, and does not actually block the fiber executing the effect.
1417
+ *
1418
+ * @since 2.0.0
1419
+ * @category delays & timeouts
1420
+ */
1421
+ export const sleep = effect.sleep;
1422
+ /**
1423
+ * Returns a new effect that executes this one and times the execution.
1424
+ *
1425
+ * @since 2.0.0
1426
+ * @category delays & timeouts
1427
+ */
1428
+ export const timed = effect.timed;
1429
+ /**
1430
+ * A more powerful variation of `timed` that allows specifying the clock.
1431
+ *
1432
+ * @since 2.0.0
1433
+ * @category delays & timeouts
1434
+ */
1435
+ export const timedWith = effect.timedWith;
1436
+ /**
1437
+ * Returns an effect that will timeout this effect, returning `None` if the
1438
+ * timeout elapses before the effect has produced a value; and returning
1439
+ * `Some` of the produced value otherwise.
1440
+ *
1441
+ * If the timeout elapses without producing a value, the running effect will
1442
+ * be safely interrupted.
1443
+ *
1444
+ * WARNING: The effect returned by this method will not itself return until
1445
+ * the underlying effect is actually interrupted. This leads to more
1446
+ * predictable resource utilization. If early return is desired, then instead
1447
+ * of using `effect.timeout(d)`, use `effect.disconnect.timeout(d)`, which
1448
+ * first disconnects the effect's interruption signal before performing the
1449
+ * timeout, resulting in earliest possible return, before an underlying effect
1450
+ * has been successfully interrupted.
1451
+ *
1452
+ * @since 2.0.0
1453
+ * @category delays & timeouts
1454
+ */
1455
+ export const timeout = circular.timeout;
1456
+ /**
1457
+ * The same as `timeout`, but instead of producing a `None` in the event of
1458
+ * timeout, it will produce the specified error.
1459
+ *
1460
+ * @since 2.0.0
1461
+ * @category delays & timeouts
1462
+ */
1463
+ export const timeoutFail = circular.timeoutFail;
1464
+ /**
1465
+ * The same as `timeout`, but instead of producing a `None` in the event of
1466
+ * timeout, it will produce the specified failure.
1467
+ *
1468
+ * @since 2.0.0
1469
+ * @category delays & timeouts
1470
+ */
1471
+ export const timeoutFailCause = circular.timeoutFailCause;
1472
+ /**
1473
+ * Returns an effect that will timeout this effect, returning either the
1474
+ * default value if the timeout elapses before the effect has produced a
1475
+ * value or returning the result of applying the function `onSuccess` to the
1476
+ * success value of the effect.
1477
+ *
1478
+ * If the timeout elapses without producing a value, the running effect will
1479
+ * be safely interrupted.
1480
+ *
1481
+ * @since 2.0.0
1482
+ * @category delays & timeouts
1483
+ */
1484
+ export const timeoutTo = circular.timeoutTo;
1485
+ // -------------------------------------------------------------------------------------
1486
+ // config
1487
+ // -------------------------------------------------------------------------------------
1488
+ /**
1489
+ * Retrieves the default config provider, and passes it to the specified
1490
+ * function, which may return an effect that uses the provider to perform some
1491
+ * work or compute some value.
1492
+ *
1493
+ * @since 2.0.0
1494
+ * @category config
1495
+ */
1496
+ export const configProviderWith = defaultServices.configProviderWith;
1497
+ /**
1498
+ * Executes the specified workflow with the specified configuration provider.
1499
+ *
1500
+ * @since 2.0.0
1501
+ * @category config
1502
+ */
1503
+ export const withConfigProvider = defaultServices.withConfigProvider;
1504
+ /**
1505
+ * Sets the configuration provider to the specified value and restores it to its original value
1506
+ * when the scope is closed.
1507
+ *
1508
+ * @since 2.0.0
1509
+ * @category config
1510
+ */
1511
+ export const withConfigProviderScoped = fiberRuntime.withConfigProviderScoped;
1512
+ // -------------------------------------------------------------------------------------
1513
+ // context
1514
+ // -------------------------------------------------------------------------------------
1515
+ /**
1516
+ * @since 2.0.0
1517
+ * @category context
1518
+ */
1519
+ export const context = core.context;
1520
+ /**
1521
+ * Accesses the context of the effect.
1522
+ *
1523
+ * @since 2.0.0
1524
+ * @category context
1525
+ */
1526
+ export const contextWith = effect.contextWith;
1527
+ /**
1528
+ * Effectually accesses the context of the effect.
1529
+ *
1530
+ * @since 2.0.0
1531
+ * @category context
1532
+ */
1533
+ export const contextWithEffect = core.contextWithEffect;
1534
+ /**
1535
+ * Provides some of the context required to run this effect,
1536
+ * leaving the remainder `R0`.
1537
+ *
1538
+ * @since 2.0.0
1539
+ * @category context
1540
+ */
1541
+ export const mapInputContext = core.mapInputContext;
1542
+ /**
1543
+ * Splits the context into two parts, providing one part using the
1544
+ * specified layer/context/runtime and leaving the remainder `R0`
1545
+ *
1546
+ * @since 2.0.0
1547
+ * @category context
1548
+ */
1549
+ export const provide = layer.effect_provide;
1550
+ /**
1551
+ * Provides the effect with the single service it requires. If the effect
1552
+ * requires more than one service use `provideContext` instead.
1553
+ *
1554
+ * @since 2.0.0
1555
+ * @category context
1556
+ */
1557
+ export const provideService = effect.provideService;
1558
+ /**
1559
+ * Provides the effect with the single service it requires. If the effect
1560
+ * requires more than one service use `provideContext` instead.
1561
+ *
1562
+ * @since 2.0.0
1563
+ * @category context
1564
+ */
1565
+ export const provideServiceEffect = effect.provideServiceEffect;
1566
+ /**
1567
+ * @since 2.0.0
1568
+ * @category context
1569
+ */
1570
+ export const serviceFunction = effect.serviceFunction;
1571
+ /**
1572
+ * @since 2.0.0
1573
+ * @category context
1574
+ */
1575
+ export const serviceFunctionEffect = effect.serviceFunctionEffect;
1576
+ /**
1577
+ * @since 2.0.0
1578
+ * @category context
1579
+ */
1580
+ export const serviceFunctions = effect.serviceFunctions;
1581
+ /**
1582
+ * @since 2.0.0
1583
+ * @category context
1584
+ */
1585
+ export const serviceConstants = effect.serviceConstants;
1586
+ /**
1587
+ * @since 2.0.0
1588
+ * @category context
1589
+ */
1590
+ export const serviceMembers = effect.serviceMembers;
1591
+ /**
1592
+ * @since 2.0.0
1593
+ * @category context
1594
+ */
1595
+ export const serviceOption = effect.serviceOption;
1596
+ /**
1597
+ * @since 2.0.0
1598
+ * @category context
1599
+ */
1600
+ export const serviceOptional = effect.serviceOptional;
1601
+ /**
1602
+ * Updates the service with the required service entry.
1603
+ *
1604
+ * @since 2.0.0
1605
+ * @category context
1606
+ */
1607
+ export const updateService = effect.updateService;
1608
+ // -------------------------------------------------------------------------------------
1609
+ // do notation
1610
+ // -------------------------------------------------------------------------------------
1611
+ /**
1612
+ * @since 2.0.0
1613
+ * @category do notation
1614
+ */
1615
+ export const Do = effect.Do;
1616
+ /**
1617
+ * Binds an effectful value in a `do` scope
1618
+ *
1619
+ * @since 2.0.0
1620
+ * @category do notation
1621
+ */
1622
+ export const bind = effect.bind;
1623
+ /**
1624
+ * @category do notation
1625
+ * @since 2.0.0
1626
+ */
1627
+ export const bindTo = effect.bindTo;
1628
+ const let_ = effect.bindValue;
1629
+ export {
1630
+ /**
1631
+ * Like bind for values
1632
+ *
1633
+ * @since 2.0.0
1634
+ * @category do notation
1635
+ */
1636
+ let_ as let };
1637
+ // -------------------------------------------------------------------------------------
1638
+ // conversions
1639
+ // -------------------------------------------------------------------------------------
1640
+ /**
1641
+ * Returns an effect whose failure and success have been lifted into an
1642
+ * `Either`. The resulting effect cannot fail, because the failure case has
1643
+ * been exposed as part of the `Either` success case.
1644
+ *
1645
+ * This method is useful for recovering from effects that may fail.
1646
+ *
1647
+ * The error parameter of the returned `Effect` is `never`, since it is
1648
+ * guaranteed the effect does not model failure.
1649
+ *
1650
+ * @since 2.0.0
1651
+ * @category conversions
1652
+ */
1653
+ export const either = core.either;
1654
+ /**
1655
+ * @since 2.0.0
1656
+ * @category conversions
1657
+ */
1658
+ export const exit = core.exit;
1659
+ /**
1660
+ * @since 2.0.0
1661
+ * @category conversions
1662
+ */
1663
+ export const intoDeferred = core.intoDeferred;
1664
+ /**
1665
+ * Executes this effect, skipping the error but returning optionally the
1666
+ * success.
1667
+ *
1668
+ * @since 2.0.0
1669
+ * @category conversions
1670
+ */
1671
+ export const option = effect.option;
1672
+ // -------------------------------------------------------------------------------------
1673
+ // filtering & conditionals
1674
+ // -------------------------------------------------------------------------------------
1675
+ const if_ = core.if_;
1676
+ export {
1677
+ /**
1678
+ * Runs `onTrue` if the result of `self` is `true` and `onFalse` otherwise.
1679
+ *
1680
+ * @since 2.0.0
1681
+ * @category filtering & conditionals
1682
+ */
1683
+ if_ as if };
1684
+ /**
1685
+ * Filter the specified effect with the provided function, dying with specified
1686
+ * defect if the predicate fails.
1687
+ *
1688
+ * @since 2.0.0
1689
+ * @category filtering & conditionals
1690
+ */
1691
+ export const filterOrDie = effect.filterOrDie;
1692
+ /**
1693
+ * Filter the specified effect with the provided function, dying with specified
1694
+ * message if the predicate fails.
1695
+ *
1696
+ * @since 2.0.0
1697
+ * @category filtering & conditionals
1698
+ */
1699
+ export const filterOrDieMessage = effect.filterOrDieMessage;
1700
+ /**
1701
+ * Filters the specified effect with the provided function returning the value
1702
+ * of the effect if it is successful, otherwise returns the value of `orElse`.
1703
+ *
1704
+ * @since 2.0.0
1705
+ * @category filtering & conditionals
1706
+ */
1707
+ export const filterOrElse = effect.filterOrElse;
1708
+ /**
1709
+ * Filter the specified effect with the provided function, failing with specified
1710
+ * error if the predicate fails.
1711
+ *
1712
+ * In addition to the filtering capabilities discussed earlier, you have the option to further
1713
+ * refine and narrow down the type of the success channel by providing a
1714
+ * [user-defined type guard](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates).
1715
+ * Let's explore this concept through an example:
1716
+ *
1717
+ * @example
1718
+ * import { Effect, pipe } from "effect"
1719
+ *
1720
+ * // Define a user interface
1721
+ * interface User {
1722
+ * readonly name: string
1723
+ * }
1724
+ *
1725
+ * // Assume an asynchronous authentication function
1726
+ * declare const auth: () => Promise<User | null>
1727
+ *
1728
+ * const program = pipe(
1729
+ * Effect.promise(() => auth()),
1730
+ * Effect.filterOrFail(
1731
+ * // Define a guard to narrow down the type
1732
+ * (user): user is User => user !== null,
1733
+ * () => new Error("Unauthorized")
1734
+ * ),
1735
+ * Effect.map((user) => user.name) // The 'user' here has type `User`, not `User | null`
1736
+ * )
1737
+ *
1738
+ * @since 2.0.0
1739
+ * @category filtering & conditionals
1740
+ */
1741
+ export const filterOrFail = effect.filterOrFail;
1742
+ /**
1743
+ * The moral equivalent of `if (!p) exp`.
1744
+ *
1745
+ * @since 2.0.0
1746
+ * @category filtering & conditionals
1747
+ */
1748
+ export const unless = effect.unless;
1749
+ /**
1750
+ * The moral equivalent of `if (!p) exp` when `p` has side-effects.
1751
+ *
1752
+ * @since 2.0.0
1753
+ * @category filtering & conditionals
1754
+ */
1755
+ export const unlessEffect = effect.unlessEffect;
1756
+ /**
1757
+ * The moral equivalent of `if (p) exp`.
1758
+ *
1759
+ * @since 2.0.0
1760
+ * @category filtering & conditionals
1761
+ */
1762
+ export const when = effect.when;
1763
+ /**
1764
+ * @since 2.0.0
1765
+ * @category filtering & conditionals
1766
+ */
1767
+ export const whenEffect = core.whenEffect;
1768
+ /**
1769
+ * Executes this workflow when value of the specified `FiberRef` satisfies the
1770
+ * predicate.
1771
+ *
1772
+ * @since 2.0.0
1773
+ * @category filtering & conditionals
1774
+ */
1775
+ export const whenFiberRef = effect.whenFiberRef;
1776
+ /**
1777
+ * Executes this workflow when the value of the `Ref` satisfies the predicate.
1778
+ *
1779
+ * @since 2.0.0
1780
+ * @category filtering & conditionals
1781
+ */
1782
+ export const whenRef = effect.whenRef;
1783
+ // -------------------------------------------------------------------------------------
1784
+ // sequencing
1785
+ // -------------------------------------------------------------------------------------
1786
+ /**
1787
+ * This function is a pipeable operator that maps over an `Effect` value,
1788
+ * flattening the result of the mapping function into a new `Effect` value.
1789
+ *
1790
+ * @param f - The mapping function to apply to the `Effect` value.
1791
+ * This function must return another `Effect` value.
1792
+ *
1793
+ * @returns A new `Effect` value that is the result of flattening the
1794
+ * mapped `Effect` value.
1795
+ *
1796
+ * @since 2.0.0
1797
+ * @category sequencing
1798
+ */
1799
+ export const flatMap = core.flatMap;
1800
+ /**
1801
+ * Executes a sequence of two actions, typically two `Effect`s, where the second action can depend on the result of the first action.
1802
+ *
1803
+ * The `that` action can take various forms:
1804
+ *
1805
+ * - a value
1806
+ * - a function returning a value
1807
+ * - a promise
1808
+ * - a function returning a promise
1809
+ * - an effect
1810
+ * - a function returning an effect
1811
+ *
1812
+ * @example
1813
+ * import * as Effect from "effect/Effect"
1814
+ *
1815
+ * assert.deepStrictEqual(Effect.runSync(Effect.succeed("aa").pipe(Effect.andThen(1))), 1)
1816
+ * assert.deepStrictEqual(Effect.runSync(Effect.succeed("aa").pipe(Effect.andThen((s) => s.length))), 2)
1817
+ *
1818
+ * assert.deepStrictEqual(await Effect.runPromise(Effect.succeed("aa").pipe(Effect.andThen(Promise.resolve(1)))), 1)
1819
+ * assert.deepStrictEqual(await Effect.runPromise(Effect.succeed("aa").pipe(Effect.andThen((s) => Promise.resolve(s.length)))), 2)
1820
+ *
1821
+ * assert.deepStrictEqual(Effect.runSync(Effect.succeed("aa").pipe(Effect.andThen(Effect.succeed(1)))), 1)
1822
+ * assert.deepStrictEqual(Effect.runSync(Effect.succeed("aa").pipe(Effect.andThen((s) => Effect.succeed(s.length)))), 2)
1823
+ *
1824
+ * @since 2.0.0
1825
+ * @category sequencing
1826
+ */
1827
+ export const andThen = core.andThen;
1828
+ /**
1829
+ * @since 2.0.0
1830
+ * @category sequencing
1831
+ */
1832
+ export const flatten = core.flatten;
1833
+ /**
1834
+ * Returns an effect that races this effect with all the specified effects,
1835
+ * yielding the value of the first effect to succeed with a value. Losers of
1836
+ * the race will be interrupted immediately
1837
+ *
1838
+ * @since 2.0.0
1839
+ * @category sequencing
1840
+ */
1841
+ export const raceAll = fiberRuntime.raceAll;
1842
+ /**
1843
+ * Returns an effect that races this effect with the specified effect,
1844
+ * returning the first successful `A` from the faster side. If one effect
1845
+ * succeeds, the other will be interrupted. If neither succeeds, then the
1846
+ * effect will fail with some error.
1847
+ *
1848
+ * @since 2.0.0
1849
+ * @category sequencing
1850
+ */
1851
+ export const race = fiberRuntime.race;
1852
+ /**
1853
+ * Returns an effect that races this effect with the specified effect,
1854
+ * yielding the first result to complete, whether by success or failure. If
1855
+ * neither effect completes, then the composed effect will not complete.
1856
+ *
1857
+ * WARNING: The raced effect will safely interrupt the "loser", but will not
1858
+ * resume until the loser has been cleanly terminated. If early return is
1859
+ * desired, then instead of performing `l raceFirst r`, perform
1860
+ * `l.disconnect raceFirst r.disconnect`, which disconnects left and right
1861
+ * interrupt signal, allowing a fast return, with interruption performed
1862
+ * in the background.
1863
+ *
1864
+ * @since 2.0.0
1865
+ * @category sequencing
1866
+ */
1867
+ export const raceFirst = circular.raceFirst;
1868
+ /**
1869
+ * Returns an effect that races this effect with the specified effect, calling
1870
+ * the specified finisher as soon as one result or the other has been computed.
1871
+ *
1872
+ * @since 2.0.0
1873
+ * @category sequencing
1874
+ */
1875
+ export const raceWith = fiberRuntime.raceWith;
1876
+ /**
1877
+ * Summarizes a effect by computing some value before and after execution, and
1878
+ * then combining the values to produce a summary, together with the result of
1879
+ * execution.
1880
+ *
1881
+ * @since 2.0.0
1882
+ * @category sequencing
1883
+ */
1884
+ export const summarized = effect.summarized;
1885
+ /**
1886
+ * @since 2.0.0
1887
+ * @category sequencing
1888
+ */
1889
+ export const tap = core.tap;
1890
+ /**
1891
+ * Returns an effect that effectfully "peeks" at the failure or success of
1892
+ * this effect.
1893
+ *
1894
+ * @since 2.0.0
1895
+ * @category sequencing
1896
+ */
1897
+ export const tapBoth = effect.tapBoth;
1898
+ /**
1899
+ * Returns an effect that effectually "peeks" at the defect of this effect.
1900
+ *
1901
+ * @since 2.0.0
1902
+ * @category sequencing
1903
+ */
1904
+ export const tapDefect = effect.tapDefect;
1905
+ /**
1906
+ * Returns an effect that effectfully "peeks" at the failure of this effect.
1907
+ *
1908
+ * @since 2.0.0
1909
+ * @category sequencing
1910
+ */
1911
+ export const tapError = effect.tapError;
1912
+ /**
1913
+ * Returns an effect that effectfully "peeks" at the specific tagged failure of this effect.
1914
+ *
1915
+ * @since 2.0.0
1916
+ * @category sequencing
1917
+ */
1918
+ export const tapErrorTag = effect.tapErrorTag;
1919
+ /**
1920
+ * Returns an effect that effectually "peeks" at the cause of the failure of
1921
+ * this effect.
1922
+ *
1923
+ * @since 2.0.0
1924
+ * @category sequencing
1925
+ */
1926
+ export const tapErrorCause = effect.tapErrorCause;
1927
+ // -------------------------------------------------------------------------------------
1928
+ // repetition / recursion
1929
+ // -------------------------------------------------------------------------------------
1930
+ /**
1931
+ * Repeats this effect forever (until the first error).
1932
+ *
1933
+ * @since 2.0.0
1934
+ * @category repetition / recursion
1935
+ */
1936
+ export const forever = effect.forever;
1937
+ /**
1938
+ * The `Effect.iterate` function allows you to iterate with an effectful operation. It uses an effectful `body` operation to change the state during each iteration and continues the iteration as long as the `while` function evaluates to `true`:
1939
+ *
1940
+ * ```ts
1941
+ * Effect.iterate(initial, options: { while, body })
1942
+ * ```
1943
+ *
1944
+ * We can think of `Effect.iterate` as equivalent to a `while` loop in JavaScript:
1945
+ *
1946
+ * ```ts
1947
+ * let result = initial
1948
+ *
1949
+ * while (options.while(result)) {
1950
+ * result = options.body(result)
1951
+ * }
1952
+ *
1953
+ * return result
1954
+ * ```
1955
+ *
1956
+ * @since 2.0.0
1957
+ * @category repetition / recursion
1958
+ */
1959
+ export const iterate = effect.iterate;
1960
+ /**
1961
+ * The `Effect.loop` function allows you to repeatedly change the state based on an `step` function until a condition given by the `while` function is evaluated to `true`:
1962
+ *
1963
+ * ```ts
1964
+ * Effect.loop(initial, options: { while, step, body })
1965
+ * ```
1966
+ *
1967
+ * It collects all intermediate states in an array and returns it as the final result.
1968
+ *
1969
+ * We can think of Effect.loop as equivalent to a while loop in JavaScript:
1970
+ *
1971
+ * ```ts
1972
+ * let state = initial
1973
+ * const result = []
1974
+ *
1975
+ * while (options.while(state)) {
1976
+ * result.push(options.body(state))
1977
+ * state = options.step(state)
1978
+ * }
1979
+ *
1980
+ * return result
1981
+ * ```
1982
+ *
1983
+ * @since 2.0.0
1984
+ * @category repetition / recursion
1985
+ */
1986
+ export const loop = effect.loop;
1987
+ /**
1988
+ * Returns a new effect that repeats this effect according to the specified
1989
+ * schedule or until the first failure. Scheduled recurrences are in addition
1990
+ * to the first execution, so that `io.repeat(Schedule.once)` yields an effect
1991
+ * that executes `io`, and then if that succeeds, executes `io` an additional
1992
+ * time.
1993
+ *
1994
+ * @since 2.0.0
1995
+ * @category repetition / recursion
1996
+ */
1997
+ export const repeat = _schedule.repeat_Effect;
1998
+ /**
1999
+ * Returns a new effect that repeats this effect the specified number of times
2000
+ * or until the first failure. Repeats are in addition to the first execution,
2001
+ * so that `io.repeatN(1)` yields an effect that executes `io`, and then if
2002
+ * that succeeds, executes `io` an additional time.
2003
+ *
2004
+ * @since 2.0.0
2005
+ * @category repetition / recursion
2006
+ */
2007
+ export const repeatN = effect.repeatN;
2008
+ /**
2009
+ * Returns a new effect that repeats this effect according to the specified
2010
+ * schedule or until the first failure, at which point, the failure value and
2011
+ * schedule output are passed to the specified handler.
2012
+ *
2013
+ * Scheduled recurrences are in addition to the first execution, so that
2014
+ * `pipe(effect, Effect.repeat(Schedule.once()))` yields an effect that executes
2015
+ * `effect`, and then if that succeeds, executes `effect` an additional time.
2016
+ *
2017
+ * @since 2.0.0
2018
+ * @category repetition / recursion
2019
+ */
2020
+ export const repeatOrElse = _schedule.repeatOrElse_Effect;
2021
+ /**
2022
+ * Repeats this effect until its value satisfies the specified predicate or
2023
+ * until the first failure.
2024
+ *
2025
+ * @since 2.0.0
2026
+ * @category repetition / recursion
2027
+ */
2028
+ export const repeatUntil = _schedule.repeatUntil_Effect;
2029
+ /**
2030
+ * Repeats this effect until its value satisfies the specified effectful
2031
+ * predicate or until the first failure.
2032
+ *
2033
+ * @since 2.0.0
2034
+ * @category repetition / recursion
2035
+ */
2036
+ export const repeatUntilEffect = _schedule.repeatUntilEffect_Effect;
2037
+ /**
2038
+ * Repeats this effect while its value satisfies the specified effectful
2039
+ * predicate or until the first failure.
2040
+ *
2041
+ * @since 2.0.0
2042
+ * @category repetition / recursion
2043
+ */
2044
+ export const repeatWhile = _schedule.repeatWhile_Effect;
2045
+ /**
2046
+ * Repeats this effect while its value satisfies the specified effectful
2047
+ * predicate or until the first failure.
2048
+ *
2049
+ * @since 2.0.0
2050
+ * @category repetition / recursion
2051
+ */
2052
+ export const repeatWhileEffect = _schedule.repeatWhileEffect_Effect;
2053
+ /**
2054
+ * Runs this effect according to the specified schedule.
2055
+ *
2056
+ * See `scheduleFrom` for a variant that allows the schedule's decision to
2057
+ * depend on the result of this effect.
2058
+ *
2059
+ * @since 2.0.0
2060
+ * @category repetition / recursion
2061
+ */
2062
+ export const schedule = _schedule.schedule_Effect;
2063
+ /**
2064
+ * Runs this effect according to the specified schedule in a new fiber
2065
+ * attached to the current scope.
2066
+ *
2067
+ * @since 2.0.0
2068
+ * @category repetition / recursion
2069
+ */
2070
+ export const scheduleForked = circular.scheduleForked;
2071
+ /**
2072
+ * Runs this effect according to the specified schedule starting from the
2073
+ * specified input value.
2074
+ *
2075
+ * @since 2.0.0
2076
+ * @category repetition / recursion
2077
+ */
2078
+ export const scheduleFrom = _schedule.scheduleFrom_Effect;
2079
+ /**
2080
+ * @since 2.0.0
2081
+ * @category repetition / recursion
2082
+ */
2083
+ export const whileLoop = core.whileLoop;
2084
+ // -------------------------------------------------------------------------------------
2085
+ // fiber refs
2086
+ // -------------------------------------------------------------------------------------
2087
+ /**
2088
+ * Returns a collection of all `FiberRef` values for the fiber running this
2089
+ * effect.
2090
+ *
2091
+ * @since 2.0.0
2092
+ * @category fiber refs
2093
+ */
2094
+ export const getFiberRefs = effect.fiberRefs;
2095
+ /**
2096
+ * Inherits values from all `FiberRef` instances into current fiber.
2097
+ *
2098
+ * @since 2.0.0
2099
+ * @category fiber refs
2100
+ */
2101
+ export const inheritFiberRefs = effect.inheritFiberRefs;
2102
+ /**
2103
+ * @since 2.0.0
2104
+ * @category fiber refs
2105
+ */
2106
+ export const locally = core.fiberRefLocally;
2107
+ /**
2108
+ * @since 2.0.0
2109
+ * @category fiber refs
2110
+ */
2111
+ export const locallyWith = core.fiberRefLocallyWith;
2112
+ /**
2113
+ * @since 2.0.0
2114
+ * @category fiber refs
2115
+ */
2116
+ export const locallyScoped = fiberRuntime.fiberRefLocallyScoped;
2117
+ /**
2118
+ * @since 2.0.0
2119
+ * @category fiber refs
2120
+ */
2121
+ export const locallyScopedWith = fiberRuntime.fiberRefLocallyScopedWith;
2122
+ /**
2123
+ * Applies the specified changes to the `FiberRef` values for the fiber
2124
+ * running this workflow.
2125
+ *
2126
+ * @since 2.0.0
2127
+ * @category fiber refs
2128
+ */
2129
+ export const patchFiberRefs = effect.patchFiberRefs;
2130
+ /**
2131
+ * Sets the `FiberRef` values for the fiber running this effect to the values
2132
+ * in the specified collection of `FiberRef` values.
2133
+ *
2134
+ * @since 2.0.0
2135
+ * @category fiber refs
2136
+ */
2137
+ export const setFiberRefs = effect.setFiberRefs;
2138
+ /**
2139
+ * Updates the `FiberRef` values for the fiber running this effect using the
2140
+ * specified function.
2141
+ *
2142
+ * @since 2.0.0
2143
+ * @category fiber refs
2144
+ */
2145
+ export const updateFiberRefs = effect.updateFiberRefs;
2146
+ // -------------------------------------------------------------------------------------
2147
+ // getters & folding
2148
+ // -------------------------------------------------------------------------------------
2149
+ /**
2150
+ * Returns `true` if this effect is a failure, `false` otherwise.
2151
+ *
2152
+ * @since 2.0.0
2153
+ * @category getters & folding
2154
+ */
2155
+ export const isFailure = effect.isFailure;
2156
+ /**
2157
+ * Returns `true` if this effect is a success, `false` otherwise.
2158
+ *
2159
+ * @since 2.0.0
2160
+ * @category getters & folding
2161
+ */
2162
+ export const isSuccess = effect.isSuccess;
2163
+ /**
2164
+ * Folds over the failure value or the success value to yield an effect that
2165
+ * does not fail, but succeeds with the value returned by the left or right
2166
+ * function passed to `match`.
2167
+ *
2168
+ * @since 2.0.0
2169
+ * @category getters & folding
2170
+ */
2171
+ export const match = effect.match;
2172
+ /**
2173
+ * @since 2.0.0
2174
+ * @category getters & folding
2175
+ */
2176
+ export const matchCause = core.matchCause;
2177
+ /**
2178
+ * @since 2.0.0
2179
+ * @category getters & folding
2180
+ */
2181
+ export const matchCauseEffect = core.matchCauseEffect;
2182
+ /**
2183
+ * @since 2.0.0
2184
+ * @category getters & folding
2185
+ */
2186
+ export const matchEffect = core.matchEffect;
2187
+ // -------------------------------------------------------------------------------------
2188
+ // logging
2189
+ // -------------------------------------------------------------------------------------
2190
+ /**
2191
+ * Logs the specified message or cause at the current log level.
2192
+ *
2193
+ * You can set the current log level using `FiberRef.currentLogLevel`.
2194
+ *
2195
+ * @since 2.0.0
2196
+ * @category logging
2197
+ */
2198
+ export const log = effect.log;
2199
+ /**
2200
+ * Logs the specified message or cause at the Trace log level.
2201
+ *
2202
+ * @since 2.0.0
2203
+ * @category logging
2204
+ */
2205
+ export const logTrace = effect.logTrace;
2206
+ /**
2207
+ * Logs the specified message or cause at the Debug log level.
2208
+ *
2209
+ * @since 2.0.0
2210
+ * @category logging
2211
+ */
2212
+ export const logDebug = effect.logDebug;
2213
+ /**
2214
+ * Logs the specified message or cause at the Info log level.
2215
+ *
2216
+ * @since 2.0.0
2217
+ * @category logging
2218
+ */
2219
+ export const logInfo = effect.logInfo;
2220
+ /**
2221
+ * Logs the specified message or cause at the Warning log level.
2222
+ *
2223
+ * @since 2.0.0
2224
+ * @category logging
2225
+ */
2226
+ export const logWarning = effect.logWarning;
2227
+ /**
2228
+ * Logs the specified message or cause at the Error log level.
2229
+ *
2230
+ * @since 2.0.0
2231
+ * @category logging
2232
+ */
2233
+ export const logError = effect.logError;
2234
+ /**
2235
+ * Logs the specified message or cause at the Fatal log level.
2236
+ *
2237
+ * @since 2.0.0
2238
+ * @category logging
2239
+ */
2240
+ export const logFatal = effect.logFatal;
2241
+ /**
2242
+ * Adjusts the label for the current logging span.
2243
+ *
2244
+ * @since 2.0.0
2245
+ * @category logging
2246
+ */
2247
+ export const withLogSpan = effect.withLogSpan;
2248
+ /**
2249
+ * Annotates each log in this effect with the specified log annotation.
2250
+ *
2251
+ * @since 2.0.0
2252
+ * @category logging
2253
+ */
2254
+ export const annotateLogs = effect.annotateLogs;
2255
+ /**
2256
+ * Retrieves the log annotations associated with the current scope.
2257
+ *
2258
+ * @since 2.0.0
2259
+ * @category logging
2260
+ */
2261
+ export const logAnnotations = effect.logAnnotations;
2262
+ /**
2263
+ * Decides wether child fibers will report or not unhandled errors via the logger
2264
+ *
2265
+ * @since 2.0.0
2266
+ * @category logging
2267
+ */
2268
+ export const withUnhandledErrorLogLevel = core.withUnhandledErrorLogLevel;
2269
+ // -------------------------------------------------------------------------------------
2270
+ // alternatives
2271
+ // -------------------------------------------------------------------------------------
2272
+ /**
2273
+ * Translates effect failure into death of the fiber, making all failures
2274
+ * unchecked and not a part of the type of the effect.
2275
+ *
2276
+ * @since 2.0.0
2277
+ * @category alternatives
2278
+ */
2279
+ export const orDie = core.orDie;
2280
+ /**
2281
+ * Keeps none of the errors, and terminates the fiber with them, using the
2282
+ * specified function to convert the `E` into a `Throwable`.
2283
+ *
2284
+ * @since 2.0.0
2285
+ * @category alternatives
2286
+ */
2287
+ export const orDieWith = core.orDieWith;
2288
+ /**
2289
+ * Executes this effect and returns its value, if it succeeds, but otherwise
2290
+ * executes the specified effect.
2291
+ *
2292
+ * @since 2.0.0
2293
+ * @category alternatives
2294
+ */
2295
+ export const orElse = core.orElse;
2296
+ /**
2297
+ * Executes this effect and returns its value, if it succeeds, but otherwise
2298
+ * fails with the specified error.
2299
+ *
2300
+ * @since 2.0.0
2301
+ * @category alternatives
2302
+ */
2303
+ export const orElseFail = effect.orElseFail;
2304
+ /**
2305
+ * Executes this effect and returns its value, if it succeeds, but
2306
+ * otherwise succeeds with the specified value.
2307
+ *
2308
+ * @since 2.0.0
2309
+ * @category alternatives
2310
+ */
2311
+ export const orElseSucceed = effect.orElseSucceed;
2312
+ // -------------------------------------------------------------------------------------
2313
+ // random
2314
+ // -------------------------------------------------------------------------------------
2315
+ /**
2316
+ * Retreives the `Random` service from the context.
2317
+ *
2318
+ * @since 2.0.0
2319
+ * @category random
2320
+ */
2321
+ export const random = effect.random;
2322
+ /**
2323
+ * Retreives the `Random` service from the context and uses it to run the
2324
+ * specified workflow.
2325
+ *
2326
+ * @since 2.0.0
2327
+ * @category random
2328
+ */
2329
+ export const randomWith = defaultServices.randomWith;
2330
+ // -------------------------------------------------------------------------------------
2331
+ // runtime
2332
+ // -------------------------------------------------------------------------------------
2333
+ /**
2334
+ * Returns an effect that accesses the runtime, which can be used to
2335
+ * (unsafely) execute tasks. This is useful for integration with legacy code
2336
+ * that must call back into Effect code.
2337
+ *
2338
+ * @since 2.0.0
2339
+ * @category runtime
2340
+ */
2341
+ export const runtime = _runtime.runtime;
2342
+ /**
2343
+ * Retrieves an effect that succeeds with the current runtime flags, which
2344
+ * govern behavior and features of the runtime system.
2345
+ *
2346
+ * @since 2.0.0
2347
+ * @category runtime
2348
+ */
2349
+ export const getRuntimeFlags = core.runtimeFlags;
2350
+ /**
2351
+ * @since 2.0.0
2352
+ * @category runtime
2353
+ */
2354
+ export const patchRuntimeFlags = core.updateRuntimeFlags;
2355
+ /**
2356
+ * @since 2.0.0
2357
+ * @category runtime
2358
+ */
2359
+ export const withRuntimeFlagsPatch = core.withRuntimeFlags;
2360
+ /**
2361
+ * @since 2.0.0
2362
+ * @category runtime
2363
+ */
2364
+ export const withRuntimeFlagsPatchScoped = fiberRuntime.withRuntimeFlagsScoped;
2365
+ // -------------------------------------------------------------------------------------
2366
+ // metrics
2367
+ // -------------------------------------------------------------------------------------
2368
+ /**
2369
+ * Tags each metric in this effect with the specific tag.
2370
+ *
2371
+ * @since 2.0.0
2372
+ * @category metrics
2373
+ */
2374
+ export const tagMetrics = effect.tagMetrics;
2375
+ /**
2376
+ * Tags each metric in this effect with the specific tag.
2377
+ *
2378
+ * @since 2.0.0
2379
+ * @category metrics
2380
+ */
2381
+ export const labelMetrics = effect.labelMetrics;
2382
+ /**
2383
+ * Tags each metric in a scope with a the specific tag.
2384
+ *
2385
+ * @since 2.0.0
2386
+ * @category metrics
2387
+ */
2388
+ export const tagMetricsScoped = fiberRuntime.tagMetricsScoped;
2389
+ /**
2390
+ * Tags each metric in a scope with a the specific tag.
2391
+ *
2392
+ * @since 2.0.0
2393
+ * @category metrics
2394
+ */
2395
+ export const labelMetricsScoped = fiberRuntime.labelMetricsScoped;
2396
+ /**
2397
+ * Retrieves the metric labels associated with the current scope.
2398
+ *
2399
+ * @since 2.0.0
2400
+ * @category metrics
2401
+ */
2402
+ export const metricLabels = core.metricLabels;
2403
+ /**
2404
+ * @since 2.0.0
2405
+ * @category metrics
2406
+ */
2407
+ export const withMetric = effect.withMetric;
2408
+ // -------------------------------------------------------------------------------------
2409
+ // unify
2410
+ // -------------------------------------------------------------------------------------
2411
+ /**
2412
+ * Used to unify functions that would otherwise return `Effect<A, B, C> | Effect<D, E, F>`
2413
+ *
2414
+ * @category unify
2415
+ * @since 2.0.0
2416
+ */
2417
+ export const unifiedFn = core.unified;
2418
+ /**
2419
+ * Used to unify effects that would otherwise be `Effect<A, B, C> | Effect<D, E, F>`
2420
+ *
2421
+ * @category unify
2422
+ * @since 2.0.0
2423
+ */
2424
+ export const unified = identity;
2425
+ /**
2426
+ * Unsafely creates a new Semaphore
2427
+ *
2428
+ * @since 2.0.0
2429
+ * @category semaphore
2430
+ */
2431
+ export const unsafeMakeSemaphore = circular.unsafeMakeSemaphore;
2432
+ /**
2433
+ * Creates a new Semaphore
2434
+ *
2435
+ * @since 2.0.0
2436
+ * @category semaphore
2437
+ */
2438
+ export const makeSemaphore = circular.makeSemaphore;
2439
+ // -------------------------------------------------------------------------------------
2440
+ // execution
2441
+ // -------------------------------------------------------------------------------------
2442
+ /**
2443
+ * @since 2.0.0
2444
+ * @category execution
2445
+ */
2446
+ export const runFork = _runtime.unsafeForkEffect;
2447
+ /**
2448
+ * @since 2.0.0
2449
+ * @category execution
2450
+ */
2451
+ export const runCallback = _runtime.unsafeRunEffect;
2452
+ /**
2453
+ * Runs an `Effect` workflow, returning a `Promise` which resolves with the
2454
+ * result of the workflow or rejects with an error.
2455
+ *
2456
+ * @since 2.0.0
2457
+ * @category execution
2458
+ */
2459
+ export const runPromise = _runtime.unsafeRunPromiseEffect;
2460
+ /**
2461
+ * Runs an `Effect` workflow, returning a `Promise` which resolves with the
2462
+ * `Exit` value of the workflow.
2463
+ *
2464
+ * @since 2.0.0
2465
+ * @category execution
2466
+ */
2467
+ export const runPromiseExit = _runtime.unsafeRunPromiseExitEffect;
2468
+ /**
2469
+ * @since 2.0.0
2470
+ * @category execution
2471
+ */
2472
+ export const runSync = _runtime.unsafeRunSyncEffect;
2473
+ /**
2474
+ * @since 2.0.0
2475
+ * @category execution
2476
+ */
2477
+ export const runSyncExit = _runtime.unsafeRunSyncExitEffect;
2478
+ // -------------------------------------------------------------------------------------
2479
+ // zipping
2480
+ // -------------------------------------------------------------------------------------
2481
+ /**
2482
+ * Sequentially zips the this result with the specified result. Combines both
2483
+ * `Cause`s when both effects fail.
2484
+ *
2485
+ * @since 2.0.0
2486
+ * @category zipping
2487
+ */
2488
+ export const validate = fiberRuntime.validate;
2489
+ /**
2490
+ * Sequentially zips this effect with the specified effect using the specified
2491
+ * combiner function. Combines the causes in case both effect fail.
2492
+ *
2493
+ * @since 2.0.0
2494
+ * @category zipping
2495
+ */
2496
+ export const validateWith = fiberRuntime.validateWith;
2497
+ /**
2498
+ * @since 2.0.0
2499
+ * @category zipping
2500
+ */
2501
+ export const zip = fiberRuntime.zipOptions;
2502
+ /**
2503
+ * @since 2.0.0
2504
+ * @category zipping
2505
+ */
2506
+ export const zipLeft = fiberRuntime.zipLeftOptions;
2507
+ /**
2508
+ * @since 2.0.0
2509
+ * @category zipping
2510
+ */
2511
+ export const zipRight = fiberRuntime.zipRightOptions;
2512
+ /**
2513
+ * @since 2.0.0
2514
+ * @category zipping
2515
+ */
2516
+ export const zipWith = fiberRuntime.zipWithOptions;
2517
+ // -------------------------------------------------------------------------------------
2518
+ // applicatives
2519
+ // -------------------------------------------------------------------------------------
2520
+ /**
2521
+ * @category combining
2522
+ * @since 2.0.0
2523
+ */
2524
+ export const ap = /*#__PURE__*/dual(2, (self, that) => zipWith(self, that, (f, a) => f(a)));
2525
+ // -------------------------------------------------------------------------------------
2526
+ // requests & batching
2527
+ // -------------------------------------------------------------------------------------
2528
+ /**
2529
+ * @category requests & batching
2530
+ * @since 2.0.0
2531
+ */
2532
+ export const blocked = core.blocked;
2533
+ /**
2534
+ * @category requests & batching
2535
+ * @since 2.0.0
2536
+ */
2537
+ export const runRequestBlock = core.runRequestBlock;
2538
+ /**
2539
+ * @category requests & batching
2540
+ * @since 2.0.0
2541
+ */
2542
+ export const step = core.step;
2543
+ /**
2544
+ * @since 2.0.0
2545
+ * @category requests & batching
2546
+ */
2547
+ export const request = query.fromRequest;
2548
+ /**
2549
+ * @since 2.0.0
2550
+ * @category requests & batching
2551
+ */
2552
+ export const cacheRequestResult = query.cacheRequest;
2553
+ /**
2554
+ * @since 2.0.0
2555
+ * @category requests & batching
2556
+ */
2557
+ export const withRequestBatching = core.withRequestBatching;
2558
+ /**
2559
+ * @since 2.0.0
2560
+ * @category requests & batching
2561
+ */
2562
+ export const withRequestCaching = query.withRequestCaching;
2563
+ /**
2564
+ * @since 2.0.0
2565
+ * @category requests & batching
2566
+ */
2567
+ export const withRequestCache = query.withRequestCache;
2568
+ // -------------------------------------------------------------------------------------
2569
+ // tracing
2570
+ // -------------------------------------------------------------------------------------
2571
+ /**
2572
+ * @since 2.0.0
2573
+ * @category tracing
2574
+ */
2575
+ export const tracer = effect.tracer;
2576
+ /**
2577
+ * @since 2.0.0
2578
+ * @category tracing
2579
+ */
2580
+ export const tracerWith = defaultServices.tracerWith;
2581
+ /**
2582
+ * @since 2.0.0
2583
+ * @category tracing
2584
+ */
2585
+ export const withTracer = defaultServices.withTracer;
2586
+ /**
2587
+ * @since 2.0.0
2588
+ * @category tracing
2589
+ */
2590
+ export const withTracerScoped = fiberRuntime.withTracerScoped;
2591
+ /**
2592
+ * @since 2.0.0
2593
+ * @category tracing
2594
+ */
2595
+ export const withTracerTiming = core.withTracerTiming;
2596
+ /**
2597
+ * Adds an annotation to each span in this effect.
2598
+ *
2599
+ * @since 2.0.0
2600
+ * @category tracing
2601
+ */
2602
+ export const annotateSpans = effect.annotateSpans;
2603
+ /**
2604
+ * Adds an annotation to the current span if available
2605
+ *
2606
+ * @since 2.0.0
2607
+ * @category tracing
2608
+ */
2609
+ export const annotateCurrentSpan = effect.annotateCurrentSpan;
2610
+ /**
2611
+ * @since 2.0.0
2612
+ * @category tracing
2613
+ */
2614
+ export const currentSpan = effect.currentSpan;
2615
+ /**
2616
+ * @since 2.0.0
2617
+ * @category tracing
2618
+ */
2619
+ export const currentParentSpan = effect.currentParentSpan;
2620
+ /**
2621
+ * @since 2.0.0
2622
+ * @category tracing
2623
+ */
2624
+ export const spanAnnotations = effect.spanAnnotations;
2625
+ /**
2626
+ * @since 2.0.0
2627
+ * @category tracing
2628
+ */
2629
+ export const spanLinks = effect.spanLinks;
2630
+ /**
2631
+ * For all spans in this effect, add a link with the provided span.
2632
+ *
2633
+ * @since 2.0.0
2634
+ * @category tracing
2635
+ */
2636
+ export const linkSpans = effect.linkSpans;
2637
+ /**
2638
+ * Create a new span for tracing.
2639
+ *
2640
+ * @since 2.0.0
2641
+ * @category tracing
2642
+ */
2643
+ export const makeSpan = effect.makeSpan;
2644
+ /**
2645
+ * Create a new span for tracing, and automatically close it when the Scope
2646
+ * finalizes.
2647
+ *
2648
+ * The span is not added to the current span stack, so no child spans will be
2649
+ * created for it.
2650
+ *
2651
+ * @since 2.0.0
2652
+ * @category tracing
2653
+ */
2654
+ export const makeSpanScoped = fiberRuntime.makeSpanScoped;
2655
+ /**
2656
+ * Create a new span for tracing, and automatically close it when the effect
2657
+ * completes.
2658
+ *
2659
+ * The span is not added to the current span stack, so no child spans will be
2660
+ * created for it.
2661
+ *
2662
+ * @since 2.0.0
2663
+ * @category tracing
2664
+ */
2665
+ export const useSpan = effect.useSpan;
2666
+ /**
2667
+ * Wraps the effect with a new span for tracing.
2668
+ *
2669
+ * @since 2.0.0
2670
+ * @category tracing
2671
+ */
2672
+ export const withSpan = effect.withSpan;
2673
+ /**
2674
+ * Wraps the effect with a new span for tracing.
2675
+ *
2676
+ * The span is ended when the Scope is finalized.
2677
+ *
2678
+ * @since 2.0.0
2679
+ * @category tracing
2680
+ */
2681
+ export const withSpanScoped = fiberRuntime.withSpanScoped;
2682
+ /**
2683
+ * Adds the provided span to the current span stack.
2684
+ *
2685
+ * @since 2.0.0
2686
+ * @category tracing
2687
+ */
2688
+ export const withParentSpan = effect.withParentSpan;
2689
+ // -------------------------------------------------------------------------------------
2690
+ // optionality
2691
+ // -------------------------------------------------------------------------------------
2692
+ /**
2693
+ * Returns an effect that errors with `NoSuchElementException` if the value is
2694
+ * null or undefined, otherwise succeeds with the value.
2695
+ *
2696
+ * @since 2.0.0
2697
+ * @category optionality
2698
+ */
2699
+ export const fromNullable = effect.fromNullable;
2700
+ /**
2701
+ * Wraps the success value of this effect with `Option.some`, and maps
2702
+ * `Cause.NoSuchElementException` to `Option.none`.
2703
+ *
2704
+ * @since 2.0.0
2705
+ * @category optionality
2706
+ */
2707
+ export const optionFromOptional = effect.optionFromOptional;
2708
+ //# sourceMappingURL=Effect.js.map