Weak Context Scope
open class WeakContextScope<in C>(val newRepo: () -> ScopeRegistry = { StandardScopeRegistry() }) : Scope<C>
Content copied to clipboard
Scope that map scope registries associated to weak contexts.
In essence, the context is weak, and for a given context, its registry will be GC'd when it is itself GC'd.
Constructors
Link copied to clipboard
fun WeakContextScope(newRepo: () -> ScopeRegistry = { StandardScopeRegistry() })
Content copied to clipboard
Types
Functions
Link copied to clipboard
Get a registry for a given context. Should always return the same registry for the same context.