UnboundedScope

open class UnboundedScope(registry: ScopeRegistry) : Scope<Any?> , ScopeCloseable

Scope that is not bound to a context (always lives).

This is kind of equivalent to having no scope at all, except that you can call clear.

Constructors

UnboundedScope
Link copied to clipboard
fun UnboundedScope(registry: ScopeRegistry = StandardScopeRegistry())

Functions

close
Link copied to clipboard
open override fun close()
getRegistry
Link copied to clipboard
open override fun getRegistry(context: Any?): ScopeRegistry

Get a registry for a given context. Should always return the same registry for the same context.

Properties

registry
Link copied to clipboard
val registry: ScopeRegistry