Effect CommunityEC
Effect Community3y ago
2 replies
Marian-c-t

Confusion about the need for both `runSync` and `runPromise` in Effect

Hello

I'm just starting up with Effect, reading the docs and stuff.

I'm at the point runSync and runPromise are introduced.

They're explained pretty well, but I'm still confused about the need of both of them. What would be the advantage of using runSync when you can just run runPromise and await on the result?

Thank you any insight on this.
Was this page helpful?