Effect CommunityEC
Effect Community•3y ago•
4 replies
Graeme

Understanding the Design of Promise Wrapping Effect's Error

Hi! Having just been confused by a promise wrapping Effect's error when it throws (as in this thread effect-beginners-🚀Issue with error wrapping in `Effect.runPromise` during interop with Promises ) I'd like to understand why it's been designed that way - can anyone elaborate? I know I found it unexpected and counterintuitive but I'm sure there's a very good reason 🙂
Was this page helpful?