Seeking Elegant Solution for Handling Promise Failures in TypeScript Code

Hello everyone! I've been working on some code that looks like this:

  yield* Effect.tryPromise(/* not important */).pipe(
    Effect.CatchAll(() => Effect.success(/* not important */)),
  );


The idea is to prevent the generator from short-circuiting if the promise fails.

I'm curious—do you know if there's a more direct or elegant way to achieve this? Any tips or suggestions would be super appreciated!
Was this page helpful?