effect 2.0.0-next.57 → 2.0.0-next.59

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