const makeRuntimeFromLayers = (layerList: ???) => {
const scope = Effect.runSync(Scope.make())
const myRuntime = await Layer.toRuntime (layerList).pipe(
Effect.provideService(Scope.Scope, scope),
Effect.runPromise,
)
return myRuntime
}
const makeRuntimeFromLayers = (layerList: ???) => {
const scope = Effect.runSync(Scope.make())
const myRuntime = await Layer.toRuntime (layerList).pipe(
Effect.provideService(Scope.Scope, scope),
Effect.runPromise,
)
return myRuntime
}