Weak Context Scope
open class WeakContextScope<in C>(newRepo: () -> ScopeRegistry) : 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
WeakContextScope
Link copied to clipboard
fun WeakContextScope(newRepo: () -> ScopeRegistry = { StandardScopeRegistry() })
Content copied to clipboard
Types
Of
Link copied to clipboard
Functions
get Registry
Link copied to clipboard
Get a registry for a given context. Should always return the same registry for the same context.
Properties
Inheritors
Of
Link copied to clipboard