Comparison of Two Approaches of handling errors
Hi, are there any differences between these 2 approaches ?
// const prog = Effect...
const res = await Effect.runPromiseExit(prog)
const t = Exit.match(res, {
onFailure: (e) => null,
onSuccess: (v) => v,
})
const u = await Effect.runPromise(
Effect.match(prog, {
onFailure: (e) => null,
onSuccess: (v) => v,
}),
)