Questions About LayerMap: runtimeEffect and LayerMap.get Usage

Hi 👋,
I have some questions about LayerMap:
1. It has a thing called runtimeEffect that requires a scope. Do I understand correctly that it basically creates a managed runtime that will be destroyed the moment the scope closes?
2. If you do LayerMap.get(...) it returns a layer. I'm not sure why would someone use this instead of Service.Default. Could someone give me some real life examples please?
Was this page helpful?