Difference Between Using `ManagedRuntime` and `Effect.provide`
Is there a difference between
and
Or are they mostly equivalent?
and
Or are they mostly equivalent?
const EnvLive = Layer.merge(DatabaseLayer, Logger.pretty);
export const appRuntime = ManagedRuntime.make(EnvLive);
...
pipe(
program,
appRuntime.runFork,
);const EnvLive = Layer.merge(DatabaseLayer, Logger.pretty);
...
pipe(
program,
Effect.provide(EnvLive),
Effect.runFork,
);