Question About `ManagedRuntime` Disposal and `Scope`ed Layer Finalizers

I have a question about ManagedRuntime disposal and
Scope
ed layer finalizers.

Im creating a runtime like this:
export const createDatabaseRuntime = (config: IDBDatabaseConfig, persist: boolean = false) => {
    return ManagedRuntime.make(
        Layer.provide(
            IDBDatabase.DefaultWithoutDependencies(
              config, persist
            ),
            IDBFactoryService.live,
        )
    );
};

My question is:
If I create a runtime that depends on a scoped layer (the IDBDatabase layer ),
IF when I finish using the runtime but do not runtime.dispose() - will the finalizers for the underlying scoped layer run or not?
Was this page helpful?