Effect CommunityEC
Effect Community2y ago
10 replies
Anna | DevMiner

Creating a Scoped Layer with Global Lifetime

How would one write a scoped layer that lives for the entire duration of the application? I currently have a layer that returns Layer<EventDB, never, Scope>, but now I can't Effect.provide it to my program because it still has the Scope context requirement.
The documentation doesn't say anything about this.
Was this page helpful?