const myfuncAfterService = Effect.fn("myfuncAfterService")(
function* (...etc) {
yield* A(...)
yield* B(...)
yield* C(...)
yield* D(...)
})
const myfunc = (n : number, ...etc) => Effect.provideService(myfuncAfterService(...etc), MyService, MyServiceCreator(n))
const myfuncAfterService = Effect.fn("myfuncAfterService")(
function* (...etc) {
yield* A(...)
yield* B(...)
yield* C(...)
yield* D(...)
})
const myfunc = (n : number, ...etc) => Effect.provideService(myfuncAfterService(...etc), MyService, MyServiceCreator(n))