@fncts/io 0.0.17 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. package/Cached/internal.d.ts +1 -1
  2. package/CancellerState.d.ts +1 -1
  3. package/Channel/ChildExecutorDecision/definition.d.ts +1 -1
  4. package/Channel/UpstreamPullRequest/definition.d.ts +1 -1
  5. package/Channel/UpstreamPullStrategy/definition.d.ts +1 -1
  6. package/Channel/api/mergeAllWith.d.ts +1 -1
  7. package/Channel/internal/ChannelExecutor.d.ts +1 -1
  8. package/Channel/internal/ChannelState.d.ts +2 -2
  9. package/Channel/internal/MergeDecision.d.ts +1 -1
  10. package/Channel/internal/MergeState.d.ts +1 -1
  11. package/Channel/internal/SingleProducerAsyncInput.d.ts +1 -1
  12. package/Clock/definition.d.ts +1 -0
  13. package/Fiber/FiberContext.d.ts +22 -19
  14. package/Fiber/api/interruptAll.d.ts +1 -1
  15. package/Fiber/api/interruptAsFork.d.ts +8 -0
  16. package/Fiber/definition.d.ts +6 -8
  17. package/FiberRef/api.d.ts +7 -2
  18. package/FiberRef/definition.d.ts +4 -3
  19. package/FiberRef/unsafe.d.ts +18 -1
  20. package/FiberRefs/api.d.ts +5 -0
  21. package/FiberRefs/definition.d.ts +1 -1
  22. package/FiberState/definition.d.ts +2 -2
  23. package/FiberStatus/definition.d.ts +1 -1
  24. package/Future/definition.d.ts +1 -1
  25. package/Hub/definition.d.ts +1 -1
  26. package/IO/api/core-scope.d.ts +4 -3
  27. package/IO/api/interrupt.d.ts +2 -2
  28. package/IO/api/supervised.d.ts +10 -0
  29. package/IO/api.d.ts +7 -10
  30. package/IO/definition.d.ts +16 -139
  31. package/IO.d.ts +1 -0
  32. package/IOEnv/definition.d.ts +1 -1
  33. package/Layer/definition.d.ts +2 -2
  34. package/Ref/definition.d.ts +3 -3
  35. package/Reloadable/api.d.ts +21 -0
  36. package/Reloadable/constructors.d.ts +23 -0
  37. package/Reloadable/definition.d.ts +20 -0
  38. package/Reloadable.d.ts +3 -0
  39. package/RuntimeConfig.d.ts +1 -1
  40. package/STM/definition.d.ts +5 -5
  41. package/STM/internal/CommitState.d.ts +1 -1
  42. package/STM/internal/Entry.d.ts +2 -2
  43. package/STM/internal/Journal.d.ts +6 -6
  44. package/STM/internal/TryCommit.d.ts +2 -2
  45. package/STM/internal/Versioned.d.ts +1 -1
  46. package/Schedule/Decision.d.ts +1 -1
  47. package/Scope/ReleaseMap/definition.d.ts +1 -1
  48. package/Scope/definition.d.ts +2 -2
  49. package/ScopedRef/definition.d.ts +1 -1
  50. package/State/internal.d.ts +1 -1
  51. package/Stream/api.d.ts +1 -1
  52. package/Stream/definition.d.ts +1 -1
  53. package/Stream/internal/DebounceState.d.ts +4 -4
  54. package/Stream/internal/Handoff.d.ts +5 -5
  55. package/Stream/internal/Pull.d.ts +1 -1
  56. package/Stream/internal/SinkEndReason.d.ts +1 -1
  57. package/TExit/definition.d.ts +3 -3
  58. package/TReentrantLock/definition.d.ts +1 -1
  59. package/TRef/definition.d.ts +1 -1
  60. package/TxnId.d.ts +1 -1
  61. package/_cjs/Clock/definition.cjs +2 -1
  62. package/_cjs/Clock/definition.cjs.map +1 -1
  63. package/_cjs/Console/definition.cjs +1 -1
  64. package/_cjs/Console/definition.cjs.map +1 -1
  65. package/_cjs/Fiber/FiberContext.cjs +180 -310
  66. package/_cjs/Fiber/FiberContext.cjs.map +1 -1
  67. package/_cjs/Fiber/api/collectAll.cjs +2 -2
  68. package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
  69. package/_cjs/Fiber/api/interrupt.cjs +4 -2
  70. package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
  71. package/_cjs/Fiber/api/interruptAll.cjs +8 -8
  72. package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
  73. package/_cjs/Fiber/api/interruptAs.cjs +7 -1
  74. package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
  75. package/_cjs/Fiber/api/interruptAsFork.cjs +15 -0
  76. package/_cjs/Fiber/api/interruptAsFork.cjs.map +1 -0
  77. package/_cjs/Fiber/api/interruptFork.cjs +5 -5
  78. package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
  79. package/_cjs/Fiber/definition.cjs +2 -2
  80. package/_cjs/Fiber/definition.cjs.map +1 -1
  81. package/_cjs/FiberRef/api.cjs +29 -10
  82. package/_cjs/FiberRef/api.cjs.map +1 -1
  83. package/_cjs/FiberRef/definition.cjs +2 -1
  84. package/_cjs/FiberRef/definition.cjs.map +1 -1
  85. package/_cjs/FiberRef/unsafe.cjs +29 -5
  86. package/_cjs/FiberRef/unsafe.cjs.map +1 -1
  87. package/_cjs/FiberRefs/api.cjs +28 -2
  88. package/_cjs/FiberRefs/api.cjs.map +1 -1
  89. package/_cjs/FiberRefs/join.cjs +1 -1
  90. package/_cjs/FiberRefs/join.cjs.map +1 -1
  91. package/_cjs/IO/api/core-scope.cjs +23 -15
  92. package/_cjs/IO/api/core-scope.cjs.map +1 -1
  93. package/_cjs/IO/api/ensuringChildren.cjs +4 -2
  94. package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
  95. package/_cjs/IO/api/interrupt.cjs +21 -11
  96. package/_cjs/IO/api/interrupt.cjs.map +1 -1
  97. package/_cjs/IO/api/supervised.cjs +26 -0
  98. package/_cjs/IO/api/supervised.cjs.map +1 -0
  99. package/_cjs/IO/api/withChildren.cjs +4 -2
  100. package/_cjs/IO/api/withChildren.cjs.map +1 -1
  101. package/_cjs/IO/api/zipC.cjs +10 -8
  102. package/_cjs/IO/api/zipC.cjs.map +1 -1
  103. package/_cjs/IO/api.cjs +67 -63
  104. package/_cjs/IO/api.cjs.map +1 -1
  105. package/_cjs/IO/definition.cjs +8 -226
  106. package/_cjs/IO/definition.cjs.map +1 -1
  107. package/_cjs/IO/runtime.cjs +7 -9
  108. package/_cjs/IO/runtime.cjs.map +1 -1
  109. package/_cjs/IO.cjs +13 -0
  110. package/_cjs/IO.cjs.map +1 -1
  111. package/_cjs/Layer/api.cjs +1 -1
  112. package/_cjs/Layer/api.cjs.map +1 -1
  113. package/_cjs/Random/definition.cjs +1 -1
  114. package/_cjs/Random/definition.cjs.map +1 -1
  115. package/_cjs/Reloadable/api.cjs +46 -0
  116. package/_cjs/Reloadable/api.cjs.map +1 -0
  117. package/_cjs/Reloadable/constructors.cjs +82 -0
  118. package/_cjs/Reloadable/constructors.cjs.map +1 -0
  119. package/_cjs/Reloadable/definition.cjs +58 -0
  120. package/_cjs/Reloadable/definition.cjs.map +1 -0
  121. package/_cjs/Reloadable.cjs +45 -0
  122. package/_cjs/Reloadable.cjs.map +1 -0
  123. package/_cjs/Scope/definition.cjs +1 -1
  124. package/_cjs/Scope/definition.cjs.map +1 -1
  125. package/_cjs/internal/IsFatal.cjs +129 -0
  126. package/_cjs/internal/IsFatal.cjs.map +1 -0
  127. package/_mjs/Clock/definition.mjs +2 -1
  128. package/_mjs/Clock/definition.mjs.map +1 -1
  129. package/_mjs/Console/definition.mjs +1 -1
  130. package/_mjs/Console/definition.mjs.map +1 -1
  131. package/_mjs/Fiber/FiberContext.mjs +180 -309
  132. package/_mjs/Fiber/FiberContext.mjs.map +1 -1
  133. package/_mjs/Fiber/api/collectAll.mjs +2 -2
  134. package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
  135. package/_mjs/Fiber/api/interrupt.mjs +3 -2
  136. package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
  137. package/_mjs/Fiber/api/interruptAll.mjs +6 -6
  138. package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
  139. package/_mjs/Fiber/api/interruptAs.mjs +3 -1
  140. package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
  141. package/_mjs/Fiber/api/interruptAsFork.mjs +8 -0
  142. package/_mjs/Fiber/api/interruptAsFork.mjs.map +1 -0
  143. package/_mjs/Fiber/api/interruptFork.mjs +5 -4
  144. package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
  145. package/_mjs/Fiber/definition.mjs +2 -2
  146. package/_mjs/Fiber/definition.mjs.map +1 -1
  147. package/_mjs/FiberRef/api.mjs +26 -9
  148. package/_mjs/FiberRef/api.mjs.map +1 -1
  149. package/_mjs/FiberRef/definition.mjs +2 -1
  150. package/_mjs/FiberRef/definition.mjs.map +1 -1
  151. package/_mjs/FiberRef/unsafe.mjs +23 -4
  152. package/_mjs/FiberRef/unsafe.mjs.map +1 -1
  153. package/_mjs/FiberRefs/api.mjs +22 -1
  154. package/_mjs/FiberRefs/api.mjs.map +1 -1
  155. package/_mjs/FiberRefs/join.mjs +1 -1
  156. package/_mjs/FiberRefs/join.mjs.map +1 -1
  157. package/_mjs/IO/api/core-scope.mjs +21 -16
  158. package/_mjs/IO/api/core-scope.mjs.map +1 -1
  159. package/_mjs/IO/api/ensuringChildren.mjs +3 -2
  160. package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
  161. package/_mjs/IO/api/interrupt.mjs +18 -9
  162. package/_mjs/IO/api/interrupt.mjs.map +1 -1
  163. package/_mjs/IO/api/supervised.mjs +14 -0
  164. package/_mjs/IO/api/supervised.mjs.map +1 -0
  165. package/_mjs/IO/api/withChildren.mjs +3 -2
  166. package/_mjs/IO/api/withChildren.mjs.map +1 -1
  167. package/_mjs/IO/api/zipC.mjs +9 -8
  168. package/_mjs/IO/api/zipC.mjs.map +1 -1
  169. package/_mjs/IO/api.mjs +66 -60
  170. package/_mjs/IO/api.mjs.map +1 -1
  171. package/_mjs/IO/definition.mjs +5 -184
  172. package/_mjs/IO/definition.mjs.map +1 -1
  173. package/_mjs/IO/runtime.mjs +7 -8
  174. package/_mjs/IO/runtime.mjs.map +1 -1
  175. package/_mjs/IO.mjs +1 -0
  176. package/_mjs/IO.mjs.map +1 -1
  177. package/_mjs/Layer/api.mjs +1 -1
  178. package/_mjs/Layer/api.mjs.map +1 -1
  179. package/_mjs/Random/definition.mjs +1 -1
  180. package/_mjs/Random/definition.mjs.map +1 -1
  181. package/_mjs/Reloadable/api.mjs +30 -0
  182. package/_mjs/Reloadable/api.mjs.map +1 -0
  183. package/_mjs/Reloadable/constructors.mjs +55 -0
  184. package/_mjs/Reloadable/constructors.mjs.map +1 -0
  185. package/_mjs/Reloadable/definition.mjs +40 -0
  186. package/_mjs/Reloadable/definition.mjs.map +1 -0
  187. package/_mjs/Reloadable.mjs +5 -0
  188. package/_mjs/Reloadable.mjs.map +1 -0
  189. package/_mjs/Scope/definition.mjs +1 -1
  190. package/_mjs/Scope/definition.mjs.map +1 -1
  191. package/_mjs/internal/IsFatal.mjs +104 -0
  192. package/_mjs/internal/IsFatal.mjs.map +1 -0
  193. package/_src/Clock/definition.ts +1 -0
  194. package/_src/Fiber/FiberContext.ts +50 -135
  195. package/_src/Fiber/api/collectAll.ts +1 -4
  196. package/_src/Fiber/api/interruptAll.ts +2 -2
  197. package/_src/Fiber/api/interruptAs.ts +1 -1
  198. package/_src/Fiber/api/interruptAsFork.ts +7 -0
  199. package/_src/Fiber/api/interruptFork.ts +1 -1
  200. package/_src/Fiber/definition.ts +3 -5
  201. package/_src/FiberRef/api.ts +30 -7
  202. package/_src/FiberRef/definition.ts +1 -0
  203. package/_src/FiberRef/unsafe.ts +27 -3
  204. package/_src/FiberRefs/api.ts +16 -0
  205. package/_src/FiberRefs/join.ts +1 -1
  206. package/_src/IO/api/core-scope.ts +12 -10
  207. package/_src/IO/api/interrupt.ts +8 -3
  208. package/_src/IO/api/supervised.ts +14 -0
  209. package/_src/IO/api.ts +25 -26
  210. package/_src/IO/definition.ts +8 -158
  211. package/_src/IO/runtime.ts +7 -11
  212. package/_src/IO.ts +1 -0
  213. package/_src/Reloadable/api.ts +28 -0
  214. package/_src/Reloadable/constructors.ts +60 -0
  215. package/_src/Reloadable/definition.ts +34 -0
  216. package/_src/Reloadable.ts +5 -0
  217. package/_src/internal/IsFatal.ts +79 -0
  218. package/internal/IsFatal.d.ts +47 -0
  219. package/package.json +4 -4
@@ -24,75 +24,73 @@ var tsplus_module_8 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require
24
24
 
25
25
  var tsplus_module_9 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/internal/Stack"));
26
26
 
27
- var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
27
+ var tsplus_module_10 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/unsafe"));
28
28
 
29
- var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/HashMap/api"));
29
+ var tsplus_module_11 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
30
30
 
31
- var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRefs/api"));
31
+ var tsplus_module_12 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/HashMap/api"));
32
32
 
33
- var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRefs/join"));
33
+ var tsplus_module_13 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRefs/api"));
34
34
 
35
- var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/api"));
35
+ var tsplus_module_14 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRefs/join"));
36
36
 
37
- var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc"));
37
+ var tsplus_module_15 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/api"));
38
38
 
39
- var tsplus_module_16 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/api/empty"));
39
+ var tsplus_module_16 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc"));
40
40
 
41
- var tsplus_module_17 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Future/api"));
41
+ var tsplus_module_17 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/Conc/api/empty"));
42
42
 
43
- var tsplus_module_18 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/environment"));
43
+ var tsplus_module_18 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Future/api"));
44
44
 
45
- var tsplus_module_19 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/fulfill"));
45
+ var tsplus_module_19 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/environment"));
46
46
 
47
- var tsplus_module_20 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Future/constructors"));
47
+ var tsplus_module_20 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/fulfill"));
48
48
 
49
- var tsplus_module_21 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/constructors"));
49
+ var tsplus_module_21 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Future/constructors"));
50
50
 
51
- var tsplus_module_22 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberScope/constructors"));
51
+ var tsplus_module_22 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Either/constructors"));
52
52
 
53
- var tsplus_module_23 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/constructors"));
53
+ var tsplus_module_23 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberScope/constructors"));
54
54
 
55
- var tsplus_module_24 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/RuntimeConfig"));
55
+ var tsplus_module_24 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/constructors"));
56
56
 
57
- var tsplus_module_25 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Supervisor/constructors"));
57
+ var tsplus_module_25 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/RuntimeConfig"));
58
58
 
59
- var tsplus_module_26 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Cause/api"));
59
+ var tsplus_module_26 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Supervisor/constructors"));
60
60
 
61
- var tsplus_module_27 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/constructors"));
61
+ var tsplus_module_27 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Cause/api"));
62
62
 
63
- var tsplus_module_28 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/InterruptStatus/constructors"));
63
+ var tsplus_module_28 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Exit/constructors"));
64
64
 
65
- var tsplus_module_29 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Supervisor/api"));
65
+ var tsplus_module_29 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/exceptions"));
66
66
 
67
- var tsplus_module_30 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/unsafe"));
67
+ var tsplus_module_30 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/FiberId/constructors"));
68
68
 
69
- var tsplus_module_31 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/api"));
69
+ var tsplus_module_31 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/interrupt"));
70
70
 
71
- var tsplus_module_32 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/exceptions"));
71
+ var tsplus_module_32 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/api"));
72
72
 
73
- var tsplus_module_33 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/FiberId/constructors"));
73
+ var tsplus_module_33 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Maybe/api"));
74
74
 
75
- var tsplus_module_34 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api/interrupt"));
75
+ var tsplus_module_34 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/definition"));
76
76
 
77
- var tsplus_module_35 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberRef/api"));
77
+ var tsplus_module_35 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Cause/api/isEmpty"));
78
78
 
79
- var tsplus_module_36 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/definition"));
79
+ var tsplus_module_36 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberStatus/constructors"));
80
80
 
81
- var tsplus_module_37 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Cause/api/isEmpty"));
81
+ var tsplus_module_37 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/CancellerState"));
82
82
 
83
- var tsplus_module_38 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberStatus/constructors"));
83
+ var tsplus_module_38 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberState/api"));
84
84
 
85
- var tsplus_module_39 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/CancellerState"));
85
+ var tsplus_module_39 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/TraceElement/definition"));
86
86
 
87
- var tsplus_module_40 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberState/api"));
87
+ var tsplus_module_40 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberDescriptor"));
88
88
 
89
- var tsplus_module_41 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/TraceElement/definition"));
89
+ var tsplus_module_41 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/InterruptStatus/constructors"));
90
90
 
91
- var tsplus_module_42 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberDescriptor"));
91
+ var tsplus_module_42 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/api"));
92
92
 
93
- var tsplus_module_43 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/api"));
94
-
95
- var tsplus_module_44 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Trace/definition"));
93
+ var tsplus_module_43 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/data/Trace/definition"));
96
94
 
97
95
  var _AtomicReference = /*#__PURE__*/require("@fncts/base/internal/AtomicReference");
98
96
 
@@ -181,15 +179,15 @@ class FiberContext {
181
179
  this.interruptExit = new InterruptExit(v => {
182
180
  if (this.unsafeIsInterruptible) {
183
181
  this.interruptStatus.pop();
184
- return tsplus_module_10.succeedNow(v, fileName_1 + ":586:27");
182
+ return tsplus_module_11.succeedNow(v, fileName_1 + ":498:27");
185
183
  } else {
186
- return tsplus_module_10.succeed(() => {
184
+ return tsplus_module_11.succeed(() => {
187
185
  this.interruptStatus.pop();
188
186
  return v;
189
- }, fileName_1 + ":588:24");
187
+ }, fileName_1 + ":500:24");
190
188
  }
191
189
  });
192
- this.currentSupervisor = this.runtimeConfig.supervisor;
190
+ this.unsafeSetRef(tsplus_module_10.currentSupervisor, this.runtimeConfig.supervisor);
193
191
  }
194
192
 
195
193
  get [tsplus_module_2.hashSymbol]() {
@@ -197,23 +195,23 @@ class FiberContext {
197
195
  }
198
196
 
199
197
  [tsplus_module_5.equalsSymbol](that) {
200
- return (0, _definition6.isFiber)(that) && tsplus_module_7.strictEquals(this.id, tsplus_module_6.id(that, fileName_1 + ":69:44"));
198
+ return (0, _definition6.isFiber)(that) && tsplus_module_7.strictEquals(this.id, tsplus_module_6.id(that, fileName_1 + ":68:44"));
201
199
  }
202
200
 
203
201
  get poll() {
204
- return tsplus_module_10.succeed(() => this.unsafePoll(), fileName_1 + ":89:22");
202
+ return tsplus_module_11.succeed(() => this.unsafePoll(), fileName_1 + ":87:22");
205
203
  }
206
204
 
207
205
  get inheritRefs() {
208
- return tsplus_module_10.defer(() => {
209
- const childFiberRefLocals = this.fiberRefLocals.get;
206
+ return tsplus_module_11.defer(() => {
207
+ const childFiberRefLocals = this.fiberRefLocals;
210
208
 
211
- if (tsplus_module_11.isEmpty(childFiberRefLocals)) {
212
- return tsplus_module_10.unit;
209
+ if (tsplus_module_12.isEmpty(childFiberRefLocals)) {
210
+ return tsplus_module_11.unit;
213
211
  } else {
214
- return tsplus_module_10.updateFiberRefs((parentFiberId, parentFiberRefs) => tsplus_module_13.join(parentFiberRefs, parentFiberId, tsplus_module_12.make(childFiberRefLocals)), fileName_1 + ":98:34");
212
+ return tsplus_module_11.updateFiberRefs((parentFiberId, parentFiberRefs) => tsplus_module_14.join(parentFiberRefs, parentFiberId, tsplus_module_13.make(childFiberRefLocals)), fileName_1 + ":96:34");
215
213
  }
216
- }, fileName_1 + ":93:20");
214
+ }, fileName_1 + ":91:20");
217
215
  }
218
216
 
219
217
  get id() {
@@ -221,7 +219,7 @@ class FiberContext {
221
219
  }
222
220
 
223
221
  awaitAsync(k) {
224
- const exit = this.unsafeAddObserver(exit => k(tsplus_module_14.flatten(exit)));
222
+ const exit = this.unsafeAddObserver(exit => k(tsplus_module_15.flatten(exit)));
225
223
 
226
224
  if (exit != null) {
227
225
  k(exit);
@@ -229,33 +227,37 @@ class FiberContext {
229
227
  }
230
228
 
231
229
  get children() {
232
- return this.evalOnIO(tsplus_module_10.succeed(() => {
233
- const concBuilder = new tsplus_module_15.ConcBuilder(tsplus_module_16.empty());
230
+ return this.evalOnIO(tsplus_module_11.succeed(() => {
231
+ const concBuilder = new tsplus_module_16.ConcBuilder(tsplus_module_17.empty());
234
232
 
235
233
  for (const child of this._children) {
236
234
  concBuilder.append(child);
237
235
  }
238
236
 
239
237
  return concBuilder.result();
240
- }, fileName_1 + ":119:17"), tsplus_module_10.succeed(() => tsplus_module_16.empty(), fileName_1 + ":128:17"), fileName_1 + ":118:25");
238
+ }, fileName_1 + ":117:17"), tsplus_module_11.succeed(() => tsplus_module_17.empty(), fileName_1 + ":126:17"), fileName_1 + ":116:25");
241
239
  }
242
240
 
243
241
  evalOnIO(effect, orElse, __tsplusTrace) {
244
- return tsplus_module_10.flatMap_(tsplus_module_18.environment(fileName_1 + ":138:33"), r => tsplus_module_10.flatMap_(tsplus_module_20.make(fileName_1 + ":139:30"), p => tsplus_module_10.flatMap_(this.evalOn(tsplus_module_19.fulfill_(tsplus_module_18.provideEnvironment_(effect, r, fileName_1 + ":140:46"), p, fileName_1 + ":140:57"), tsplus_module_19.fulfill_(tsplus_module_18.provideEnvironment_(orElse, r, fileName_1 + ":140:87"), p, fileName_1 + ":140:98")), () => tsplus_module_17.wait(p, fileName_1 + ":141:17"), fileName_1 + ":140:8"), fileName_1 + ":139:18"), fileName_1 + ":138:18");
242
+ return tsplus_module_11.flatMap_(tsplus_module_19.environment(fileName_1 + ":136:33"), r => tsplus_module_11.flatMap_(tsplus_module_21.make(fileName_1 + ":137:30"), p => tsplus_module_11.flatMap_(this.evalOn(tsplus_module_20.fulfill_(tsplus_module_19.provideEnvironment_(effect, r, fileName_1 + ":138:46"), p, fileName_1 + ":138:57"), tsplus_module_20.fulfill_(tsplus_module_19.provideEnvironment_(orElse, r, fileName_1 + ":138:87"), p, fileName_1 + ":138:98")), () => tsplus_module_18.wait(p, fileName_1 + ":139:17"), fileName_1 + ":138:8"), fileName_1 + ":137:18"), fileName_1 + ":136:18");
243
+ }
244
+
245
+ get fiberRefs() {
246
+ return tsplus_module_13.make(this.fiberRefLocals);
245
247
  }
246
248
 
247
249
  get await() {
248
- return tsplus_module_10.asyncInterrupt(k => {
249
- const cb = x => k(tsplus_module_10.fromExit(() => x, fileName_1 + ":147:78"));
250
+ return tsplus_module_11.asyncInterrupt(k => {
251
+ const cb = x => k(tsplus_module_11.fromExit(() => x, fileName_1 + ":149:78"));
250
252
 
251
253
  const result = this.unsafeAddObserver(cb);
252
254
 
253
255
  if (result == null) {
254
- return tsplus_module_21.left(tsplus_module_10.succeed(() => this.unsafeRemoveObserver(cb), fileName_1 + ":150:38"));
256
+ return tsplus_module_22.left(tsplus_module_11.succeed(() => this.unsafeRemoveObserver(cb), fileName_1 + ":152:38"));
255
257
  } else {
256
- return tsplus_module_21.right(tsplus_module_10.succeedNow(result, fileName_1 + ":152:42"));
258
+ return tsplus_module_22.right(tsplus_module_11.succeedNow(result, fileName_1 + ":154:42"));
257
259
  }
258
- }, this.fiberId, fileName_1 + ":146:29");
260
+ }, this.fiberId, fileName_1 + ":148:29");
259
261
  }
260
262
 
261
263
  run() {
@@ -263,23 +265,23 @@ class FiberContext {
263
265
  }
264
266
 
265
267
  get scope() {
266
- return tsplus_module_22.unsafeMake(this);
268
+ return tsplus_module_23.unsafeMake(this);
267
269
  }
268
270
 
269
271
  get status() {
270
- return tsplus_module_10.succeedNow(this.state.status, fileName_1 + ":166:25");
272
+ return tsplus_module_11.succeedNow(this.state.status, fileName_1 + ":168:25");
271
273
  }
272
274
 
273
275
  get trace() {
274
- return tsplus_module_10.succeed(() => this.unsafeCaptureTrace(tsplus_module_23.empty()), fileName_1 + ":170:22");
276
+ return tsplus_module_11.succeed(() => this.unsafeCaptureTrace(tsplus_module_24.empty()), fileName_1 + ":172:22");
275
277
  }
276
278
 
277
279
  interruptAs(fiberId) {
278
- return this.unsafeInterruptAs(fiberId);
280
+ return tsplus_module_11.apSecond_(this.interruptAsFork(fiberId), this.await, fileName_1 + ":176:50");
279
281
  }
280
282
 
281
283
  evalOn(effect, orElse) {
282
- return tsplus_module_10.defer(() => this.unsafeEvalOn(effect, orElse), fileName_1 + ":178:20");
284
+ return tsplus_module_11.defer(() => this.unsafeEvalOn(effect, orElse), fileName_1 + ":180:20");
283
285
  }
284
286
 
285
287
  get location() {
@@ -298,9 +300,9 @@ class FiberContext {
298
300
  this.nextIO = null;
299
301
  let extraTrace = undefined;
300
302
  const flags = this.runtimeConfig.flags;
301
- const superviseOps = flags.isEnabled(tsplus_module_24.RuntimeConfigFlag.SuperviseOperations) && this.currentSupervisor !== tsplus_module_25.none;
302
- this.runtimeConfig.flags.isEnabled(tsplus_module_24.RuntimeConfigFlag.EnableCurrentFiber) && currentFiber.set(this);
303
- this.currentSupervisor !== tsplus_module_25.none && this.currentSupervisor.unsafeOnResume(this);
303
+ const superviseOps = flags.isEnabled(tsplus_module_25.RuntimeConfigFlag.SuperviseOperations) && this.currentSupervisor !== tsplus_module_26.none;
304
+ this.runtimeConfig.flags.isEnabled(tsplus_module_25.RuntimeConfigFlag.EnableCurrentFiber) && currentFiber.set(this);
305
+ this.currentSupervisor !== tsplus_module_26.none && this.currentSupervisor.unsafeOnResume(this);
304
306
 
305
307
  while (current !== null) {
306
308
  try {
@@ -312,7 +314,7 @@ class FiberContext {
312
314
 
313
315
  if (message !== null) {
314
316
  const oldIO = current;
315
- current = tsplus_module_10.flatMap_(message, () => oldIO, fileName_1 + ":215:55");
317
+ current = tsplus_module_11.flatMap_(message, () => oldIO, fileName_1 + ":217:55");
316
318
  } else if (opCount === maxOpCount) {
317
319
  this.unsafeRunLater(current);
318
320
  current = null;
@@ -363,7 +365,7 @@ class FiberContext {
363
365
  :
364
366
  {
365
367
  extraTrace = current.trace;
366
- this.unsafeRunLater(tsplus_module_10.unit);
368
+ this.unsafeRunLater(tsplus_module_11.unit);
367
369
  extraTrace = undefined;
368
370
  current = null;
369
371
  break;
@@ -384,7 +386,7 @@ class FiberContext {
384
386
  /* IOTag.Trace */
385
387
  :
386
388
  {
387
- current = this.unsafeNextEffect(this.unsafeCaptureTrace(tsplus_module_23.cons(current.trace, tsplus_module_23.nil())));
389
+ current = this.unsafeNextEffect(this.unsafeCaptureTrace(tsplus_module_24.cons(current.trace, tsplus_module_24.nil())));
388
390
  break;
389
391
  }
390
392
 
@@ -416,25 +418,25 @@ class FiberContext {
416
418
  /* IOTag.Fail */
417
419
  :
418
420
  {
419
- const fastPathTrace = extraTrace === undefined ? tsplus_module_23.nil() : tsplus_module_23.cons(extraTrace, tsplus_module_23.nil());
421
+ const fastPathTrace = extraTrace === undefined ? tsplus_module_24.nil() : tsplus_module_24.cons(extraTrace, tsplus_module_24.nil());
420
422
  extraTrace = undefined;
421
423
  const cause = current.cause();
422
- const tracedCause = tsplus_module_26.isTraced(cause) ? cause : tsplus_module_26.traced(cause, this.unsafeCaptureTrace(tsplus_module_23.cons(current.trace, fastPathTrace)));
424
+ const tracedCause = tsplus_module_27.isTraced(cause) ? cause : tsplus_module_27.traced(cause, this.unsafeCaptureTrace(tsplus_module_24.cons(current.trace, fastPathTrace)));
423
425
  const discardedFolds = this.unsafeUnwindStack();
424
426
  const strippedCause = discardedFolds ? // We threw away some error handlers while unwinding the stack because
425
- tsplus_module_26.stripFailures( // We threw away some error handlers while unwinding the stack because
427
+ tsplus_module_27.stripFailures( // We threw away some error handlers while unwinding the stack because
426
428
  // we got interrupted during this instruction. So it's not safe to return
427
429
  // typed failures from cause0, because they might not be typed correctly.
428
430
  // Instead, we strip the typed failures, and return the remainders and
429
431
  // the interruption
430
432
  tracedCause) : tracedCause;
431
433
  const suppressed = this.unsafeClearSuppressedCause();
432
- const fullCause = tsplus_module_26.contains_(strippedCause, suppressed) ? strippedCause : tsplus_module_26.then(strippedCause, suppressed);
434
+ const fullCause = tsplus_module_27.contains_(strippedCause, suppressed) ? strippedCause : tsplus_module_27.then(strippedCause, suppressed);
433
435
 
434
436
  if (!this.stack.hasNext) {
435
437
  // Error not caught, stack is empty:
436
438
  this.unsafeSetInterrupting(true);
437
- current = this.unsafeTryDone(tsplus_module_27.failCause(fullCause), current.trace);
439
+ current = this.unsafeTryDone(tsplus_module_28.failCause(fullCause), current.trace);
438
440
  } else {
439
441
  this.unsafeSetInterrupting(false); // Error caught, next continuation on the stack will deal
440
442
  // with it, so we just have to compute it here
@@ -454,29 +456,6 @@ class FiberContext {
454
456
  break;
455
457
  }
456
458
 
457
- case "SetInterrupt"
458
- /* IOTag.SetInterrupt */
459
- :
460
- {
461
- const boolFlag = current.flag.toBoolean;
462
-
463
- if (this.unsafeIsInterruptible !== boolFlag) {
464
- this.interruptStatus.push(current.flag.toBoolean);
465
- this.unsafeRestoreInterruptStatus();
466
- }
467
-
468
- current = current.io;
469
- break;
470
- }
471
-
472
- case "GetInterrupt"
473
- /* IOTag.GetInterrupt */
474
- :
475
- {
476
- current = current.f(tsplus_module_28.fromBoolean(this.unsafeIsInterruptible));
477
- break;
478
- }
479
-
480
459
  case "Async"
481
460
  /* IOTag.Async */
482
461
  :
@@ -496,7 +475,7 @@ class FiberContext {
496
475
  if (this.unsafeShouldInterrupt) {
497
476
  if (this.unsafeExitAsync(epoch)) {
498
477
  this.unsafeSetInterrupting(true);
499
- current = tsplus_module_10.flatMap_(r.left, () => tsplus_module_10.failCauseNow(this.unsafeClearSuppressedCause(), fileName_1 + ":349:67"), fileName_1 + ":349:45");
478
+ current = tsplus_module_11.flatMap_(r.left, () => tsplus_module_11.failCauseNow(this.unsafeClearSuppressedCause(), fileName_1 + ":340:67"), fileName_1 + ":340:45");
500
479
  } else {
501
480
  current = null;
502
481
  }
@@ -528,20 +507,12 @@ class FiberContext {
528
507
  break;
529
508
  }
530
509
 
531
- case "GetDescriptor"
532
- /* IOTag.GetDescriptor */
533
- :
534
- {
535
- current = current.f(this.unsafeGetDescriptor());
536
- break;
537
- }
538
-
539
510
  case "Yield"
540
511
  /* IOTag.Yield */
541
512
  :
542
513
  {
543
514
  current = null;
544
- this.unsafeRunLater(tsplus_module_10.unit);
515
+ this.unsafeRunLater(tsplus_module_11.unit);
545
516
  break;
546
517
  }
547
518
 
@@ -561,63 +532,11 @@ class FiberContext {
561
532
  break;
562
533
  }
563
534
 
564
- case "FiberRefModifyAll"
565
- /* IOTag.FiberRefModifyAll */
566
- :
567
- {
568
- const [result, newValue] = current.f(this.fiberId, tsplus_module_12.make(this.fiberRefLocals.get));
569
- this.fiberRefLocals.set(newValue.fiberRefLocals);
570
- current = this.unsafeNextEffect(result);
571
- break;
572
- }
573
-
574
- case "FiberRefModify"
575
- /* IOTag.FiberRefModify */
576
- :
577
- {
578
- const c = current;
579
- const [result, newValue] = current.f(this.unsafeGetRef(current.fiberRef));
580
- this.unsafeSetRef(c.fiberRef, newValue);
581
- current = this.unsafeNextEffect(result);
582
- break;
583
- }
584
-
585
- case "FiberRefLocally"
586
- /* IOTag.FiberRefLocally */
587
- :
588
- {
589
- const oldValue = this.unsafeGetRef(current.fiberRef);
590
- const fiberRef = current.fiberRef;
591
- this.unsafeSetRef(fiberRef, current.localValue);
592
- this.unsafeAddFinalizer(tsplus_module_10.succeed(() => {
593
- this.unsafeSetRef(fiberRef, oldValue);
594
- }, fileName_1 + ":413:33"));
595
- current = current.io;
596
- break;
597
- }
598
-
599
- case "FiberRefDelete"
600
- /* IOTag.FiberRefDelete */
601
- :
602
- {
603
- this.unsafeDeleteRef(current.fiberRef);
604
- current = this.unsafeNextEffect(undefined);
605
- break;
606
- }
607
-
608
- case "FiberRefWith"
609
- /* IOTag.FiberRefWith */
535
+ case "Stateful"
536
+ /* IOTag.Stateful */
610
537
  :
611
538
  {
612
- current = current.f(this.unsafeGetRef(current.fiberRef));
613
- break;
614
- }
615
-
616
- case "GetRuntimeConfig"
617
- /* IOTag.GetRuntimeConfig */
618
- :
619
- {
620
- current = current.f(this.runtimeConfig);
539
+ current = current.onState(this, this.state.status);
621
540
  break;
622
541
  }
623
542
 
@@ -629,49 +548,6 @@ class FiberContext {
629
548
  break;
630
549
  }
631
550
 
632
- case "Supervise"
633
- /* IOTag.Supervise */
634
- :
635
- {
636
- const oldSupervisor = this.currentSupervisor;
637
- this.currentSupervisor = tsplus_module_29.zip_(current.supervisor, oldSupervisor);
638
- this.unsafeAddFinalizer(tsplus_module_10.succeed(() => {
639
- this.currentSupervisor = oldSupervisor;
640
- }, fileName_1 + ":446:33"));
641
- current = current.io;
642
- break;
643
- }
644
-
645
- case "GetForkScope"
646
- /* IOTag.GetForkScope */
647
- :
648
- {
649
- current = current.f(tsplus_module_31.getOrElse_(this.unsafeGetRef(tsplus_module_30.forkScopeOverride), () => this.scope));
650
- break;
651
- }
652
-
653
- case "OverrideForkScope"
654
- /* IOTag.OverrideForkScope */
655
- :
656
- {
657
- const oldForkScopeOverride = this.unsafeGetRef(tsplus_module_30.forkScopeOverride);
658
- this.unsafeSetRef(tsplus_module_30.forkScopeOverride, current.forkScope);
659
- this.unsafeAddFinalizer(tsplus_module_10.succeed(() => {
660
- this.unsafeSetRef(tsplus_module_30.forkScopeOverride, oldForkScopeOverride);
661
- }, fileName_1 + ":463:33"));
662
- current = current.io;
663
- break;
664
- }
665
-
666
- case "Ensuring"
667
- /* IOTag.Ensuring */
668
- :
669
- {
670
- this.unsafeAddFinalizer(current.finalizer);
671
- current = current.io;
672
- break;
673
- }
674
-
675
551
  case "Logged"
676
552
  /* IOTag.Logged */
677
553
  :
@@ -681,15 +557,6 @@ class FiberContext {
681
557
  break;
682
558
  }
683
559
 
684
- case "SetRuntimeConfig"
685
- /* IOTag.SetRuntimeConfig */
686
- :
687
- {
688
- this.runtimeConfig = current.runtimeConfig;
689
- current = tsplus_module_10.unit;
690
- break;
691
- }
692
-
693
560
  default:
694
561
  {
695
562
  console.log("Unrecognized Instruction", current);
@@ -699,16 +566,16 @@ class FiberContext {
699
566
  }
700
567
  } else {
701
568
  const trace = current.trace;
702
- current = tsplus_module_10.failCauseNow(this.unsafeClearSuppressedCause(), trace);
569
+ current = tsplus_module_11.failCauseNow(this.unsafeClearSuppressedCause(), trace);
703
570
  this.unsafeSetInterrupting(true);
704
571
  }
705
572
 
706
573
  opCount++;
707
574
  }
708
575
  } catch (e) {
709
- if (tsplus_module_32.isInterruptedException(e)) {
576
+ if (tsplus_module_29.isInterruptedException(e)) {
710
577
  const trace = current ? current.trace : undefined;
711
- current = tsplus_module_34.interruptAs(tsplus_module_33.none, trace);
578
+ current = tsplus_module_31.interruptAs(tsplus_module_30.none, trace);
712
579
  this.unsafeSetInterrupting(true);
713
580
  } else if ((0, _definition7.isIOError)(e)) {
714
581
  switch (e.exit._tag) {
@@ -721,55 +588,57 @@ class FiberContext {
721
588
  case "Failure":
722
589
  {
723
590
  const trace = current ? current.trace : undefined;
724
- current = tsplus_module_10.failCauseNow(e.exit.cause, trace);
591
+ current = tsplus_module_11.failCauseNow(e.exit.cause, trace);
725
592
  }
726
593
  }
594
+ } else if (this.unsafeIsFatal(e)) {
595
+ this.unsafeHandleFatalError(e);
727
596
  } else {
728
597
  this.unsafeSetInterrupting(true);
729
- current = tsplus_module_10.haltNow(e, fileName_1 + ":525:42");
598
+ current = tsplus_module_11.haltNow(e, fileName_1 + ":437:42");
730
599
  }
731
600
  }
732
601
  }
733
602
  } finally {
734
603
  currentFiber.set(null);
735
- this.currentSupervisor !== tsplus_module_25.none && this.currentSupervisor.unsafeOnSuspend(this);
604
+ this.currentSupervisor.unsafeOnSuspend(this);
736
605
  }
737
606
  }
738
607
 
739
608
  unsafeRunLater(i0) {
740
- this.unsafeGetRef(tsplus_module_30.currentScheduler).scheduleTask(() => {
609
+ this.unsafeGetRef(tsplus_module_10.currentScheduler).scheduleTask(() => {
741
610
  this.nextIO = i0;
742
611
  this.runUntil(this.runtimeConfig.yieldOpCount);
743
612
  });
744
613
  }
745
614
 
746
615
  unsafeGetRef(ref) {
747
- return tsplus_module_31.getOrElse_(tsplus_module_31.map_(tsplus_module_11.get_(this.fiberRefLocals.get, ref), _ => _.head[1]), () => tsplus_module_35.initial(ref));
616
+ return tsplus_module_33.getOrElse_(tsplus_module_33.map_(tsplus_module_12.get_(this.fiberRefLocals, ref), _ => _.head[1]), () => tsplus_module_32.initial(ref));
748
617
  }
749
618
 
750
619
  unsafeGetRefs(fiberRefLocals) {
751
- return tsplus_module_11.map_(fiberRefLocals.get, stack => stack.head[1]);
620
+ return tsplus_module_12.map_(fiberRefLocals, stack => stack.head[1]);
752
621
  }
753
622
 
754
623
  unsafeSetRef(ref, value) {
755
- const oldState = this.fiberRefLocals.get;
756
- const oldStack = tsplus_module_31.getOrElse_(tsplus_module_11.get_(oldState, ref), () => tsplus_module_23.empty());
624
+ const oldState = this.fiberRefLocals;
625
+ const oldStack = tsplus_module_33.getOrElse_(tsplus_module_12.get_(oldState, ref), () => tsplus_module_24.empty());
757
626
  let newStack;
758
627
 
759
- if (tsplus_module_36.isEmpty(oldStack)) {
760
- newStack = tsplus_module_23.cons([this.fiberId, value]);
628
+ if (tsplus_module_34.isEmpty(oldStack)) {
629
+ newStack = tsplus_module_24.cons([this.fiberId, value]);
761
630
  } else if (tsplus_module_7.strictEquals(oldStack.head[0], this.fiberId)) {
762
- newStack = tsplus_module_23.cons([this.fiberId, value], oldStack.tail);
631
+ newStack = tsplus_module_24.cons([this.fiberId, value], oldStack.tail);
763
632
  } else {
764
- newStack = tsplus_module_23.cons([this.fiberId, value], oldStack);
633
+ newStack = tsplus_module_24.cons([this.fiberId, value], oldStack);
765
634
  }
766
635
 
767
- const newState = tsplus_module_11.set_(oldState, ref, newStack);
768
- this.fiberRefLocals.set(newState);
636
+ const newState = tsplus_module_12.set_(oldState, ref, newStack);
637
+ this.fiberRefLocals = newState;
769
638
  }
770
639
 
771
640
  unsafeDeleteRef(ref) {
772
- this.fiberRefLocals.set(tsplus_module_11.remove_(this.fiberRefLocals.get, ref));
641
+ this.fiberRefLocals = tsplus_module_12.remove_(this.fiberRefLocals, ref);
773
642
  }
774
643
 
775
644
  unsafePoll() {
@@ -790,7 +659,7 @@ class FiberContext {
790
659
  this.stack.push(new Finalizer(finalizer, v => {
791
660
  this.unsafeDisableInterruption();
792
661
  this.unsafeRestoreInterruptStatus();
793
- return tsplus_module_10.map_(finalizer, () => v, fileName_1 + ":600:29");
662
+ return tsplus_module_11.map_(finalizer, () => v, fileName_1 + ":512:29");
794
663
  }));
795
664
  }
796
665
 
@@ -819,9 +688,9 @@ class FiberContext {
819
688
  }
820
689
 
821
690
  unsafeAddSuppressedCause(cause) {
822
- if (!tsplus_module_37.isEmpty(cause)) {
691
+ if (!tsplus_module_35.isEmpty(cause)) {
823
692
  if (this.state._tag === "Executing") {
824
- this.state.suppressed = tsplus_module_26.then(this.state.suppressed, cause);
693
+ this.state.suppressed = tsplus_module_27.then(this.state.suppressed, cause);
825
694
  }
826
695
  }
827
696
  }
@@ -849,14 +718,14 @@ class FiberContext {
849
718
  case "Finalizer":
850
719
  {
851
720
  this.unsafeDisableInterruption();
852
- this.stack.push(new TracedCont(cause => tsplus_module_10.matchCauseIO_(frame.finalizer, finalizerCause => {
721
+ this.stack.push(new TracedCont(cause => tsplus_module_11.matchCauseIO_(frame.finalizer, finalizerCause => {
853
722
  this.interruptStatus.pop();
854
723
  this.unsafeAddSuppressedCause(finalizerCause);
855
- return tsplus_module_10.failCauseNow(cause, fileName_1 + ":664:43");
724
+ return tsplus_module_11.failCauseNow(cause, fileName_1 + ":576:43");
856
725
  }, () => {
857
726
  this.interruptStatus.pop();
858
- return tsplus_module_10.failCauseNow(cause, fileName_1 + ":668:43");
859
- }, fileName_1 + ":660:45"), frame.trace));
727
+ return tsplus_module_11.failCauseNow(cause, fileName_1 + ":580:43");
728
+ }, fileName_1 + ":572:45"), frame.trace));
860
729
  unwinding = false;
861
730
  break;
862
731
  }
@@ -901,13 +770,13 @@ class FiberContext {
901
770
  const k = this.stack.pop();
902
771
  return k.apply(value);
903
772
  } else {
904
- return this.unsafeTryDone(tsplus_module_27.succeed(value));
773
+ return this.unsafeTryDone(tsplus_module_28.succeed(value));
905
774
  }
906
775
  }
907
776
 
908
777
  unsafeNotifyObservers(v, observers) {
909
778
  if (observers.size > 0) {
910
- const result = tsplus_module_27.succeed(v);
779
+ const result = tsplus_module_28.succeed(v);
911
780
  observers.forEach(k => k(result));
912
781
  }
913
782
  }
@@ -918,26 +787,24 @@ class FiberContext {
918
787
  }
919
788
  }
920
789
 
921
- unsafeInterruptAs(fiberId) {
922
- const interruptedCause = tsplus_module_26.interrupt(fiberId);
923
- return tsplus_module_10.defer(() => {
790
+ interruptAsFork(fiberId) {
791
+ const interruptedCause = tsplus_module_27.interrupt(fiberId);
792
+ return tsplus_module_11.succeed(() => {
924
793
  const oldState = this.state;
925
794
 
926
795
  if (this.state._tag === "Executing" && this.state.status._tag === "Suspended" && this.state.status.interruptible && this.state.asyncCanceller._tag === "Registered") {
927
796
  const asyncCanceller = this.state.asyncCanceller.asyncCanceller;
928
- const interrupt = tsplus_module_10.failCauseNow(interruptedCause, fileName_1 + ":738:52");
929
- this.state.status = tsplus_module_38.running(true);
797
+ const interrupt = tsplus_module_11.failCauseNow(interruptedCause, fileName_1 + ":650:52");
798
+ this.state.status = tsplus_module_36.running(true);
930
799
  this.state.interruptors = new Set(oldState.interruptors).add(fiberId);
931
- this.state.asyncCanceller = tsplus_module_39.empty;
932
- this.unsafeRunLater(tsplus_module_10.flatMap_(asyncCanceller, () => interrupt, fileName_1 + ":742:60"));
800
+ this.state.asyncCanceller = tsplus_module_37.empty;
801
+ this.unsafeRunLater(tsplus_module_11.flatMap_(asyncCanceller, () => interrupt, fileName_1 + ":654:60"));
933
802
  } else if (this.state._tag === "Executing") {
934
- const newCause = tsplus_module_26.then(this.state.suppressed, interruptedCause);
803
+ const newCause = tsplus_module_27.then(this.state.suppressed, interruptedCause);
935
804
  this.state.interruptors.add(fiberId);
936
805
  this.state.suppressed = newCause;
937
806
  }
938
-
939
- return this.await;
940
- }, fileName_1 + ":729:20");
807
+ }, fileName_1 + ":641:14");
941
808
  }
942
809
 
943
810
  unsafeTryDone(exit, trace) {
@@ -955,16 +822,16 @@ class FiberContext {
955
822
  const mailbox = this.state.mailbox;
956
823
  this.state.mailbox = null;
957
824
  this.unsafeSetInterrupting(true);
958
- return tsplus_module_10.flatMap_(mailbox, () => tsplus_module_10.fromExit(() => exit, fileName_1 + ":764:60"), fileName_1 + ":764:42");
825
+ return tsplus_module_11.flatMap_(mailbox, () => tsplus_module_11.fromExit(() => exit, fileName_1 + ":675:60"), fileName_1 + ":675:42");
959
826
  } else if (this._children.size === 0) {
960
827
  // We are truly "done" because all the children of this fiber have terminated,
961
828
  // and there are no more pending effects that we have to execute on the fiber.
962
- const interruptorsCause = tsplus_module_40.interruptorsCause(this.state);
963
- const newExit = tsplus_module_37.isEmpty(interruptorsCause) ? exit : tsplus_module_14.mapErrorCause_(exit, cause => {
964
- if (tsplus_module_26.contains_(cause, interruptorsCause)) {
829
+ const interruptorsCause = tsplus_module_38.interruptorsCause(this.state);
830
+ const newExit = tsplus_module_35.isEmpty(interruptorsCause) ? exit : tsplus_module_15.mapErrorCause_(exit, cause => {
831
+ if (tsplus_module_27.contains_(cause, interruptorsCause)) {
965
832
  return cause;
966
833
  } else {
967
- return tsplus_module_26.then(cause, interruptorsCause);
834
+ return tsplus_module_27.then(cause, interruptorsCause);
968
835
  }
969
836
  });
970
837
  const observers = this.state.observers;
@@ -975,26 +842,26 @@ class FiberContext {
975
842
  } else {
976
843
  // not done because there are children left to close
977
844
  this.unsafeSetInterrupting(true);
978
- let interruptChildren = tsplus_module_10.unit;
845
+ let interruptChildren = tsplus_module_11.unit;
979
846
 
980
847
  this._children.forEach(child => {
981
- interruptChildren = tsplus_module_10.flatMap_(interruptChildren, () => child.interruptAs(this.fiberId), fileName_1 + ":796:58");
848
+ interruptChildren = tsplus_module_11.flatMap_(interruptChildren, () => child.interruptAs(this.fiberId), fileName_1 + ":707:58");
982
849
  });
983
850
 
984
851
  this._children.clear();
985
852
 
986
- return tsplus_module_10.flatMap_(interruptChildren, () => tsplus_module_10.fromExit(() => exit, fileName_1 + ":800:70"), fileName_1 + ":800:52");
853
+ return tsplus_module_11.flatMap_(interruptChildren, () => tsplus_module_11.fromExit(() => exit, fileName_1 + ":711:70"), fileName_1 + ":711:52");
987
854
  }
988
855
  }
989
856
  }
990
857
  }
991
858
 
992
859
  unsafeSetAsyncCanceller(epoch, asyncCanceller0) {
993
- const asyncCanceller = !asyncCanceller0 ? tsplus_module_10.unit : asyncCanceller0;
860
+ const asyncCanceller = !asyncCanceller0 ? tsplus_module_11.unit : asyncCanceller0;
994
861
 
995
862
  if (this.state._tag === "Executing") {
996
863
  if (this.state.status._tag === "Suspended" && this.state.asyncCanceller._tag === "Pending" && this.state.status.epoch === epoch) {
997
- this.state.asyncCanceller = tsplus_module_39.registered(asyncCanceller);
864
+ this.state.asyncCanceller = tsplus_module_37.registered(asyncCanceller);
998
865
  } else if (this.state.status._tag === "Suspended" && this.state.asyncCanceller._tag === "Registered" && this.state.status.epoch === epoch) {
999
866
  throw new Error("inconsistent state in setAsyncCanceller");
1000
867
  }
@@ -1030,18 +897,18 @@ class FiberContext {
1030
897
  if (this.state._tag === "Executing" && this.state.status._tag === "Running"
1031
898
  /* FiberStatusTag.Running */
1032
899
  && this.state.asyncCanceller._tag === "Empty") {
1033
- const newStatus = tsplus_module_38.suspended(this.state.status.interrupting, this.unsafeIsInterruptible && !this.unsafeIsInterrupting, epoch, blockingOn, trace);
900
+ const newStatus = tsplus_module_36.suspended(this.state.status.interrupting, this.unsafeIsInterruptible && !this.unsafeIsInterrupting, epoch, blockingOn, trace);
1034
901
  this.state.status = newStatus;
1035
- this.state.asyncCanceller = tsplus_module_39.pending;
902
+ this.state.asyncCanceller = tsplus_module_37.pending;
1036
903
  } else {
1037
- throw new tsplus_module_32.IllegalStateError(`Fiber ${tsplus_module_3.threadName(this.fiberId)} is not running`);
904
+ throw new tsplus_module_29.IllegalStateError(`Fiber ${tsplus_module_3.threadName(this.fiberId)} is not running`);
1038
905
  }
1039
906
  }
1040
907
 
1041
908
  unsafeExitAsync(epoch) {
1042
909
  if (this.state._tag === "Executing" && this.state.status._tag === "Suspended" && this.state.status.epoch === epoch) {
1043
- this.state.status = tsplus_module_38.running(this.state.status.interrupting);
1044
- this.state.asyncCanceller = tsplus_module_39.empty;
910
+ this.state.status = tsplus_module_36.running(this.state.status.interrupting);
911
+ this.state.asyncCanceller = tsplus_module_37.empty;
1045
912
  return true;
1046
913
  }
1047
914
 
@@ -1057,31 +924,22 @@ class FiberContext {
1057
924
  }
1058
925
 
1059
926
  unsafeFork(io, forkScope = tsplus_module_1.nothing(), trace) {
1060
- const childId = tsplus_module_33.unsafeMake(tsplus_module_41.parse(trace));
1061
- const childFiberRefLocals = tsplus_module_11.mapWithIndex_(this.fiberRefLocals.get, (fiberRef, stack) => {
1062
- const oldValue = stack.head[1];
1063
- const newValue = tsplus_module_35.patch(fiberRef)(tsplus_module_35.fork(fiberRef))(oldValue);
1064
-
1065
- if (oldValue === newValue) {
1066
- return stack;
1067
- } else {
1068
- return tsplus_module_23.cons([childId, newValue], stack);
1069
- }
1070
- });
1071
- const parentScope = tsplus_module_31.getOrElse_(tsplus_module_31.orElse_(forkScope, () => this.unsafeGetRef(tsplus_module_30.forkScopeOverride)), () => this.scope);
927
+ const childId = tsplus_module_30.unsafeMake(tsplus_module_39.parse(trace));
928
+ const childFiberRefLocals = tsplus_module_13.forkAs(this.fiberRefs, childId).fiberRefLocals;
929
+ const parentScope = tsplus_module_33.getOrElse_(tsplus_module_33.orElse_(forkScope, () => this.unsafeGetRef(tsplus_module_10.forkScopeOverride)), () => this.scope);
1072
930
  const grandChildren = new Set();
1073
- const childContext = new FiberContext(childId, this.runtimeConfig, tsplus_module_9.single(this.unsafeIsInterruptible), new _AtomicReference.AtomicReference(childFiberRefLocals), grandChildren);
931
+ const childContext = new FiberContext(childId, this.runtimeConfig, tsplus_module_9.single(this.unsafeIsInterruptible), childFiberRefLocals, grandChildren);
1074
932
 
1075
- if (this.currentSupervisor !== tsplus_module_25.none) {
1076
- this.currentSupervisor.unsafeOnStart(this.unsafeGetRef(tsplus_module_30.currentEnvironment), io, tsplus_module_1.just(this), childContext);
933
+ if (this.currentSupervisor !== tsplus_module_26.none) {
934
+ this.currentSupervisor.unsafeOnStart(this.unsafeGetRef(tsplus_module_10.currentEnvironment), io, tsplus_module_1.just(this), childContext);
1077
935
  childContext.unsafeOnDone(exit => {
1078
- this.currentSupervisor.unsafeOnEnd(tsplus_module_14.flatten(exit), childContext);
936
+ this.currentSupervisor.unsafeOnEnd(tsplus_module_15.flatten(exit), childContext);
1079
937
  });
1080
938
  }
1081
939
 
1082
- const childIO = !parentScope.unsafeAdd(childContext) ? tsplus_module_34.interruptAs(parentScope.fiberId, fileName_1 + ":929:74") : io;
940
+ const childIO = !parentScope.unsafeAdd(childContext) ? tsplus_module_31.interruptAs(parentScope.fiberId, fileName_1 + ":832:74") : io;
1083
941
  childContext.nextIO = childIO;
1084
- this.unsafeGetRef(tsplus_module_30.currentScheduler).scheduleTask(() => childContext.runUntil(this.runtimeConfig.yieldOpCount));
942
+ this.unsafeGetRef(tsplus_module_10.currentScheduler).scheduleTask(() => childContext.runUntil(this.runtimeConfig.yieldOpCount));
1085
943
  return childContext;
1086
944
  }
1087
945
 
@@ -1091,7 +949,7 @@ class FiberContext {
1091
949
  if (exit == null) {
1092
950
  return;
1093
951
  } else {
1094
- k(tsplus_module_27.succeed(exit));
952
+ k(tsplus_module_28.succeed(exit));
1095
953
  }
1096
954
  }
1097
955
 
@@ -1100,26 +958,26 @@ class FiberContext {
1100
958
  case "Executing":
1101
959
  {
1102
960
  const suppressed = this.state.suppressed;
1103
- this.state.suppressed = tsplus_module_26.empty();
961
+ this.state.suppressed = tsplus_module_27.empty();
1104
962
  return suppressed;
1105
963
  }
1106
964
 
1107
965
  case "Done":
1108
966
  {
1109
- return tsplus_module_26.empty();
967
+ return tsplus_module_27.empty();
1110
968
  }
1111
969
  }
1112
970
  }
1113
971
 
1114
972
  unsafeGetDescriptor() {
1115
- return new tsplus_module_42.FiberDescriptor(this.fiberId, this.state.status, this.state.interruptors, tsplus_module_28.fromBoolean(this.unsafeIsInterruptible), this.scope);
973
+ return new tsplus_module_40.FiberDescriptor(this.fiberId, this.state.status, this.state.interruptors, tsplus_module_41.fromBoolean(this.unsafeIsInterruptible), this.scope);
1116
974
  }
1117
975
 
1118
976
  unsafeRace(race) {
1119
977
  const raceIndicator = new _AtomicReference.AtomicReference(true);
1120
978
  const left = this.unsafeFork(race.left, tsplus_module_1.nothing(), race.trace);
1121
979
  const right = this.unsafeFork(race.right, tsplus_module_1.nothing(), race.trace);
1122
- return tsplus_module_10.async(cb => {
980
+ return tsplus_module_11.async(cb => {
1123
981
  const leftRegister = left.unsafeAddObserver(() => {
1124
982
  this.unsafeCompleteRace(left, right, race.leftWins, raceIndicator, cb);
1125
983
  });
@@ -1135,7 +993,7 @@ class FiberContext {
1135
993
  this.unsafeCompleteRace(right, left, race.rightWins, raceIndicator, cb);
1136
994
  }
1137
995
  }
1138
- }, tsplus_module_3.combine_(left.fiberId, right.fiberId), fileName_1 + ":978:20");
996
+ }, tsplus_module_3.combine_(left.fiberId, right.fiberId), fileName_1 + ":881:20");
1139
997
  }
1140
998
 
1141
999
  unsafeCompleteRace(winner, loser, cont, ab, cb) {
@@ -1146,23 +1004,23 @@ class FiberContext {
1146
1004
 
1147
1005
  unsafeCaptureTrace(prefix) {
1148
1006
  const builder = new _StackTraceBuilder.StackTraceBuilder();
1149
- tsplus_module_43.forEach_(prefix, element => builder.append(tsplus_module_41.parse(element)));
1007
+ tsplus_module_42.forEach_(prefix, element => builder.append(tsplus_module_39.parse(element)));
1150
1008
  const stack = this.stack.clone();
1151
1009
 
1152
1010
  while (stack.hasNext) {
1153
- builder.append(tsplus_module_41.parse(stack.pop().trace));
1011
+ builder.append(tsplus_module_39.parse(stack.pop().trace));
1154
1012
  }
1155
1013
 
1156
- return new tsplus_module_44.Trace(this.fiberId, builder.result());
1014
+ return new tsplus_module_43.Trace(this.fiberId, builder.result());
1157
1015
  }
1158
1016
 
1159
1017
  unsafeEvalOn(effect, orElse) {
1160
1018
  if (this.state._tag === "Executing") {
1161
- const newMailbox = this.state.mailbox == null ? effect : tsplus_module_10.flatMap_(this.state.mailbox, () => effect, fileName_1 + ":1022:92");
1019
+ const newMailbox = this.state.mailbox == null ? effect : tsplus_module_11.flatMap_(this.state.mailbox, () => effect, fileName_1 + ":925:92");
1162
1020
  this.state.mailbox = newMailbox;
1163
- return tsplus_module_10.unit;
1021
+ return tsplus_module_11.unit;
1164
1022
  } else {
1165
- return tsplus_module_10.asUnit(orElse, fileName_1 + ":1026:20");
1023
+ return tsplus_module_11.asUnit(orElse, fileName_1 + ":929:20");
1166
1024
  }
1167
1025
  }
1168
1026
 
@@ -1177,39 +1035,51 @@ class FiberContext {
1177
1035
  }
1178
1036
 
1179
1037
  unsafeAddChild(child) {
1180
- this.unsafeEvalOn(tsplus_module_10.succeed(() => {
1038
+ this.unsafeEvalOn(tsplus_module_11.succeed(() => {
1181
1039
  this._children.add(child);
1182
- }, fileName_1 + ":1042:17"), tsplus_module_10.unit);
1040
+ }, fileName_1 + ":945:17"), tsplus_module_11.unit);
1183
1041
  }
1184
1042
 
1185
1043
  unsafeLog(message, trace) {
1186
- const logLevel = this.unsafeGetRef(tsplus_module_30.currentLogLevel);
1187
- const spans = this.unsafeGetRef(tsplus_module_30.currentLogSpan);
1188
- const annotations = this.unsafeGetRef(tsplus_module_30.currentLogAnnotations);
1189
- this.runtimeConfig.logger.log(tsplus_module_41.parse(trace), this.fiberId, logLevel, message, tsplus_module_26.empty(), this.fiberRefLocals.get, spans, annotations);
1044
+ const logLevel = this.unsafeGetRef(tsplus_module_10.currentLogLevel);
1045
+ const spans = this.unsafeGetRef(tsplus_module_10.currentLogSpan);
1046
+ const annotations = this.unsafeGetRef(tsplus_module_10.currentLogAnnotations);
1047
+ this.runtimeConfig.logger.log(tsplus_module_39.parse(trace), this.fiberId, logLevel, message, tsplus_module_27.empty(), this.fiberRefLocals, spans, annotations);
1190
1048
  }
1191
1049
 
1192
1050
  unsafeLogWith(message, cause, overrideLogLevel, overrideRef1 = null, overrideValue1 = null, trace) {
1193
- const logLevel = tsplus_module_31.getOrElse_(overrideLogLevel, () => this.unsafeGetRef(tsplus_module_30.currentLogLevel));
1194
- const spans = this.unsafeGetRef(tsplus_module_30.currentLogSpan);
1195
- const annotations = this.unsafeGetRef(tsplus_module_30.currentLogAnnotations);
1051
+ const logLevel = tsplus_module_33.getOrElse_(overrideLogLevel, () => this.unsafeGetRef(tsplus_module_10.currentLogLevel));
1052
+ const spans = this.unsafeGetRef(tsplus_module_10.currentLogSpan);
1053
+ const annotations = this.unsafeGetRef(tsplus_module_10.currentLogAnnotations);
1196
1054
  let contextMap;
1197
1055
 
1198
1056
  if (overrideRef1 !== null) {
1199
1057
  const map = this.unsafeGetRefs(this.fiberRefLocals);
1200
1058
 
1201
1059
  if (overrideValue1 === null) {
1202
- tsplus_module_11.remove_(map, overrideRef1);
1060
+ tsplus_module_12.remove_(map, overrideRef1);
1203
1061
  } else {
1204
- tsplus_module_11.set_(map, overrideRef1, overrideValue1);
1062
+ tsplus_module_12.set_(map, overrideRef1, overrideValue1);
1205
1063
  }
1206
1064
 
1207
1065
  contextMap = map;
1208
1066
  } else {
1209
- contextMap = this.fiberRefLocals.get;
1067
+ contextMap = this.fiberRefLocals;
1210
1068
  }
1211
1069
 
1212
- this.runtimeConfig.logger.log(tsplus_module_41.parse(trace), this.fiberId, logLevel, message, cause, contextMap, spans, annotations);
1070
+ this.runtimeConfig.logger.log(tsplus_module_39.parse(trace), this.fiberId, logLevel, message, cause, contextMap, spans, annotations);
1071
+ }
1072
+
1073
+ unsafeIsFatal(t) {
1074
+ return this.unsafeGetRef(tsplus_module_10.currentIsFatal).apply(t);
1075
+ }
1076
+
1077
+ unsafeHandleFatalError(t) {
1078
+ return this.unsafeGetRef(tsplus_module_10.currentReportFatal)(t);
1079
+ }
1080
+
1081
+ get currentSupervisor() {
1082
+ return this.unsafeGetRef(tsplus_module_10.currentSupervisor);
1213
1083
  }
1214
1084
 
1215
1085
  }