Handling Errors in Effects Without Converting to Promises in TypeScript

I have a use case where I need to add a try/catch handler around an effect–is there any way to do so without dropping the Effect into a Promise? Currently I have:

Effect.tryPromise({
  try: () => Eff.runPromiseExit(effectThatCouldThrow),
  catch: handleThrownError
}).pipe(Effect.flatMap)
Was this page helpful?