Effect CommunityEC
Effect Community3y ago
2 replies
Kofi

Designing APIs for Commercial Libraries: Choosing between `Effect`s, `Promise<Exit<E, A>>`, and `...

If you were to write a commercial library (so, something that should be sold) with effect, how would your APIs for your end users look like?
Would you expose functions that return
Effect
s and some runStuff utilities? return Promise<Exit<E, A>? return Promise<A> and throw the error channel?
Was this page helpful?