@fncts/io 0.0.17 → 0.0.19
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.
- package/Cached/internal.d.ts +1 -1
- package/CancellerState.d.ts +1 -1
- package/Channel/ChildExecutorDecision/definition.d.ts +1 -1
- package/Channel/UpstreamPullRequest/definition.d.ts +1 -1
- package/Channel/UpstreamPullStrategy/definition.d.ts +1 -1
- package/Channel/api/mergeAllWith.d.ts +1 -1
- package/Channel/internal/ChannelExecutor.d.ts +1 -1
- package/Channel/internal/ChannelState.d.ts +2 -2
- package/Channel/internal/MergeDecision.d.ts +1 -1
- package/Channel/internal/MergeState.d.ts +1 -1
- package/Channel/internal/SingleProducerAsyncInput.d.ts +1 -1
- package/Clock/definition.d.ts +1 -0
- package/Fiber/FiberContext.d.ts +22 -19
- package/Fiber/api/interruptAll.d.ts +1 -1
- package/Fiber/api/interruptAsFork.d.ts +8 -0
- package/Fiber/definition.d.ts +6 -8
- package/FiberRef/api.d.ts +7 -2
- package/FiberRef/definition.d.ts +4 -3
- package/FiberRef/unsafe.d.ts +18 -1
- package/FiberRefs/api.d.ts +5 -0
- package/FiberRefs/definition.d.ts +1 -1
- package/FiberState/definition.d.ts +2 -2
- package/FiberStatus/definition.d.ts +1 -1
- package/Future/definition.d.ts +1 -1
- package/Hub/definition.d.ts +1 -1
- package/IO/api/core-scope.d.ts +4 -3
- package/IO/api/interrupt.d.ts +2 -2
- package/IO/api/supervised.d.ts +10 -0
- package/IO/api.d.ts +7 -10
- package/IO/definition.d.ts +16 -139
- package/IO.d.ts +1 -0
- package/IOEnv/definition.d.ts +1 -1
- package/Layer/definition.d.ts +2 -2
- package/Ref/definition.d.ts +3 -3
- package/Reloadable/api.d.ts +21 -0
- package/Reloadable/constructors.d.ts +23 -0
- package/Reloadable/definition.d.ts +20 -0
- package/Reloadable.d.ts +3 -0
- package/RuntimeConfig.d.ts +1 -1
- package/STM/definition.d.ts +5 -5
- package/STM/internal/CommitState.d.ts +1 -1
- package/STM/internal/Entry.d.ts +2 -2
- package/STM/internal/Journal.d.ts +6 -6
- package/STM/internal/TryCommit.d.ts +2 -2
- package/STM/internal/Versioned.d.ts +1 -1
- package/Schedule/Decision.d.ts +1 -1
- package/Scope/ReleaseMap/definition.d.ts +1 -1
- package/Scope/definition.d.ts +2 -2
- package/ScopedRef/definition.d.ts +1 -1
- package/State/internal.d.ts +1 -1
- package/Stream/api.d.ts +1 -1
- package/Stream/definition.d.ts +1 -1
- package/Stream/internal/DebounceState.d.ts +4 -4
- package/Stream/internal/Handoff.d.ts +5 -5
- package/Stream/internal/Pull.d.ts +1 -1
- package/Stream/internal/SinkEndReason.d.ts +1 -1
- package/TExit/definition.d.ts +3 -3
- package/TReentrantLock/definition.d.ts +1 -1
- package/TRef/definition.d.ts +1 -1
- package/TxnId.d.ts +1 -1
- package/_cjs/Clock/definition.cjs +2 -1
- package/_cjs/Clock/definition.cjs.map +1 -1
- package/_cjs/Console/definition.cjs +1 -1
- package/_cjs/Console/definition.cjs.map +1 -1
- package/_cjs/Fiber/FiberContext.cjs +180 -310
- package/_cjs/Fiber/FiberContext.cjs.map +1 -1
- package/_cjs/Fiber/api/collectAll.cjs +2 -2
- package/_cjs/Fiber/api/collectAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interrupt.cjs +4 -2
- package/_cjs/Fiber/api/interrupt.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAll.cjs +8 -8
- package/_cjs/Fiber/api/interruptAll.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAs.cjs +7 -1
- package/_cjs/Fiber/api/interruptAs.cjs.map +1 -1
- package/_cjs/Fiber/api/interruptAsFork.cjs +15 -0
- package/_cjs/Fiber/api/interruptAsFork.cjs.map +1 -0
- package/_cjs/Fiber/api/interruptFork.cjs +5 -5
- package/_cjs/Fiber/api/interruptFork.cjs.map +1 -1
- package/_cjs/Fiber/definition.cjs +2 -2
- package/_cjs/Fiber/definition.cjs.map +1 -1
- package/_cjs/FiberRef/api.cjs +29 -10
- package/_cjs/FiberRef/api.cjs.map +1 -1
- package/_cjs/FiberRef/definition.cjs +2 -1
- package/_cjs/FiberRef/definition.cjs.map +1 -1
- package/_cjs/FiberRef/unsafe.cjs +29 -5
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/FiberRefs/api.cjs +28 -2
- package/_cjs/FiberRefs/api.cjs.map +1 -1
- package/_cjs/FiberRefs/join.cjs +1 -1
- package/_cjs/FiberRefs/join.cjs.map +1 -1
- package/_cjs/IO/api/core-scope.cjs +23 -15
- package/_cjs/IO/api/core-scope.cjs.map +1 -1
- package/_cjs/IO/api/ensuringChildren.cjs +4 -2
- package/_cjs/IO/api/ensuringChildren.cjs.map +1 -1
- package/_cjs/IO/api/interrupt.cjs +21 -11
- package/_cjs/IO/api/interrupt.cjs.map +1 -1
- package/_cjs/IO/api/supervised.cjs +26 -0
- package/_cjs/IO/api/supervised.cjs.map +1 -0
- package/_cjs/IO/api/withChildren.cjs +4 -2
- package/_cjs/IO/api/withChildren.cjs.map +1 -1
- package/_cjs/IO/api/zipC.cjs +10 -8
- package/_cjs/IO/api/zipC.cjs.map +1 -1
- package/_cjs/IO/api.cjs +67 -63
- package/_cjs/IO/api.cjs.map +1 -1
- package/_cjs/IO/definition.cjs +8 -226
- package/_cjs/IO/definition.cjs.map +1 -1
- package/_cjs/IO/runtime.cjs +7 -9
- package/_cjs/IO/runtime.cjs.map +1 -1
- package/_cjs/IO.cjs +13 -0
- package/_cjs/IO.cjs.map +1 -1
- package/_cjs/Layer/api.cjs +1 -1
- package/_cjs/Layer/api.cjs.map +1 -1
- package/_cjs/Random/definition.cjs +1 -1
- package/_cjs/Random/definition.cjs.map +1 -1
- package/_cjs/Reloadable/api.cjs +46 -0
- package/_cjs/Reloadable/api.cjs.map +1 -0
- package/_cjs/Reloadable/constructors.cjs +82 -0
- package/_cjs/Reloadable/constructors.cjs.map +1 -0
- package/_cjs/Reloadable/definition.cjs +58 -0
- package/_cjs/Reloadable/definition.cjs.map +1 -0
- package/_cjs/Reloadable.cjs +45 -0
- package/_cjs/Reloadable.cjs.map +1 -0
- package/_cjs/Scope/definition.cjs +1 -1
- package/_cjs/Scope/definition.cjs.map +1 -1
- package/_cjs/internal/IsFatal.cjs +129 -0
- package/_cjs/internal/IsFatal.cjs.map +1 -0
- package/_mjs/Clock/definition.mjs +2 -1
- package/_mjs/Clock/definition.mjs.map +1 -1
- package/_mjs/Console/definition.mjs +1 -1
- package/_mjs/Console/definition.mjs.map +1 -1
- package/_mjs/Fiber/FiberContext.mjs +180 -309
- package/_mjs/Fiber/FiberContext.mjs.map +1 -1
- package/_mjs/Fiber/api/collectAll.mjs +2 -2
- package/_mjs/Fiber/api/collectAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interrupt.mjs +3 -2
- package/_mjs/Fiber/api/interrupt.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAll.mjs +6 -6
- package/_mjs/Fiber/api/interruptAll.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAs.mjs +3 -1
- package/_mjs/Fiber/api/interruptAs.mjs.map +1 -1
- package/_mjs/Fiber/api/interruptAsFork.mjs +8 -0
- package/_mjs/Fiber/api/interruptAsFork.mjs.map +1 -0
- package/_mjs/Fiber/api/interruptFork.mjs +5 -4
- package/_mjs/Fiber/api/interruptFork.mjs.map +1 -1
- package/_mjs/Fiber/definition.mjs +2 -2
- package/_mjs/Fiber/definition.mjs.map +1 -1
- package/_mjs/FiberRef/api.mjs +26 -9
- package/_mjs/FiberRef/api.mjs.map +1 -1
- package/_mjs/FiberRef/definition.mjs +2 -1
- package/_mjs/FiberRef/definition.mjs.map +1 -1
- package/_mjs/FiberRef/unsafe.mjs +23 -4
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/FiberRefs/api.mjs +22 -1
- package/_mjs/FiberRefs/api.mjs.map +1 -1
- package/_mjs/FiberRefs/join.mjs +1 -1
- package/_mjs/FiberRefs/join.mjs.map +1 -1
- package/_mjs/IO/api/core-scope.mjs +21 -16
- package/_mjs/IO/api/core-scope.mjs.map +1 -1
- package/_mjs/IO/api/ensuringChildren.mjs +3 -2
- package/_mjs/IO/api/ensuringChildren.mjs.map +1 -1
- package/_mjs/IO/api/interrupt.mjs +18 -9
- package/_mjs/IO/api/interrupt.mjs.map +1 -1
- package/_mjs/IO/api/supervised.mjs +14 -0
- package/_mjs/IO/api/supervised.mjs.map +1 -0
- package/_mjs/IO/api/withChildren.mjs +3 -2
- package/_mjs/IO/api/withChildren.mjs.map +1 -1
- package/_mjs/IO/api/zipC.mjs +9 -8
- package/_mjs/IO/api/zipC.mjs.map +1 -1
- package/_mjs/IO/api.mjs +66 -60
- package/_mjs/IO/api.mjs.map +1 -1
- package/_mjs/IO/definition.mjs +5 -184
- package/_mjs/IO/definition.mjs.map +1 -1
- package/_mjs/IO/runtime.mjs +7 -8
- package/_mjs/IO/runtime.mjs.map +1 -1
- package/_mjs/IO.mjs +1 -0
- package/_mjs/IO.mjs.map +1 -1
- package/_mjs/Layer/api.mjs +1 -1
- package/_mjs/Layer/api.mjs.map +1 -1
- package/_mjs/Random/definition.mjs +1 -1
- package/_mjs/Random/definition.mjs.map +1 -1
- package/_mjs/Reloadable/api.mjs +30 -0
- package/_mjs/Reloadable/api.mjs.map +1 -0
- package/_mjs/Reloadable/constructors.mjs +55 -0
- package/_mjs/Reloadable/constructors.mjs.map +1 -0
- package/_mjs/Reloadable/definition.mjs +40 -0
- package/_mjs/Reloadable/definition.mjs.map +1 -0
- package/_mjs/Reloadable.mjs +5 -0
- package/_mjs/Reloadable.mjs.map +1 -0
- package/_mjs/Scope/definition.mjs +1 -1
- package/_mjs/Scope/definition.mjs.map +1 -1
- package/_mjs/internal/IsFatal.mjs +104 -0
- package/_mjs/internal/IsFatal.mjs.map +1 -0
- package/_src/Clock/definition.ts +1 -0
- package/_src/Fiber/FiberContext.ts +50 -135
- package/_src/Fiber/api/collectAll.ts +1 -4
- package/_src/Fiber/api/interruptAll.ts +2 -2
- package/_src/Fiber/api/interruptAs.ts +1 -1
- package/_src/Fiber/api/interruptAsFork.ts +7 -0
- package/_src/Fiber/api/interruptFork.ts +1 -1
- package/_src/Fiber/definition.ts +3 -5
- package/_src/FiberRef/api.ts +30 -7
- package/_src/FiberRef/definition.ts +1 -0
- package/_src/FiberRef/unsafe.ts +27 -3
- package/_src/FiberRefs/api.ts +16 -0
- package/_src/FiberRefs/join.ts +1 -1
- package/_src/IO/api/core-scope.ts +12 -10
- package/_src/IO/api/interrupt.ts +8 -3
- package/_src/IO/api/supervised.ts +14 -0
- package/_src/IO/api.ts +25 -26
- package/_src/IO/definition.ts +8 -158
- package/_src/IO/runtime.ts +7 -11
- package/_src/IO.ts +1 -0
- package/_src/Reloadable/api.ts +28 -0
- package/_src/Reloadable/constructors.ts +60 -0
- package/_src/Reloadable/definition.ts +34 -0
- package/_src/Reloadable.ts +5 -0
- package/_src/internal/IsFatal.ts +79 -0
- package/internal/IsFatal.d.ts +47 -0
- 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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
57
|
+
var tsplus_module_25 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/RuntimeConfig"));
|
|
58
58
|
|
|
59
|
-
var tsplus_module_26 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
87
|
+
var tsplus_module_40 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/FiberDescriptor"));
|
|
88
88
|
|
|
89
|
-
var tsplus_module_41 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/
|
|
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/
|
|
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/
|
|
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
|
|
182
|
+
return tsplus_module_11.succeedNow(v, fileName_1 + ":498:27");
|
|
185
183
|
} else {
|
|
186
|
-
return
|
|
184
|
+
return tsplus_module_11.succeed(() => {
|
|
187
185
|
this.interruptStatus.pop();
|
|
188
186
|
return v;
|
|
189
|
-
}, fileName_1 + ":
|
|
187
|
+
}, fileName_1 + ":500:24");
|
|
190
188
|
}
|
|
191
189
|
});
|
|
192
|
-
this.currentSupervisor
|
|
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 + ":
|
|
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
|
|
202
|
+
return tsplus_module_11.succeed(() => this.unsafePoll(), fileName_1 + ":87:22");
|
|
205
203
|
}
|
|
206
204
|
|
|
207
205
|
get inheritRefs() {
|
|
208
|
-
return
|
|
209
|
-
const childFiberRefLocals = this.fiberRefLocals
|
|
206
|
+
return tsplus_module_11.defer(() => {
|
|
207
|
+
const childFiberRefLocals = this.fiberRefLocals;
|
|
210
208
|
|
|
211
|
-
if (
|
|
212
|
-
return
|
|
209
|
+
if (tsplus_module_12.isEmpty(childFiberRefLocals)) {
|
|
210
|
+
return tsplus_module_11.unit;
|
|
213
211
|
} else {
|
|
214
|
-
return
|
|
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 + ":
|
|
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(
|
|
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(
|
|
233
|
-
const concBuilder = new
|
|
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 + ":
|
|
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
|
|
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
|
|
249
|
-
const cb = x => k(
|
|
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
|
|
256
|
+
return tsplus_module_22.left(tsplus_module_11.succeed(() => this.unsafeRemoveObserver(cb), fileName_1 + ":152:38"));
|
|
255
257
|
} else {
|
|
256
|
-
return
|
|
258
|
+
return tsplus_module_22.right(tsplus_module_11.succeedNow(result, fileName_1 + ":154:42"));
|
|
257
259
|
}
|
|
258
|
-
}, this.fiberId, fileName_1 + ":
|
|
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
|
|
268
|
+
return tsplus_module_23.unsafeMake(this);
|
|
267
269
|
}
|
|
268
270
|
|
|
269
271
|
get status() {
|
|
270
|
-
return
|
|
272
|
+
return tsplus_module_11.succeedNow(this.state.status, fileName_1 + ":168:25");
|
|
271
273
|
}
|
|
272
274
|
|
|
273
275
|
get trace() {
|
|
274
|
-
return
|
|
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.
|
|
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
|
|
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(
|
|
302
|
-
this.runtimeConfig.flags.isEnabled(
|
|
303
|
-
this.currentSupervisor !==
|
|
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 =
|
|
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(
|
|
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(
|
|
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 ?
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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(
|
|
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 =
|
|
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(
|
|
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 "
|
|
565
|
-
/* IOTag.
|
|
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.
|
|
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 =
|
|
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 (
|
|
576
|
+
if (tsplus_module_29.isInterruptedException(e)) {
|
|
710
577
|
const trace = current ? current.trace : undefined;
|
|
711
|
-
current =
|
|
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 =
|
|
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 =
|
|
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
|
|
604
|
+
this.currentSupervisor.unsafeOnSuspend(this);
|
|
736
605
|
}
|
|
737
606
|
}
|
|
738
607
|
|
|
739
608
|
unsafeRunLater(i0) {
|
|
740
|
-
this.unsafeGetRef(
|
|
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
|
|
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
|
|
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
|
|
756
|
-
const oldStack =
|
|
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 (
|
|
760
|
-
newStack =
|
|
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 =
|
|
631
|
+
newStack = tsplus_module_24.cons([this.fiberId, value], oldStack.tail);
|
|
763
632
|
} else {
|
|
764
|
-
newStack =
|
|
633
|
+
newStack = tsplus_module_24.cons([this.fiberId, value], oldStack);
|
|
765
634
|
}
|
|
766
635
|
|
|
767
|
-
const newState =
|
|
768
|
-
this.fiberRefLocals
|
|
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.
|
|
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
|
|
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 (!
|
|
691
|
+
if (!tsplus_module_35.isEmpty(cause)) {
|
|
823
692
|
if (this.state._tag === "Executing") {
|
|
824
|
-
this.state.suppressed =
|
|
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 =>
|
|
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
|
|
724
|
+
return tsplus_module_11.failCauseNow(cause, fileName_1 + ":576:43");
|
|
856
725
|
}, () => {
|
|
857
726
|
this.interruptStatus.pop();
|
|
858
|
-
return
|
|
859
|
-
}, fileName_1 + ":
|
|
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(
|
|
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 =
|
|
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
|
-
|
|
922
|
-
const interruptedCause =
|
|
923
|
-
return
|
|
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 =
|
|
929
|
-
this.state.status =
|
|
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 =
|
|
932
|
-
this.unsafeRunLater(
|
|
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 =
|
|
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
|
|
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 =
|
|
963
|
-
const newExit =
|
|
964
|
-
if (
|
|
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
|
|
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 =
|
|
845
|
+
let interruptChildren = tsplus_module_11.unit;
|
|
979
846
|
|
|
980
847
|
this._children.forEach(child => {
|
|
981
|
-
interruptChildren =
|
|
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
|
|
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 ?
|
|
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 =
|
|
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 =
|
|
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 =
|
|
902
|
+
this.state.asyncCanceller = tsplus_module_37.pending;
|
|
1036
903
|
} else {
|
|
1037
|
-
throw new
|
|
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 =
|
|
1044
|
-
this.state.asyncCanceller =
|
|
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 =
|
|
1061
|
-
const childFiberRefLocals =
|
|
1062
|
-
|
|
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),
|
|
931
|
+
const childContext = new FiberContext(childId, this.runtimeConfig, tsplus_module_9.single(this.unsafeIsInterruptible), childFiberRefLocals, grandChildren);
|
|
1074
932
|
|
|
1075
|
-
if (this.currentSupervisor !==
|
|
1076
|
-
this.currentSupervisor.unsafeOnStart(this.unsafeGetRef(
|
|
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(
|
|
936
|
+
this.currentSupervisor.unsafeOnEnd(tsplus_module_15.flatten(exit), childContext);
|
|
1079
937
|
});
|
|
1080
938
|
}
|
|
1081
939
|
|
|
1082
|
-
const childIO = !parentScope.unsafeAdd(childContext) ?
|
|
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(
|
|
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(
|
|
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 =
|
|
961
|
+
this.state.suppressed = tsplus_module_27.empty();
|
|
1104
962
|
return suppressed;
|
|
1105
963
|
}
|
|
1106
964
|
|
|
1107
965
|
case "Done":
|
|
1108
966
|
{
|
|
1109
|
-
return
|
|
967
|
+
return tsplus_module_27.empty();
|
|
1110
968
|
}
|
|
1111
969
|
}
|
|
1112
970
|
}
|
|
1113
971
|
|
|
1114
972
|
unsafeGetDescriptor() {
|
|
1115
|
-
return new
|
|
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
|
|
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 + ":
|
|
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
|
-
|
|
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(
|
|
1011
|
+
builder.append(tsplus_module_39.parse(stack.pop().trace));
|
|
1154
1012
|
}
|
|
1155
1013
|
|
|
1156
|
-
return new
|
|
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 :
|
|
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
|
|
1021
|
+
return tsplus_module_11.unit;
|
|
1164
1022
|
} else {
|
|
1165
|
-
return
|
|
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(
|
|
1038
|
+
this.unsafeEvalOn(tsplus_module_11.succeed(() => {
|
|
1181
1039
|
this._children.add(child);
|
|
1182
|
-
}, fileName_1 + ":
|
|
1040
|
+
}, fileName_1 + ":945:17"), tsplus_module_11.unit);
|
|
1183
1041
|
}
|
|
1184
1042
|
|
|
1185
1043
|
unsafeLog(message, trace) {
|
|
1186
|
-
const logLevel = this.unsafeGetRef(
|
|
1187
|
-
const spans = this.unsafeGetRef(
|
|
1188
|
-
const annotations = this.unsafeGetRef(
|
|
1189
|
-
this.runtimeConfig.logger.log(
|
|
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 =
|
|
1194
|
-
const spans = this.unsafeGetRef(
|
|
1195
|
-
const annotations = this.unsafeGetRef(
|
|
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
|
-
|
|
1060
|
+
tsplus_module_12.remove_(map, overrideRef1);
|
|
1203
1061
|
} else {
|
|
1204
|
-
|
|
1062
|
+
tsplus_module_12.set_(map, overrideRef1, overrideValue1);
|
|
1205
1063
|
}
|
|
1206
1064
|
|
|
1207
1065
|
contextMap = map;
|
|
1208
1066
|
} else {
|
|
1209
|
-
contextMap = this.fiberRefLocals
|
|
1067
|
+
contextMap = this.fiberRefLocals;
|
|
1210
1068
|
}
|
|
1211
1069
|
|
|
1212
|
-
this.runtimeConfig.logger.log(
|
|
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
|
}
|