Skip to content

Commit

Permalink
tweak stream interrupt check
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Sep 21, 2023
1 parent 54b12e7 commit c0c51e7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/rx/src/Rx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,10 @@ function makeStream<E, A>(
(a) => Effect.sync(() => ctx.setSelf(Result.waiting(Result.success(a))))
),
(exit) => {
if (Exit.isInterrupted(exit)) {
return
}

if (exit._tag === "Failure") {
ctx.setSelf(Result.failure(exit.cause))
if (!Exit.isInterrupted(exit)) {
ctx.setSelf(Result.failure(exit.cause))
}
} else {
pipe(
ctx.self<Result.Result<E | NoSuchElementException, A>>(),
Expand Down

0 comments on commit c0c51e7

Please sign in to comment.