Single-Statement Context Provision in Effect with TypeScript
Is it possible to provide context items from a parent context into an effect in a single statement?
const now = yield* Time_;
const task = yield* AITask_;
yield* task.addTask(
pipe(
effect, // here, I remove the requirements of this effect...
E.provide(Layer.succeed(Service_, Service_.Instance)),
E.provide(Layer.succeed(Time_, now)),
),
display,
);
});