effect 2.0.0-next.41 → 2.0.0-next.43

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 (684) hide show
  1. package/Bigint/dist/effect-Bigint.cjs.dev.js +365 -28
  2. package/Bigint/dist/effect-Bigint.cjs.prod.js +365 -28
  3. package/Boolean/dist/effect-Boolean.cjs.dev.js +243 -22
  4. package/Boolean/dist/effect-Boolean.cjs.prod.js +243 -22
  5. package/Brand/dist/effect-Brand.cjs.dev.js +221 -26
  6. package/Brand/dist/effect-Brand.cjs.prod.js +221 -26
  7. package/Cache/dist/effect-Cache.cjs.dev.js +182 -77
  8. package/Cache/dist/effect-Cache.cjs.prod.js +182 -77
  9. package/Cause/dist/effect-Cause.cjs.dev.js +754 -93
  10. package/Cause/dist/effect-Cause.cjs.prod.js +754 -93
  11. package/Channel/dist/effect-Channel.cjs.dev.js +1206 -214
  12. package/Channel/dist/effect-Channel.cjs.prod.js +1206 -214
  13. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.dev.js +118 -12
  14. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.prod.js +118 -12
  15. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.dev.js +63 -9
  16. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.prod.js +63 -9
  17. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.dev.js +107 -12
  18. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.prod.js +107 -12
  19. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.dev.js +88 -10
  20. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.prod.js +88 -10
  21. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +131 -90
  22. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +131 -90
  23. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.dev.js +88 -10
  24. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.prod.js +88 -10
  25. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.dev.js +87 -10
  26. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.prod.js +87 -10
  27. package/Chunk/dist/effect-Chunk.cjs.dev.js +1170 -101
  28. package/Chunk/dist/effect-Chunk.cjs.prod.js +1170 -101
  29. package/Clock/dist/effect-Clock.cjs.dev.js +121 -50
  30. package/Clock/dist/effect-Clock.cjs.prod.js +121 -50
  31. package/Config/dist/effect-Config.cjs.dev.js +386 -71
  32. package/Config/dist/effect-Config.cjs.prod.js +386 -71
  33. package/ConfigError/dist/effect-ConfigError.cjs.dev.js +219 -40
  34. package/ConfigError/dist/effect-ConfigError.cjs.prod.js +219 -40
  35. package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +250 -58
  36. package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +250 -58
  37. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +92 -28
  38. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +92 -28
  39. package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +85 -28
  40. package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +85 -28
  41. package/Console/dist/effect-Console.cjs.dev.js +316 -106
  42. package/Console/dist/effect-Console.cjs.prod.js +316 -106
  43. package/Context/dist/effect-Context.cjs.dev.js +322 -33
  44. package/Context/dist/effect-Context.cjs.prod.js +322 -33
  45. package/Data/dist/effect-Data.cjs.dev.js +223 -21
  46. package/Data/dist/effect-Data.cjs.prod.js +223 -21
  47. package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +60 -42
  48. package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +60 -42
  49. package/Deferred/dist/effect-Deferred.cjs.dev.js +254 -55
  50. package/Deferred/dist/effect-Deferred.cjs.prod.js +254 -55
  51. package/Differ/dist/effect-Differ.cjs.dev.js +985 -42
  52. package/Differ/dist/effect-Differ.cjs.prod.js +985 -42
  53. package/Duration/dist/effect-Duration.cjs.dev.js +476 -51
  54. package/Duration/dist/effect-Duration.cjs.prod.js +476 -51
  55. package/Effect/dist/effect-Effect.cjs.dev.js +3485 -411
  56. package/Effect/dist/effect-Effect.cjs.prod.js +3485 -411
  57. package/Effectable/dist/effect-Effectable.cjs.dev.js +92 -21
  58. package/Effectable/dist/effect-Effectable.cjs.prod.js +92 -21
  59. package/Either/dist/effect-Either.cjs.dev.js +475 -43
  60. package/Either/dist/effect-Either.cjs.prod.js +475 -43
  61. package/Encoding/dist/effect-Encoding.cjs.dev.js +302 -29
  62. package/Encoding/dist/effect-Encoding.cjs.prod.js +302 -29
  63. package/Equal/dist/effect-Equal.cjs.dev.js +61 -10
  64. package/Equal/dist/effect-Equal.cjs.prod.js +61 -10
  65. package/Equivalence/dist/effect-Equivalence.cjs.dev.js +213 -23
  66. package/Equivalence/dist/effect-Equivalence.cjs.prod.js +213 -23
  67. package/Error/dist/effect-Error.cjs.dev.js +131 -91
  68. package/Error/dist/effect-Error.cjs.mjs +1 -1
  69. package/Error/dist/effect-Error.cjs.prod.js +131 -91
  70. package/Error/dist/effect-Error.esm.js +2 -2
  71. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.dev.js +2 -2
  72. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.prod.js +2 -2
  73. package/Exit/dist/effect-Exit.cjs.dev.js +395 -69
  74. package/Exit/dist/effect-Exit.cjs.prod.js +395 -69
  75. package/Fiber/dist/effect-Fiber.cjs.dev.js +538 -124
  76. package/Fiber/dist/effect-Fiber.cjs.prod.js +538 -124
  77. package/FiberId/dist/effect-FiberId.cjs.dev.js +19 -19
  78. package/FiberId/dist/effect-FiberId.cjs.prod.js +19 -19
  79. package/FiberRef/dist/effect-FiberRef.cjs.dev.js +401 -121
  80. package/FiberRef/dist/effect-FiberRef.cjs.prod.js +401 -121
  81. package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +147 -46
  82. package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +147 -46
  83. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +110 -40
  84. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +110 -40
  85. package/FiberStatus/dist/effect-FiberStatus.cjs.dev.js +185 -18
  86. package/FiberStatus/dist/effect-FiberStatus.cjs.prod.js +185 -18
  87. package/Function/dist/effect-Function.cjs.dev.js +511 -24
  88. package/Function/dist/effect-Function.cjs.prod.js +511 -24
  89. package/GlobalValue/dist/effect-GlobalValue.cjs.dev.js +18 -3
  90. package/GlobalValue/dist/effect-GlobalValue.cjs.prod.js +18 -3
  91. package/GroupBy/dist/effect-GroupBy.cjs.dev.js +168 -111
  92. package/GroupBy/dist/effect-GroupBy.cjs.prod.js +168 -111
  93. package/Hash/dist/effect-Hash.cjs.dev.js +175 -19
  94. package/Hash/dist/effect-Hash.cjs.prod.js +175 -19
  95. package/HashMap/dist/effect-HashMap.cjs.dev.js +337 -52
  96. package/HashMap/dist/effect-HashMap.cjs.prod.js +337 -52
  97. package/HashSet/dist/effect-HashSet.cjs.dev.js +266 -45
  98. package/HashSet/dist/effect-HashSet.cjs.prod.js +266 -45
  99. package/Hub/dist/effect-Hub.cjs.dev.js +1320 -89
  100. package/Hub/dist/effect-Hub.cjs.prod.js +1320 -89
  101. package/Inspectable/dist/effect-Inspectable.cjs.dev.js +37 -4
  102. package/Inspectable/dist/effect-Inspectable.cjs.prod.js +37 -4
  103. package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +328 -83
  104. package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +328 -83
  105. package/Layer/dist/effect-Layer.cjs.dev.js +697 -147
  106. package/Layer/dist/effect-Layer.cjs.prod.js +697 -147
  107. package/List/dist/effect-List.cjs.dev.js +868 -68
  108. package/List/dist/effect-List.cjs.prod.js +868 -68
  109. package/LogLevel/dist/effect-LogLevel.cjs.dev.js +243 -50
  110. package/LogLevel/dist/effect-LogLevel.cjs.prod.js +243 -50
  111. package/LogSpan/dist/effect-LogSpan.cjs.dev.js +34 -3
  112. package/LogSpan/dist/effect-LogSpan.cjs.prod.js +34 -3
  113. package/Logger/dist/effect-Logger.cjs.dev.js +314 -113
  114. package/Logger/dist/effect-Logger.cjs.prod.js +314 -113
  115. package/Metric/dist/effect-Metric.cjs.dev.js +504 -116
  116. package/Metric/dist/effect-Metric.cjs.prod.js +504 -116
  117. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +72 -26
  118. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +72 -26
  119. package/MetricHook/dist/effect-MetricHook.cjs.dev.js +95 -33
  120. package/MetricHook/dist/effect-MetricHook.cjs.prod.js +95 -33
  121. package/MetricKey/dist/effect-MetricKey.cjs.dev.js +133 -35
  122. package/MetricKey/dist/effect-MetricKey.cjs.prod.js +133 -35
  123. package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +179 -38
  124. package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +179 -38
  125. package/MetricLabel/dist/effect-MetricLabel.cjs.dev.js +47 -12
  126. package/MetricLabel/dist/effect-MetricLabel.cjs.prod.js +47 -12
  127. package/MetricPair/dist/effect-MetricPair.cjs.dev.js +38 -6
  128. package/MetricPair/dist/effect-MetricPair.cjs.prod.js +38 -6
  129. package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +230 -86
  130. package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +230 -86
  131. package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +55 -33
  132. package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +55 -33
  133. package/MetricState/dist/effect-MetricState.cjs.dev.js +174 -29
  134. package/MetricState/dist/effect-MetricState.cjs.prod.js +174 -29
  135. package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +149 -32
  136. package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +149 -32
  137. package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +111 -30
  138. package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +111 -30
  139. package/MutableList/dist/effect-MutableList.cjs.dev.js +276 -20
  140. package/MutableList/dist/effect-MutableList.cjs.prod.js +276 -20
  141. package/MutableQueue/dist/effect-MutableQueue.cjs.dev.js +209 -32
  142. package/MutableQueue/dist/effect-MutableQueue.cjs.prod.js +209 -32
  143. package/MutableRef/dist/effect-MutableRef.cjs.dev.js +175 -28
  144. package/MutableRef/dist/effect-MutableRef.cjs.prod.js +175 -28
  145. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.dev.js +25 -2
  146. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.prod.js +25 -2
  147. package/Number/dist/effect-Number.cjs.dev.js +389 -29
  148. package/Number/dist/effect-Number.cjs.prod.js +389 -29
  149. package/Option/dist/effect-Option.cjs.dev.js +1137 -79
  150. package/Option/dist/effect-Option.cjs.prod.js +1137 -79
  151. package/Order/dist/effect-Order.cjs.dev.js +288 -31
  152. package/Order/dist/effect-Order.cjs.prod.js +288 -31
  153. package/Ordering/dist/effect-Ordering.cjs.dev.js +89 -7
  154. package/Ordering/dist/effect-Ordering.cjs.prod.js +89 -7
  155. package/Pipeable/dist/effect-Pipeable.cjs.dev.js +41 -2
  156. package/Pipeable/dist/effect-Pipeable.cjs.prod.js +41 -2
  157. package/Pool/dist/effect-Pool.cjs.dev.js +177 -79
  158. package/Pool/dist/effect-Pool.cjs.prod.js +177 -79
  159. package/Predicate/dist/effect-Predicate.cjs.dev.js +672 -44
  160. package/Predicate/dist/effect-Predicate.cjs.prod.js +672 -44
  161. package/Queue/dist/effect-Queue.cjs.dev.js +427 -105
  162. package/Queue/dist/effect-Queue.cjs.prod.js +427 -105
  163. package/Random/dist/effect-Random.cjs.dev.js +127 -51
  164. package/Random/dist/effect-Random.cjs.prod.js +127 -51
  165. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +1589 -157
  166. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +1589 -157
  167. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js +552 -42
  168. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js +552 -42
  169. package/RedBlackTree/dist/effect-RedBlackTree.cjs.dev.js +1638 -59
  170. package/RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js +1638 -59
  171. package/Ref/dist/effect-Ref.cjs.dev.js +31 -31
  172. package/Ref/dist/effect-Ref.cjs.prod.js +31 -31
  173. package/Reloadable/dist/effect-Reloadable.cjs.dev.js +226 -93
  174. package/Reloadable/dist/effect-Reloadable.cjs.prod.js +226 -93
  175. package/Request/dist/effect-Request.cjs.dev.js +238 -88
  176. package/Request/dist/effect-Request.cjs.prod.js +238 -88
  177. package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +195 -100
  178. package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +195 -100
  179. package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +292 -110
  180. package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +292 -110
  181. package/Resource/dist/effect-Resource.cjs.dev.js +177 -85
  182. package/Resource/dist/effect-Resource.cjs.prod.js +177 -85
  183. package/Runtime/dist/effect-Runtime.cjs.dev.js +245 -94
  184. package/Runtime/dist/effect-Runtime.cjs.prod.js +245 -94
  185. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +419 -121
  186. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +419 -121
  187. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +25 -25
  188. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +25 -25
  189. package/STM/dist/effect-STM.cjs.dev.js +1421 -237
  190. package/STM/dist/effect-STM.cjs.prod.js +1421 -237
  191. package/Schedule/dist/effect-Schedule.cjs.dev.js +1107 -156
  192. package/Schedule/dist/effect-Schedule.cjs.prod.js +1107 -156
  193. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +111 -28
  194. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +111 -28
  195. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +237 -33
  196. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +237 -33
  197. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +264 -36
  198. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +264 -36
  199. package/Scheduler/dist/effect-Scheduler.cjs.dev.js +365 -48
  200. package/Scheduler/dist/effect-Scheduler.cjs.prod.js +365 -48
  201. package/Scope/dist/effect-Scope.cjs.dev.js +192 -82
  202. package/Scope/dist/effect-Scope.cjs.prod.js +192 -82
  203. package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +512 -79
  204. package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +512 -79
  205. package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +147 -82
  206. package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +147 -82
  207. package/Sink/dist/effect-Sink.cjs.dev.js +1199 -208
  208. package/Sink/dist/effect-Sink.cjs.prod.js +1199 -208
  209. package/SortedMap/dist/effect-SortedMap.cjs.dev.js +194 -39
  210. package/SortedMap/dist/effect-SortedMap.cjs.prod.js +194 -39
  211. package/SortedSet/dist/effect-SortedSet.cjs.dev.js +293 -42
  212. package/SortedSet/dist/effect-SortedSet.cjs.prod.js +293 -42
  213. package/Stream/dist/effect-Stream.cjs.dev.js +3273 -401
  214. package/Stream/dist/effect-Stream.cjs.prod.js +3273 -401
  215. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.dev.js +2 -2
  216. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.prod.js +2 -2
  217. package/String/dist/effect-String.cjs.dev.js +652 -64
  218. package/String/dist/effect-String.cjs.prod.js +652 -64
  219. package/Struct/dist/effect-Struct.cjs.dev.js +126 -9
  220. package/Struct/dist/effect-Struct.cjs.prod.js +126 -9
  221. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +337 -131
  222. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +337 -131
  223. package/Supervisor/dist/effect-Supervisor.cjs.dev.js +234 -94
  224. package/Supervisor/dist/effect-Supervisor.cjs.prod.js +234 -94
  225. package/Symbol/dist/effect-Symbol.cjs.dev.js +29 -6
  226. package/Symbol/dist/effect-Symbol.cjs.prod.js +29 -6
  227. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +254 -102
  228. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +254 -102
  229. package/TArray/dist/effect-TArray.cjs.dev.js +517 -156
  230. package/TArray/dist/effect-TArray.cjs.prod.js +517 -156
  231. package/TDeferred/dist/effect-TDeferred.cjs.dev.js +219 -121
  232. package/TDeferred/dist/effect-TDeferred.cjs.prod.js +219 -121
  233. package/THub/dist/effect-THub.cjs.dev.js +651 -131
  234. package/THub/dist/effect-THub.cjs.prod.js +651 -131
  235. package/TMap/dist/effect-TMap.cjs.dev.js +526 -159
  236. package/TMap/dist/effect-TMap.cjs.prod.js +526 -159
  237. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +459 -133
  238. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +459 -133
  239. package/TQueue/dist/effect-TQueue.cjs.dev.js +430 -143
  240. package/TQueue/dist/effect-TQueue.cjs.prod.js +430 -143
  241. package/TRandom/dist/effect-TRandom.cjs.dev.js +290 -124
  242. package/TRandom/dist/effect-TRandom.cjs.prod.js +290 -124
  243. package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +531 -132
  244. package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +531 -132
  245. package/TRef/dist/effect-TRef.cjs.dev.js +238 -128
  246. package/TRef/dist/effect-TRef.cjs.prod.js +238 -128
  247. package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +283 -127
  248. package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +283 -127
  249. package/TSet/dist/effect-TSet.cjs.dev.js +515 -147
  250. package/TSet/dist/effect-TSet.cjs.prod.js +515 -147
  251. package/Take/dist/effect-Take.cjs.dev.js +296 -112
  252. package/Take/dist/effect-Take.cjs.prod.js +296 -112
  253. package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +132 -33
  254. package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +132 -33
  255. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.dev.js +106 -11
  256. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.prod.js +106 -11
  257. package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +128 -62
  258. package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +128 -62
  259. package/TestClock/dist/effect-TestClock.cjs.dev.js +624 -102
  260. package/TestClock/dist/effect-TestClock.cjs.prod.js +624 -102
  261. package/TestConfig/dist/effect-TestConfig.cjs.dev.js +41 -20
  262. package/TestConfig/dist/effect-TestConfig.cjs.prod.js +41 -20
  263. package/TestContext/dist/effect-TestContext.cjs.dev.js +118 -99
  264. package/TestContext/dist/effect-TestContext.cjs.prod.js +118 -99
  265. package/TestLive/dist/effect-TestLive.cjs.dev.js +86 -46
  266. package/TestLive/dist/effect-TestLive.cjs.prod.js +86 -46
  267. package/TestServices/dist/effect-TestServices.cjs.dev.js +381 -130
  268. package/TestServices/dist/effect-TestServices.cjs.prod.js +381 -130
  269. package/TestSized/dist/effect-TestSized.cjs.dev.js +78 -35
  270. package/TestSized/dist/effect-TestSized.cjs.prod.js +78 -35
  271. package/Tracer/dist/effect-Tracer.cjs.dev.js +108 -47
  272. package/Tracer/dist/effect-Tracer.cjs.prod.js +108 -47
  273. package/Tuple/dist/effect-Tuple.cjs.dev.js +182 -17
  274. package/Tuple/dist/effect-Tuple.cjs.prod.js +182 -17
  275. package/Unify/dist/effect-Unify.cjs.dev.js +37 -3
  276. package/Unify/dist/effect-Unify.cjs.prod.js +37 -3
  277. package/Utils/dist/effect-Utils.cjs.dev.js +354 -9
  278. package/Utils/dist/effect-Utils.cjs.prod.js +354 -9
  279. package/dist/{Context-f958cabc.cjs.prod.js → Context-01a123ac.cjs.prod.js} +8 -8
  280. package/dist/{Context-96739709.cjs.dev.js → Context-593661f6.cjs.dev.js} +8 -8
  281. package/dist/{Effectable-a6403e5f.cjs.dev.js → Effectable-2f022879.cjs.dev.js} +4 -4
  282. package/dist/{Effectable-f867d1cb.cjs.prod.js → Effectable-cd8f3a96.cjs.prod.js} +4 -4
  283. package/dist/{Either-9c349424.cjs.dev.js → Either-12bbe00c.cjs.dev.js} +5 -5
  284. package/dist/{Either-d03d5f05.cjs.prod.js → Either-7a881c7a.cjs.prod.js} +5 -5
  285. package/dist/{ExecutionStrategy-89fbe735.cjs.dev.js → ExecutionStrategy-14d3053a.cjs.prod.js} +1 -13
  286. package/dist/{ExecutionStrategy-dc778180.cjs.prod.js → ExecutionStrategy-70f1a920.cjs.dev.js} +1 -13
  287. package/dist/{FiberId-929dcce4.cjs.dev.js → FiberId-557db880.cjs.dev.js} +8 -30
  288. package/dist/{FiberId-b79e8047.cjs.prod.js → FiberId-e594f6e8.cjs.prod.js} +8 -30
  289. package/dist/{HashSet-ece2cfe8.cjs.dev.js → HashSet-0b4ff1e4.cjs.dev.js} +7 -7
  290. package/dist/{HashSet-6fe62df2.cjs.prod.js → HashSet-6257b66d.cjs.prod.js} +7 -7
  291. package/dist/{Ref-af783b72.cjs.dev.js → Ref-74b592a4.cjs.dev.js} +5 -25
  292. package/dist/{Ref-30e5ee58.cjs.prod.js → Ref-a3a4e50d.cjs.prod.js} +5 -25
  293. package/dist/{RuntimeFlagsPatch-130e990c.cjs.dev.js → RuntimeFlagsPatch-e2769b87.cjs.prod.js} +2 -24
  294. package/dist/{RuntimeFlagsPatch-5570758d.cjs.prod.js → RuntimeFlagsPatch-ea268c50.cjs.dev.js} +2 -24
  295. package/dist/{StreamHaltStrategy-66a53f66.cjs.dev.js → StreamHaltStrategy-9a61b88d.cjs.dev.js} +1 -16
  296. package/dist/{StreamHaltStrategy-07f544a6.cjs.prod.js → StreamHaltStrategy-b495622b.cjs.prod.js} +1 -16
  297. package/dist/{boundaries-03c7494a.cjs.dev.js → boundaries-20cfad9d.cjs.prod.js} +6 -6
  298. package/dist/{boundaries-5d1a46e1.cjs.prod.js → boundaries-3810d885.cjs.dev.js} +6 -6
  299. package/dist/{cache-ab7bbfbd.cjs.prod.js → cache-3a55a13a.cjs.prod.js} +21 -21
  300. package/dist/{cache-6cdc31f7.cjs.dev.js → cache-83d14f6e.cjs.dev.js} +21 -21
  301. package/dist/{childExecutorDecision-2b30946c.cjs.prod.js → childExecutorDecision-2eed6e25.cjs.dev.js} +1 -1
  302. package/dist/{childExecutorDecision-ad3db696.cjs.dev.js → childExecutorDecision-b5842db5.cjs.prod.js} +1 -1
  303. package/dist/{circular-81e1906f.cjs.dev.js → circular-2162b720.cjs.dev.js} +7 -7
  304. package/dist/{circular-4cb0b79d.cjs.dev.js → circular-a4887ee9.cjs.dev.js} +19 -19
  305. package/dist/{circular-6a5291c3.cjs.prod.js → circular-c3ce70f4.cjs.prod.js} +7 -7
  306. package/dist/{circular-5b3558d9.cjs.prod.js → circular-f72fcb1d.cjs.prod.js} +19 -19
  307. package/dist/{config-10f2a1d1.cjs.dev.js → config-80900693.cjs.dev.js} +10 -10
  308. package/dist/{config-78feb1ac.cjs.prod.js → config-d0ddc159.cjs.prod.js} +10 -10
  309. package/dist/{configError-6a3652f8.cjs.prod.js → configError-240e9b61.cjs.dev.js} +3 -3
  310. package/dist/{configError-1686533e.cjs.dev.js → configError-33e55472.cjs.prod.js} +3 -3
  311. package/dist/{configProvider-2b177eac.cjs.prod.js → configProvider-93617d6d.cjs.prod.js} +13 -13
  312. package/dist/{configProvider-e2eb112d.cjs.dev.js → configProvider-ce43fdbf.cjs.dev.js} +13 -13
  313. package/dist/{configSecret-ecb6c5b3.cjs.prod.js → configSecret-d1caca55.cjs.prod.js} +4 -4
  314. package/dist/{configSecret-5812fa69.cjs.dev.js → configSecret-e34c1b14.cjs.dev.js} +4 -4
  315. package/dist/{core-c2eb171a.cjs.prod.js → core-0b0539de.cjs.prod.js} +24 -24
  316. package/dist/{core-bce61cfc.cjs.prod.js → core-8ff5a82c.cjs.prod.js} +14 -14
  317. package/dist/{core-898decb7.cjs.dev.js → core-b2dfee8d.cjs.dev.js} +14 -14
  318. package/dist/{core-ac668be0.cjs.dev.js → core-b4d7b4f5.cjs.dev.js} +24 -24
  319. package/dist/{core-effect-a9b8ee08.cjs.dev.js → core-effect-892f3686.cjs.dev.js} +23 -23
  320. package/dist/{core-effect-bf806dd9.cjs.prod.js → core-effect-c65770cd.cjs.prod.js} +23 -23
  321. package/dist/{dataSource-31698050.cjs.dev.js → dataSource-5227437c.cjs.dev.js} +7 -7
  322. package/dist/{dataSource-77d1e579.cjs.prod.js → dataSource-837686e6.cjs.prod.js} +7 -7
  323. package/dist/declarations/src/Data.d.ts +2 -2
  324. package/dist/declarations/src/Error.d.ts +1 -1
  325. package/dist/declarations/src/Error.d.ts.map +1 -1
  326. package/dist/declarations/src/index.d.ts.map +1 -1
  327. package/dist/{defaultServices-60c753dc.cjs.dev.js → defaultServices-086b8ac9.cjs.prod.js} +13 -13
  328. package/dist/{defaultServices-4112c0c9.cjs.prod.js → defaultServices-5530ff0e.cjs.dev.js} +13 -13
  329. package/dist/effect.cjs.dev.js +466 -344
  330. package/dist/effect.cjs.prod.js +466 -344
  331. package/dist/effect.esm.js +283 -283
  332. package/dist/{fiber-da1a207c.cjs.dev.js → fiber-1bfb4c1d.cjs.dev.js} +14 -14
  333. package/dist/{fiber-90ffaf8c.cjs.prod.js → fiber-2eb0a4c1.cjs.prod.js} +14 -14
  334. package/dist/{fiberRefs-64c35250.cjs.prod.js → fiberRefs-be4fae6a.cjs.dev.js} +7 -7
  335. package/dist/{fiberRefs-a7e00f7e.cjs.dev.js → fiberRefs-be6b6a70.cjs.prod.js} +7 -7
  336. package/dist/{fiberRuntime-1c369a47.cjs.prod.js → fiberRuntime-af2d0ca1.cjs.prod.js} +47 -47
  337. package/dist/{fiberRuntime-e9680313.cjs.dev.js → fiberRuntime-e0db0ab6.cjs.dev.js} +47 -47
  338. package/dist/{groupBy-aa608972.cjs.prod.js → groupBy-7ce46ea3.cjs.prod.js} +14 -14
  339. package/dist/{groupBy-fa001ed8.cjs.dev.js → groupBy-bd943372.cjs.dev.js} +14 -14
  340. package/dist/{hook-822704ea.cjs.dev.js → hook-470b717e.cjs.prod.js} +9 -9
  341. package/dist/{hook-6c7550dc.cjs.prod.js → hook-e72b20fd.cjs.dev.js} +9 -9
  342. package/dist/{key-330b98b1.cjs.prod.js → key-378a6a2c.cjs.prod.js} +8 -8
  343. package/dist/{key-a474fc0d.cjs.dev.js → key-f0a1408a.cjs.dev.js} +8 -8
  344. package/dist/{keyType-1e916ae2.cjs.dev.js → keyType-55f27f07.cjs.dev.js} +5 -5
  345. package/dist/{keyType-8460e792.cjs.prod.js → keyType-cf67c69c.cjs.prod.js} +5 -5
  346. package/dist/{label-3e143765.cjs.prod.js → label-011edbe7.cjs.dev.js} +4 -4
  347. package/dist/{label-246fb11d.cjs.dev.js → label-655343b5.cjs.prod.js} +4 -4
  348. package/dist/{layer-6f71c525.cjs.prod.js → layer-3b1b0e2e.cjs.prod.js} +19 -19
  349. package/dist/{layer-7991a9d1.cjs.dev.js → layer-9cbb61ce.cjs.dev.js} +19 -19
  350. package/dist/{mergeDecision-e483c280.cjs.prod.js → mergeDecision-07c6b5c9.cjs.prod.js} +1 -1
  351. package/dist/{mergeDecision-e457a76b.cjs.dev.js → mergeDecision-be41e797.cjs.dev.js} +1 -1
  352. package/dist/{mergeState-dba66248.cjs.prod.js → mergeState-75990fa2.cjs.prod.js} +1 -1
  353. package/dist/{mergeState-83204f38.cjs.dev.js → mergeState-8153ce39.cjs.dev.js} +1 -1
  354. package/dist/{mergeStrategy-845a1279.cjs.prod.js → mergeStrategy-3dd6e55f.cjs.prod.js} +1 -1
  355. package/dist/{mergeStrategy-b19dc19a.cjs.dev.js → mergeStrategy-81ea5b80.cjs.dev.js} +1 -1
  356. package/dist/{pair-e5443c93.cjs.prod.js → pair-291b78d7.cjs.dev.js} +1 -1
  357. package/dist/{pair-08a8685e.cjs.dev.js → pair-6254cf85.cjs.prod.js} +1 -1
  358. package/dist/{patch-4671ab7f.cjs.dev.js → patch-a1b2802f.cjs.dev.js} +4 -4
  359. package/dist/{patch-f27e9f08.cjs.prod.js → patch-c4d6c61e.cjs.prod.js} +4 -4
  360. package/dist/{pathPatch-e46d4168.cjs.dev.js → pathPatch-15c8d723.cjs.prod.js} +6 -6
  361. package/dist/{pathPatch-ded405f6.cjs.prod.js → pathPatch-d9d41297.cjs.dev.js} +6 -6
  362. package/dist/{pool-3f16af61.cjs.dev.js → pool-29b03fb2.cjs.dev.js} +12 -12
  363. package/dist/{pool-59a31f55.cjs.prod.js → pool-b5c7d254.cjs.prod.js} +12 -12
  364. package/dist/{query-193d0a89.cjs.dev.js → query-67a7c448.cjs.dev.js} +6 -6
  365. package/dist/{query-fe4a82d6.cjs.prod.js → query-d5eefc43.cjs.prod.js} +6 -6
  366. package/dist/{queue-b81aee38.cjs.prod.js → queue-38614769.cjs.prod.js} +9 -9
  367. package/dist/{queue-04ae7ec7.cjs.dev.js → queue-997d6e51.cjs.dev.js} +9 -9
  368. package/dist/{registry-29905dcc.cjs.prod.js → registry-013ecdde.cjs.prod.js} +7 -7
  369. package/dist/{registry-c883cf52.cjs.dev.js → registry-1099de3f.cjs.dev.js} +7 -7
  370. package/dist/{runtime-3ae98f19.cjs.dev.js → runtime-15cc9cc5.cjs.dev.js} +18 -16
  371. package/dist/{runtime-8c3f1bd3.cjs.prod.js → runtime-3a59f5c4.cjs.prod.js} +18 -16
  372. package/dist/{schedule-7e30db2d.cjs.prod.js → schedule-1d92198c.cjs.prod.js} +22 -22
  373. package/dist/{schedule-479d8fcc.cjs.dev.js → schedule-e0f55cab.cjs.dev.js} +22 -22
  374. package/dist/{scopedRef-16d9d192.cjs.dev.js → scopedRef-88ae648a.cjs.dev.js} +9 -9
  375. package/dist/{scopedRef-40b5bb82.cjs.prod.js → scopedRef-a0257d92.cjs.prod.js} +9 -9
  376. package/dist/{singleProducerAsyncInput-24ccc472.cjs.prod.js → singleProducerAsyncInput-1c6cc8fb.cjs.prod.js} +13 -13
  377. package/dist/{singleProducerAsyncInput-18fc5896.cjs.dev.js → singleProducerAsyncInput-998b8fac.cjs.dev.js} +13 -13
  378. package/dist/{sink-3a597454.cjs.dev.js → sink-1ac24bca.cjs.dev.js} +42 -42
  379. package/dist/{sink-1f4c02bb.cjs.prod.js → sink-4d668efb.cjs.prod.js} +42 -42
  380. package/dist/{state-0d29362f.cjs.prod.js → state-8fbec044.cjs.dev.js} +4 -4
  381. package/dist/{state-8a8a647c.cjs.dev.js → state-dd1bd066.cjs.prod.js} +4 -4
  382. package/dist/{stm-789f4457.cjs.dev.js → stm-fbb398a5.cjs.dev.js} +13 -13
  383. package/dist/{stm-8e837f76.cjs.prod.js → stm-fcac86d5.cjs.prod.js} +13 -13
  384. package/dist/{stream-42bee6fa.cjs.dev.js → stream-adef675d.cjs.dev.js} +33 -33
  385. package/dist/{stream-71fa9ae8.cjs.prod.js → stream-e670e8fa.cjs.prod.js} +33 -33
  386. package/dist/{synchronizedRef-58a64ffe.cjs.dev.js → synchronizedRef-37e32854.cjs.dev.js} +3 -3
  387. package/dist/{synchronizedRef-6cfe9354.cjs.prod.js → synchronizedRef-b4cde4de.cjs.prod.js} +3 -3
  388. package/dist/{tArray-b96cf402.cjs.prod.js → tArray-239d37ad.cjs.dev.js} +7 -7
  389. package/dist/{tArray-56df545e.cjs.dev.js → tArray-70de8ec4.cjs.prod.js} +7 -7
  390. package/dist/{tMap-1103e942.cjs.dev.js → tMap-4b27665d.cjs.dev.js} +12 -12
  391. package/dist/{tMap-3ed5a386.cjs.prod.js → tMap-a202396b.cjs.prod.js} +12 -12
  392. package/dist/{tQueue-4d90a114.cjs.dev.js → tQueue-004a478e.cjs.dev.js} +8 -8
  393. package/dist/{tQueue-9c69c6b3.cjs.prod.js → tQueue-82c4db95.cjs.prod.js} +8 -8
  394. package/dist/{tRef-5c469ca5.cjs.dev.js → tRef-bb7cc73a.cjs.dev.js} +3 -3
  395. package/dist/{tRef-68a9114f.cjs.prod.js → tRef-ee2c7f44.cjs.prod.js} +3 -3
  396. package/dist/{take-85954a45.cjs.prod.js → take-4857b6af.cjs.dev.js} +7 -7
  397. package/dist/{take-84a0722c.cjs.dev.js → take-9c555b46.cjs.prod.js} +7 -7
  398. package/dist/{timeout-2a62e4b5.cjs.prod.js → timeout-489f3f86.cjs.prod.js} +2 -2
  399. package/dist/{timeout-0245c158.cjs.dev.js → timeout-d380d3f8.cjs.dev.js} +2 -2
  400. package/dist/{upstreamPullRequest-705e868d.cjs.prod.js → upstreamPullRequest-7a694281.cjs.dev.js} +1 -1
  401. package/dist/{upstreamPullRequest-c08f06a4.cjs.dev.js → upstreamPullRequest-c89f818d.cjs.prod.js} +1 -1
  402. package/dist/{upstreamPullStrategy-34452db1.cjs.prod.js → upstreamPullStrategy-63cc8967.cjs.prod.js} +1 -1
  403. package/dist/{upstreamPullStrategy-0ccf2960.cjs.dev.js → upstreamPullStrategy-f9f1ab57.cjs.dev.js} +1 -1
  404. package/internal/core.esm.js +5 -5
  405. package/internal/defaultServices/console.esm.js +1 -1
  406. package/internal/defaultServices.esm.js +2 -1
  407. package/internal/fiberRuntime.esm.js +7 -7
  408. package/internal/logger.esm.js +3 -3
  409. package/internal/runtime.esm.js +2 -0
  410. package/internal/supervisor.esm.js +2 -1
  411. package/internal/timeout.esm.js +2 -2
  412. package/package.json +3 -2
  413. package/dist/Bigint-0ebd807c.cjs.dev.js +0 -392
  414. package/dist/Bigint-912c77f3.cjs.prod.js +0 -392
  415. package/dist/Boolean-97839b78.cjs.prod.js +0 -264
  416. package/dist/Boolean-f0bc3abf.cjs.dev.js +0 -264
  417. package/dist/Brand-93578f43.cjs.prod.js +0 -224
  418. package/dist/Brand-b238487d.cjs.dev.js +0 -224
  419. package/dist/Cache-1688e584.cjs.dev.js +0 -127
  420. package/dist/Cache-8f2f2b55.cjs.prod.js +0 -127
  421. package/dist/Cause-384e2165.cjs.prod.js +0 -791
  422. package/dist/Cause-96c29074.cjs.dev.js +0 -791
  423. package/dist/Channel-0701d2dd.cjs.dev.js +0 -1217
  424. package/dist/Channel-7aed463e.cjs.prod.js +0 -1217
  425. package/dist/ChannelChildExecutorDecision-168278f6.cjs.prod.js +0 -136
  426. package/dist/ChannelChildExecutorDecision-b0e715de.cjs.dev.js +0 -136
  427. package/dist/ChannelMergeDecision-9c266aeb.cjs.prod.js +0 -78
  428. package/dist/ChannelMergeDecision-eeaf4779.cjs.dev.js +0 -78
  429. package/dist/ChannelMergeState-4366d090.cjs.prod.js +0 -125
  430. package/dist/ChannelMergeState-abce1d88.cjs.dev.js +0 -125
  431. package/dist/ChannelMergeStrategy-6193b8e0.cjs.prod.js +0 -104
  432. package/dist/ChannelMergeStrategy-e7ddbb7a.cjs.dev.js +0 -104
  433. package/dist/ChannelSingleProducerAsyncInput-46c393db.cjs.dev.js +0 -55
  434. package/dist/ChannelSingleProducerAsyncInput-7eb9d2ae.cjs.prod.js +0 -55
  435. package/dist/ChannelUpstreamPullRequest-1ca7d2bd.cjs.dev.js +0 -104
  436. package/dist/ChannelUpstreamPullRequest-208751c3.cjs.prod.js +0 -104
  437. package/dist/ChannelUpstreamPullStrategy-266b5a77.cjs.prod.js +0 -103
  438. package/dist/ChannelUpstreamPullStrategy-ec57dc70.cjs.dev.js +0 -103
  439. package/dist/Chunk-6cf5a8e6.cjs.prod.js +0 -1248
  440. package/dist/Chunk-bd290b8e.cjs.dev.js +0 -1248
  441. package/dist/Clock-09ecce0a.cjs.prod.js +0 -97
  442. package/dist/Clock-bec722c1.cjs.dev.js +0 -97
  443. package/dist/Config-85ae6286.cjs.prod.js +0 -393
  444. package/dist/Config-dc58cf69.cjs.dev.js +0 -393
  445. package/dist/ConfigError-c1f762d2.cjs.dev.js +0 -225
  446. package/dist/ConfigError-cee682fa.cjs.prod.js +0 -225
  447. package/dist/ConfigProvider-8341a5f5.cjs.prod.js +0 -240
  448. package/dist/ConfigProvider-de45b085.cjs.dev.js +0 -240
  449. package/dist/ConfigProviderPathPatch-52422b32.cjs.prod.js +0 -86
  450. package/dist/ConfigProviderPathPatch-d22442e3.cjs.dev.js +0 -86
  451. package/dist/ConfigSecret-c76717e8.cjs.dev.js +0 -83
  452. package/dist/ConfigSecret-ebab2ae7.cjs.prod.js +0 -83
  453. package/dist/Console-63eebbd5.cjs.prod.js +0 -271
  454. package/dist/Console-a1c2c16f.cjs.dev.js +0 -271
  455. package/dist/Context-25a49952.cjs.prod.js +0 -327
  456. package/dist/Context-3c9e986b.cjs.dev.js +0 -327
  457. package/dist/Data-07dc27f1.cjs.prod.js +0 -237
  458. package/dist/Data-85559fb3.cjs.dev.js +0 -237
  459. package/dist/DefaultServices-d5740d37.cjs.dev.js +0 -34
  460. package/dist/DefaultServices-df7495bb.cjs.prod.js +0 -34
  461. package/dist/Deferred-5d5c886c.cjs.dev.js +0 -253
  462. package/dist/Deferred-9d825b3b.cjs.prod.js +0 -253
  463. package/dist/Differ-0122f60e.cjs.dev.js +0 -992
  464. package/dist/Differ-0bd34066.cjs.prod.js +0 -992
  465. package/dist/Duration-0bc08d03.cjs.prod.js +0 -508
  466. package/dist/Duration-604874d1.cjs.dev.js +0 -508
  467. package/dist/Effect-4de56bb2.cjs.prod.js +0 -3740
  468. package/dist/Effect-cf226187.cjs.dev.js +0 -3740
  469. package/dist/Effectable-04f3cd30.cjs.dev.js +0 -99
  470. package/dist/Effectable-8997112d.cjs.prod.js +0 -99
  471. package/dist/Either-3fab3796.cjs.prod.js +0 -502
  472. package/dist/Either-a806809d.cjs.dev.js +0 -502
  473. package/dist/Encoding-0cab52d5.cjs.prod.js +0 -309
  474. package/dist/Encoding-d993b1b0.cjs.dev.js +0 -309
  475. package/dist/Equal-281b6ca8.cjs.dev.js +0 -71
  476. package/dist/Equal-ce9977a8.cjs.prod.js +0 -71
  477. package/dist/Equivalence-0bc84518.cjs.prod.js +0 -238
  478. package/dist/Equivalence-de7a0d51.cjs.dev.js +0 -238
  479. package/dist/Error-05f55a51.cjs.prod.js +0 -57
  480. package/dist/Error-469a9429.cjs.dev.js +0 -57
  481. package/dist/Exit-5691142c.cjs.prod.js +0 -408
  482. package/dist/Exit-a23874e1.cjs.dev.js +0 -408
  483. package/dist/Fiber-6432d5f7.cjs.dev.js +0 -521
  484. package/dist/Fiber-e61b3c65.cjs.prod.js +0 -521
  485. package/dist/FiberRef-1db44a9b.cjs.dev.js +0 -385
  486. package/dist/FiberRef-efb4a3ac.cjs.prod.js +0 -385
  487. package/dist/FiberRefs-43bfd8b9.cjs.dev.js +0 -135
  488. package/dist/FiberRefs-4cb171f7.cjs.prod.js +0 -135
  489. package/dist/FiberRefsPatch-5236f61e.cjs.dev.js +0 -90
  490. package/dist/FiberRefsPatch-cb847553.cjs.prod.js +0 -90
  491. package/dist/FiberStatus-b82dad24.cjs.prod.js +0 -197
  492. package/dist/FiberStatus-bac7d58d.cjs.dev.js +0 -197
  493. package/dist/Function-2e6b0cda.cjs.prod.js +0 -538
  494. package/dist/Function-41ce433d.cjs.dev.js +0 -538
  495. package/dist/GlobalValue-81ab6908.cjs.dev.js +0 -28
  496. package/dist/GlobalValue-cb645c99.cjs.prod.js +0 -28
  497. package/dist/GroupBy-2d7ec675.cjs.dev.js +0 -79
  498. package/dist/GroupBy-cf6e72eb.cjs.prod.js +0 -79
  499. package/dist/HKT-2cc79e63.cjs.dev.js +0 -7
  500. package/dist/HKT-d682535d.cjs.prod.js +0 -7
  501. package/dist/Hash-1bd73210.cjs.prod.js +0 -192
  502. package/dist/Hash-bd154268.cjs.dev.js +0 -192
  503. package/dist/HashMap-12668911.cjs.prod.js +0 -361
  504. package/dist/HashMap-68e290b6.cjs.dev.js +0 -361
  505. package/dist/HashSet-6978c08e.cjs.dev.js +0 -283
  506. package/dist/HashSet-c40a52b1.cjs.prod.js +0 -283
  507. package/dist/Hub-6e64debd.cjs.prod.js +0 -1280
  508. package/dist/Hub-74834668.cjs.dev.js +0 -1280
  509. package/dist/Inspectable-3c4a0f5d.cjs.prod.js +0 -50
  510. package/dist/Inspectable-ac929af4.cjs.dev.js +0 -50
  511. package/dist/KeyedPool-b05481e9.cjs.dev.js +0 -282
  512. package/dist/KeyedPool-cd8abf95.cjs.prod.js +0 -282
  513. package/dist/Layer-b05441ff.cjs.dev.js +0 -688
  514. package/dist/Layer-b1461d01.cjs.prod.js +0 -688
  515. package/dist/List-c6ea7efe.cjs.dev.js +0 -912
  516. package/dist/List-d9775087.cjs.prod.js +0 -912
  517. package/dist/LogLevel-99f64f82.cjs.dev.js +0 -240
  518. package/dist/LogLevel-e9848e15.cjs.prod.js +0 -240
  519. package/dist/LogSpan-c905a192.cjs.prod.js +0 -46
  520. package/dist/LogSpan-e345ba58.cjs.dev.js +0 -46
  521. package/dist/Logger-72da8fab.cjs.dev.js +0 -275
  522. package/dist/Logger-ea8c75a9.cjs.prod.js +0 -275
  523. package/dist/Metric-09d012ff.cjs.dev.js +0 -488
  524. package/dist/Metric-b7563a68.cjs.prod.js +0 -488
  525. package/dist/MetricBoundaries-cf5df220.cjs.prod.js +0 -68
  526. package/dist/MetricBoundaries-f5f5aae1.cjs.dev.js +0 -68
  527. package/dist/MetricHook-3104e93b.cjs.dev.js +0 -90
  528. package/dist/MetricHook-efd05d72.cjs.prod.js +0 -90
  529. package/dist/MetricKey-9cfcaec8.cjs.prod.js +0 -130
  530. package/dist/MetricKey-c3ba437e.cjs.dev.js +0 -130
  531. package/dist/MetricKeyType-6d2d9036.cjs.prod.js +0 -187
  532. package/dist/MetricKeyType-c1d7ebe8.cjs.dev.js +0 -187
  533. package/dist/MetricLabel-6a1886c6.cjs.dev.js +0 -53
  534. package/dist/MetricLabel-7e1d569e.cjs.prod.js +0 -53
  535. package/dist/MetricPair-658ab13d.cjs.dev.js +0 -50
  536. package/dist/MetricPair-aec13967.cjs.prod.js +0 -50
  537. package/dist/MetricPolling-5af0ff67.cjs.dev.js +0 -177
  538. package/dist/MetricPolling-a0a4e798.cjs.prod.js +0 -177
  539. package/dist/MetricRegistry-e4af936b.cjs.dev.js +0 -38
  540. package/dist/MetricRegistry-ff6df283.cjs.prod.js +0 -38
  541. package/dist/MetricState-b65340a4.cjs.dev.js +0 -191
  542. package/dist/MetricState-bd6a5001.cjs.prod.js +0 -191
  543. package/dist/MutableHashMap-74e83e84.cjs.dev.js +0 -154
  544. package/dist/MutableHashMap-95493edb.cjs.prod.js +0 -154
  545. package/dist/MutableHashSet-780dfd63.cjs.prod.js +0 -110
  546. package/dist/MutableHashSet-ec8d7cc4.cjs.dev.js +0 -110
  547. package/dist/MutableList-58124ef2.cjs.dev.js +0 -296
  548. package/dist/MutableList-732af09a.cjs.prod.js +0 -296
  549. package/dist/MutableQueue-0e9f2466.cjs.dev.js +0 -215
  550. package/dist/MutableQueue-f8aba856.cjs.prod.js +0 -215
  551. package/dist/MutableRef-4a2f1f23.cjs.prod.js +0 -194
  552. package/dist/MutableRef-724c4082.cjs.dev.js +0 -194
  553. package/dist/NonEmptyIterable-418cef14.cjs.prod.js +0 -36
  554. package/dist/NonEmptyIterable-bb452f41.cjs.dev.js +0 -36
  555. package/dist/Number-588f6483.cjs.dev.js +0 -417
  556. package/dist/Number-cb2ba2e8.cjs.prod.js +0 -417
  557. package/dist/Option-02025c86.cjs.prod.js +0 -1198
  558. package/dist/Option-03997d77.cjs.dev.js +0 -1198
  559. package/dist/Order-28bdebd2.cjs.dev.js +0 -321
  560. package/dist/Order-8a112bfb.cjs.prod.js +0 -321
  561. package/dist/Ordering-60bf9127.cjs.prod.js +0 -104
  562. package/dist/Ordering-b955b746.cjs.dev.js +0 -104
  563. package/dist/Pipeable-4698db72.cjs.dev.js +0 -52
  564. package/dist/Pipeable-d3ec6711.cjs.prod.js +0 -52
  565. package/dist/Pool-54389592.cjs.prod.js +0 -122
  566. package/dist/Pool-fe1b506a.cjs.dev.js +0 -122
  567. package/dist/Predicate-9e859c9c.cjs.dev.js +0 -718
  568. package/dist/Predicate-daa86e61.cjs.prod.js +0 -718
  569. package/dist/Queue-5f954287.cjs.prod.js +0 -394
  570. package/dist/Queue-8d082fe4.cjs.dev.js +0 -394
  571. package/dist/Random-35304046.cjs.dev.js +0 -104
  572. package/dist/Random-b4709b6a.cjs.prod.js +0 -104
  573. package/dist/ReadonlyArray-48949ee7.cjs.dev.js +0 -1721
  574. package/dist/ReadonlyArray-8157f697.cjs.prod.js +0 -1721
  575. package/dist/ReadonlyRecord-605a625b.cjs.dev.js +0 -568
  576. package/dist/ReadonlyRecord-8db8bada.cjs.prod.js +0 -568
  577. package/dist/RedBlackTree-e6bd147c.cjs.dev.js +0 -1669
  578. package/dist/RedBlackTree-eb41ea8a.cjs.prod.js +0 -1669
  579. package/dist/Reloadable-97b2e406.cjs.dev.js +0 -169
  580. package/dist/Reloadable-d1cd2c7d.cjs.prod.js +0 -169
  581. package/dist/Request-53592fe4.cjs.prod.js +0 -190
  582. package/dist/Request-d3b63af6.cjs.dev.js +0 -190
  583. package/dist/RequestBlock-5062df49.cjs.dev.js +0 -124
  584. package/dist/RequestBlock-8552671f.cjs.prod.js +0 -124
  585. package/dist/RequestResolver-3a24e033.cjs.prod.js +0 -233
  586. package/dist/RequestResolver-7fcb89fb.cjs.dev.js +0 -233
  587. package/dist/Resource-2530fe45.cjs.prod.js +0 -118
  588. package/dist/Resource-e50b4b25.cjs.dev.js +0 -118
  589. package/dist/Runtime-0d643f0c.cjs.prod.js +0 -191
  590. package/dist/Runtime-c4b887ff.cjs.dev.js +0 -191
  591. package/dist/RuntimeFlags-128b287a.cjs.dev.js +0 -381
  592. package/dist/RuntimeFlags-f50d0c72.cjs.prod.js +0 -381
  593. package/dist/STM-243df414.cjs.prod.js +0 -1447
  594. package/dist/STM-2b6ea69d.cjs.dev.js +0 -1447
  595. package/dist/Schedule-0444792d.cjs.prod.js +0 -1159
  596. package/dist/Schedule-b6c7b49a.cjs.dev.js +0 -1159
  597. package/dist/ScheduleDecision-369f2d2b.cjs.prod.js +0 -106
  598. package/dist/ScheduleDecision-ba8d0e87.cjs.dev.js +0 -106
  599. package/dist/ScheduleInterval-51f42533.cjs.dev.js +0 -244
  600. package/dist/ScheduleInterval-78037484.cjs.prod.js +0 -244
  601. package/dist/ScheduleIntervals-b0bfcf3b.cjs.dev.js +0 -265
  602. package/dist/ScheduleIntervals-db13140c.cjs.prod.js +0 -265
  603. package/dist/Scheduler-819ee02a.cjs.prod.js +0 -358
  604. package/dist/Scheduler-d080442d.cjs.dev.js +0 -358
  605. package/dist/Scope-311c7eb9.cjs.prod.js +0 -143
  606. package/dist/Scope-6ba9ec6d.cjs.dev.js +0 -143
  607. package/dist/ScopedCache-3f58b125.cjs.dev.js +0 -467
  608. package/dist/ScopedCache-8f99505c.cjs.prod.js +0 -467
  609. package/dist/ScopedRef-7946d287.cjs.prod.js +0 -87
  610. package/dist/ScopedRef-b92e1633.cjs.dev.js +0 -87
  611. package/dist/Sink-175252a1.cjs.dev.js +0 -1215
  612. package/dist/Sink-85c6820f.cjs.prod.js +0 -1215
  613. package/dist/SortedMap-bb3311c3.cjs.prod.js +0 -210
  614. package/dist/SortedMap-f452cc44.cjs.dev.js +0 -210
  615. package/dist/SortedSet-424670fe.cjs.prod.js +0 -311
  616. package/dist/SortedSet-f90b14a2.cjs.dev.js +0 -311
  617. package/dist/Stream-31c121b4.cjs.prod.js +0 -3469
  618. package/dist/Stream-f833c9da.cjs.dev.js +0 -3469
  619. package/dist/StreamEmit-a10e1de5.cjs.prod.js +0 -7
  620. package/dist/StreamEmit-ec1da471.cjs.dev.js +0 -7
  621. package/dist/String-23b18ca9.cjs.prod.js +0 -694
  622. package/dist/String-830aaa3e.cjs.dev.js +0 -694
  623. package/dist/Struct-14648d76.cjs.dev.js +0 -141
  624. package/dist/Struct-c6b00f29.cjs.prod.js +0 -141
  625. package/dist/SubscriptionRef-10afb90a.cjs.prod.js +0 -269
  626. package/dist/SubscriptionRef-8870f37c.cjs.dev.js +0 -269
  627. package/dist/Supervisor-0b397027.cjs.dev.js +0 -170
  628. package/dist/Supervisor-18f2ef4e.cjs.prod.js +0 -170
  629. package/dist/Symbol-55d0b3d8.cjs.prod.js +0 -40
  630. package/dist/Symbol-5d74a5f2.cjs.dev.js +0 -40
  631. package/dist/SynchronizedRef-3181eb0a.cjs.dev.js +0 -212
  632. package/dist/SynchronizedRef-c6e0884b.cjs.prod.js +0 -212
  633. package/dist/TArray-13d02e45.cjs.prod.js +0 -455
  634. package/dist/TArray-d244048f.cjs.dev.js +0 -455
  635. package/dist/TDeferred-66f69724.cjs.prod.js +0 -129
  636. package/dist/TDeferred-6b7151e4.cjs.dev.js +0 -129
  637. package/dist/THub-4f3308b5.cjs.dev.js +0 -570
  638. package/dist/THub-70471c3e.cjs.prod.js +0 -570
  639. package/dist/TMap-6ec29b88.cjs.prod.js +0 -463
  640. package/dist/TMap-d28007c5.cjs.dev.js +0 -463
  641. package/dist/TPriorityQueue-76d9fb5a.cjs.prod.js +0 -381
  642. package/dist/TPriorityQueue-b2370942.cjs.dev.js +0 -381
  643. package/dist/TQueue-d66ff462.cjs.dev.js +0 -353
  644. package/dist/TQueue-defe6f54.cjs.prod.js +0 -353
  645. package/dist/TRandom-2d293b98.cjs.prod.js +0 -203
  646. package/dist/TRandom-f6a907b8.cjs.dev.js +0 -203
  647. package/dist/TReentrantLock-81ebe2df.cjs.prod.js +0 -456
  648. package/dist/TReentrantLock-eed7de13.cjs.dev.js +0 -456
  649. package/dist/TRef-ad753da1.cjs.dev.js +0 -152
  650. package/dist/TRef-f8453998.cjs.prod.js +0 -152
  651. package/dist/TSemaphore-26326b8a.cjs.dev.js +0 -197
  652. package/dist/TSemaphore-de7a42e6.cjs.prod.js +0 -197
  653. package/dist/TSet-eb8e6abb.cjs.prod.js +0 -444
  654. package/dist/TSet-f5f2a16b.cjs.dev.js +0 -444
  655. package/dist/Take-7eae9eb6.cjs.dev.js +0 -236
  656. package/dist/Take-bf728196.cjs.prod.js +0 -236
  657. package/dist/TestAnnotation-73be7a68.cjs.dev.js +0 -135
  658. package/dist/TestAnnotation-b9b93d03.cjs.prod.js +0 -135
  659. package/dist/TestAnnotationMap-80c87410.cjs.dev.js +0 -125
  660. package/dist/TestAnnotationMap-e946bab5.cjs.prod.js +0 -125
  661. package/dist/TestAnnotations-5db95828.cjs.prod.js +0 -97
  662. package/dist/TestAnnotations-733b39ef.cjs.dev.js +0 -97
  663. package/dist/TestClock-7b24411c.cjs.dev.js +0 -581
  664. package/dist/TestClock-93cdaabb.cjs.prod.js +0 -581
  665. package/dist/TestConfig-1a73e844.cjs.prod.js +0 -37
  666. package/dist/TestConfig-e5ffa946.cjs.dev.js +0 -37
  667. package/dist/TestContext-eeb935e5.cjs.dev.js +0 -41
  668. package/dist/TestContext-fe76c79a.cjs.prod.js +0 -41
  669. package/dist/TestLive-465ad3ef.cjs.dev.js +0 -60
  670. package/dist/TestLive-f3232ac4.cjs.prod.js +0 -60
  671. package/dist/TestServices-217f5abb.cjs.dev.js +0 -341
  672. package/dist/TestServices-3e29bef4.cjs.prod.js +0 -341
  673. package/dist/TestSized-6c1abc21.cjs.dev.js +0 -64
  674. package/dist/TestSized-a9a87d64.cjs.prod.js +0 -64
  675. package/dist/Tracer-d06d0b61.cjs.prod.js +0 -81
  676. package/dist/Tracer-da182c8c.cjs.dev.js +0 -81
  677. package/dist/Tuple-27ecf3a1.cjs.prod.js +0 -199
  678. package/dist/Tuple-75d2a389.cjs.dev.js +0 -199
  679. package/dist/Types-1280d3aa.cjs.dev.js +0 -7
  680. package/dist/Types-3a58df45.cjs.prod.js +0 -7
  681. package/dist/Unify-99be0499.cjs.dev.js +0 -48
  682. package/dist/Unify-e86fd412.cjs.prod.js +0 -48
  683. package/dist/Utils-864e1d48.cjs.prod.js +0 -370
  684. package/dist/Utils-b0c14d1b.cjs.dev.js +0 -370
@@ -1,3740 +0,0 @@
1
- 'use strict';
2
-
3
- var Context_dist_effectContext = require('./Context-3c9e986b.cjs.dev.js');
4
- var Function_dist_effectFunction = require('./Function-41ce433d.cjs.dev.js');
5
- var defaultServices = require('./defaultServices-60c753dc.cjs.dev.js');
6
- var core = require('./core-ac668be0.cjs.dev.js');
7
- var coreEffect = require('./core-effect-a9b8ee08.cjs.dev.js');
8
- var circular = require('./circular-4cb0b79d.cjs.dev.js');
9
- var fiberRuntime = require('./fiberRuntime-e9680313.cjs.dev.js');
10
- var layer = require('./layer-7991a9d1.cjs.dev.js');
11
- var circular$1 = require('./circular-81e1906f.cjs.dev.js');
12
- var query = require('./query-193d0a89.cjs.dev.js');
13
- var runtime$1 = require('./runtime-3ae98f19.cjs.dev.js');
14
- var schedule$1 = require('./schedule-479d8fcc.cjs.dev.js');
15
- var Scheduler_dist_effectScheduler = require('./Scheduler-d080442d.cjs.dev.js');
16
-
17
- /**
18
- * @since 2.0.0
19
- */
20
-
21
- // -------------------------------------------------------------------------------------
22
- // models
23
- // -------------------------------------------------------------------------------------
24
- /**
25
- * @since 2.0.0
26
- */
27
- /**
28
- * @since 2.0.0
29
- * @category symbols
30
- */
31
- const EffectTypeId = core.EffectTypeId;
32
-
33
- /**
34
- * @since 2.0.0
35
- * @category symbols
36
- */
37
-
38
- /**
39
- * The `Effect` interface defines a value that lazily describes a workflow or job.
40
- * The workflow requires some context `R`, and may fail with an error of type `E`,
41
- * or succeed with a value of type `A`.
42
- *
43
- * `Effect` values model resourceful interaction with the outside world, including
44
- * synchronous, asynchronous, concurrent, and parallel interaction. They use a
45
- * fiber-based concurrency model, with built-in support for scheduling, fine-grained
46
- * interruption, structured concurrency, and high scalability.
47
- *
48
- * To run an `Effect` value, you need a `Runtime`, which is a type that is capable
49
- * of executing `Effect` values.
50
- *
51
- * @since 2.0.0
52
- * @category models
53
- */
54
-
55
- /**
56
- * @since 2.0.0
57
- * @category models
58
- */
59
-
60
- /**
61
- * @category models
62
- * @since 2.0.0
63
- */
64
-
65
- /**
66
- * @category type lambdas
67
- * @since 2.0.0
68
- */
69
-
70
- /**
71
- * @since 2.0.0
72
- * @category models
73
- */
74
-
75
- /**
76
- * @since 2.0.0
77
- * @category models
78
- */
79
-
80
- /**
81
- * @since 2.0.0
82
- * @category models
83
- */
84
-
85
- /**
86
- * @since 2.0.0
87
- * @category models
88
- */
89
-
90
- /**
91
- * @since 2.0.0
92
- */
93
-
94
- // -------------------------------------------------------------------------------------
95
- // refinements
96
- // -------------------------------------------------------------------------------------
97
- /**
98
- * This function returns `true` if the specified value is an `Effect` value,
99
- * `false` otherwise.
100
- *
101
- * This function can be useful for checking the type of a value before
102
- * attempting to operate on it as an `Effect` value. For example, you could
103
- * use `isEffect` to check the type of a value before using it as an
104
- * argument to a function that expects an `Effect` value.
105
- *
106
- * @param u - The value to check for being an `Effect` value.
107
- *
108
- * @returns `true` if the specified value is an `Effect` value, `false`
109
- * otherwise.
110
- *
111
- * @since 2.0.0
112
- * @category refinements
113
- */
114
- const isEffect = core.isEffect;
115
-
116
- // -------------------------------------------------------------------------------------
117
- // caching
118
- // -------------------------------------------------------------------------------------
119
-
120
- /**
121
- * Returns an effect that, if evaluated, will return the cached result of this
122
- * effect. Cached results will expire after `timeToLive` duration.
123
- *
124
- * @since 2.0.0
125
- * @category caching
126
- */
127
- const cachedWithTTL = circular.cached;
128
-
129
- /**
130
- * Returns an effect that, if evaluated, will return the cached result of this
131
- * effect. Cached results will expire after `timeToLive` duration. In
132
- * addition, returns an effect that can be used to invalidate the current
133
- * cached value before the `timeToLive` duration expires.
134
- *
135
- * @since 2.0.0
136
- * @category caching
137
- */
138
- const cachedInvalidateWithTTL = circular.cachedInvalidate;
139
-
140
- /**
141
- * Returns an effect that, if evaluated, will return the lazily computed
142
- * result of this effect.
143
- *
144
- * @since 2.0.0
145
- * @category caching
146
- */
147
- const cached = coreEffect.memoize;
148
-
149
- /**
150
- * Returns a memoized version of the specified effectual function.
151
- *
152
- * @since 2.0.0
153
- * @category caching
154
- */
155
- const cachedFunction = circular.memoizeFunction;
156
-
157
- /**
158
- * Returns an effect that will be executed at most once, even if it is
159
- * evaluated multiple times.
160
- *
161
- * @since 2.0.0
162
- * @category caching
163
- */
164
- const once = coreEffect.once;
165
-
166
- // -------------------------------------------------------------------------------------
167
- // collecting & elements
168
- // -------------------------------------------------------------------------------------
169
-
170
- /**
171
- * Runs all the provided effects in sequence respecting the structure provided in input.
172
- *
173
- * Supports multiple arguments, a single argument tuple / array or record / struct.
174
- *
175
- * @since 2.0.0
176
- * @category collecting & elements
177
- */
178
- const all = fiberRuntime.all;
179
-
180
- /**
181
- * Data-last variant of `Effect.all`.
182
- *
183
- * Runs all the provided effects in sequence respecting the structure provided in input.
184
- *
185
- * Supports multiple arguments, a single argument tuple / array or record / struct.
186
- *
187
- * @since 2.0.0
188
- * @category collecting & elements
189
- */
190
- const allWith = fiberRuntime.allWith;
191
-
192
- /**
193
- * @since 2.0.0
194
- */
195
-
196
- /**
197
- * Evaluate and run each effect in the structure and collect the results,
198
- * discarding results from failed effects.
199
- *
200
- * @since 2.0.0
201
- * @category collecting & elements
202
- */
203
- const allSuccesses = fiberRuntime.allSuccesses;
204
-
205
- /**
206
- * Drops all elements until the effectful predicate returns true.
207
- *
208
- * @since 2.0.0
209
- * @category collecting & elements
210
- */
211
- const dropUntil = coreEffect.dropUntil;
212
-
213
- /**
214
- * Drops all elements so long as the predicate returns true.
215
- *
216
- * @since 2.0.0
217
- * @category collecting & elements
218
- */
219
- const dropWhile = coreEffect.dropWhile;
220
-
221
- /**
222
- * Determines whether all elements of the `Collection<A>` satisfies the effectual
223
- * predicate `f`.
224
- *
225
- * @since 2.0.0
226
- * @category collecting & elements
227
- */
228
- const every = coreEffect.every;
229
-
230
- /**
231
- * Determines whether any element of the `Iterable<A>` satisfies the effectual
232
- * predicate `f`.
233
- *
234
- * @since 2.0.0
235
- * @category collecting & elements
236
- */
237
- const exists = fiberRuntime.exists;
238
-
239
- /**
240
- * Filters the collection using the specified effectful predicate.
241
- *
242
- * @since 2.0.0
243
- * @category collecting & elements
244
- */
245
- const filter = fiberRuntime.filter;
246
-
247
- /**
248
- * Returns the first element that satisfies the effectful predicate.
249
- *
250
- * @since 2.0.0
251
- * @category collecting & elements
252
- */
253
- const findFirst = coreEffect.findFirst;
254
-
255
- /**
256
- * This function takes an iterable of `Effect` values and returns a new
257
- * `Effect` value that represents the first `Effect` value in the iterable
258
- * that succeeds. If all of the `Effect` values in the iterable fail, then
259
- * the resulting `Effect` value will fail as well.
260
- *
261
- * This function is sequential, meaning that the `Effect` values in the
262
- * iterable will be executed in sequence, and the first one that succeeds
263
- * will determine the outcome of the resulting `Effect` value.
264
- *
265
- * @param effects - The iterable of `Effect` values to evaluate.
266
- *
267
- * @returns A new `Effect` value that represents the first successful
268
- * `Effect` value in the iterable, or a failed `Effect` value if all of the
269
- * `Effect` values in the iterable fail.
270
- *
271
- * @since 2.0.0
272
- * @category collecting & elements
273
- */
274
- const firstSuccessOf = coreEffect.firstSuccessOf;
275
-
276
- /**
277
- * @since 2.0.0
278
- * @category collecting & elements
279
- */
280
- const forEach = fiberRuntime.forEachOptions;
281
-
282
- /**
283
- * Returns a successful effect with the head of the collection if the collection
284
- * is non-empty, or fails with the error `None` if the collection is empty.
285
- *
286
- * @since 2.0.0
287
- * @category collecting & elements
288
- */
289
- const head = coreEffect.head;
290
-
291
- /**
292
- * Merges an `Iterable<Effect<R, E, A>>` to a single effect, working
293
- * sequentially.
294
- *
295
- * @since 2.0.0
296
- * @category collecting & elements
297
- */
298
- const mergeAll = fiberRuntime.mergeAll;
299
-
300
- /**
301
- * Feeds elements of type `A` to a function `f` that returns an effect.
302
- * Collects all successes and failures in a tupled fashion.
303
- *
304
- * @since 2.0.0
305
- * @category collecting & elements
306
- */
307
- const partition = fiberRuntime.partition;
308
-
309
- /**
310
- * Folds an `Iterable<A>` using an effectual function f, working sequentially
311
- * from left to right.
312
- *
313
- * @since 2.0.0
314
- * @category collecting & elements
315
- */
316
- const reduce = coreEffect.reduce;
317
-
318
- /**
319
- * Reduces an `Iterable<Effect<R, E, A>>` to a single effect.
320
- *
321
- * @since 2.0.0
322
- * @category collecting & elements
323
- */
324
- const reduceEffect = fiberRuntime.reduceEffect;
325
-
326
- /**
327
- * Folds an `Iterable<A>` using an effectual function f, working sequentially from left to right.
328
- *
329
- * @since 2.0.0
330
- * @category collecting & elements
331
- */
332
- const reduceRight = coreEffect.reduceRight;
333
-
334
- /**
335
- * Folds over the elements in this chunk from the left, stopping the fold early
336
- * when the predicate is not satisfied.
337
- *
338
- * @since 2.0.0
339
- * @category collecting & elements
340
- */
341
- const reduceWhile = coreEffect.reduceWhile;
342
-
343
- /**
344
- * Replicates the given effect `n` times.
345
- *
346
- * @since 2.0.0
347
- * @category collecting & elements
348
- */
349
- const replicate = fiberRuntime.replicate;
350
-
351
- /**
352
- * Performs this effect the specified number of times and collects the
353
- * results.
354
- *
355
- * @since 2.0.0
356
- * @category collecting & elements
357
- */
358
- const replicateEffect = fiberRuntime.replicateEffect;
359
-
360
- /**
361
- * Takes elements until the effectual predicate returns true.
362
- *
363
- * @since 2.0.0
364
- * @category collecting & elements
365
- */
366
- const takeUntil = coreEffect.takeUntil;
367
-
368
- /**
369
- * Takes all elements so long as the effectual predicate returns true.
370
- *
371
- * @since 2.0.0
372
- * @category collecting & elements
373
- */
374
- const takeWhile = coreEffect.takeWhile;
375
-
376
- /**
377
- * Feeds elements of type `A` to `f` and accumulates all errors in error
378
- * channel or successes in success channel.
379
- *
380
- * This combinator is lossy meaning that if there are errors all successes
381
- * will be lost. To retain all information please use `partition`.
382
- *
383
- * @since 2.0.0
384
- * @category collecting & elements
385
- */
386
- const validateAll = fiberRuntime.validateAll;
387
-
388
- /**
389
- * Feeds elements of type `A` to `f` until it succeeds. Returns first success
390
- * or the accumulation of all errors.
391
- *
392
- * If `elements` is empty then `Effect.fail([])` is returned.
393
- *
394
- * @example
395
- * import * as Effect from "effect/Effect"
396
- * import * as Exit from "effect/Exit"
397
- *
398
- * const f = (n: number) => (n > 0 ? Effect.succeed(n) : Effect.fail(`${n} is negative`))
399
- *
400
- * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([], f)), Exit.fail([]))
401
- * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([1, 2], f)), Exit.succeed(1))
402
- * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([1, -1], f)), Exit.succeed(1))
403
- * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([-1, 2], f)), Exit.succeed(2))
404
- * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([-1, -2], f)), Exit.fail(['-1 is negative', '-2 is negative']))
405
- *
406
- * @since 2.0.0
407
- * @category collecting & elements
408
- */
409
- const validateFirst = fiberRuntime.validateFirst;
410
-
411
- // -------------------------------------------------------------------------------------
412
- // constructors
413
- // -------------------------------------------------------------------------------------
414
-
415
- /**
416
- * Imports an asynchronous side-effect into a pure `Effect` value.
417
- * The callback function `Effect<R, E, A> => void` must be called at most once.
418
- *
419
- * If an Effect is returned by the registration function, it will be executed
420
- * if the fiber executing the effect is interrupted.
421
- *
422
- * The registration function can also receive an `AbortSignal` if required for
423
- * interruption.
424
- *
425
- * The `FiberId` of the fiber that may complete the async callback may be
426
- * provided to allow for better diagnostics.
427
- *
428
- * @since 2.0.0
429
- * @category constructors
430
- */
431
- const async = core.async;
432
-
433
- /**
434
- * Converts an asynchronous, callback-style API into an `Effect`, which will
435
- * be executed asynchronously.
436
- *
437
- * With this variant, the registration function may return a an `Effect`.
438
- *
439
- * @since 2.0.0
440
- * @category constructors
441
- */
442
- const asyncEffect = runtime$1.asyncEffect;
443
-
444
- /**
445
- * Imports an asynchronous effect into a pure `Effect` value, possibly returning
446
- * the value synchronously.
447
- *
448
- * If the register function returns a value synchronously, then the callback
449
- * function `Effect<R, E, A> => void` must not be called. Otherwise the callback
450
- * function must be called at most once.
451
- *
452
- * The `FiberId` of the fiber that may complete the async callback may be
453
- * provided to allow for better diagnostics.
454
- *
455
- * @since 2.0.0
456
- * @category constructors
457
- */
458
- const asyncOption = coreEffect.asyncOption;
459
-
460
- /**
461
- * Imports an asynchronous side-effect into an effect. It has the option of
462
- * returning the value synchronously, which is useful in cases where it cannot
463
- * be determined if the effect is synchronous or asynchronous until the register
464
- * is actually executed. It also has the option of returning a canceler,
465
- * which will be used by the runtime to cancel the asynchronous effect if the fiber
466
- * executing the effect is interrupted.
467
- *
468
- * If the register function returns a value synchronously, then the callback
469
- * function `Effect<R, E, A> => void` must not be called. Otherwise the callback
470
- * function must be called at most once.
471
- *
472
- * The `FiberId` of the fiber that may complete the async callback may be
473
- * provided to allow for better diagnostics.
474
- *
475
- * @since 2.0.0
476
- * @category constructors
477
- */
478
- const asyncEither = core.asyncEither;
479
-
480
- /**
481
- * @since 2.0.0
482
- * @category constructors
483
- */
484
- const fail = core.fail;
485
-
486
- /**
487
- * @since 2.0.0
488
- * @category constructors
489
- */
490
- const failSync = core.failSync;
491
-
492
- /**
493
- * @since 2.0.0
494
- * @category constructors
495
- */
496
- const failCause = core.failCause;
497
-
498
- /**
499
- * @since 2.0.0
500
- * @category constructors
501
- */
502
- const failCauseSync = core.failCauseSync;
503
-
504
- /**
505
- * @since 2.0.0
506
- * @category constructors
507
- */
508
- const die = core.die$1;
509
-
510
- /**
511
- * Returns an effect that dies with a `RuntimeException` having the specified
512
- * text message. This method can be used for terminating a fiber because a
513
- * defect has been detected in the code.
514
- *
515
- * @since 2.0.0
516
- * @category constructors
517
- */
518
- const dieMessage = core.dieMessage;
519
-
520
- /**
521
- * @since 2.0.0
522
- * @category constructors
523
- */
524
- const dieSync = core.dieSync;
525
-
526
- /**
527
- * @since 2.0.0
528
- * @category constructors
529
- */
530
- const gen = coreEffect.gen;
531
-
532
- /**
533
- * @category models
534
- * @since 2.0.0
535
- */
536
-
537
- /**
538
- * @since 2.0.0
539
- * @category models
540
- */
541
-
542
- /**
543
- * Returns a effect that will never produce anything. The moral equivalent of
544
- * `while(true) {}`, only without the wasted CPU cycles.
545
- *
546
- * @since 2.0.0
547
- * @category constructors
548
- */
549
- const never = core.never;
550
-
551
- /**
552
- * Requires the option produced by this value to be `None`.
553
- *
554
- * @since 2.0.0
555
- * @category constructors
556
- */
557
- const none = coreEffect.none;
558
-
559
- /**
560
- * Like `tryPromise` but produces a defect in case of errors.
561
- *
562
- * An optional `AbortSignal` can be provided to allow for interruption of the
563
- * wrapped Promise api.
564
- *
565
- * @since 2.0.0
566
- * @category constructors
567
- */
568
- const promise = coreEffect.promise;
569
-
570
- /**
571
- * @since 2.0.0
572
- * @category constructors
573
- */
574
- const succeed = core.succeed;
575
-
576
- /**
577
- * Returns an effect which succeeds with `None`.
578
- *
579
- * @since 2.0.0
580
- * @category constructors
581
- */
582
- const succeedNone = coreEffect.succeedNone;
583
-
584
- /**
585
- * Returns an effect which succeeds with the value wrapped in a `Some`.
586
- *
587
- * @since 2.0.0
588
- * @category constructors
589
- */
590
- const succeedSome = coreEffect.succeedSome;
591
-
592
- /**
593
- * @since 2.0.0
594
- * @category constructors
595
- */
596
- const suspend = core.suspend;
597
-
598
- /**
599
- * @since 2.0.0
600
- * @category constructors
601
- */
602
- const sync = core.sync;
603
-
604
- /**
605
- * @since 2.0.0
606
- * @category constructors
607
- */
608
- const unit = core.unit;
609
-
610
- /**
611
- * @since 2.0.0
612
- * @category constructors
613
- */
614
- const yieldNow = core.yieldNow;
615
-
616
- // -------------------------------------------------------------------------------------
617
- // error handling
618
- // -------------------------------------------------------------------------------------
619
-
620
- const _catch = coreEffect._catch;
621
-
622
- /**
623
- * Recovers from all recoverable errors.
624
- *
625
- * **Note**: that `Effect.catchAll` will not recover from unrecoverable defects. To
626
- * recover from both recoverable and unrecoverable errors use
627
- * `Effect.catchAllCause`.
628
- *
629
- * @since 2.0.0
630
- * @category error handling
631
- */
632
- const catchAll = core.catchAll;
633
-
634
- /**
635
- * Recovers from both recoverable and unrecoverable errors.
636
- *
637
- * See `absorb`, `sandbox`, `mapErrorCause` for other functions that can
638
- * recover from defects.
639
- *
640
- * @since 2.0.0
641
- * @category error handling
642
- */
643
- const catchAllCause = core.catchAllCause;
644
-
645
- /**
646
- * Recovers from all defects with provided function.
647
- *
648
- * **WARNING**: There is no sensible way to recover from defects. This
649
- * method should be used only at the boundary between Effect and an external
650
- * system, to transmit information on a defect for diagnostic or explanatory
651
- * purposes.
652
- *
653
- * @since 2.0.0
654
- * @category error handling
655
- */
656
- const catchAllDefect = coreEffect.catchAllDefect;
657
-
658
- /**
659
- * Recovers from errors that match the given predicate.
660
- *
661
- * @since 2.0.0
662
- * @category error handling
663
- */
664
- const catchIf = core.catchIf;
665
-
666
- /**
667
- * Recovers from some or all of the error cases.
668
- *
669
- * @since 2.0.0
670
- * @category error handling
671
- */
672
- const catchSome = core.catchSome;
673
-
674
- /**
675
- * Recovers from some or all of the error cases with provided cause.
676
- *
677
- * @since 2.0.0
678
- * @category error handling
679
- */
680
- const catchSomeCause = coreEffect.catchSomeCause;
681
-
682
- /**
683
- * Recovers from some or all of the defects with provided partial function.
684
- *
685
- * **WARNING**: There is no sensible way to recover from defects. This
686
- * method should be used only at the boundary between Effect and an external
687
- * system, to transmit information on a defect for diagnostic or explanatory
688
- * purposes.
689
- *
690
- * @since 2.0.0
691
- * @category error handling
692
- */
693
- const catchSomeDefect = coreEffect.catchSomeDefect;
694
-
695
- /**
696
- * Recovers from the specified tagged error.
697
- *
698
- * @since 2.0.0
699
- * @category error handling
700
- */
701
- const catchTag = coreEffect.catchTag;
702
-
703
- /**
704
- * Recovers from the specified tagged errors.
705
- *
706
- * @since 2.0.0
707
- * @category error handling
708
- */
709
- const catchTags = coreEffect.catchTags;
710
-
711
- /**
712
- * Returns an effect that succeeds with the cause of failure of this effect,
713
- * or `Cause.empty` if the effect did succeed.
714
- *
715
- * @since 2.0.0
716
- * @category error handling
717
- */
718
- const cause = coreEffect.cause;
719
-
720
- /**
721
- * Returns an effect that ignores errors and runs repeatedly until it
722
- * eventually succeeds.
723
- *
724
- * @since 2.0.0
725
- * @category error handling
726
- */
727
- const eventually = coreEffect.eventually;
728
-
729
- /**
730
- * Returns a new effect that ignores the success or failure of this effect.
731
- *
732
- * @since 2.0.0
733
- * @category error handling
734
- */
735
- const ignore = coreEffect.ignore;
736
-
737
- /**
738
- * Returns a new effect that ignores the success or failure of this effect,
739
- * but which also logs failures at the Debug level, just in case the failure
740
- * turns out to be important.
741
- *
742
- * @since 2.0.0
743
- * @category error handling
744
- */
745
- const ignoreLogged = coreEffect.ignoreLogged;
746
-
747
- /**
748
- * Exposes all parallel errors in a single call.
749
- *
750
- * @since 2.0.0
751
- * @category error handling
752
- */
753
- const parallelErrors = coreEffect.parallelErrors;
754
-
755
- /**
756
- * Exposes the full `Cause` of failure for the specified effect.
757
- *
758
- * @since 2.0.0
759
- * @category error handling
760
- */
761
- const sandbox = coreEffect.sandbox;
762
-
763
- /**
764
- * Retries with the specified retry policy. Retries are done following the
765
- * failure of the original `io` (up to a fixed maximum with `once` or `recurs`
766
- * for example), so that that `io.retry(Schedule.once)` means "execute `io`
767
- * and in case of failure, try again once".
768
- *
769
- * @since 2.0.0
770
- * @category error handling
771
- */
772
- const retry = schedule$1.retry_Effect;
773
-
774
- /**
775
- * Retries this effect the specified number of times.
776
- *
777
- * @since 2.0.0
778
- * @category error handling
779
- */
780
- const retryN = schedule$1.retryN_Effect;
781
-
782
- /**
783
- * Retries with the specified schedule, until it fails, and then both the
784
- * value produced by the schedule together with the last error are passed to
785
- * the recovery function.
786
- *
787
- * @since 2.0.0
788
- * @category error handling
789
- */
790
- const retryOrElse = schedule$1.retryOrElse_Effect;
791
-
792
- /**
793
- * Retries this effect until its error satisfies the specified predicate.
794
- *
795
- * @since 2.0.0
796
- * @category error handling
797
- */
798
- const retryUntil = schedule$1.retryUntil_Effect;
799
-
800
- /**
801
- * Retries this effect until its error satisfies the specified effectful
802
- * predicate.
803
- *
804
- * @since 2.0.0
805
- * @category error handling
806
- */
807
- const retryUntilEffect = schedule$1.retryUntilEffect_Effect;
808
-
809
- /**
810
- * Retries this effect while its error satisfies the specified predicate.
811
- *
812
- * @since 2.0.0
813
- * @category error handling
814
- */
815
- const retryWhile = schedule$1.retryWhile_Effect;
816
-
817
- /**
818
- * Retries this effect while its error satisfies the specified effectful
819
- * predicate.
820
- *
821
- * @since 2.0.0
822
- * @category error handling
823
- */
824
- const retryWhileEffect = schedule$1.retryWhileEffect_Effect;
825
- const try_ = coreEffect.try_;
826
-
827
- /**
828
- * Returns an effect whose success is mapped by the specified side effecting
829
- * `try` function, translating any promise rejections into typed failed effects
830
- * via the `catch` function.
831
- *
832
- * @since 2.0.0
833
- * @category error handling
834
- */
835
- const tryMap = coreEffect.tryMap;
836
-
837
- /**
838
- * Returns an effect whose success is mapped by the specified side effecting
839
- * `try` function, translating any promise rejections into typed failed effects
840
- * via the `catch` function.
841
- *
842
- * An optional `AbortSignal` can be provided to allow for interruption of the
843
- * wrapped Promise api.
844
- *
845
- * @since 2.0.0
846
- * @category error handling
847
- */
848
- const tryMapPromise = coreEffect.tryMapPromise;
849
-
850
- /**
851
- * Create an `Effect` that when executed will construct `promise` and wait for
852
- * its result, errors will produce failure as `unknown`.
853
- *
854
- * An optional `AbortSignal` can be provided to allow for interruption of the
855
- * wrapped Promise api.
856
- *
857
- * @since 2.0.0
858
- * @category error handling
859
- */
860
- const tryPromise = coreEffect.tryPromise;
861
-
862
- /**
863
- * The inverse operation `sandbox(effect)`
864
- *
865
- * Terminates with exceptions on the `Left` side of the `Either` error, if it
866
- * exists. Otherwise extracts the contained `Effect<R, E, A>`
867
- *
868
- * @since 2.0.0
869
- * @category error handling
870
- */
871
- const unsandbox = coreEffect.unsandbox;
872
-
873
- // -------------------------------------------------------------------------------------
874
- // interuption
875
- // -------------------------------------------------------------------------------------
876
-
877
- /**
878
- * This function checks if any fibers are attempting to interrupt the current
879
- * fiber, and if so, performs self-interruption.
880
- *
881
- * Note that this allows for interruption to occur in uninterruptible regions.
882
- *
883
- * @returns A new `Effect` value that represents the check for interruption
884
- * and the potential self-interruption of the current fiber.
885
- *
886
- * @since 2.0.0
887
- * @category interruption
888
- */
889
- const allowInterrupt = coreEffect.allowInterrupt;
890
-
891
- /**
892
- * Checks the interrupt status, and produces the effect returned by the
893
- * specified callback.
894
- *
895
- * @since 2.0.0
896
- * @category interruption
897
- */
898
- const checkInterruptible = core.checkInterruptible;
899
-
900
- /**
901
- * Returns an effect whose interruption will be disconnected from the
902
- * fiber's own interruption, being performed in the background without
903
- * slowing down the fiber's interruption.
904
- *
905
- * This method is useful to create "fast interrupting" effects. For
906
- * example, if you call this on a bracketed effect, then even if the
907
- * effect is "stuck" in acquire or release, its interruption will return
908
- * immediately, while the acquire / release are performed in the
909
- * background.
910
- *
911
- * See timeout and race for other applications.
912
- *
913
- * @since 2.0.0
914
- * @category interruption
915
- */
916
- const disconnect = fiberRuntime.disconnect;
917
-
918
- /**
919
- * @since 2.0.0
920
- * @category interruption
921
- */
922
- const interrupt = core.interrupt;
923
-
924
- /**
925
- * @since 2.0.0
926
- * @category interruption
927
- */
928
- const interruptWith = core.interruptWith;
929
-
930
- /**
931
- * @since 2.0.0
932
- * @category interruption
933
- */
934
- const interruptible = core.interruptible;
935
-
936
- /**
937
- * @since 2.0.0
938
- * @category interruption
939
- */
940
- const interruptibleMask = core.interruptibleMask;
941
-
942
- /**
943
- * @since 2.0.0
944
- * @category interruption
945
- */
946
- const onInterrupt = core.onInterrupt;
947
-
948
- /**
949
- * @since 2.0.0
950
- * @category interruption
951
- */
952
- const uninterruptible = core.uninterruptible;
953
-
954
- /**
955
- * @since 2.0.0
956
- * @category interruption
957
- */
958
- const uninterruptibleMask = core.uninterruptibleMask;
959
-
960
- // -------------------------------------------------------------------------------------
961
- // mapping
962
- // -------------------------------------------------------------------------------------
963
-
964
- /**
965
- * This function maps the success value of an `Effect` value to a specified
966
- * constant value.
967
- *
968
- * @param value - The constant value that the success value of the `Effect`
969
- * value will be mapped to.
970
- * @param self - The `Effect` value whose success value will be mapped to the
971
- * specified constant value.
972
- *
973
- * @returns A new `Effect` value that represents the mapping of the success
974
- * value of the original `Effect` value to the specified constant value.
975
- *
976
- * @since 2.0.0
977
- * @category mapping
978
- */
979
- const as = core.as;
980
-
981
- /**
982
- * This function maps the success value of an `Effect` value to a `Some` value
983
- * in an `Option` value. If the original `Effect` value fails, the returned
984
- * `Effect` value will also fail.
985
- *
986
- * @param self - The `Effect` value whose success value will be mapped to a
987
- * `Some` value in an `Option` value.
988
- *
989
- * @returns A new `Effect` value that represents the mapping of the success
990
- * value of the original `Effect` value to a `Some` value in an `Option`
991
- * value. The returned `Effect` value may fail if the original `Effect` value
992
- * fails.
993
- *
994
- * @category mapping
995
- * @since 2.0.0
996
- */
997
- const asSome = coreEffect.asSome;
998
-
999
- /**
1000
- * This function maps the error value of an `Effect` value to a `Some` value
1001
- * in an `Option` value. If the original `Effect` value succeeds, the returned
1002
- * `Effect` value will also succeed.
1003
- *
1004
- * @param self - The `Effect` value whose error value will be mapped to a
1005
- * `Some` value in an `Option` value.
1006
- *
1007
- * @returns A new `Effect` value that represents the mapping of the error
1008
- * value of the original `Effect` value to a `Some` value in an `Option`
1009
- * value. The returned `Effect` value may succeed if the original `Effect`
1010
- * value succeeds.
1011
- *
1012
- * @category mapping
1013
- * @since 2.0.0
1014
- */
1015
- const asSomeError = coreEffect.asSomeError;
1016
-
1017
- /**
1018
- * This function maps the success value of an `Effect` value to `void`. If the
1019
- * original `Effect` value succeeds, the returned `Effect` value will also
1020
- * succeed. If the original `Effect` value fails, the returned `Effect` value
1021
- * will fail with the same error.
1022
- *
1023
- * @param self - The `Effect` value whose success value will be mapped to `void`.
1024
- *
1025
- * @returns A new `Effect` value that represents the mapping of the success
1026
- * value of the original `Effect` value to `void`.
1027
- *
1028
- * @since 2.0.0
1029
- * @category mapping
1030
- */
1031
- const asUnit = core.asUnit;
1032
-
1033
- /**
1034
- * Returns an effect that swaps the error/success cases. This allows you to
1035
- * use all methods on the error channel, possibly before flipping back.
1036
- *
1037
- * @since 2.0.0
1038
- * @category mapping
1039
- */
1040
- const flip = core.flip;
1041
-
1042
- /**
1043
- * Swaps the error/value parameters, applies the function `f` and flips the
1044
- * parameters back
1045
- *
1046
- * @since 2.0.0
1047
- * @category mapping
1048
- */
1049
- const flipWith = coreEffect.flipWith;
1050
-
1051
- /**
1052
- * @since 2.0.0
1053
- * @category mapping
1054
- */
1055
- const map = core.map;
1056
-
1057
- /**
1058
- * Statefully and effectfully maps over the elements of this chunk to produce
1059
- * new elements.
1060
- *
1061
- * @since 2.0.0
1062
- * @category mapping
1063
- */
1064
- const mapAccum = coreEffect.mapAccum;
1065
-
1066
- /**
1067
- * Returns an effect whose failure and success channels have been mapped by
1068
- * the specified `onFailure` and `onSuccess` functions.
1069
- *
1070
- * @since 2.0.0
1071
- * @category mapping
1072
- */
1073
- const mapBoth = core.mapBoth;
1074
-
1075
- /**
1076
- * Returns an effect with its error channel mapped using the specified function.
1077
- *
1078
- * @since 2.0.0
1079
- * @category mapping
1080
- */
1081
- const mapError = core.mapError;
1082
-
1083
- /**
1084
- * Returns an effect with its full cause of failure mapped using the specified
1085
- * function. This can be used to transform errors while preserving the
1086
- * original structure of `Cause`.
1087
- *
1088
- * See `absorb`, `sandbox`, `catchAllCause` for other functions for dealing
1089
- * with defects.
1090
- *
1091
- * @since 2.0.0
1092
- * @category mapping
1093
- */
1094
- const mapErrorCause = coreEffect.mapErrorCause;
1095
-
1096
- /**
1097
- * Returns a new effect where the error channel has been merged into the
1098
- * success channel to their common combined type.
1099
- *
1100
- * @since 2.0.0
1101
- * @category mapping
1102
- */
1103
- const merge = coreEffect.merge;
1104
-
1105
- /**
1106
- * Returns a new effect where boolean value of this effect is negated.
1107
- *
1108
- * @since 2.0.0
1109
- * @category mapping
1110
- */
1111
- const negate = coreEffect.negate;
1112
-
1113
- // -------------------------------------------------------------------------------------
1114
- // scoping, resources & finalization
1115
- // -------------------------------------------------------------------------------------
1116
-
1117
- /**
1118
- * This function constructs a scoped resource from an `acquire` and `release`
1119
- * `Effect` value.
1120
- *
1121
- * If the `acquire` `Effect` value successfully completes execution, then the
1122
- * `release` `Effect` value will be added to the finalizers associated with the
1123
- * scope of this `Effect` value, and it is guaranteed to be run when the scope
1124
- * is closed.
1125
- *
1126
- * The `acquire` and `release` `Effect` values will be run uninterruptibly.
1127
- * Additionally, the `release` `Effect` value may depend on the `Exit` value
1128
- * specified when the scope is closed.
1129
- *
1130
- * @param acquire - The `Effect` value that acquires the resource.
1131
- * @param release - The `Effect` value that releases the resource.
1132
- *
1133
- * @returns A new `Effect` value that represents the scoped resource.
1134
- *
1135
- * @since 2.0.0
1136
- * @category scoping, resources & finalization
1137
- */
1138
- const acquireRelease = fiberRuntime.acquireRelease;
1139
-
1140
- /**
1141
- * This function constructs a scoped resource from an `acquire` and `release`
1142
- * `Effect` value.
1143
- *
1144
- * If the `acquire` `Effect` value successfully completes execution, then the
1145
- * `release` `Effect` value will be added to the finalizers associated with the
1146
- * scope of this `Effect` value, and it is guaranteed to be run when the scope
1147
- * is closed.
1148
- *
1149
- * The `acquire` `Effect` values will be run interruptibly.
1150
- * The `release` `Effect` values will be run uninterruptibly.
1151
- *
1152
- * Additionally, the `release` `Effect` value may depend on the `Exit` value
1153
- * specified when the scope is closed.
1154
- *
1155
- * @param acquire - The `Effect` value that acquires the resource.
1156
- * @param release - The `Effect` value that releases the resource.
1157
- *
1158
- * @returns A new `Effect` value that represents the scoped resource.
1159
- *
1160
- * @since 2.0.0
1161
- * @category scoping, resources & finalization
1162
- */
1163
- const acquireReleaseInterruptible = fiberRuntime.acquireReleaseInterruptible;
1164
-
1165
- /**
1166
- * This function is used to ensure that an `Effect` value that represents the
1167
- * acquisition of a resource (for example, opening a file, launching a thread,
1168
- * etc.) will not be interrupted, and that the resource will always be released
1169
- * when the `Effect` value completes execution.
1170
- *
1171
- * `acquireUseRelease` does the following:
1172
- *
1173
- * 1. Ensures that the `Effect` value that acquires the resource will not be
1174
- * interrupted. Note that acquisition may still fail due to internal
1175
- * reasons (such as an uncaught exception).
1176
- * 2. Ensures that the `release` `Effect` value will not be interrupted,
1177
- * and will be executed as long as the acquisition `Effect` value
1178
- * successfully acquires the resource.
1179
- *
1180
- * During the time period between the acquisition and release of the resource,
1181
- * the `use` `Effect` value will be executed.
1182
- *
1183
- * If the `release` `Effect` value fails, then the entire `Effect` value will
1184
- * fail, even if the `use` `Effect` value succeeds. If this fail-fast behavior
1185
- * is not desired, errors produced by the `release` `Effect` value can be caught
1186
- * and ignored.
1187
- *
1188
- * @param acquire - The `Effect` value that acquires the resource.
1189
- * @param use - The `Effect` value that is executed between the acquisition
1190
- * and release of the resource.
1191
- * @param release - The `Effect` value that releases the resource.
1192
- *
1193
- * @returns A new `Effect` value that represents the acquisition, use, and
1194
- * release of the resource.
1195
- *
1196
- * @since 2.0.0
1197
- * @category scoping, resources & finalization
1198
- */
1199
- const acquireUseRelease = core.acquireUseRelease;
1200
-
1201
- /**
1202
- * This function adds a finalizer to the scope of the calling `Effect` value.
1203
- * The finalizer is guaranteed to be run when the scope is closed, and it may
1204
- * depend on the `Exit` value that the scope is closed with.
1205
- *
1206
- * @param finalizer - The finalizer to add to the scope of the calling
1207
- * `Effect` value. This function must take an `Exit` value as its parameter,
1208
- * and return a new `Effect` value.
1209
- *
1210
- * @returns A new `Effect` value that represents the addition of the finalizer
1211
- * to the scope of the calling `Effect` value.
1212
- *
1213
- * @since 2.0.0
1214
- * @category scoping, resources & finalization
1215
- */
1216
- const addFinalizer = fiberRuntime.addFinalizer;
1217
-
1218
- /**
1219
- * Returns an effect that, if this effect _starts_ execution, then the
1220
- * specified `finalizer` is guaranteed to be executed, whether this effect
1221
- * succeeds, fails, or is interrupted.
1222
- *
1223
- * For use cases that need access to the effect's result, see `onExit`.
1224
- *
1225
- * Finalizers offer very powerful guarantees, but they are low-level, and
1226
- * should generally not be used for releasing resources. For higher-level
1227
- * logic built on `ensuring`, see the `acquireRelease` family of methods.
1228
- *
1229
- * @since 2.0.0
1230
- * @category scoping, resources & finalization
1231
- */
1232
- const ensuring = fiberRuntime.ensuring;
1233
-
1234
- /**
1235
- * Runs the specified effect if this effect fails, providing the error to the
1236
- * effect if it exists. The provided effect will not be interrupted.
1237
- *
1238
- * @since 2.0.0
1239
- * @category scoping, resources & finalization
1240
- */
1241
- const onError = core.onError;
1242
-
1243
- /**
1244
- * Ensures that a cleanup functions runs, whether this effect succeeds, fails,
1245
- * or is interrupted.
1246
- *
1247
- * @since 2.0.0
1248
- * @category scoping, resources & finalization
1249
- */
1250
- const onExit = core.onExit;
1251
-
1252
- /**
1253
- * @since 2.0.0
1254
- * @category scoping, resources & finalization
1255
- */
1256
- const parallelFinalizers = fiberRuntime.parallelFinalizers;
1257
-
1258
- /**
1259
- * @since 2.0.0
1260
- * @category scoping, resources & finalization
1261
- */
1262
- const finalizersMask = fiberRuntime.finalizersMask;
1263
-
1264
- /**
1265
- * Returns a new scoped workflow that runs finalizers added to the scope of
1266
- * this workflow sequentially in the reverse of the order in which they were
1267
- * added. Note that finalizers are run sequentially by default so this only
1268
- * has meaning if used within a scope where finalizers are being run in
1269
- * parallel.
1270
- *
1271
- * @since 2.0.0
1272
- * @category scoping, resources & finalization
1273
- */
1274
- const sequentialFinalizers = fiberRuntime.sequentialFinalizers;
1275
-
1276
- /**
1277
- * @since 2.0.0
1278
- * @category scoping, resources & finalization
1279
- */
1280
- const scope = fiberRuntime.scope;
1281
-
1282
- /**
1283
- * Accesses the current scope and uses it to perform the specified effect.
1284
- *
1285
- * @since 2.0.0
1286
- * @category scoping, resources & finalization
1287
- */
1288
- const scopeWith = fiberRuntime.scopeWith;
1289
-
1290
- /**
1291
- * Scopes all resources uses in this workflow to the lifetime of the workflow,
1292
- * ensuring that their finalizers are run as soon as this workflow completes
1293
- * execution, whether by success, failure, or interruption.
1294
- *
1295
- * @since 2.0.0
1296
- * @category scoping, resources & finalization
1297
- */
1298
- const scoped = fiberRuntime.scopedEffect;
1299
-
1300
- /**
1301
- * Scopes all resources acquired by `resource` to the lifetime of `use`
1302
- * without effecting the scope of any resources acquired by `use`.
1303
- *
1304
- * @since 2.0.0
1305
- * @category scoping, resources & finalization
1306
- */
1307
- const using = fiberRuntime.using;
1308
-
1309
- /**
1310
- * Returns a new scoped workflow that returns the result of this workflow as
1311
- * well as a finalizer that can be run to close the scope of this workflow.
1312
- *
1313
- * @since 2.0.0
1314
- * @category scoping, resources & finalization
1315
- */
1316
- const withEarlyRelease = fiberRuntime.withEarlyRelease;
1317
-
1318
- // -------------------------------------------------------------------------------------
1319
- // supervision & fibers
1320
- // -------------------------------------------------------------------------------------
1321
-
1322
- /**
1323
- * Returns a new effect that will not succeed with its value before first
1324
- * waiting for the end of all child fibers forked by the effect.
1325
- *
1326
- * @since 2.0.0
1327
- * @category supervision & fibers
1328
- */
1329
- const awaitAllChildren = circular.awaitAllChildren;
1330
-
1331
- /**
1332
- * Returns a new workflow that will not supervise any fibers forked by this
1333
- * workflow.
1334
- *
1335
- * @since 2.0.0
1336
- * @category supervision & fibers
1337
- */
1338
- const daemonChildren = fiberRuntime.daemonChildren;
1339
-
1340
- /**
1341
- * Constructs an effect with information about the current `Fiber`.
1342
- *
1343
- * @since 2.0.0
1344
- * @category supervision & fibers
1345
- */
1346
- const descriptor = coreEffect.descriptor;
1347
-
1348
- /**
1349
- * Constructs an effect based on information about the current `Fiber`.
1350
- *
1351
- * @since 2.0.0
1352
- * @category supervision & fibers
1353
- */
1354
- const descriptorWith = coreEffect.descriptorWith;
1355
-
1356
- /**
1357
- * Returns a new workflow that executes this one and captures the changes in
1358
- * `FiberRef` values.
1359
- *
1360
- * @since 2.0.0
1361
- * @category supervision & fibers
1362
- */
1363
- const diffFiberRefs = coreEffect.diffFiberRefs;
1364
-
1365
- /**
1366
- * Acts on the children of this fiber (collected into a single fiber),
1367
- * guaranteeing the specified callback will be invoked, whether or not this
1368
- * effect succeeds.
1369
- *
1370
- * @since 2.0.0
1371
- * @category supervision & fibers
1372
- */
1373
- const ensuringChild = circular.ensuringChild;
1374
-
1375
- /**
1376
- * Acts on the children of this fiber, guaranteeing the specified callback
1377
- * will be invoked, whether or not this effect succeeds.
1378
- *
1379
- * @since 2.0.0
1380
- * @category supervision & fibers
1381
- */
1382
- const ensuringChildren = circular.ensuringChildren;
1383
-
1384
- /**
1385
- * @since 2.0.0
1386
- * @category supervision & fibers
1387
- */
1388
- const fiberId = core.fiberId;
1389
-
1390
- /**
1391
- * @since 2.0.0
1392
- * @category supervision & fibers
1393
- */
1394
- const fiberIdWith = core.fiberIdWith;
1395
-
1396
- /**
1397
- * Returns an effect that forks this effect into its own separate fiber,
1398
- * returning the fiber immediately, without waiting for it to begin executing
1399
- * the effect.
1400
- *
1401
- * You can use the `fork` method whenever you want to execute an effect in a
1402
- * new fiber, concurrently and without "blocking" the fiber executing other
1403
- * effects. Using fibers can be tricky, so instead of using this method
1404
- * directly, consider other higher-level methods, such as `raceWith`,
1405
- * `zipPar`, and so forth.
1406
- *
1407
- * The fiber returned by this method has methods to interrupt the fiber and to
1408
- * wait for it to finish executing the effect. See `Fiber` for more
1409
- * information.
1410
- *
1411
- * Whenever you use this method to launch a new fiber, the new fiber is
1412
- * attached to the parent fiber's scope. This means when the parent fiber
1413
- * terminates, the child fiber will be terminated as well, ensuring that no
1414
- * fibers leak. This behavior is called "auto supervision", and if this
1415
- * behavior is not desired, you may use the `forkDaemon` or `forkIn` methods.
1416
- *
1417
- * @since 2.0.0
1418
- * @category supervision & fibers
1419
- */
1420
- const fork = fiberRuntime.fork;
1421
-
1422
- /**
1423
- * Forks the effect into a new fiber attached to the global scope. Because the
1424
- * new fiber is attached to the global scope, when the fiber executing the
1425
- * returned effect terminates, the forked fiber will continue running.
1426
- *
1427
- * @since 2.0.0
1428
- * @category supervision & fibers
1429
- */
1430
- const forkDaemon = fiberRuntime.forkDaemon;
1431
-
1432
- /**
1433
- * Returns an effect that forks all of the specified values, and returns a
1434
- * composite fiber that produces a list of their results, in order.
1435
- *
1436
- * @since 2.0.0
1437
- * @category supervision & fibers
1438
- */
1439
- const forkAll = circular.forkAll;
1440
-
1441
- /**
1442
- * Forks the effect in the specified scope. The fiber will be interrupted
1443
- * when the scope is closed.
1444
- *
1445
- * @since 2.0.0
1446
- * @category supervision & fibers
1447
- */
1448
- const forkIn = circular.forkIn;
1449
-
1450
- /**
1451
- * Forks the fiber in a `Scope`, interrupting it when the scope is closed.
1452
- *
1453
- * @since 2.0.0
1454
- * @category supervision & fibers
1455
- */
1456
- const forkScoped = circular.forkScoped;
1457
-
1458
- /**
1459
- * Like fork but handles an error with the provided handler.
1460
- *
1461
- * @since 2.0.0
1462
- * @category supervision & fibers
1463
- */
1464
- const forkWithErrorHandler = fiberRuntime.forkWithErrorHandler;
1465
-
1466
- /**
1467
- * Creates an `Effect` value that represents the exit value of the specified
1468
- * fiber.
1469
- *
1470
- * @since 2.0.0
1471
- * @category supervision & fibers
1472
- */
1473
- const fromFiber = circular.fromFiber;
1474
-
1475
- /**
1476
- * Creates an `Effect` value that represents the exit value of the specified
1477
- * fiber.
1478
- *
1479
- * @since 2.0.0
1480
- * @category supervision & fibers
1481
- */
1482
- const fromFiberEffect = circular.fromFiberEffect;
1483
-
1484
- /**
1485
- * Returns an effect with the behavior of this one, but where all child fibers
1486
- * forked in the effect are reported to the specified supervisor.
1487
- *
1488
- * @since 2.0.0
1489
- * @category supervision & fibers
1490
- */
1491
- const supervised = circular.supervised;
1492
-
1493
- /**
1494
- * Transplants specified effects so that when those effects fork other
1495
- * effects, the forked effects will be governed by the scope of the fiber that
1496
- * executes this effect.
1497
- *
1498
- * This can be used to "graft" deep grandchildren onto a higher-level scope,
1499
- * effectively extending their lifespans into the parent scope.
1500
- *
1501
- * @since 2.0.0
1502
- * @category supervision & fibers
1503
- */
1504
- const transplant = core.transplant;
1505
-
1506
- /**
1507
- * @since 2.0.0
1508
- * @category supervision & fibers
1509
- */
1510
- const withConcurrency = core.withConcurrency;
1511
-
1512
- // ---------------------------------------------------------------------------------------
1513
- // scheduler
1514
- // ---------------------------------------------------------------------------------------
1515
-
1516
- /**
1517
- * @since 2.0.0
1518
- * @category scheduler
1519
- */
1520
- const setScheduler = scheduler => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(Scheduler_dist_effectScheduler.currentScheduler, scheduler));
1521
-
1522
- /**
1523
- * Sets the provided scheduler for usage in the wrapped effect
1524
- *
1525
- * @since 2.0.0
1526
- * @category scheduler
1527
- */
1528
- const withScheduler = Scheduler_dist_effectScheduler.withScheduler;
1529
-
1530
- /**
1531
- * Sets the scheduling priority used when yielding
1532
- *
1533
- * @since 2.0.0
1534
- * @category utils
1535
- */
1536
- const withSchedulingPriority = core.withSchedulingPriority;
1537
-
1538
- /**
1539
- * Sets the maximum number of operations before yield by the default schedulers
1540
- *
1541
- * @since 2.0.0
1542
- * @category utils
1543
- */
1544
- const withMaxOpsBeforeYield = core.withMaxOpsBeforeYield;
1545
-
1546
- // ---------------------------------------------------------------------------------------
1547
- // clock
1548
- // ---------------------------------------------------------------------------------------
1549
-
1550
- /**
1551
- * Retreives the `Clock` service from the context
1552
- *
1553
- * @since 2.0.0
1554
- * @category clock
1555
- */
1556
- const clock = coreEffect.clock;
1557
-
1558
- /**
1559
- * Retreives the `Clock` service from the context and provides it to the
1560
- * specified effectful function.
1561
- *
1562
- * @since 2.0.0
1563
- * @category clock
1564
- */
1565
- const clockWith = coreEffect.clockWith;
1566
-
1567
- /**
1568
- * @since 2.0.0
1569
- * @category clock
1570
- */
1571
- const setClock = clock => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScopedWith(defaultServices.currentServices, Context_dist_effectContext.add(defaultServices.clockTag, clock)));
1572
-
1573
- /**
1574
- * Sets the implementation of the clock service to the specified value and
1575
- * restores it to its original value when the scope is closed.
1576
- *
1577
- * @since 2.0.0
1578
- * @category constructors
1579
- */
1580
- const withClockScoped = fiberRuntime.withClockScoped;
1581
-
1582
- /**
1583
- * Executes the specified workflow with the specified implementation of the
1584
- * clock service.
1585
- *
1586
- * @since 2.0.0
1587
- * @category clock
1588
- */
1589
- const withClock = defaultServices.withClock;
1590
-
1591
- // ---------------------------------------------------------------------------------------
1592
- // delays & timeouts
1593
- // ---------------------------------------------------------------------------------------
1594
-
1595
- /**
1596
- * Returns an effect that is delayed from this effect by the specified
1597
- * `Duration`.
1598
- *
1599
- * @since 2.0.0
1600
- * @category delays & timeouts
1601
- */
1602
- const delay = coreEffect.delay;
1603
-
1604
- /**
1605
- * Returns an effect that suspends for the specified duration. This method is
1606
- * asynchronous, and does not actually block the fiber executing the effect.
1607
- *
1608
- * @since 2.0.0
1609
- * @category delays & timeouts
1610
- */
1611
- const sleep = coreEffect.sleep;
1612
-
1613
- /**
1614
- * Returns a new effect that executes this one and times the execution.
1615
- *
1616
- * @since 2.0.0
1617
- * @category delays & timeouts
1618
- */
1619
- const timed = coreEffect.timed;
1620
-
1621
- /**
1622
- * A more powerful variation of `timed` that allows specifying the clock.
1623
- *
1624
- * @since 2.0.0
1625
- * @category delays & timeouts
1626
- */
1627
- const timedWith = coreEffect.timedWith;
1628
-
1629
- /**
1630
- * Returns an effect that will timeout this effect, returning `None` if the
1631
- * timeout elapses before the effect has produced a value; and returning
1632
- * `Some` of the produced value otherwise.
1633
- *
1634
- * If the timeout elapses without producing a value, the running effect will
1635
- * be safely interrupted.
1636
- *
1637
- * WARNING: The effect returned by this method will not itself return until
1638
- * the underlying effect is actually interrupted. This leads to more
1639
- * predictable resource utilization. If early return is desired, then instead
1640
- * of using `effect.timeout(d)`, use `effect.disconnect.timeout(d)`, which
1641
- * first disconnects the effect's interruption signal before performing the
1642
- * timeout, resulting in earliest possible return, before an underlying effect
1643
- * has been successfully interrupted.
1644
- *
1645
- * @since 2.0.0
1646
- * @category delays & timeouts
1647
- */
1648
- const timeout = circular.timeout;
1649
-
1650
- /**
1651
- * The same as `timeout`, but instead of producing a `None` in the event of
1652
- * timeout, it will produce the specified error.
1653
- *
1654
- * @since 2.0.0
1655
- * @category delays & timeouts
1656
- */
1657
- const timeoutFail = circular.timeoutFail;
1658
-
1659
- /**
1660
- * The same as `timeout`, but instead of producing a `None` in the event of
1661
- * timeout, it will produce the specified failure.
1662
- *
1663
- * @since 2.0.0
1664
- * @category delays & timeouts
1665
- */
1666
- const timeoutFailCause = circular.timeoutFailCause;
1667
-
1668
- /**
1669
- * Returns an effect that will timeout this effect, returning either the
1670
- * default value if the timeout elapses before the effect has produced a
1671
- * value or returning the result of applying the function `onSuccess` to the
1672
- * success value of the effect.
1673
- *
1674
- * If the timeout elapses without producing a value, the running effect will
1675
- * be safely interrupted.
1676
- *
1677
- * @since 2.0.0
1678
- * @category delays & timeouts
1679
- */
1680
- const timeoutTo = circular.timeoutTo;
1681
-
1682
- // -------------------------------------------------------------------------------------
1683
- // config
1684
- // -------------------------------------------------------------------------------------
1685
-
1686
- /**
1687
- * Uses the default config provider to load the specified config, or fail with
1688
- * an error of type Config.Error.
1689
- *
1690
- * @since 2.0.0
1691
- * @category config
1692
- */
1693
- const config = defaultServices.config;
1694
-
1695
- /**
1696
- * Retrieves the default config provider, and passes it to the specified
1697
- * function, which may return an effect that uses the provider to perform some
1698
- * work or compute some value.
1699
- *
1700
- * @since 2.0.0
1701
- * @category config
1702
- */
1703
- const configProviderWith = defaultServices.configProviderWith;
1704
-
1705
- /**
1706
- * Sets the current `ConfigProvider`.
1707
- *
1708
- * @since 2.0.0
1709
- * @category config
1710
- */
1711
- const setConfigProvider = circular$1.setConfigProvider;
1712
-
1713
- /**
1714
- * Executes the specified workflow with the specified configuration provider.
1715
- *
1716
- * @since 2.0.0
1717
- * @category config
1718
- */
1719
- const withConfigProvider = defaultServices.withConfigProvider;
1720
-
1721
- /**
1722
- * Sets the configuration provider to the specified value and restores it to its original value
1723
- * when the scope is closed.
1724
- *
1725
- * @since 2.0.0
1726
- * @category config
1727
- */
1728
- const withConfigProviderScoped = fiberRuntime.withConfigProviderScoped;
1729
-
1730
- // -------------------------------------------------------------------------------------
1731
- // context
1732
- // -------------------------------------------------------------------------------------
1733
-
1734
- /**
1735
- * @since 2.0.0
1736
- * @category context
1737
- */
1738
- const context = core.context;
1739
-
1740
- /**
1741
- * Accesses the context of the effect.
1742
- *
1743
- * @since 2.0.0
1744
- * @category context
1745
- */
1746
- const contextWith = coreEffect.contextWith;
1747
-
1748
- /**
1749
- * Effectually accesses the context of the effect.
1750
- *
1751
- * @since 2.0.0
1752
- * @category context
1753
- */
1754
- const contextWithEffect = core.contextWithEffect;
1755
-
1756
- /**
1757
- * Provides some of the context required to run this effect,
1758
- * leaving the remainder `R0`.
1759
- *
1760
- * @since 2.0.0
1761
- * @category context
1762
- */
1763
- const mapInputContext = core.mapInputContext;
1764
-
1765
- /**
1766
- * Splits the context into two parts, providing one part using the
1767
- * specified layer/context/runtime and leaving the remainder `R0`
1768
- *
1769
- * @since 2.0.0
1770
- * @category context
1771
- */
1772
- const provide = layer.effect_provide;
1773
-
1774
- /**
1775
- * Provides the effect with the single service it requires. If the effect
1776
- * requires more than one service use `provideContext` instead.
1777
- *
1778
- * @since 2.0.0
1779
- * @category context
1780
- */
1781
- const provideService = coreEffect.provideService;
1782
-
1783
- /**
1784
- * Provides the effect with the single service it requires. If the effect
1785
- * requires more than one service use `provideContext` instead.
1786
- *
1787
- * @since 2.0.0
1788
- * @category context
1789
- */
1790
- const provideServiceEffect = coreEffect.provideServiceEffect;
1791
-
1792
- /**
1793
- * @since 2.0.0
1794
- * @category context
1795
- */
1796
- const serviceFunction = coreEffect.serviceFunction;
1797
-
1798
- /**
1799
- * @since 2.0.0
1800
- * @category context
1801
- */
1802
- const serviceFunctionEffect = coreEffect.serviceFunctionEffect;
1803
-
1804
- /**
1805
- * @since 2.0.0
1806
- * @category context
1807
- */
1808
- const serviceFunctions = coreEffect.serviceFunctions;
1809
-
1810
- /**
1811
- * @since 2.0.0
1812
- * @category context
1813
- */
1814
- const serviceConstants = coreEffect.serviceConstants;
1815
-
1816
- /**
1817
- * @since 2.0.0
1818
- * @category context
1819
- */
1820
- const serviceMembers = coreEffect.serviceMembers;
1821
-
1822
- /**
1823
- * @since 2.0.0
1824
- * @category context
1825
- */
1826
- const serviceOption = tag => contextWith(_ => Context_dist_effectContext.getOption(_, tag));
1827
-
1828
- /**
1829
- * Updates the service with the required service entry.
1830
- *
1831
- * @since 2.0.0
1832
- * @category context
1833
- */
1834
- const updateService = coreEffect.updateService;
1835
-
1836
- // -------------------------------------------------------------------------------------
1837
- // do notation
1838
- // -------------------------------------------------------------------------------------
1839
-
1840
- /**
1841
- * @since 2.0.0
1842
- * @category do notation
1843
- */
1844
- const Do = coreEffect.Do;
1845
-
1846
- /**
1847
- * Binds an effectful value in a `do` scope
1848
- *
1849
- * @since 2.0.0
1850
- * @category do notation
1851
- */
1852
- const bind = coreEffect.bind;
1853
-
1854
- /**
1855
- * @category do notation
1856
- * @since 2.0.0
1857
- */
1858
- const bindTo = coreEffect.bindTo;
1859
- const let_ = coreEffect.bindValue;
1860
-
1861
- // -------------------------------------------------------------------------------------
1862
- // conversions
1863
- // -------------------------------------------------------------------------------------
1864
-
1865
- /**
1866
- * Returns an effect whose failure and success have been lifted into an
1867
- * `Either`. The resulting effect cannot fail, because the failure case has
1868
- * been exposed as part of the `Either` success case.
1869
- *
1870
- * This method is useful for recovering from effects that may fail.
1871
- *
1872
- * The error parameter of the returned `Effect` is `never`, since it is
1873
- * guaranteed the effect does not model failure.
1874
- *
1875
- * @since 2.0.0
1876
- * @category conversions
1877
- */
1878
- const either = core.either;
1879
-
1880
- /**
1881
- * @since 2.0.0
1882
- * @category conversions
1883
- */
1884
- const exit = core.exit;
1885
-
1886
- /**
1887
- * @since 2.0.0
1888
- * @category conversions
1889
- */
1890
- const intoDeferred = core.intoDeferred;
1891
-
1892
- /**
1893
- * Executes this effect, skipping the error but returning optionally the
1894
- * success.
1895
- *
1896
- * @since 2.0.0
1897
- * @category conversions
1898
- */
1899
- const option = coreEffect.option;
1900
-
1901
- // -------------------------------------------------------------------------------------
1902
- // filtering & conditionals
1903
- // -------------------------------------------------------------------------------------
1904
-
1905
- const if_ = core.if_;
1906
-
1907
- /**
1908
- * Filter the specified effect with the provided function, dying with specified
1909
- * defect if the predicate fails.
1910
- *
1911
- * @since 2.0.0
1912
- * @category filtering & conditionals
1913
- */
1914
- const filterOrDie = coreEffect.filterOrDie;
1915
-
1916
- /**
1917
- * Filter the specified effect with the provided function, dying with specified
1918
- * message if the predicate fails.
1919
- *
1920
- * @since 2.0.0
1921
- * @category filtering & conditionals
1922
- */
1923
- const filterOrDieMessage = coreEffect.filterOrDieMessage;
1924
-
1925
- /**
1926
- * Filters the specified effect with the provided function returning the value
1927
- * of the effect if it is successful, otherwise returns the value of `orElse`.
1928
- *
1929
- * @since 2.0.0
1930
- * @category filtering & conditionals
1931
- */
1932
- const filterOrElse = coreEffect.filterOrElse;
1933
-
1934
- /**
1935
- * Filter the specified effect with the provided function, failing with specified
1936
- * error if the predicate fails.
1937
- *
1938
- * @since 2.0.0
1939
- * @category filtering & conditionals
1940
- */
1941
- const filterOrFail = coreEffect.filterOrFail;
1942
-
1943
- /**
1944
- * The moral equivalent of `if (!p) exp`.
1945
- *
1946
- * @since 2.0.0
1947
- * @category filtering & conditionals
1948
- */
1949
- const unless = coreEffect.unless;
1950
-
1951
- /**
1952
- * The moral equivalent of `if (!p) exp` when `p` has side-effects.
1953
- *
1954
- * @since 2.0.0
1955
- * @category filtering & conditionals
1956
- */
1957
- const unlessEffect = coreEffect.unlessEffect;
1958
-
1959
- /**
1960
- * The moral equivalent of `if (p) exp`.
1961
- *
1962
- * @since 2.0.0
1963
- * @category filtering & conditionals
1964
- */
1965
- const when = coreEffect.when;
1966
-
1967
- /**
1968
- * @since 2.0.0
1969
- * @category filtering & conditionals
1970
- */
1971
- const whenEffect = core.whenEffect;
1972
-
1973
- /**
1974
- * Executes this workflow when value of the specified `FiberRef` satisfies the
1975
- * predicate.
1976
- *
1977
- * @since 2.0.0
1978
- * @category filtering & conditionals
1979
- */
1980
- const whenFiberRef = coreEffect.whenFiberRef;
1981
-
1982
- /**
1983
- * Executes this workflow when the value of the `Ref` satisfies the predicate.
1984
- *
1985
- * @since 2.0.0
1986
- * @category filtering & conditionals
1987
- */
1988
- const whenRef = coreEffect.whenRef;
1989
-
1990
- // -------------------------------------------------------------------------------------
1991
- // sequencing
1992
- // -------------------------------------------------------------------------------------
1993
-
1994
- /**
1995
- * This function is a pipeable operator that maps over an `Effect` value,
1996
- * flattening the result of the mapping function into a new `Effect` value.
1997
- *
1998
- * @param f - The mapping function to apply to the `Effect` value.
1999
- * This function must return another `Effect` value.
2000
- *
2001
- * @returns A new `Effect` value that is the result of flattening the
2002
- * mapped `Effect` value.
2003
- *
2004
- * @since 2.0.0
2005
- * @category sequencing
2006
- */
2007
- const flatMap = core.flatMap;
2008
-
2009
- /**
2010
- * @since 2.0.0
2011
- * @category sequencing
2012
- */
2013
- const flatten = core.flatten;
2014
-
2015
- /**
2016
- * Returns an effect that races this effect with all the specified effects,
2017
- * yielding the value of the first effect to succeed with a value. Losers of
2018
- * the race will be interrupted immediately
2019
- *
2020
- * @since 2.0.0
2021
- * @category sequencing
2022
- */
2023
- const raceAll = fiberRuntime.raceAll;
2024
-
2025
- /**
2026
- * Returns an effect that races this effect with the specified effect,
2027
- * returning the first successful `A` from the faster side. If one effect
2028
- * succeeds, the other will be interrupted. If neither succeeds, then the
2029
- * effect will fail with some error.
2030
- *
2031
- * @since 2.0.0
2032
- * @category sequencing
2033
- */
2034
- const race = fiberRuntime.race;
2035
-
2036
- /**
2037
- * Returns an effect that races this effect with the specified effect,
2038
- * yielding the first result to complete, whether by success or failure. If
2039
- * neither effect completes, then the composed effect will not complete.
2040
- *
2041
- * WARNING: The raced effect will safely interrupt the "loser", but will not
2042
- * resume until the loser has been cleanly terminated. If early return is
2043
- * desired, then instead of performing `l raceFirst r`, perform
2044
- * `l.disconnect raceFirst r.disconnect`, which disconnects left and right
2045
- * interrupt signal, allowing a fast return, with interruption performed
2046
- * in the background.
2047
- *
2048
- * @since 2.0.0
2049
- * @category sequencing
2050
- */
2051
- const raceFirst = circular.raceFirst;
2052
-
2053
- /**
2054
- * Returns an effect that races this effect with the specified effect, calling
2055
- * the specified finisher as soon as one result or the other has been computed.
2056
- *
2057
- * @since 2.0.0
2058
- * @category sequencing
2059
- */
2060
- const raceWith = fiberRuntime.raceWith;
2061
-
2062
- /**
2063
- * Summarizes a effect by computing some value before and after execution, and
2064
- * then combining the values to produce a summary, together with the result of
2065
- * execution.
2066
- *
2067
- * @since 2.0.0
2068
- * @category sequencing
2069
- */
2070
- const summarized = coreEffect.summarized;
2071
-
2072
- /**
2073
- * @since 2.0.0
2074
- * @category sequencing
2075
- */
2076
- const tap = core.tap;
2077
-
2078
- /**
2079
- * Returns an effect that effectfully "peeks" at the failure or success of
2080
- * this effect.
2081
- *
2082
- * @since 2.0.0
2083
- * @category sequencing
2084
- */
2085
- const tapBoth = coreEffect.tapBoth;
2086
-
2087
- /**
2088
- * Returns an effect that effectually "peeks" at the defect of this effect.
2089
- *
2090
- * @since 2.0.0
2091
- * @category sequencing
2092
- */
2093
- const tapDefect = coreEffect.tapDefect;
2094
-
2095
- /**
2096
- * Returns an effect that effectfully "peeks" at the failure of this effect.
2097
- *
2098
- * @since 2.0.0
2099
- * @category sequencing
2100
- */
2101
- const tapError = coreEffect.tapError;
2102
-
2103
- /**
2104
- * Returns an effect that effectfully "peeks" at the specific tagged failure of this effect.
2105
- *
2106
- * @since 2.0.0
2107
- * @category sequencing
2108
- */
2109
- const tapErrorTag = coreEffect.tapErrorTag;
2110
-
2111
- /**
2112
- * Returns an effect that effectually "peeks" at the cause of the failure of
2113
- * this effect.
2114
- *
2115
- * @since 2.0.0
2116
- * @category sequencing
2117
- */
2118
- const tapErrorCause = coreEffect.tapErrorCause;
2119
-
2120
- // -------------------------------------------------------------------------------------
2121
- // repetition / recursion
2122
- // -------------------------------------------------------------------------------------
2123
-
2124
- /**
2125
- * Repeats this effect forever (until the first error).
2126
- *
2127
- * @since 2.0.0
2128
- * @category repetition / recursion
2129
- */
2130
- const forever = coreEffect.forever;
2131
-
2132
- /**
2133
- * Iterates with the specified effectual function. The moral equivalent of:
2134
- *
2135
- * ```ts
2136
- * let s = initial
2137
- *
2138
- * while (cont(s)) {
2139
- * s = body(s)
2140
- * }
2141
- *
2142
- * return s
2143
- * ```
2144
- *
2145
- * @since 2.0.0
2146
- * @category repetition / recursion
2147
- */
2148
- const iterate = coreEffect.iterate;
2149
-
2150
- /**
2151
- * Loops with the specified effectual function, collecting the results into a
2152
- * list. The moral equivalent of:
2153
- *
2154
- * ```ts
2155
- * let s = initial
2156
- * let as = [] as readonly A[]
2157
- *
2158
- * while (cont(s)) {
2159
- * as = [body(s), ...as]
2160
- * s = inc(s)
2161
- * }
2162
- *
2163
- * A.reverse(as)
2164
- * ```
2165
- *
2166
- * @since 2.0.0
2167
- * @category repetition / recursion
2168
- */
2169
- const loop = coreEffect.loop;
2170
-
2171
- /**
2172
- * Returns a new effect that repeats this effect according to the specified
2173
- * schedule or until the first failure. Scheduled recurrences are in addition
2174
- * to the first execution, so that `io.repeat(Schedule.once)` yields an effect
2175
- * that executes `io`, and then if that succeeds, executes `io` an additional
2176
- * time.
2177
- *
2178
- * @since 2.0.0
2179
- * @category repetition / recursion
2180
- */
2181
- const repeat = schedule$1.repeat_Effect;
2182
-
2183
- /**
2184
- * Returns a new effect that repeats this effect the specified number of times
2185
- * or until the first failure. Repeats are in addition to the first execution,
2186
- * so that `io.repeatN(1)` yields an effect that executes `io`, and then if
2187
- * that succeeds, executes `io` an additional time.
2188
- *
2189
- * @since 2.0.0
2190
- * @category repetition / recursion
2191
- */
2192
- const repeatN = coreEffect.repeatN;
2193
-
2194
- /**
2195
- * Returns a new effect that repeats this effect according to the specified
2196
- * schedule or until the first failure, at which point, the failure value and
2197
- * schedule output are passed to the specified handler.
2198
- *
2199
- * Scheduled recurrences are in addition to the first execution, so that
2200
- * `pipe(effect, Effect.repeat(Schedule.once()))` yields an effect that executes
2201
- * `effect`, and then if that succeeds, executes `effect` an additional time.
2202
- *
2203
- * @since 2.0.0
2204
- * @category repetition / recursion
2205
- */
2206
- const repeatOrElse = schedule$1.repeatOrElse_Effect;
2207
-
2208
- /**
2209
- * Repeats this effect until its value satisfies the specified predicate or
2210
- * until the first failure.
2211
- *
2212
- * @since 2.0.0
2213
- * @category repetition / recursion
2214
- */
2215
- const repeatUntil = schedule$1.repeatUntil_Effect;
2216
-
2217
- /**
2218
- * Repeats this effect until its value satisfies the specified effectful
2219
- * predicate or until the first failure.
2220
- *
2221
- * @since 2.0.0
2222
- * @category repetition / recursion
2223
- */
2224
- const repeatUntilEffect = schedule$1.repeatUntilEffect_Effect;
2225
-
2226
- /**
2227
- * Repeats this effect while its value satisfies the specified effectful
2228
- * predicate or until the first failure.
2229
- *
2230
- * @since 2.0.0
2231
- * @category repetition / recursion
2232
- */
2233
- const repeatWhile = schedule$1.repeatWhile_Effect;
2234
-
2235
- /**
2236
- * Repeats this effect while its value satisfies the specified effectful
2237
- * predicate or until the first failure.
2238
- *
2239
- * @since 2.0.0
2240
- * @category repetition / recursion
2241
- */
2242
- const repeatWhileEffect = schedule$1.repeatWhileEffect_Effect;
2243
-
2244
- /**
2245
- * Runs this effect according to the specified schedule.
2246
- *
2247
- * See `scheduleFrom` for a variant that allows the schedule's decision to
2248
- * depend on the result of this effect.
2249
- *
2250
- * @since 2.0.0
2251
- * @category repetition / recursion
2252
- */
2253
- const schedule = schedule$1.schedule_Effect;
2254
-
2255
- /**
2256
- * Runs this effect according to the specified schedule in a new fiber
2257
- * attached to the current scope.
2258
- *
2259
- * @since 2.0.0
2260
- * @category repetition / recursion
2261
- */
2262
- const scheduleForked = circular.scheduleForked;
2263
-
2264
- /**
2265
- * Runs this effect according to the specified schedule starting from the
2266
- * specified input value.
2267
- *
2268
- * @since 2.0.0
2269
- * @category repetition / recursion
2270
- */
2271
- const scheduleFrom = schedule$1.scheduleFrom_Effect;
2272
-
2273
- /**
2274
- * @since 2.0.0
2275
- * @category repetition / recursion
2276
- */
2277
- const whileLoop = core.whileLoop;
2278
-
2279
- // -------------------------------------------------------------------------------------
2280
- // fiber refs
2281
- // -------------------------------------------------------------------------------------
2282
-
2283
- /**
2284
- * Returns a collection of all `FiberRef` values for the fiber running this
2285
- * effect.
2286
- *
2287
- * @since 2.0.0
2288
- * @category fiber refs
2289
- */
2290
- const getFiberRefs = coreEffect.fiberRefs;
2291
-
2292
- /**
2293
- * Inherits values from all `FiberRef` instances into current fiber.
2294
- *
2295
- * @since 2.0.0
2296
- * @category fiber refs
2297
- */
2298
- const inheritFiberRefs = coreEffect.inheritFiberRefs;
2299
-
2300
- /**
2301
- * @since 2.0.0
2302
- * @category fiber refs
2303
- */
2304
- const locally = core.fiberRefLocally;
2305
-
2306
- /**
2307
- * @since 2.0.0
2308
- * @category fiber refs
2309
- */
2310
- const locallyWith = core.fiberRefLocallyWith;
2311
-
2312
- /**
2313
- * @since 2.0.0
2314
- * @category fiber refs
2315
- */
2316
- const locallyScoped = fiberRuntime.fiberRefLocallyScoped;
2317
-
2318
- /**
2319
- * @since 2.0.0
2320
- * @category fiber refs
2321
- */
2322
- const locallyScopedWith = fiberRuntime.fiberRefLocallyScopedWith;
2323
-
2324
- /**
2325
- * Applies the specified changes to the `FiberRef` values for the fiber
2326
- * running this workflow.
2327
- *
2328
- * @since 2.0.0
2329
- * @category fiber refs
2330
- */
2331
- const patchFiberRefs = coreEffect.patchFiberRefs;
2332
-
2333
- /**
2334
- * Sets the `FiberRef` values for the fiber running this effect to the values
2335
- * in the specified collection of `FiberRef` values.
2336
- *
2337
- * @since 2.0.0
2338
- * @category fiber refs
2339
- */
2340
- const setFiberRefs = coreEffect.setFiberRefs;
2341
-
2342
- /**
2343
- * Updates the `FiberRef` values for the fiber running this effect using the
2344
- * specified function.
2345
- *
2346
- * @since 2.0.0
2347
- * @category fiber refs
2348
- */
2349
- const updateFiberRefs = coreEffect.updateFiberRefs;
2350
-
2351
- // -------------------------------------------------------------------------------------
2352
- // getters & folding
2353
- // -------------------------------------------------------------------------------------
2354
-
2355
- /**
2356
- * Returns `true` if this effect is a failure, `false` otherwise.
2357
- *
2358
- * @since 2.0.0
2359
- * @category getters & folding
2360
- */
2361
- const isFailure = coreEffect.isFailure;
2362
-
2363
- /**
2364
- * Returns `true` if this effect is a success, `false` otherwise.
2365
- *
2366
- * @since 2.0.0
2367
- * @category getters & folding
2368
- */
2369
- const isSuccess = coreEffect.isSuccess;
2370
-
2371
- /**
2372
- * Folds over the failure value or the success value to yield an effect that
2373
- * does not fail, but succeeds with the value returned by the left or right
2374
- * function passed to `match`.
2375
- *
2376
- * @since 2.0.0
2377
- * @category getters & folding
2378
- */
2379
- const match = coreEffect.match;
2380
-
2381
- /**
2382
- * @since 2.0.0
2383
- * @category getters & folding
2384
- */
2385
- const matchCause = core.matchCause;
2386
-
2387
- /**
2388
- * @since 2.0.0
2389
- * @category getters & folding
2390
- */
2391
- const matchCauseEffect = core.matchCauseEffect;
2392
-
2393
- /**
2394
- * @since 2.0.0
2395
- * @category getters & folding
2396
- */
2397
- const matchEffect = core.matchEffect;
2398
-
2399
- // -------------------------------------------------------------------------------------
2400
- // logging
2401
- // -------------------------------------------------------------------------------------
2402
-
2403
- /**
2404
- * Logs the specified message or cause at the current log level.
2405
- *
2406
- * You can set the current log level using `FiberRef.currentLogLevel`.
2407
- *
2408
- * @since 2.0.0
2409
- * @category logging
2410
- */
2411
- const log = coreEffect.log;
2412
-
2413
- /**
2414
- * Logs the specified message or cause at the Trace log level.
2415
- *
2416
- * @since 2.0.0
2417
- * @category logging
2418
- */
2419
- const logTrace = coreEffect.logTrace;
2420
-
2421
- /**
2422
- * Logs the specified message or cause at the Debug log level.
2423
- *
2424
- * @since 2.0.0
2425
- * @category logging
2426
- */
2427
- const logDebug = coreEffect.logDebug;
2428
-
2429
- /**
2430
- * Logs the specified message or cause at the Info log level.
2431
- *
2432
- * @since 2.0.0
2433
- * @category logging
2434
- */
2435
- const logInfo = coreEffect.logInfo;
2436
-
2437
- /**
2438
- * Logs the specified message or cause at the Warning log level.
2439
- *
2440
- * @since 2.0.0
2441
- * @category logging
2442
- */
2443
- const logWarning = coreEffect.logWarning;
2444
-
2445
- /**
2446
- * Logs the specified message or cause at the Error log level.
2447
- *
2448
- * @since 2.0.0
2449
- * @category logging
2450
- */
2451
- const logError = coreEffect.logError;
2452
-
2453
- /**
2454
- * Logs the specified message or cause at the Fatal log level.
2455
- *
2456
- * @since 2.0.0
2457
- * @category logging
2458
- */
2459
- const logFatal = coreEffect.logFatal;
2460
-
2461
- /**
2462
- * Adjusts the label for the current logging span.
2463
- *
2464
- * @since 2.0.0
2465
- * @category logging
2466
- */
2467
- const withLogSpan = coreEffect.withLogSpan;
2468
-
2469
- /**
2470
- * Annotates each log in this effect with the specified log annotation.
2471
- *
2472
- * @since 2.0.0
2473
- * @category logging
2474
- */
2475
- const annotateLogs = coreEffect.annotateLogs;
2476
-
2477
- /**
2478
- * Retrieves the log annotations associated with the current scope.
2479
- *
2480
- * @since 2.0.0
2481
- * @category logging
2482
- */
2483
- const logAnnotations = coreEffect.logAnnotations;
2484
-
2485
- /**
2486
- * Decides wether child fibers will report or not unhandled errors via the logger
2487
- *
2488
- * @since 2.0.0
2489
- * @category logging
2490
- */
2491
- const withUnhandledErrorLogLevel = core.withUnhandledErrorLogLevel;
2492
-
2493
- /**
2494
- * @since 2.0.0
2495
- * @category logging
2496
- */
2497
- const setUnhandledErrorLogLevel = level => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(core.currentUnhandledErrorLogLevel, level));
2498
-
2499
- // -------------------------------------------------------------------------------------
2500
- // alternatives
2501
- // -------------------------------------------------------------------------------------
2502
-
2503
- /**
2504
- * Translates effect failure into death of the fiber, making all failures
2505
- * unchecked and not a part of the type of the effect.
2506
- *
2507
- * @since 2.0.0
2508
- * @category alternatives
2509
- */
2510
- const orDie = core.orDie;
2511
-
2512
- /**
2513
- * Keeps none of the errors, and terminates the fiber with them, using the
2514
- * specified function to convert the `E` into a `Throwable`.
2515
- *
2516
- * @since 2.0.0
2517
- * @category alternatives
2518
- */
2519
- const orDieWith = core.orDieWith;
2520
-
2521
- /**
2522
- * Executes this effect and returns its value, if it succeeds, but otherwise
2523
- * executes the specified effect.
2524
- *
2525
- * @since 2.0.0
2526
- * @category alternatives
2527
- */
2528
- const orElse = core.orElse;
2529
-
2530
- /**
2531
- * Executes this effect and returns its value, if it succeeds, but otherwise
2532
- * fails with the specified error.
2533
- *
2534
- * @since 2.0.0
2535
- * @category alternatives
2536
- */
2537
- const orElseFail = coreEffect.orElseFail;
2538
-
2539
- /**
2540
- * Executes this effect and returns its value, if it succeeds, but
2541
- * otherwise succeeds with the specified value.
2542
- *
2543
- * @since 2.0.0
2544
- * @category alternatives
2545
- */
2546
- const orElseSucceed = coreEffect.orElseSucceed;
2547
-
2548
- // -------------------------------------------------------------------------------------
2549
- // random
2550
- // -------------------------------------------------------------------------------------
2551
-
2552
- /**
2553
- * Retreives the `Random` service from the context.
2554
- *
2555
- * @since 2.0.0
2556
- * @category random
2557
- */
2558
- const random = coreEffect.random;
2559
-
2560
- /**
2561
- * Retreives the `Random` service from the context and uses it to run the
2562
- * specified workflow.
2563
- *
2564
- * @since 2.0.0
2565
- * @category random
2566
- */
2567
- const randomWith = defaultServices.randomWith;
2568
-
2569
- // -------------------------------------------------------------------------------------
2570
- // runtime
2571
- // -------------------------------------------------------------------------------------
2572
-
2573
- /**
2574
- * Returns an effect that accesses the runtime, which can be used to
2575
- * (unsafely) execute tasks. This is useful for integration with legacy code
2576
- * that must call back into Effect code.
2577
- *
2578
- * @since 2.0.0
2579
- * @category runtime
2580
- */
2581
- const runtime = runtime$1.runtime;
2582
-
2583
- /**
2584
- * Retrieves an effect that succeeds with the current runtime flags, which
2585
- * govern behavior and features of the runtime system.
2586
- *
2587
- * @since 2.0.0
2588
- * @category runtime
2589
- */
2590
- const getRuntimeFlags = core.runtimeFlags;
2591
-
2592
- /**
2593
- * @since 2.0.0
2594
- * @category runtime
2595
- */
2596
- const patchRuntimeFlags = core.updateRuntimeFlags;
2597
-
2598
- /**
2599
- * @since 2.0.0
2600
- * @category runtime
2601
- */
2602
- const withRuntimeFlagsPatch = core.withRuntimeFlags;
2603
-
2604
- /**
2605
- * @since 2.0.0
2606
- * @category runtime
2607
- */
2608
- const withRuntimeFlagsPatchScoped = fiberRuntime.withRuntimeFlagsScoped;
2609
-
2610
- // -------------------------------------------------------------------------------------
2611
- // metrics
2612
- // -------------------------------------------------------------------------------------
2613
-
2614
- /**
2615
- * Tags each metric in this effect with the specific tag.
2616
- *
2617
- * @since 2.0.0
2618
- * @category metrics
2619
- */
2620
- const tagMetrics = coreEffect.tagMetrics;
2621
-
2622
- /**
2623
- * Tags each metric in this effect with the specific tag.
2624
- *
2625
- * @since 2.0.0
2626
- * @category metrics
2627
- */
2628
- const labelMetrics = coreEffect.labelMetrics;
2629
-
2630
- /**
2631
- * Tags each metric in this effect with the specific tag.
2632
- *
2633
- * @since 2.0.0
2634
- * @category metrics
2635
- */
2636
- const labelMetricsSet = coreEffect.labelMetricsSet;
2637
-
2638
- /**
2639
- * Tags each metric in a scope with a the specific tag.
2640
- *
2641
- * @since 2.0.0
2642
- * @category metrics
2643
- */
2644
- const tagMetricsScoped = fiberRuntime.tagMetricsScoped;
2645
-
2646
- /**
2647
- * Tags each metric in a scope with a the specific tag.
2648
- *
2649
- * @since 2.0.0
2650
- * @category metrics
2651
- */
2652
- const labelMetricsScoped = fiberRuntime.labelMetricsScoped;
2653
-
2654
- /**
2655
- * Tags each metric in a scope with a the specific tag.
2656
- *
2657
- * @since 2.0.0
2658
- * @category metrics
2659
- */
2660
- const labelMetricsScopedSet = fiberRuntime.labelMetricsScopedSet;
2661
-
2662
- /**
2663
- * Retrieves the metric labels associated with the current scope.
2664
- *
2665
- * @since 2.0.0
2666
- * @category metrics
2667
- */
2668
- const metricLabels = core.metricLabels;
2669
-
2670
- /**
2671
- * @since 2.0.0
2672
- * @category metrics
2673
- */
2674
- const withMetric = coreEffect.withMetric;
2675
-
2676
- // -------------------------------------------------------------------------------------
2677
- // unify
2678
- // -------------------------------------------------------------------------------------
2679
-
2680
- /**
2681
- * Used to unify functions that would otherwise return `Effect<A, B, C> | Effect<D, E, F>`
2682
- *
2683
- * @category unify
2684
- * @since 2.0.0
2685
- */
2686
- const unifiedFn = core.unified;
2687
-
2688
- /**
2689
- * Used to unify effects that would otherwise be `Effect<A, B, C> | Effect<D, E, F>`
2690
- *
2691
- * @category unify
2692
- * @since 2.0.0
2693
- */
2694
- const unified = Function_dist_effectFunction.identity;
2695
-
2696
- // -------------------------------------------------------------------------------------
2697
- // semaphore
2698
- // -------------------------------------------------------------------------------------
2699
-
2700
- /**
2701
- * @category semaphore
2702
- * @since 2.0.0
2703
- */
2704
- /**
2705
- * @category semaphore
2706
- * @since 2.0.0
2707
- */
2708
- /**
2709
- * Unsafely creates a new Semaphore
2710
- *
2711
- * @since 2.0.0
2712
- * @category semaphore
2713
- */
2714
- const unsafeMakeSemaphore = circular.unsafeMakeSemaphore;
2715
-
2716
- /**
2717
- * Creates a new Semaphore
2718
- *
2719
- * @since 2.0.0
2720
- * @category semaphore
2721
- */
2722
- const makeSemaphore = circular.makeSemaphore;
2723
-
2724
- // -------------------------------------------------------------------------------------
2725
- // execution
2726
- // -------------------------------------------------------------------------------------
2727
-
2728
- /**
2729
- * @since 2.0.0
2730
- * @category execution
2731
- */
2732
- const runFork = runtime$1.unsafeForkEffect;
2733
-
2734
- /**
2735
- * @since 2.0.0
2736
- * @category execution
2737
- */
2738
- const runCallback = runtime$1.unsafeRunEffect;
2739
-
2740
- /**
2741
- * Runs an `Effect` workflow, returning a `Promise` which resolves with the
2742
- * result of the workflow or rejects with an error.
2743
- *
2744
- * @since 2.0.0
2745
- * @category execution
2746
- */
2747
- const runPromise = runtime$1.unsafeRunPromiseEffect;
2748
-
2749
- /**
2750
- * Runs an `Effect` workflow, returning a `Promise` which resolves with the
2751
- * `Exit` value of the workflow.
2752
- *
2753
- * @since 2.0.0
2754
- * @category execution
2755
- */
2756
- const runPromiseExit = runtime$1.unsafeRunPromiseExitEffect;
2757
-
2758
- /**
2759
- * @since 2.0.0
2760
- * @category execution
2761
- */
2762
- const runSync = runtime$1.unsafeRunSyncEffect;
2763
-
2764
- /**
2765
- * @since 2.0.0
2766
- * @category execution
2767
- */
2768
- const runSyncExit = runtime$1.unsafeRunSyncExitEffect;
2769
-
2770
- // -------------------------------------------------------------------------------------
2771
- // zipping
2772
- // -------------------------------------------------------------------------------------
2773
-
2774
- /**
2775
- * Sequentially zips the this result with the specified result. Combines both
2776
- * `Cause`s when both effects fail.
2777
- *
2778
- * @since 2.0.0
2779
- * @category zipping
2780
- */
2781
- const validate = fiberRuntime.validate;
2782
-
2783
- /**
2784
- * Sequentially zips this effect with the specified effect using the specified
2785
- * combiner function. Combines the causes in case both effect fail.
2786
- *
2787
- * @since 2.0.0
2788
- * @category zipping
2789
- */
2790
- const validateWith = fiberRuntime.validateWith;
2791
-
2792
- /**
2793
- * @since 2.0.0
2794
- * @category zipping
2795
- */
2796
- const zip = fiberRuntime.zipOptions;
2797
-
2798
- /**
2799
- * @since 2.0.0
2800
- * @category zipping
2801
- */
2802
- const zipLeft = fiberRuntime.zipLeftOptions;
2803
-
2804
- /**
2805
- * @since 2.0.0
2806
- * @category zipping
2807
- */
2808
- const zipRight = fiberRuntime.zipRightOptions;
2809
-
2810
- /**
2811
- * @since 2.0.0
2812
- * @category zipping
2813
- */
2814
- const zipWith = fiberRuntime.zipWithOptions;
2815
-
2816
- // -------------------------------------------------------------------------------------
2817
- // requests & batching
2818
- // -------------------------------------------------------------------------------------
2819
-
2820
- /**
2821
- * @category requests & batching
2822
- * @since 2.0.0
2823
- */
2824
- const blocked = core.blocked;
2825
-
2826
- /**
2827
- * @category requests & batching
2828
- * @since 2.0.0
2829
- */
2830
- const runRequestBlock = core.runRequestBlock;
2831
-
2832
- /**
2833
- * @category requests & batching
2834
- * @since 2.0.0
2835
- */
2836
- const step = core.step;
2837
-
2838
- /**
2839
- * @category requests & batching
2840
- * @since 2.0.0
2841
- */
2842
- const flatMapStep = core.flatMapStep;
2843
-
2844
- /**
2845
- * @since 2.0.0
2846
- * @category requests & batching
2847
- */
2848
- const request = query.fromRequest;
2849
-
2850
- /**
2851
- * @since 2.0.0
2852
- * @category requests & batching
2853
- */
2854
- const cacheRequestResult = query.cacheRequest;
2855
-
2856
- /**
2857
- * @since 2.0.0
2858
- * @category requests & batching
2859
- */
2860
- const withRequestBatching = core.withRequestBatching;
2861
-
2862
- /**
2863
- * @since 2.0.0
2864
- * @category requests & batching
2865
- */
2866
- const setRequestBatching = requestBatching => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(core.currentRequestBatching, requestBatching));
2867
-
2868
- /**
2869
- * @since 2.0.0
2870
- * @category requests & batching
2871
- */
2872
- const setRequestCaching = requestCaching => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(query.currentCacheEnabled, requestCaching));
2873
-
2874
- /**
2875
- * @since 2.0.0
2876
- * @category requests & batching
2877
- */
2878
- const setRequestCache = cache => layer.scopedDiscard(core.isEffect(cache) ? core.flatMap(cache, x => fiberRuntime.fiberRefLocallyScoped(query.currentCache, x)) : fiberRuntime.fiberRefLocallyScoped(query.currentCache, cache));
2879
-
2880
- /**
2881
- * @since 2.0.0
2882
- * @category requests & batching
2883
- */
2884
- const withRequestCaching = query.withRequestCaching;
2885
-
2886
- /**
2887
- * @since 2.0.0
2888
- * @category requests & batching
2889
- */
2890
- const withRequestCache = query.withRequestCache;
2891
-
2892
- // -------------------------------------------------------------------------------------
2893
- // tracing
2894
- // -------------------------------------------------------------------------------------
2895
-
2896
- /**
2897
- * Create a Layer that sets the current Tracer
2898
- *
2899
- * @since 2.0.0
2900
- * @category tracing
2901
- */
2902
- const setTracer = circular$1.setTracer;
2903
-
2904
- /**
2905
- * @since 2.0.0
2906
- * @category tracing
2907
- */
2908
- const tracer = coreEffect.tracer;
2909
-
2910
- /**
2911
- * @since 2.0.0
2912
- * @category tracing
2913
- */
2914
- const tracerWith = defaultServices.tracerWith;
2915
-
2916
- /**
2917
- * @since 2.0.0
2918
- * @category tracing
2919
- */
2920
- const withTracer = defaultServices.withTracer;
2921
-
2922
- /**
2923
- * @since 2.0.0
2924
- * @category tracing
2925
- */
2926
- const withTracerScoped = fiberRuntime.withTracerScoped;
2927
-
2928
- /**
2929
- * @since 2.0.0
2930
- * @category tracing
2931
- */
2932
- const withTracerTiming = core.withTracerTiming;
2933
-
2934
- /**
2935
- * @since 2.0.0
2936
- * @category tracing
2937
- */
2938
- const setTracerTiming = enabled => layer.scopedDiscard(fiberRuntime.fiberRefLocallyScoped(core.currentTracerTimingEnabled, enabled));
2939
-
2940
- /**
2941
- * Adds an annotation to each span in this effect.
2942
- *
2943
- * @since 2.0.0
2944
- * @category tracing
2945
- */
2946
- const annotateSpans = coreEffect.annotateSpans;
2947
-
2948
- /**
2949
- * Adds an annotation to the current span if available
2950
- *
2951
- * @since 2.0.0
2952
- * @category tracing
2953
- */
2954
- const annotateCurrentSpan = coreEffect.annotateCurrentSpan;
2955
-
2956
- /**
2957
- * @since 2.0.0
2958
- * @category tracing
2959
- */
2960
- const currentSpan = coreEffect.currentSpan;
2961
-
2962
- /**
2963
- * @since 2.0.0
2964
- * @category tracing
2965
- */
2966
- const currentParentSpan = coreEffect.currentParentSpan;
2967
-
2968
- /**
2969
- * @since 2.0.0
2970
- * @category tracing
2971
- */
2972
- const spanAnnotations = coreEffect.spanAnnotations;
2973
-
2974
- /**
2975
- * @since 2.0.0
2976
- * @category tracing
2977
- */
2978
- const spanLinks = coreEffect.spanLinks;
2979
-
2980
- /**
2981
- * For all spans in this effect, add a link with the provided span.
2982
- *
2983
- * @since 2.0.0
2984
- * @category tracing
2985
- */
2986
- const linkSpans = coreEffect.linkSpans;
2987
-
2988
- /**
2989
- * Create a new span for tracing.
2990
- *
2991
- * @since 2.0.0
2992
- * @category tracing
2993
- */
2994
- const makeSpan = coreEffect.makeSpan;
2995
-
2996
- /**
2997
- * Adds the provided span to the span stack.
2998
- *
2999
- * @since 2.0.0
3000
- * @category tracing
3001
- */
3002
- const setParentSpan = circular$1.setParentSpan;
3003
-
3004
- /**
3005
- * Create and add a span to the current span stack.
3006
- *
3007
- * The span is ended when the Layer is released.
3008
- *
3009
- * @since 2.0.0
3010
- * @category tracing
3011
- */
3012
- const setSpan = circular$1.setSpan;
3013
-
3014
- /**
3015
- * Create a new span for tracing, and automatically close it when the effect
3016
- * completes.
3017
- *
3018
- * The span is not added to the current span stack, so no child spans will be
3019
- * created for it.
3020
- *
3021
- * @since 2.0.0
3022
- * @category tracing
3023
- */
3024
- const useSpan = coreEffect.useSpan;
3025
-
3026
- /**
3027
- * Create a new span for tracing, and automatically close it when the Scope
3028
- * finalizes.
3029
- *
3030
- * The span is not added to the current span stack, so no child spans will be
3031
- * created for it.
3032
- *
3033
- * @since 2.0.0
3034
- * @category tracing
3035
- */
3036
- const useSpanScoped = fiberRuntime.useSpanScoped;
3037
-
3038
- /**
3039
- * Wraps the effect with a new span for tracing.
3040
- *
3041
- * @since 2.0.0
3042
- * @category tracing
3043
- */
3044
- const withSpan = coreEffect.withSpan;
3045
-
3046
- /**
3047
- * Create and add a span to the current span stack.
3048
- *
3049
- * The span is ended when the Scope is finalized.
3050
- *
3051
- * @since 2.0.0
3052
- * @category tracing
3053
- */
3054
- const withSpanScoped = fiberRuntime.withSpanScoped;
3055
-
3056
- /**
3057
- * Adds the provided span to the current span stack.
3058
- *
3059
- * @since 2.0.0
3060
- * @category tracing
3061
- */
3062
- const withParentSpan = coreEffect.withParentSpan;
3063
-
3064
- /**
3065
- * Adds the provided span to the current span stack.
3066
- *
3067
- * @since 2.0.0
3068
- * @category tracing
3069
- */
3070
- const withParentSpanScoped = fiberRuntime.withParentSpanScoped;
3071
-
3072
- // -------------------------------------------------------------------------------------
3073
- // optionality
3074
- // -------------------------------------------------------------------------------------
3075
-
3076
- /**
3077
- * Returns an effect that errors with `NoSuchElementException` if the value is
3078
- * null or undefined, otherwise succeeds with the value.
3079
- *
3080
- * @since 2.0.0
3081
- * @category optionality
3082
- */
3083
- const fromNullable = coreEffect.fromNullable;
3084
-
3085
- /**
3086
- * Wraps the success value of this effect with `Option.some`, and maps
3087
- * `Cause.NoSuchElementException` to `Option.none`.
3088
- *
3089
- * @since 2.0.0
3090
- * @category optionality
3091
- */
3092
- const optionFromOptional = coreEffect.optionFromOptional;
3093
-
3094
- var Effect = /*#__PURE__*/Object.freeze({
3095
- __proto__: null,
3096
- EffectTypeId: EffectTypeId,
3097
- isEffect: isEffect,
3098
- cachedWithTTL: cachedWithTTL,
3099
- cachedInvalidateWithTTL: cachedInvalidateWithTTL,
3100
- cached: cached,
3101
- cachedFunction: cachedFunction,
3102
- once: once,
3103
- all: all,
3104
- allWith: allWith,
3105
- allSuccesses: allSuccesses,
3106
- dropUntil: dropUntil,
3107
- dropWhile: dropWhile,
3108
- every: every,
3109
- exists: exists,
3110
- filter: filter,
3111
- findFirst: findFirst,
3112
- firstSuccessOf: firstSuccessOf,
3113
- forEach: forEach,
3114
- head: head,
3115
- mergeAll: mergeAll,
3116
- partition: partition,
3117
- reduce: reduce,
3118
- reduceEffect: reduceEffect,
3119
- reduceRight: reduceRight,
3120
- reduceWhile: reduceWhile,
3121
- replicate: replicate,
3122
- replicateEffect: replicateEffect,
3123
- takeUntil: takeUntil,
3124
- takeWhile: takeWhile,
3125
- validateAll: validateAll,
3126
- validateFirst: validateFirst,
3127
- async: async,
3128
- asyncEffect: asyncEffect,
3129
- asyncOption: asyncOption,
3130
- asyncEither: asyncEither,
3131
- fail: fail,
3132
- failSync: failSync,
3133
- failCause: failCause,
3134
- failCauseSync: failCauseSync,
3135
- die: die,
3136
- dieMessage: dieMessage,
3137
- dieSync: dieSync,
3138
- gen: gen,
3139
- never: never,
3140
- none: none,
3141
- promise: promise,
3142
- succeed: succeed,
3143
- succeedNone: succeedNone,
3144
- succeedSome: succeedSome,
3145
- suspend: suspend,
3146
- sync: sync,
3147
- unit: unit,
3148
- yieldNow: yieldNow,
3149
- 'catch': _catch,
3150
- catchAll: catchAll,
3151
- catchAllCause: catchAllCause,
3152
- catchAllDefect: catchAllDefect,
3153
- catchIf: catchIf,
3154
- catchSome: catchSome,
3155
- catchSomeCause: catchSomeCause,
3156
- catchSomeDefect: catchSomeDefect,
3157
- catchTag: catchTag,
3158
- catchTags: catchTags,
3159
- cause: cause,
3160
- eventually: eventually,
3161
- ignore: ignore,
3162
- ignoreLogged: ignoreLogged,
3163
- parallelErrors: parallelErrors,
3164
- sandbox: sandbox,
3165
- retry: retry,
3166
- retryN: retryN,
3167
- retryOrElse: retryOrElse,
3168
- retryUntil: retryUntil,
3169
- retryUntilEffect: retryUntilEffect,
3170
- retryWhile: retryWhile,
3171
- retryWhileEffect: retryWhileEffect,
3172
- 'try': try_,
3173
- tryMap: tryMap,
3174
- tryMapPromise: tryMapPromise,
3175
- tryPromise: tryPromise,
3176
- unsandbox: unsandbox,
3177
- allowInterrupt: allowInterrupt,
3178
- checkInterruptible: checkInterruptible,
3179
- disconnect: disconnect,
3180
- interrupt: interrupt,
3181
- interruptWith: interruptWith,
3182
- interruptible: interruptible,
3183
- interruptibleMask: interruptibleMask,
3184
- onInterrupt: onInterrupt,
3185
- uninterruptible: uninterruptible,
3186
- uninterruptibleMask: uninterruptibleMask,
3187
- as: as,
3188
- asSome: asSome,
3189
- asSomeError: asSomeError,
3190
- asUnit: asUnit,
3191
- flip: flip,
3192
- flipWith: flipWith,
3193
- map: map,
3194
- mapAccum: mapAccum,
3195
- mapBoth: mapBoth,
3196
- mapError: mapError,
3197
- mapErrorCause: mapErrorCause,
3198
- merge: merge,
3199
- negate: negate,
3200
- acquireRelease: acquireRelease,
3201
- acquireReleaseInterruptible: acquireReleaseInterruptible,
3202
- acquireUseRelease: acquireUseRelease,
3203
- addFinalizer: addFinalizer,
3204
- ensuring: ensuring,
3205
- onError: onError,
3206
- onExit: onExit,
3207
- parallelFinalizers: parallelFinalizers,
3208
- finalizersMask: finalizersMask,
3209
- sequentialFinalizers: sequentialFinalizers,
3210
- scope: scope,
3211
- scopeWith: scopeWith,
3212
- scoped: scoped,
3213
- using: using,
3214
- withEarlyRelease: withEarlyRelease,
3215
- awaitAllChildren: awaitAllChildren,
3216
- daemonChildren: daemonChildren,
3217
- descriptor: descriptor,
3218
- descriptorWith: descriptorWith,
3219
- diffFiberRefs: diffFiberRefs,
3220
- ensuringChild: ensuringChild,
3221
- ensuringChildren: ensuringChildren,
3222
- fiberId: fiberId,
3223
- fiberIdWith: fiberIdWith,
3224
- fork: fork,
3225
- forkDaemon: forkDaemon,
3226
- forkAll: forkAll,
3227
- forkIn: forkIn,
3228
- forkScoped: forkScoped,
3229
- forkWithErrorHandler: forkWithErrorHandler,
3230
- fromFiber: fromFiber,
3231
- fromFiberEffect: fromFiberEffect,
3232
- supervised: supervised,
3233
- transplant: transplant,
3234
- withConcurrency: withConcurrency,
3235
- setScheduler: setScheduler,
3236
- withScheduler: withScheduler,
3237
- withSchedulingPriority: withSchedulingPriority,
3238
- withMaxOpsBeforeYield: withMaxOpsBeforeYield,
3239
- clock: clock,
3240
- clockWith: clockWith,
3241
- setClock: setClock,
3242
- withClockScoped: withClockScoped,
3243
- withClock: withClock,
3244
- delay: delay,
3245
- sleep: sleep,
3246
- timed: timed,
3247
- timedWith: timedWith,
3248
- timeout: timeout,
3249
- timeoutFail: timeoutFail,
3250
- timeoutFailCause: timeoutFailCause,
3251
- timeoutTo: timeoutTo,
3252
- config: config,
3253
- configProviderWith: configProviderWith,
3254
- setConfigProvider: setConfigProvider,
3255
- withConfigProvider: withConfigProvider,
3256
- withConfigProviderScoped: withConfigProviderScoped,
3257
- context: context,
3258
- contextWith: contextWith,
3259
- contextWithEffect: contextWithEffect,
3260
- mapInputContext: mapInputContext,
3261
- provide: provide,
3262
- provideService: provideService,
3263
- provideServiceEffect: provideServiceEffect,
3264
- serviceFunction: serviceFunction,
3265
- serviceFunctionEffect: serviceFunctionEffect,
3266
- serviceFunctions: serviceFunctions,
3267
- serviceConstants: serviceConstants,
3268
- serviceMembers: serviceMembers,
3269
- serviceOption: serviceOption,
3270
- updateService: updateService,
3271
- Do: Do,
3272
- bind: bind,
3273
- bindTo: bindTo,
3274
- 'let': let_,
3275
- either: either,
3276
- exit: exit,
3277
- intoDeferred: intoDeferred,
3278
- option: option,
3279
- 'if': if_,
3280
- filterOrDie: filterOrDie,
3281
- filterOrDieMessage: filterOrDieMessage,
3282
- filterOrElse: filterOrElse,
3283
- filterOrFail: filterOrFail,
3284
- unless: unless,
3285
- unlessEffect: unlessEffect,
3286
- when: when,
3287
- whenEffect: whenEffect,
3288
- whenFiberRef: whenFiberRef,
3289
- whenRef: whenRef,
3290
- flatMap: flatMap,
3291
- flatten: flatten,
3292
- raceAll: raceAll,
3293
- race: race,
3294
- raceFirst: raceFirst,
3295
- raceWith: raceWith,
3296
- summarized: summarized,
3297
- tap: tap,
3298
- tapBoth: tapBoth,
3299
- tapDefect: tapDefect,
3300
- tapError: tapError,
3301
- tapErrorTag: tapErrorTag,
3302
- tapErrorCause: tapErrorCause,
3303
- forever: forever,
3304
- iterate: iterate,
3305
- loop: loop,
3306
- repeat: repeat,
3307
- repeatN: repeatN,
3308
- repeatOrElse: repeatOrElse,
3309
- repeatUntil: repeatUntil,
3310
- repeatUntilEffect: repeatUntilEffect,
3311
- repeatWhile: repeatWhile,
3312
- repeatWhileEffect: repeatWhileEffect,
3313
- schedule: schedule,
3314
- scheduleForked: scheduleForked,
3315
- scheduleFrom: scheduleFrom,
3316
- whileLoop: whileLoop,
3317
- getFiberRefs: getFiberRefs,
3318
- inheritFiberRefs: inheritFiberRefs,
3319
- locally: locally,
3320
- locallyWith: locallyWith,
3321
- locallyScoped: locallyScoped,
3322
- locallyScopedWith: locallyScopedWith,
3323
- patchFiberRefs: patchFiberRefs,
3324
- setFiberRefs: setFiberRefs,
3325
- updateFiberRefs: updateFiberRefs,
3326
- isFailure: isFailure,
3327
- isSuccess: isSuccess,
3328
- match: match,
3329
- matchCause: matchCause,
3330
- matchCauseEffect: matchCauseEffect,
3331
- matchEffect: matchEffect,
3332
- log: log,
3333
- logTrace: logTrace,
3334
- logDebug: logDebug,
3335
- logInfo: logInfo,
3336
- logWarning: logWarning,
3337
- logError: logError,
3338
- logFatal: logFatal,
3339
- withLogSpan: withLogSpan,
3340
- annotateLogs: annotateLogs,
3341
- logAnnotations: logAnnotations,
3342
- withUnhandledErrorLogLevel: withUnhandledErrorLogLevel,
3343
- setUnhandledErrorLogLevel: setUnhandledErrorLogLevel,
3344
- orDie: orDie,
3345
- orDieWith: orDieWith,
3346
- orElse: orElse,
3347
- orElseFail: orElseFail,
3348
- orElseSucceed: orElseSucceed,
3349
- random: random,
3350
- randomWith: randomWith,
3351
- runtime: runtime,
3352
- getRuntimeFlags: getRuntimeFlags,
3353
- patchRuntimeFlags: patchRuntimeFlags,
3354
- withRuntimeFlagsPatch: withRuntimeFlagsPatch,
3355
- withRuntimeFlagsPatchScoped: withRuntimeFlagsPatchScoped,
3356
- tagMetrics: tagMetrics,
3357
- labelMetrics: labelMetrics,
3358
- labelMetricsSet: labelMetricsSet,
3359
- tagMetricsScoped: tagMetricsScoped,
3360
- labelMetricsScoped: labelMetricsScoped,
3361
- labelMetricsScopedSet: labelMetricsScopedSet,
3362
- metricLabels: metricLabels,
3363
- withMetric: withMetric,
3364
- unifiedFn: unifiedFn,
3365
- unified: unified,
3366
- unsafeMakeSemaphore: unsafeMakeSemaphore,
3367
- makeSemaphore: makeSemaphore,
3368
- runFork: runFork,
3369
- runCallback: runCallback,
3370
- runPromise: runPromise,
3371
- runPromiseExit: runPromiseExit,
3372
- runSync: runSync,
3373
- runSyncExit: runSyncExit,
3374
- validate: validate,
3375
- validateWith: validateWith,
3376
- zip: zip,
3377
- zipLeft: zipLeft,
3378
- zipRight: zipRight,
3379
- zipWith: zipWith,
3380
- blocked: blocked,
3381
- runRequestBlock: runRequestBlock,
3382
- step: step,
3383
- flatMapStep: flatMapStep,
3384
- request: request,
3385
- cacheRequestResult: cacheRequestResult,
3386
- withRequestBatching: withRequestBatching,
3387
- setRequestBatching: setRequestBatching,
3388
- setRequestCaching: setRequestCaching,
3389
- setRequestCache: setRequestCache,
3390
- withRequestCaching: withRequestCaching,
3391
- withRequestCache: withRequestCache,
3392
- setTracer: setTracer,
3393
- tracer: tracer,
3394
- tracerWith: tracerWith,
3395
- withTracer: withTracer,
3396
- withTracerScoped: withTracerScoped,
3397
- withTracerTiming: withTracerTiming,
3398
- setTracerTiming: setTracerTiming,
3399
- annotateSpans: annotateSpans,
3400
- annotateCurrentSpan: annotateCurrentSpan,
3401
- currentSpan: currentSpan,
3402
- currentParentSpan: currentParentSpan,
3403
- spanAnnotations: spanAnnotations,
3404
- spanLinks: spanLinks,
3405
- linkSpans: linkSpans,
3406
- makeSpan: makeSpan,
3407
- setParentSpan: setParentSpan,
3408
- setSpan: setSpan,
3409
- useSpan: useSpan,
3410
- useSpanScoped: useSpanScoped,
3411
- withSpan: withSpan,
3412
- withSpanScoped: withSpanScoped,
3413
- withParentSpan: withParentSpan,
3414
- withParentSpanScoped: withParentSpanScoped,
3415
- fromNullable: fromNullable,
3416
- optionFromOptional: optionFromOptional
3417
- });
3418
-
3419
- exports.Do = Do;
3420
- exports.Effect = Effect;
3421
- exports.EffectTypeId = EffectTypeId;
3422
- exports._catch = _catch;
3423
- exports.acquireRelease = acquireRelease;
3424
- exports.acquireReleaseInterruptible = acquireReleaseInterruptible;
3425
- exports.acquireUseRelease = acquireUseRelease;
3426
- exports.addFinalizer = addFinalizer;
3427
- exports.all = all;
3428
- exports.allSuccesses = allSuccesses;
3429
- exports.allWith = allWith;
3430
- exports.allowInterrupt = allowInterrupt;
3431
- exports.annotateCurrentSpan = annotateCurrentSpan;
3432
- exports.annotateLogs = annotateLogs;
3433
- exports.annotateSpans = annotateSpans;
3434
- exports.as = as;
3435
- exports.asSome = asSome;
3436
- exports.asSomeError = asSomeError;
3437
- exports.asUnit = asUnit;
3438
- exports.async = async;
3439
- exports.asyncEffect = asyncEffect;
3440
- exports.asyncEither = asyncEither;
3441
- exports.asyncOption = asyncOption;
3442
- exports.awaitAllChildren = awaitAllChildren;
3443
- exports.bind = bind;
3444
- exports.bindTo = bindTo;
3445
- exports.blocked = blocked;
3446
- exports.cacheRequestResult = cacheRequestResult;
3447
- exports.cached = cached;
3448
- exports.cachedFunction = cachedFunction;
3449
- exports.cachedInvalidateWithTTL = cachedInvalidateWithTTL;
3450
- exports.cachedWithTTL = cachedWithTTL;
3451
- exports.catchAll = catchAll;
3452
- exports.catchAllCause = catchAllCause;
3453
- exports.catchAllDefect = catchAllDefect;
3454
- exports.catchIf = catchIf;
3455
- exports.catchSome = catchSome;
3456
- exports.catchSomeCause = catchSomeCause;
3457
- exports.catchSomeDefect = catchSomeDefect;
3458
- exports.catchTag = catchTag;
3459
- exports.catchTags = catchTags;
3460
- exports.cause = cause;
3461
- exports.checkInterruptible = checkInterruptible;
3462
- exports.clock = clock;
3463
- exports.clockWith = clockWith;
3464
- exports.config = config;
3465
- exports.configProviderWith = configProviderWith;
3466
- exports.context = context;
3467
- exports.contextWith = contextWith;
3468
- exports.contextWithEffect = contextWithEffect;
3469
- exports.currentParentSpan = currentParentSpan;
3470
- exports.currentSpan = currentSpan;
3471
- exports.daemonChildren = daemonChildren;
3472
- exports.delay = delay;
3473
- exports.descriptor = descriptor;
3474
- exports.descriptorWith = descriptorWith;
3475
- exports.die = die;
3476
- exports.dieMessage = dieMessage;
3477
- exports.dieSync = dieSync;
3478
- exports.diffFiberRefs = diffFiberRefs;
3479
- exports.disconnect = disconnect;
3480
- exports.dropUntil = dropUntil;
3481
- exports.dropWhile = dropWhile;
3482
- exports.either = either;
3483
- exports.ensuring = ensuring;
3484
- exports.ensuringChild = ensuringChild;
3485
- exports.ensuringChildren = ensuringChildren;
3486
- exports.eventually = eventually;
3487
- exports.every = every;
3488
- exports.exists = exists;
3489
- exports.exit = exit;
3490
- exports.fail = fail;
3491
- exports.failCause = failCause;
3492
- exports.failCauseSync = failCauseSync;
3493
- exports.failSync = failSync;
3494
- exports.fiberId = fiberId;
3495
- exports.fiberIdWith = fiberIdWith;
3496
- exports.filter = filter;
3497
- exports.filterOrDie = filterOrDie;
3498
- exports.filterOrDieMessage = filterOrDieMessage;
3499
- exports.filterOrElse = filterOrElse;
3500
- exports.filterOrFail = filterOrFail;
3501
- exports.finalizersMask = finalizersMask;
3502
- exports.findFirst = findFirst;
3503
- exports.firstSuccessOf = firstSuccessOf;
3504
- exports.flatMap = flatMap;
3505
- exports.flatMapStep = flatMapStep;
3506
- exports.flatten = flatten;
3507
- exports.flip = flip;
3508
- exports.flipWith = flipWith;
3509
- exports.forEach = forEach;
3510
- exports.forever = forever;
3511
- exports.fork = fork;
3512
- exports.forkAll = forkAll;
3513
- exports.forkDaemon = forkDaemon;
3514
- exports.forkIn = forkIn;
3515
- exports.forkScoped = forkScoped;
3516
- exports.forkWithErrorHandler = forkWithErrorHandler;
3517
- exports.fromFiber = fromFiber;
3518
- exports.fromFiberEffect = fromFiberEffect;
3519
- exports.fromNullable = fromNullable;
3520
- exports.gen = gen;
3521
- exports.getFiberRefs = getFiberRefs;
3522
- exports.getRuntimeFlags = getRuntimeFlags;
3523
- exports.head = head;
3524
- exports.if_ = if_;
3525
- exports.ignore = ignore;
3526
- exports.ignoreLogged = ignoreLogged;
3527
- exports.inheritFiberRefs = inheritFiberRefs;
3528
- exports.interrupt = interrupt;
3529
- exports.interruptWith = interruptWith;
3530
- exports.interruptible = interruptible;
3531
- exports.interruptibleMask = interruptibleMask;
3532
- exports.intoDeferred = intoDeferred;
3533
- exports.isEffect = isEffect;
3534
- exports.isFailure = isFailure;
3535
- exports.isSuccess = isSuccess;
3536
- exports.iterate = iterate;
3537
- exports.labelMetrics = labelMetrics;
3538
- exports.labelMetricsScoped = labelMetricsScoped;
3539
- exports.labelMetricsScopedSet = labelMetricsScopedSet;
3540
- exports.labelMetricsSet = labelMetricsSet;
3541
- exports.let_ = let_;
3542
- exports.linkSpans = linkSpans;
3543
- exports.locally = locally;
3544
- exports.locallyScoped = locallyScoped;
3545
- exports.locallyScopedWith = locallyScopedWith;
3546
- exports.locallyWith = locallyWith;
3547
- exports.log = log;
3548
- exports.logAnnotations = logAnnotations;
3549
- exports.logDebug = logDebug;
3550
- exports.logError = logError;
3551
- exports.logFatal = logFatal;
3552
- exports.logInfo = logInfo;
3553
- exports.logTrace = logTrace;
3554
- exports.logWarning = logWarning;
3555
- exports.loop = loop;
3556
- exports.makeSemaphore = makeSemaphore;
3557
- exports.makeSpan = makeSpan;
3558
- exports.map = map;
3559
- exports.mapAccum = mapAccum;
3560
- exports.mapBoth = mapBoth;
3561
- exports.mapError = mapError;
3562
- exports.mapErrorCause = mapErrorCause;
3563
- exports.mapInputContext = mapInputContext;
3564
- exports.match = match;
3565
- exports.matchCause = matchCause;
3566
- exports.matchCauseEffect = matchCauseEffect;
3567
- exports.matchEffect = matchEffect;
3568
- exports.merge = merge;
3569
- exports.mergeAll = mergeAll;
3570
- exports.metricLabels = metricLabels;
3571
- exports.negate = negate;
3572
- exports.never = never;
3573
- exports.none = none;
3574
- exports.onError = onError;
3575
- exports.onExit = onExit;
3576
- exports.onInterrupt = onInterrupt;
3577
- exports.once = once;
3578
- exports.option = option;
3579
- exports.optionFromOptional = optionFromOptional;
3580
- exports.orDie = orDie;
3581
- exports.orDieWith = orDieWith;
3582
- exports.orElse = orElse;
3583
- exports.orElseFail = orElseFail;
3584
- exports.orElseSucceed = orElseSucceed;
3585
- exports.parallelErrors = parallelErrors;
3586
- exports.parallelFinalizers = parallelFinalizers;
3587
- exports.partition = partition;
3588
- exports.patchFiberRefs = patchFiberRefs;
3589
- exports.patchRuntimeFlags = patchRuntimeFlags;
3590
- exports.promise = promise;
3591
- exports.provide = provide;
3592
- exports.provideService = provideService;
3593
- exports.provideServiceEffect = provideServiceEffect;
3594
- exports.race = race;
3595
- exports.raceAll = raceAll;
3596
- exports.raceFirst = raceFirst;
3597
- exports.raceWith = raceWith;
3598
- exports.random = random;
3599
- exports.randomWith = randomWith;
3600
- exports.reduce = reduce;
3601
- exports.reduceEffect = reduceEffect;
3602
- exports.reduceRight = reduceRight;
3603
- exports.reduceWhile = reduceWhile;
3604
- exports.repeat = repeat;
3605
- exports.repeatN = repeatN;
3606
- exports.repeatOrElse = repeatOrElse;
3607
- exports.repeatUntil = repeatUntil;
3608
- exports.repeatUntilEffect = repeatUntilEffect;
3609
- exports.repeatWhile = repeatWhile;
3610
- exports.repeatWhileEffect = repeatWhileEffect;
3611
- exports.replicate = replicate;
3612
- exports.replicateEffect = replicateEffect;
3613
- exports.request = request;
3614
- exports.retry = retry;
3615
- exports.retryN = retryN;
3616
- exports.retryOrElse = retryOrElse;
3617
- exports.retryUntil = retryUntil;
3618
- exports.retryUntilEffect = retryUntilEffect;
3619
- exports.retryWhile = retryWhile;
3620
- exports.retryWhileEffect = retryWhileEffect;
3621
- exports.runCallback = runCallback;
3622
- exports.runFork = runFork;
3623
- exports.runPromise = runPromise;
3624
- exports.runPromiseExit = runPromiseExit;
3625
- exports.runRequestBlock = runRequestBlock;
3626
- exports.runSync = runSync;
3627
- exports.runSyncExit = runSyncExit;
3628
- exports.runtime = runtime;
3629
- exports.sandbox = sandbox;
3630
- exports.schedule = schedule;
3631
- exports.scheduleForked = scheduleForked;
3632
- exports.scheduleFrom = scheduleFrom;
3633
- exports.scope = scope;
3634
- exports.scopeWith = scopeWith;
3635
- exports.scoped = scoped;
3636
- exports.sequentialFinalizers = sequentialFinalizers;
3637
- exports.serviceConstants = serviceConstants;
3638
- exports.serviceFunction = serviceFunction;
3639
- exports.serviceFunctionEffect = serviceFunctionEffect;
3640
- exports.serviceFunctions = serviceFunctions;
3641
- exports.serviceMembers = serviceMembers;
3642
- exports.serviceOption = serviceOption;
3643
- exports.setClock = setClock;
3644
- exports.setConfigProvider = setConfigProvider;
3645
- exports.setFiberRefs = setFiberRefs;
3646
- exports.setParentSpan = setParentSpan;
3647
- exports.setRequestBatching = setRequestBatching;
3648
- exports.setRequestCache = setRequestCache;
3649
- exports.setRequestCaching = setRequestCaching;
3650
- exports.setScheduler = setScheduler;
3651
- exports.setSpan = setSpan;
3652
- exports.setTracer = setTracer;
3653
- exports.setTracerTiming = setTracerTiming;
3654
- exports.setUnhandledErrorLogLevel = setUnhandledErrorLogLevel;
3655
- exports.sleep = sleep;
3656
- exports.spanAnnotations = spanAnnotations;
3657
- exports.spanLinks = spanLinks;
3658
- exports.step = step;
3659
- exports.succeed = succeed;
3660
- exports.succeedNone = succeedNone;
3661
- exports.succeedSome = succeedSome;
3662
- exports.summarized = summarized;
3663
- exports.supervised = supervised;
3664
- exports.suspend = suspend;
3665
- exports.sync = sync;
3666
- exports.tagMetrics = tagMetrics;
3667
- exports.tagMetricsScoped = tagMetricsScoped;
3668
- exports.takeUntil = takeUntil;
3669
- exports.takeWhile = takeWhile;
3670
- exports.tap = tap;
3671
- exports.tapBoth = tapBoth;
3672
- exports.tapDefect = tapDefect;
3673
- exports.tapError = tapError;
3674
- exports.tapErrorCause = tapErrorCause;
3675
- exports.tapErrorTag = tapErrorTag;
3676
- exports.timed = timed;
3677
- exports.timedWith = timedWith;
3678
- exports.timeout = timeout;
3679
- exports.timeoutFail = timeoutFail;
3680
- exports.timeoutFailCause = timeoutFailCause;
3681
- exports.timeoutTo = timeoutTo;
3682
- exports.tracer = tracer;
3683
- exports.tracerWith = tracerWith;
3684
- exports.transplant = transplant;
3685
- exports.tryMap = tryMap;
3686
- exports.tryMapPromise = tryMapPromise;
3687
- exports.tryPromise = tryPromise;
3688
- exports.try_ = try_;
3689
- exports.unified = unified;
3690
- exports.unifiedFn = unifiedFn;
3691
- exports.uninterruptible = uninterruptible;
3692
- exports.uninterruptibleMask = uninterruptibleMask;
3693
- exports.unit = unit;
3694
- exports.unless = unless;
3695
- exports.unlessEffect = unlessEffect;
3696
- exports.unsafeMakeSemaphore = unsafeMakeSemaphore;
3697
- exports.unsandbox = unsandbox;
3698
- exports.updateFiberRefs = updateFiberRefs;
3699
- exports.updateService = updateService;
3700
- exports.useSpan = useSpan;
3701
- exports.useSpanScoped = useSpanScoped;
3702
- exports.using = using;
3703
- exports.validate = validate;
3704
- exports.validateAll = validateAll;
3705
- exports.validateFirst = validateFirst;
3706
- exports.validateWith = validateWith;
3707
- exports.when = when;
3708
- exports.whenEffect = whenEffect;
3709
- exports.whenFiberRef = whenFiberRef;
3710
- exports.whenRef = whenRef;
3711
- exports.whileLoop = whileLoop;
3712
- exports.withClock = withClock;
3713
- exports.withClockScoped = withClockScoped;
3714
- exports.withConcurrency = withConcurrency;
3715
- exports.withConfigProvider = withConfigProvider;
3716
- exports.withConfigProviderScoped = withConfigProviderScoped;
3717
- exports.withEarlyRelease = withEarlyRelease;
3718
- exports.withLogSpan = withLogSpan;
3719
- exports.withMaxOpsBeforeYield = withMaxOpsBeforeYield;
3720
- exports.withMetric = withMetric;
3721
- exports.withParentSpan = withParentSpan;
3722
- exports.withParentSpanScoped = withParentSpanScoped;
3723
- exports.withRequestBatching = withRequestBatching;
3724
- exports.withRequestCache = withRequestCache;
3725
- exports.withRequestCaching = withRequestCaching;
3726
- exports.withRuntimeFlagsPatch = withRuntimeFlagsPatch;
3727
- exports.withRuntimeFlagsPatchScoped = withRuntimeFlagsPatchScoped;
3728
- exports.withScheduler = withScheduler;
3729
- exports.withSchedulingPriority = withSchedulingPriority;
3730
- exports.withSpan = withSpan;
3731
- exports.withSpanScoped = withSpanScoped;
3732
- exports.withTracer = withTracer;
3733
- exports.withTracerScoped = withTracerScoped;
3734
- exports.withTracerTiming = withTracerTiming;
3735
- exports.withUnhandledErrorLogLevel = withUnhandledErrorLogLevel;
3736
- exports.yieldNow = yieldNow;
3737
- exports.zip = zip;
3738
- exports.zipLeft = zipLeft;
3739
- exports.zipRight = zipRight;
3740
- exports.zipWith = zipWith;