Unwrapping Promise<Effect> for Incremental Adoption
Hello, I'm brand new to effect.
I'm trying to incrementally adopted across a few services in my backend.
part of this incremental adoption is converting async function handlers into effects. For example, see this pay for square order function.
since it used to be async, and I'm now using a hybrid of both async code and returning effects, the return type of signature is a Promise<effect>.
this is giving me issues trying to run the code in parent pipelines.
my question is; is there any way to "unwrap" Promise<Effect> for incremental adoption?
or does it have to be pipelines all the way down?
I'm trying to incrementally adopted across a few services in my backend.
part of this incremental adoption is converting async function handlers into effects. For example, see this pay for square order function.
since it used to be async, and I'm now using a hybrid of both async code and returning effects, the return type of signature is a Promise<effect>.
this is giving me issues trying to run the code in parent pipelines.
my question is; is there any way to "unwrap" Promise<Effect> for incremental adoption?
or does it have to be pipelines all the way down?

