Effect CommunityEC
Effect Communityβ€’3y agoβ€’
70 replies
pigoz

Restricting `Effect.runSync` on async Effects

I was wondering, what if Effect.runSync was made impossible on async Effects at the type level? async effect constructors could add an empty dependency to an Async tag (i.e.: Effect<Effect.Async, E, A>), which could be automatically provided by stuff like Effect.runPromise. Maybe it's a dumb idea, or can't be implemented.
Was this page helpful?