We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b13a49 commit db2dd3cCopy full SHA for db2dd3c
.changeset/social-ducks-read.md
@@ -0,0 +1,5 @@
1
+---
2
+"effect": patch
3
4
+
5
+ignore ReadableStream defect in bun due to controller bug
packages/effect/src/internal/stream.ts
@@ -7228,10 +7228,14 @@ export const toReadableStreamRuntime = dual<
7228
currentResolve = undefined
7229
}))))
7230
fiber.addObserver((exit) => {
7231
- if (exit._tag === "Failure") {
7232
- controller.error(Cause.squash(exit.cause))
7233
- } else {
7234
- controller.close()
+ try {
+ if (exit._tag === "Failure") {
+ controller.error(Cause.squash(exit.cause))
+ } else {
7235
+ controller.close()
7236
+ }
7237
+ } catch {
7238
+ // ignore
7239
}
7240
})
7241
},
0 commit comments