brass-runtime 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/agent/cli/main.cjs +44 -43
- package/dist/agent/cli/main.js +5 -4
- package/dist/agent/cli/main.mjs +5 -4
- package/dist/agent/index.cjs +4 -3
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +3 -2
- package/dist/agent/index.mjs +3 -2
- package/dist/{chunk-WJESVBWN.js → chunk-3QMOKAS5.js} +9 -7
- package/dist/{chunk-BMRF4FN6.js → chunk-4NHES7VK.mjs} +59 -237
- package/dist/chunk-AR22SXML.js +1043 -0
- package/dist/{chunk-4N2JEK4H.mjs → chunk-BDF4AMWX.mjs} +27 -151
- package/dist/chunk-BDYEENHT.js +224 -0
- package/dist/{chunk-JT7D6M5H.js → chunk-BMH5AV44.js} +27 -151
- package/dist/chunk-ELOOF35R.mjs +131 -0
- package/dist/chunk-JFPU5GQI.mjs +1043 -0
- package/dist/{chunk-MQF7HZ7Y.mjs → chunk-K6M7MDZ4.mjs} +9 -7
- package/dist/chunk-MS34J5LY.cjs +224 -0
- package/dist/{chunk-UWMMYKVK.mjs → chunk-PPUXIH5R.js} +59 -237
- package/dist/chunk-R3R2FVLG.cjs +131 -0
- package/dist/chunk-STVLQ3XD.cjs +489 -0
- package/dist/{chunk-BKBFSOGT.cjs → chunk-TGIFUAK4.cjs} +26 -150
- package/dist/chunk-TO7IKXYT.js +131 -0
- package/dist/chunk-UMAZLXAB.mjs +224 -0
- package/dist/{chunk-XTMZTVIT.cjs → chunk-VEZNF5GZ.cjs} +136 -134
- package/dist/chunk-XPZNXSVN.cjs +1043 -0
- package/dist/core/index.cjs +216 -0
- package/dist/core/index.d.ts +673 -0
- package/dist/core/index.js +216 -0
- package/dist/core/index.mjs +216 -0
- package/dist/{effect-DM56H743.d.ts → effect-CMOQKX8y.d.ts} +12 -11
- package/dist/http/index.cjs +2557 -235
- package/dist/http/index.d.ts +1514 -4
- package/dist/http/index.js +2549 -227
- package/dist/http/index.mjs +2549 -227
- package/dist/index.cjs +237 -1168
- package/dist/index.d.ts +7 -673
- package/dist/index.js +77 -1008
- package/dist/index.mjs +77 -1008
- package/dist/stream-FQm9h4Mg.d.ts +74 -0
- package/dist/tracing-DNT9jEbr.d.ts +106 -0
- package/package.json +11 -3
- package/dist/chunk-SKVY72E5.cjs +0 -667
- package/dist/stream-Oqe6WeLE.d.ts +0 -173
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import {
|
|
2
|
+
andThen,
|
|
3
|
+
assertCompletesWithin,
|
|
4
|
+
assertFails,
|
|
5
|
+
assertFailsWith,
|
|
6
|
+
assertSucceeds,
|
|
7
|
+
bracket,
|
|
8
|
+
catchTag,
|
|
9
|
+
catchTags,
|
|
10
|
+
compose,
|
|
11
|
+
delayedEffect,
|
|
12
|
+
derivedRef,
|
|
13
|
+
elapsed,
|
|
14
|
+
ensuring,
|
|
15
|
+
exponential,
|
|
16
|
+
fixed,
|
|
17
|
+
flakyEffect,
|
|
18
|
+
gracefulShutdown,
|
|
19
|
+
intersect,
|
|
20
|
+
jittered,
|
|
21
|
+
layer,
|
|
22
|
+
layerFail,
|
|
23
|
+
layerFrom,
|
|
24
|
+
layerSucceed,
|
|
25
|
+
linkAbortController,
|
|
26
|
+
makeCancelToken,
|
|
27
|
+
makeMetrics,
|
|
28
|
+
makeRef,
|
|
29
|
+
makeSemaphore,
|
|
30
|
+
makeTestRuntime,
|
|
31
|
+
makeTracer,
|
|
32
|
+
makeWorkerPool,
|
|
33
|
+
managed,
|
|
34
|
+
managedAll,
|
|
35
|
+
mapError as mapError2,
|
|
36
|
+
mapLayer,
|
|
37
|
+
merge,
|
|
38
|
+
neverEffect,
|
|
39
|
+
orElse,
|
|
40
|
+
provideLayer,
|
|
41
|
+
recurs,
|
|
42
|
+
registerShutdownHooks,
|
|
43
|
+
repeatWithSchedule,
|
|
44
|
+
retryWithSchedule,
|
|
45
|
+
tagError,
|
|
46
|
+
take,
|
|
47
|
+
union,
|
|
48
|
+
useManaged,
|
|
49
|
+
whileInput
|
|
50
|
+
} from "../chunk-AR22SXML.js";
|
|
51
|
+
import {
|
|
52
|
+
makeCircuitBreaker,
|
|
53
|
+
retry,
|
|
54
|
+
retryN,
|
|
55
|
+
retryWithBackoff,
|
|
56
|
+
sleep,
|
|
57
|
+
timeout
|
|
58
|
+
} from "../chunk-BDYEENHT.js";
|
|
59
|
+
import {
|
|
60
|
+
Async,
|
|
61
|
+
Cause,
|
|
62
|
+
Exit,
|
|
63
|
+
NoopHooks,
|
|
64
|
+
Runtime,
|
|
65
|
+
RuntimeFiber,
|
|
66
|
+
Scope,
|
|
67
|
+
abortablePromiseStats,
|
|
68
|
+
acquireRelease,
|
|
69
|
+
asyncCatchAll,
|
|
70
|
+
asyncEffect,
|
|
71
|
+
asyncFail,
|
|
72
|
+
asyncFlatMap,
|
|
73
|
+
asyncFold,
|
|
74
|
+
asyncInterruptible,
|
|
75
|
+
asyncMap,
|
|
76
|
+
asyncMapError,
|
|
77
|
+
asyncSucceed,
|
|
78
|
+
asyncSync,
|
|
79
|
+
asyncTotal,
|
|
80
|
+
catchAll,
|
|
81
|
+
end,
|
|
82
|
+
fail,
|
|
83
|
+
flatMap,
|
|
84
|
+
fork,
|
|
85
|
+
fromPromiseAbortable,
|
|
86
|
+
getBenchmarkBudget,
|
|
87
|
+
getCurrentFiber,
|
|
88
|
+
map,
|
|
89
|
+
mapAsync,
|
|
90
|
+
mapError,
|
|
91
|
+
mapTryAsync,
|
|
92
|
+
none,
|
|
93
|
+
orElseOptional,
|
|
94
|
+
resetAbortablePromiseStats,
|
|
95
|
+
runtimeForCaller,
|
|
96
|
+
setBenchmarkBudget,
|
|
97
|
+
some,
|
|
98
|
+
succeed,
|
|
99
|
+
sync,
|
|
100
|
+
toPromise,
|
|
101
|
+
toPromiseByCaller,
|
|
102
|
+
unit,
|
|
103
|
+
unsafeGetCurrentRuntime,
|
|
104
|
+
unsafeRunAsync,
|
|
105
|
+
unsafeRunFoldWithEnv,
|
|
106
|
+
withAsyncPromise,
|
|
107
|
+
withCurrentFiber,
|
|
108
|
+
withScope,
|
|
109
|
+
withScopeAsync
|
|
110
|
+
} from "../chunk-BMH5AV44.js";
|
|
111
|
+
export {
|
|
112
|
+
Async,
|
|
113
|
+
Cause,
|
|
114
|
+
Exit,
|
|
115
|
+
NoopHooks,
|
|
116
|
+
Runtime,
|
|
117
|
+
RuntimeFiber,
|
|
118
|
+
Scope,
|
|
119
|
+
abortablePromiseStats,
|
|
120
|
+
acquireRelease,
|
|
121
|
+
andThen as andThenSchedule,
|
|
122
|
+
assertCompletesWithin,
|
|
123
|
+
assertFails,
|
|
124
|
+
assertFailsWith,
|
|
125
|
+
assertSucceeds,
|
|
126
|
+
asyncEffect as async,
|
|
127
|
+
asyncCatchAll,
|
|
128
|
+
asyncFail,
|
|
129
|
+
asyncFlatMap,
|
|
130
|
+
asyncFold,
|
|
131
|
+
asyncInterruptible,
|
|
132
|
+
asyncMap,
|
|
133
|
+
asyncMapError,
|
|
134
|
+
asyncSucceed,
|
|
135
|
+
asyncSync,
|
|
136
|
+
asyncTotal,
|
|
137
|
+
bracket,
|
|
138
|
+
catchAll,
|
|
139
|
+
catchTag,
|
|
140
|
+
catchTags,
|
|
141
|
+
compose as composeLayer,
|
|
142
|
+
delayedEffect,
|
|
143
|
+
derivedRef,
|
|
144
|
+
elapsed,
|
|
145
|
+
end,
|
|
146
|
+
ensuring,
|
|
147
|
+
exponential,
|
|
148
|
+
fail,
|
|
149
|
+
fixed,
|
|
150
|
+
flakyEffect,
|
|
151
|
+
flatMap,
|
|
152
|
+
fork,
|
|
153
|
+
fromPromiseAbortable,
|
|
154
|
+
getBenchmarkBudget,
|
|
155
|
+
getCurrentFiber,
|
|
156
|
+
gracefulShutdown,
|
|
157
|
+
intersect,
|
|
158
|
+
jittered,
|
|
159
|
+
layer,
|
|
160
|
+
layerFail,
|
|
161
|
+
layerFrom,
|
|
162
|
+
layerSucceed,
|
|
163
|
+
linkAbortController,
|
|
164
|
+
makeCancelToken,
|
|
165
|
+
makeCircuitBreaker,
|
|
166
|
+
makeMetrics,
|
|
167
|
+
makeRef,
|
|
168
|
+
makeSemaphore,
|
|
169
|
+
makeTestRuntime,
|
|
170
|
+
makeTracer,
|
|
171
|
+
makeWorkerPool,
|
|
172
|
+
managed,
|
|
173
|
+
managedAll,
|
|
174
|
+
map,
|
|
175
|
+
mapAsync,
|
|
176
|
+
mapError,
|
|
177
|
+
mapError2 as mapErrorTyped,
|
|
178
|
+
mapLayer,
|
|
179
|
+
mapTryAsync,
|
|
180
|
+
merge as mergeLayer,
|
|
181
|
+
neverEffect,
|
|
182
|
+
none,
|
|
183
|
+
orElse,
|
|
184
|
+
orElseOptional,
|
|
185
|
+
provideLayer,
|
|
186
|
+
recurs,
|
|
187
|
+
registerShutdownHooks,
|
|
188
|
+
repeatWithSchedule,
|
|
189
|
+
resetAbortablePromiseStats,
|
|
190
|
+
retry,
|
|
191
|
+
retryN,
|
|
192
|
+
retryWithBackoff,
|
|
193
|
+
retryWithSchedule,
|
|
194
|
+
runtimeForCaller,
|
|
195
|
+
setBenchmarkBudget,
|
|
196
|
+
sleep,
|
|
197
|
+
some,
|
|
198
|
+
succeed,
|
|
199
|
+
sync,
|
|
200
|
+
tagError,
|
|
201
|
+
take as takeSchedule,
|
|
202
|
+
timeout,
|
|
203
|
+
toPromise,
|
|
204
|
+
toPromiseByCaller,
|
|
205
|
+
union,
|
|
206
|
+
unit,
|
|
207
|
+
unsafeGetCurrentRuntime,
|
|
208
|
+
unsafeRunAsync,
|
|
209
|
+
unsafeRunFoldWithEnv,
|
|
210
|
+
useManaged,
|
|
211
|
+
whileInput,
|
|
212
|
+
withAsyncPromise,
|
|
213
|
+
withCurrentFiber,
|
|
214
|
+
withScope,
|
|
215
|
+
withScopeAsync
|
|
216
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import {
|
|
2
|
+
andThen,
|
|
3
|
+
assertCompletesWithin,
|
|
4
|
+
assertFails,
|
|
5
|
+
assertFailsWith,
|
|
6
|
+
assertSucceeds,
|
|
7
|
+
bracket,
|
|
8
|
+
catchTag,
|
|
9
|
+
catchTags,
|
|
10
|
+
compose,
|
|
11
|
+
delayedEffect,
|
|
12
|
+
derivedRef,
|
|
13
|
+
elapsed,
|
|
14
|
+
ensuring,
|
|
15
|
+
exponential,
|
|
16
|
+
fixed,
|
|
17
|
+
flakyEffect,
|
|
18
|
+
gracefulShutdown,
|
|
19
|
+
intersect,
|
|
20
|
+
jittered,
|
|
21
|
+
layer,
|
|
22
|
+
layerFail,
|
|
23
|
+
layerFrom,
|
|
24
|
+
layerSucceed,
|
|
25
|
+
linkAbortController,
|
|
26
|
+
makeCancelToken,
|
|
27
|
+
makeMetrics,
|
|
28
|
+
makeRef,
|
|
29
|
+
makeSemaphore,
|
|
30
|
+
makeTestRuntime,
|
|
31
|
+
makeTracer,
|
|
32
|
+
makeWorkerPool,
|
|
33
|
+
managed,
|
|
34
|
+
managedAll,
|
|
35
|
+
mapError as mapError2,
|
|
36
|
+
mapLayer,
|
|
37
|
+
merge,
|
|
38
|
+
neverEffect,
|
|
39
|
+
orElse,
|
|
40
|
+
provideLayer,
|
|
41
|
+
recurs,
|
|
42
|
+
registerShutdownHooks,
|
|
43
|
+
repeatWithSchedule,
|
|
44
|
+
retryWithSchedule,
|
|
45
|
+
tagError,
|
|
46
|
+
take,
|
|
47
|
+
union,
|
|
48
|
+
useManaged,
|
|
49
|
+
whileInput
|
|
50
|
+
} from "../chunk-JFPU5GQI.mjs";
|
|
51
|
+
import {
|
|
52
|
+
makeCircuitBreaker,
|
|
53
|
+
retry,
|
|
54
|
+
retryN,
|
|
55
|
+
retryWithBackoff,
|
|
56
|
+
sleep,
|
|
57
|
+
timeout
|
|
58
|
+
} from "../chunk-UMAZLXAB.mjs";
|
|
59
|
+
import {
|
|
60
|
+
Async,
|
|
61
|
+
Cause,
|
|
62
|
+
Exit,
|
|
63
|
+
NoopHooks,
|
|
64
|
+
Runtime,
|
|
65
|
+
RuntimeFiber,
|
|
66
|
+
Scope,
|
|
67
|
+
abortablePromiseStats,
|
|
68
|
+
acquireRelease,
|
|
69
|
+
asyncCatchAll,
|
|
70
|
+
asyncEffect,
|
|
71
|
+
asyncFail,
|
|
72
|
+
asyncFlatMap,
|
|
73
|
+
asyncFold,
|
|
74
|
+
asyncInterruptible,
|
|
75
|
+
asyncMap,
|
|
76
|
+
asyncMapError,
|
|
77
|
+
asyncSucceed,
|
|
78
|
+
asyncSync,
|
|
79
|
+
asyncTotal,
|
|
80
|
+
catchAll,
|
|
81
|
+
end,
|
|
82
|
+
fail,
|
|
83
|
+
flatMap,
|
|
84
|
+
fork,
|
|
85
|
+
fromPromiseAbortable,
|
|
86
|
+
getBenchmarkBudget,
|
|
87
|
+
getCurrentFiber,
|
|
88
|
+
map,
|
|
89
|
+
mapAsync,
|
|
90
|
+
mapError,
|
|
91
|
+
mapTryAsync,
|
|
92
|
+
none,
|
|
93
|
+
orElseOptional,
|
|
94
|
+
resetAbortablePromiseStats,
|
|
95
|
+
runtimeForCaller,
|
|
96
|
+
setBenchmarkBudget,
|
|
97
|
+
some,
|
|
98
|
+
succeed,
|
|
99
|
+
sync,
|
|
100
|
+
toPromise,
|
|
101
|
+
toPromiseByCaller,
|
|
102
|
+
unit,
|
|
103
|
+
unsafeGetCurrentRuntime,
|
|
104
|
+
unsafeRunAsync,
|
|
105
|
+
unsafeRunFoldWithEnv,
|
|
106
|
+
withAsyncPromise,
|
|
107
|
+
withCurrentFiber,
|
|
108
|
+
withScope,
|
|
109
|
+
withScopeAsync
|
|
110
|
+
} from "../chunk-BDF4AMWX.mjs";
|
|
111
|
+
export {
|
|
112
|
+
Async,
|
|
113
|
+
Cause,
|
|
114
|
+
Exit,
|
|
115
|
+
NoopHooks,
|
|
116
|
+
Runtime,
|
|
117
|
+
RuntimeFiber,
|
|
118
|
+
Scope,
|
|
119
|
+
abortablePromiseStats,
|
|
120
|
+
acquireRelease,
|
|
121
|
+
andThen as andThenSchedule,
|
|
122
|
+
assertCompletesWithin,
|
|
123
|
+
assertFails,
|
|
124
|
+
assertFailsWith,
|
|
125
|
+
assertSucceeds,
|
|
126
|
+
asyncEffect as async,
|
|
127
|
+
asyncCatchAll,
|
|
128
|
+
asyncFail,
|
|
129
|
+
asyncFlatMap,
|
|
130
|
+
asyncFold,
|
|
131
|
+
asyncInterruptible,
|
|
132
|
+
asyncMap,
|
|
133
|
+
asyncMapError,
|
|
134
|
+
asyncSucceed,
|
|
135
|
+
asyncSync,
|
|
136
|
+
asyncTotal,
|
|
137
|
+
bracket,
|
|
138
|
+
catchAll,
|
|
139
|
+
catchTag,
|
|
140
|
+
catchTags,
|
|
141
|
+
compose as composeLayer,
|
|
142
|
+
delayedEffect,
|
|
143
|
+
derivedRef,
|
|
144
|
+
elapsed,
|
|
145
|
+
end,
|
|
146
|
+
ensuring,
|
|
147
|
+
exponential,
|
|
148
|
+
fail,
|
|
149
|
+
fixed,
|
|
150
|
+
flakyEffect,
|
|
151
|
+
flatMap,
|
|
152
|
+
fork,
|
|
153
|
+
fromPromiseAbortable,
|
|
154
|
+
getBenchmarkBudget,
|
|
155
|
+
getCurrentFiber,
|
|
156
|
+
gracefulShutdown,
|
|
157
|
+
intersect,
|
|
158
|
+
jittered,
|
|
159
|
+
layer,
|
|
160
|
+
layerFail,
|
|
161
|
+
layerFrom,
|
|
162
|
+
layerSucceed,
|
|
163
|
+
linkAbortController,
|
|
164
|
+
makeCancelToken,
|
|
165
|
+
makeCircuitBreaker,
|
|
166
|
+
makeMetrics,
|
|
167
|
+
makeRef,
|
|
168
|
+
makeSemaphore,
|
|
169
|
+
makeTestRuntime,
|
|
170
|
+
makeTracer,
|
|
171
|
+
makeWorkerPool,
|
|
172
|
+
managed,
|
|
173
|
+
managedAll,
|
|
174
|
+
map,
|
|
175
|
+
mapAsync,
|
|
176
|
+
mapError,
|
|
177
|
+
mapError2 as mapErrorTyped,
|
|
178
|
+
mapLayer,
|
|
179
|
+
mapTryAsync,
|
|
180
|
+
merge as mergeLayer,
|
|
181
|
+
neverEffect,
|
|
182
|
+
none,
|
|
183
|
+
orElse,
|
|
184
|
+
orElseOptional,
|
|
185
|
+
provideLayer,
|
|
186
|
+
recurs,
|
|
187
|
+
registerShutdownHooks,
|
|
188
|
+
repeatWithSchedule,
|
|
189
|
+
resetAbortablePromiseStats,
|
|
190
|
+
retry,
|
|
191
|
+
retryN,
|
|
192
|
+
retryWithBackoff,
|
|
193
|
+
retryWithSchedule,
|
|
194
|
+
runtimeForCaller,
|
|
195
|
+
setBenchmarkBudget,
|
|
196
|
+
sleep,
|
|
197
|
+
some,
|
|
198
|
+
succeed,
|
|
199
|
+
sync,
|
|
200
|
+
tagError,
|
|
201
|
+
take as takeSchedule,
|
|
202
|
+
timeout,
|
|
203
|
+
toPromise,
|
|
204
|
+
toPromiseByCaller,
|
|
205
|
+
union,
|
|
206
|
+
unit,
|
|
207
|
+
unsafeGetCurrentRuntime,
|
|
208
|
+
unsafeRunAsync,
|
|
209
|
+
unsafeRunFoldWithEnv,
|
|
210
|
+
useManaged,
|
|
211
|
+
whileInput,
|
|
212
|
+
withAsyncPromise,
|
|
213
|
+
withCurrentFiber,
|
|
214
|
+
withScope,
|
|
215
|
+
withScopeAsync
|
|
216
|
+
};
|
|
@@ -878,16 +878,16 @@ type Async<R, E, A> = {
|
|
|
878
878
|
readonly register: (env: R, cb: (exit: Exit<E, A>) => void) => void | (() => void);
|
|
879
879
|
} | {
|
|
880
880
|
readonly _tag: "FlatMap";
|
|
881
|
-
readonly first: Async<
|
|
882
|
-
readonly andThen: (a: any) => Async<
|
|
881
|
+
readonly first: Async<any, any, any>;
|
|
882
|
+
readonly andThen: (a: any) => Async<any, any, A>;
|
|
883
883
|
} | {
|
|
884
884
|
readonly _tag: "Fold";
|
|
885
|
-
readonly first: Async<
|
|
886
|
-
readonly onFailure: (e: any) => Async<
|
|
887
|
-
readonly onSuccess: (a: any) => Async<
|
|
885
|
+
readonly first: Async<any, any, any>;
|
|
886
|
+
readonly onFailure: (e: any) => Async<any, any, A>;
|
|
887
|
+
readonly onSuccess: (a: any) => Async<any, any, A>;
|
|
888
888
|
} | {
|
|
889
889
|
readonly _tag: "Fork";
|
|
890
|
-
readonly effect: Async<
|
|
890
|
+
readonly effect: Async<any, any, any>;
|
|
891
891
|
readonly scopeId?: number;
|
|
892
892
|
};
|
|
893
893
|
declare const Async: {
|
|
@@ -896,7 +896,7 @@ declare const Async: {
|
|
|
896
896
|
sync: <R, E, A>(thunk: (env: R) => A) => Async<R, E, A>;
|
|
897
897
|
async: <R, E, A>(register: (env: R, cb: (exit: Exit<E, A>) => void) => void | (() => void)) => Async<R, E, A>;
|
|
898
898
|
};
|
|
899
|
-
declare function asyncFold<R, E, A, B>(fa: Async<R, E, A>, onFailure: (e: E) => Async<
|
|
899
|
+
declare function asyncFold<R, E, A, RFail, EFail, B, RSuccess, ESuccess, C>(fa: Async<R, E, A>, onFailure: (e: E) => Async<RFail, EFail, B>, onSuccess: (a: A) => Async<RSuccess, ESuccess, C>): Async<R & RFail & RSuccess, EFail | ESuccess, B | C>;
|
|
900
900
|
declare function asyncCatchAll<R, E, A, R2, E2, B>(fa: Async<R, E, A>, handler: (e: E) => Async<R2, E2, B>): Async<R & R2, E2, A | B>;
|
|
901
901
|
declare function asyncMapError<R, E, E2, A>(fa: Async<R, E, A>, f: (e: E) => E2): Async<R, E2, A>;
|
|
902
902
|
declare const unit: <R>() => Async<R, never, void>;
|
|
@@ -904,9 +904,10 @@ declare const asyncSucceed: <A>(value: A) => Async<unknown, never, A>;
|
|
|
904
904
|
declare const asyncFail: <E>(error: E) => Async<unknown, E, never>;
|
|
905
905
|
declare const asyncSync: <R, A>(thunk: (env: R) => A) => Async<R, unknown, A>;
|
|
906
906
|
declare const asyncTotal: <A>(thunk: () => A) => Async<unknown, unknown, A>;
|
|
907
|
-
declare const
|
|
907
|
+
declare const asyncEffect: <R, E, A>(register: (env: R, cb: (exit: Exit<E, A>) => void) => void | Canceler) => Async<R, E, A>;
|
|
908
|
+
|
|
908
909
|
declare function asyncMap<R, E, A, B>(fa: Async<R, E, A>, f: (a: A) => B): Async<R, E, B>;
|
|
909
|
-
declare function asyncFlatMap<R, E, A, B>(fa: Async<R, E, A>, f: (a: A) => Async<
|
|
910
|
+
declare function asyncFlatMap<R, E, A, R2, E2, B>(fa: Async<R, E, A>, f: (a: A) => Async<R2, E2, B>): Async<R & R2, E | E2, B>;
|
|
910
911
|
declare function acquireRelease<R, E, A>(acquire: Async<R, E, A>, release: (res: A, exit: Exit<E, any>) => Async<R, any, any>, scope: Scope<R>): Async<R, E, A>;
|
|
911
912
|
declare function asyncInterruptible<R, E, A>(register: (env: R, cb: (exit: Exit<E, A>) => void) => void | Canceler): Async<R, E, A>;
|
|
912
913
|
type AsyncWithPromise<R, E, A> = Async<R, E, A> & {
|
|
@@ -959,9 +960,9 @@ declare const fail: <E>(error: E) => ZIO<unknown, E, never>;
|
|
|
959
960
|
declare const sync: <R, A>(thunk: (env: R) => A) => ZIO<R, unknown, A>;
|
|
960
961
|
declare const map: <R, E, A, B>(fa: ZIO<R, E, A>, f: (a: A) => B) => Async<R, E, B>;
|
|
961
962
|
declare const flatMap: <R, E, A, R2, E2, B>(fa: ZIO<R, E, A>, f: (a: A) => ZIO<R2, E2, B>) => ZIO<R & R2, E | E2, B>;
|
|
962
|
-
declare const mapError: <R, E, E2, A>(fa: ZIO<R, E, A>, f: (e: E) => E2) =>
|
|
963
|
+
declare const mapError: <R, E, E2, A>(fa: ZIO<R, E, A>, f: (e: E) => E2) => ZIO<R, E2, A>;
|
|
963
964
|
declare const catchAll: <R, E, A, R2, E2, B>(fa: ZIO<R, E, A>, handler: (e: E) => ZIO<R2, E2, B>) => ZIO<R & R2, E2, A | B>;
|
|
964
965
|
declare function orElseOptional<R, E, A, R2, A2>(fa: ZIO<R, Option<E>, A>, that: () => ZIO<R2, Option<E>, A2>): ZIO<R & R2, Option<E>, A | A2>;
|
|
965
966
|
declare const end: <E>() => ZIO<unknown, Option<E>, never>;
|
|
966
967
|
|
|
967
|
-
export { type
|
|
968
|
+
export { type Joiner as $, Async as A, type EngineKind as B, type CancelToken as C, type DbHostAction as D, Exit as E, type FiberEngine as F, type EngineSelection as G, type EngineSelectionMode as H, type FiberEngineKind as I, type FlatMapRef as J, type FoldFailureRef as K, type FoldSuccessRef as L, type HostAction as M, type NodeId as N, type Option as O, type HostActionKind as P, type HostActionResult as Q, RuntimeFiber as R, Scope as S, type HostExecutionContext as T, type HostExecutor as U, HostRegistry as V, type WasmEngineRuntime as W, type HostRegistryStats as X, type HttpHostAction as Y, type ZIO as Z, type Interrupted as _, type FiberEngineStats as a, sanitizeLaneKey as a$, type LaneStatsData as a0, type None as a1, NoopHooks as a2, ProgramBuilder as a3, type ProgramPatch as a4, PushStatus as a5, type QueueHostAction as a6, RingBuffer as a7, type RingBufferEngine as a8, type RingBufferStatsData as a9, asyncSucceed as aA, asyncSync as aB, asyncTotal as aC, catchAll as aD, end as aE, engineStats as aF, fail as aG, flatMap as aH, fork as aI, fromPromiseAbortable as aJ, getBenchmarkBudget as aK, getCurrentFiber as aL, globalScheduler as aM, inferCallerLaneFromStack as aN, laneTag as aO, linkAbortController as aP, makeBoundedRingBuffer as aQ, makeCancelToken as aR, map as aS, mapAsync as aT, mapError as aU, mapTryAsync as aV, none as aW, orElseOptional as aX, resetAbortablePromiseStats as aY, runtimeCapabilities as aZ, runtimeForCaller as a_, Runtime as aa, type RuntimeCapabilities as ab, type RuntimeEngineMode as ac, type RuntimeOptions as ad, type ScheduleResult as ae, Scheduler as af, type SchedulerEngine as ag, type SchedulerOptions as ah, type SchedulerStats as ai, type SchedulerStatsData as aj, type ScopeId as ak, type Some as al, type SyncRef as am, type Task as an, WasmFiberEngine as ao, type WasmFiberEngineOptions as ap, abortablePromiseStats as aq, acquireRelease as ar, asyncEffect as as, asyncCatchAll as at, asyncFail as au, asyncFlatMap as av, asyncFold as aw, asyncInterruptible as ax, asyncMap as ay, asyncMapError as az, type Fiber as b, selectedEngineStats as b0, setBenchmarkBudget as b1, some as b2, succeed as b3, sync as b4, toPromise as b5, toPromiseByCaller as b6, unit as b7, unsafeGetCurrentRuntime as b8, unsafeRunAsync as b9, unsafeRunFoldWithEnv as ba, withAsyncPromise as bb, withCurrentFiber as bc, withScope as bd, withScopeAsync as be, type FiberId as c, type FiberStatus as d, type RuntimeEvent as e, type WasmBridge as f, type OpcodeProgram as g, type FiberId$1 as h, type EngineEvent as i, type RefId as j, type OpcodeNode as k, type RingBufferOptions as l, type EngineStats as m, type AbortablePromiseFinish as n, type AbortablePromiseLabelStats as o, type AbortablePromiseOptions as p, type AbortablePromiseOutcome as q, type AbortablePromiseStats as r, type AsyncRegisterRef as s, type AsyncWithPromise as t, type RingLike as u, type Canceler as v, Cause as w, type CustomHostAction as x, type DecodeRef as y, DefaultHostExecutor as z };
|