Skip to content

Commit

Permalink
use failCauseSync
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Feb 11, 2025
1 parent eda7191 commit 91a7efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/effect/src/internal/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ export const orDieWith = dual<
self: Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env>,
f: (e: OutErr) => unknown
): Channel.Channel<OutElem, InElem, never, InErr, OutDone, InDone, Env> =>
catchAll(self, (e) => core.failCause(Cause.die(f(e)))) as Channel.Channel<
catchAll(self, (e) => core.failCauseSync(() => Cause.die(f(e)))) as Channel.Channel<
OutElem,
InElem,
never,
Expand Down

0 comments on commit 91a7efa

Please sign in to comment.