Beginner Questions on Effect.sync and Async Context in Effect
Hi all! I recently discovered Effect, been reading the docs and considering testing it for some stuff. In any case, I have some beginner questions (my context is that I have a node app in production, and so have some explicit "needs" I'm curious about).
1. What generally is the benefit of Effect.sync over a standard plain function? (I do get that it is an effect so maybe it is just that?)
2. The app is multi-tenant, and in some services this is handled using async context. Does Effect have a similar mechanism for sharing e.g. tenant information into the call stack, or does node's async context work as expected into the fibers, Effect.gen and such?
1. What generally is the benefit of Effect.sync over a standard plain function? (I do get that it is an effect so maybe it is just that?)
2. The app is multi-tenant, and in some services this is handled using async context. Does Effect have a similar mechanism for sharing e.g. tenant information into the call stack, or does node's async context work as expected into the fibers, Effect.gen and such?
