Commit 2a50043 1 parent fe7da20 commit 2a50043 Copy full SHA for 2a50043
File tree 4 files changed +10
-3
lines changed
platform-browser/src/internal
platform-bun/src/internal
platform-node/src/internal
4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @effect/platform-browser " : patch
3
+ " @effect/platform-node " : patch
4
+ " @effect/platform-bun " : patch
5
+ ---
6
+
7
+ prevent worker handler interrupts from shutting down runner
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export const make = (self: MessagePort | Window) =>
45
45
const fiberSet = yield * FiberSet . make < any , WorkerError | E > ( )
46
46
const runFork = Runtime . runFork ( runtime )
47
47
function onExit ( exit : Exit . Exit < any , E > ) {
48
- if ( exit . _tag === "Failure" ) {
48
+ if ( exit . _tag === "Failure" && ! Cause . isInterruptedOnly ( exit . cause ) ) {
49
49
Deferred . unsafeDone ( closeLatch , Exit . die ( Cause . squash ( exit . cause ) ) )
50
50
}
51
51
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const platformRunnerImpl = Runner.PlatformRunner.of({
30
30
const fiberSet = yield * FiberSet . make < any , WorkerError | E > ( )
31
31
const runFork = Runtime . runFork ( runtime )
32
32
const onExit = ( exit : Exit . Exit < any , E > ) => {
33
- if ( exit . _tag === "Failure" ) {
33
+ if ( exit . _tag === "Failure" && ! Cause . isInterruptedOnly ( exit . cause ) ) {
34
34
Deferred . unsafeDone ( closeLatch , Exit . die ( Cause . squash ( exit . cause ) ) )
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const platformRunnerImpl = Runner.PlatformRunner.of({
30
30
const fiberSet = yield * FiberSet . make < any , WorkerError | E > ( )
31
31
const runFork = Runtime . runFork ( runtime )
32
32
const onExit = ( exit : Exit . Exit < any , E > ) => {
33
- if ( exit . _tag === "Failure" ) {
33
+ if ( exit . _tag === "Failure" && ! Cause . isInterruptedOnly ( exit . cause ) ) {
34
34
Deferred . unsafeDone ( closeLatch , Exit . die ( Cause . squash ( exit . cause ) ) )
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments